/* static/css/main.css */

@charset "UTF-8";

/* Libre Baskerville Font */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

/* landing/_main.scss */
/* Libre Baskerville Font */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    background-color: #ffffff;
    color: #303030;
    line-height: 1.6;
    /* For WebKit browsers (Chrome, Safari) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Optional: Improve text rendering */
    text-rendering: optimizeLegibility;
}

/* CSS Reset + Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Navbar */
.navbar-brand span {
    color: #636363;
}

.navbar .btn-link {
    color: #274285;
    margin: 0 !important;
    text-decoration: none;
}

@media only screen and (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }
}

.navbar-brand .logo-text {
    font-size: 14px;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeffa;
    box-shadow: 0px 2px 6px rgb(230 237 252 / 56%);
}

.navbar-logo {
    max-width: 200px;
}

.custom-dropdown{
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-dropdown:hover{
    color: #274285 !important;
    background-color: #f1faff;
    border-radius: 6px;
}

/* Remove Bootstrap's default arrow */
.custom-dropdown::after {
    display: none !important;
}

/* Style for user avatar */
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%; /* Circular avatar */
}

/* Style for username */
.user-name {
    transition: color 0.3s ease-in-out;
}

/* Style for chevron */
.chevron-icon {
    font-size: 12px; /* Make the chevron smaller */
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Hover Effects */
.custom-dropdown:hover .user-name {
    color: #274285; /* Change name color on hover */
}

.custom-dropdown:hover .chevron-icon {
    color: #274285; /* Change chevron color on hover */
    transform: rotate(180deg); /* Rotate chevron on hover */
}

.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: .5rem 0;
    margin: 0;
    font-size: 1rem;
    color: inherit;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgb(234 239 250);
    border-radius: 6px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

hr.dropdown-divider {
    background-color: rgb(234 239 250);
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    color: #274285;
    background-color: #f1faff;
}

/* Highlight text */

.highlight-text{
    color: #274285;
}

/* Subscription Form */
.subscription-form input[type=email] {
    background-color: #ffffff;
    margin-right: 10px;
}

.subscribe-section {
    position: relative;
    background-color: #274285;
    color: #ffffff;
}

.subscribe-section .subscription {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subscribe-section .subscription-blog {
    text-wrap: pretty;
    width: 50%;
}

.subscription-blog h2 {
    text-align: left;
}

.subscribe-section .subscription-desc {
    line-height: normal;
}

.subscribe-section .subscription-form {
    display: block;
    width: 100%;
    max-width: 500px;
    z-index: 2;
}

.subscribe-section .subscription-form .email-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscribe-section .subscription-form .email-input-group input[type=email] {
    flex-grow: 1;
    padding: 10px;
    border-radius: 4px;
    width: auto;
}

.subscribe-section .subscription-form .email-input-group button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 52px;
}

.subscribe-section .subscription-form .email-input-group button:hover {
    background-color: #0056b3;
}

.subscribe-section .subscription-form .agreement-checkbox {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    line-height: normal;
}

.subscribe-section .subscription-form .agreement-checkbox input[type=checkbox] {
    min-width: 24px !important;
    min-height: 24px !important;
}

.subscribe-section .subscription-form .agreement-checkbox label {
    font-size: 14px;
}

/* Primary Button Styling */

.btn-primary {
    background-color: #274285;
    color: white !important;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    gap: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #2f4c97;
}

.btn-primary.disabled, .btn-primary:disabled {
    background-color: #27428570;
}

.btn-primary:focus,
.btn-primary:active {
    outline: none;
    box-shadow: none;
    background-color: #375bb6;
}

/* Footer */

.footer-copyright {
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #595959;
    background: #ecf2ff;
    line-height: normal;
}


@media only screen and (max-width: 768px) {

    .agreement-checkbox input[type=checkbox]:not(.switch) {
        width: 48px;
    }

    .subscribe-section .subscription-form .email-input-group input[type=email] {
        width: 100%;
        margin-right: 0px;
        margin-top: 20px;
    }

    .subscribe-section .subscription {
        align-items: center;
        flex-direction: column;
    }

    .subscribe-section .subscription-blog,
    .subscribe-section .subscription-form .email-input-group button {
        width: 100%;
    }

    .custom-primary {
        width: 100%;
    }

    .navbar-nav{
        margin-top: 20px;
    }

    .nav-item{
        font-size: 18px;
        padding: 5px 10px;
        border-radius: 6px;
        text-align: right;
    }

    .nav-item:hover{
        color: #274285 !important;
        background-color: #f1faff;
    }

    .nav-link:hover{
        color: #274285 !important;
    }

    .navbar-light .navbar-toggler {
        display: flex;
        justify-content: center;
        align-items: center;
        color: rgb(139 191 246 / 42%);
        border-radius: 30px;
        padding: 0;
        border-color: transparent;
        transition: none;
        width: 30px;
        height: 30px;
    }

    .navbar-toggler:focus{
        box-shadow: 0 0 0 4px;
    }

    .subscription-blog h2 {
        font-size: 32px;
    }

}