/* ============================================================
   AVK College for Women — Site Theme (site.css)
   Contains: Root variables, Base Typography, Buttons, Header,
             Navbar, Navigation Dropdowns, Footer, Back to Top
   ============================================================ */

:root {
    /* Primary & Brand Accent Colors */
    --color-primary-blue: #1d52ba;
    --color-primary-blue-dark: #123783;
    --color-lotus-pink: #f27a9b;
    --color-lotus-pink-dark: #d6587a;
    /* Secondary Palette */
    --color-grass-green: #3fb91e;
    --color-mountain-teal: #257c58;
    --color-temple-brown: #84331c;
    /* Sun & Canvas Shades */
    --color-sun-yellow: #ffc123;
    --color-sky-peach: #ffcda0;
    /* Neutrals & Structural Colors */
    --cream: #faf8f5;
    --cream-dark: #eee8de;
    --text-muted: #5e6c84;
    /* Aliases */
    --navy-dark: var(--color-primary-blue-dark);
    --navy: var(--color-primary-blue);
    --orange: var(--color-sun-yellow);
    --orange-dark: var(--color-temple-brown);
}

body {
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    color: #1f2733;
    background: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Source Serif 4', Georgia, serif;
}

a {
    color: var(--color-primary-blue);
    text-decoration: none;
}

    a:hover {
        color: var(--color-primary-blue-dark);
    }

/* ---------- Shared Buttons ---------- */
.btn-avk-primary,
.btn-avk-outline,
.cta-banner .btn-light {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-avk-primary {
    background-color: var(--color-lotus-pink);
    border: 1px solid var(--color-lotus-pink);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
}

    .btn-avk-primary:hover {
        background-color: var(--color-lotus-pink-dark);
        border-color: var(--color-lotus-pink-dark);
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(242, 122, 155, 0.4);
    }

.btn-avk-outline {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 3px;
}

    .btn-avk-outline:hover {
        background-color: var(--color-primary-blue);
        border-color: var(--color-primary-blue);
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(29, 82, 186, 0.35);
    }

/* ---------- Header Top Banner ---------- */
.header-top-banner {
    display: flex;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-primary-blue-dark);
}

.header-brand-side {
    flex: 0 0 50%;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    background-color: var(--navy-dark);
    position: relative;
    z-index: 1;
}

.brand-favicon {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-header-logo {
    height: 54px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-info-side {
    flex: 1;
    padding: 15px 40px 15px 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #5e6e85;
    color: #ffffff;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50px 100%);
    margin-left: 50px;
    position: relative;
    z-index: 2;
}

    .header-info-side a,
    .header-info-side span {
        color: #ffffff;
        font-weight: 500;
        text-decoration: none;
    }

/* ---------- Utility Bar ---------- */
.utility-bar {
    background: var(--color-primary-blue-dark);
    color: #c9d2e3;
    font-size: 0.82rem;
    padding: 0.5rem 0;
}

    .utility-bar a {
        color: #c9d2e3;
    }

        .utility-bar a:hover {
            color: #ffffff;
        }

    .utility-bar svg {
        flex-shrink: 0;
    }

    .utility-bar .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 0.5rem;
    }

/* ---------- Main Navigation ---------- */
.navbar-avk-custom,
.navbar-avk {
    z-index: 1030;
    width: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, rgba(128, 128, 128, 0.1) 50%, rgba(0, 0, 0, 0.25) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0px;
    box-shadow: 0 12px 40px 0 rgba(18, 55, 131, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 0rem 1.5rem;
    transition: all 0.3s ease-in-out;
}

    .navbar-avk .navbar-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-avk .brand-badge {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--color-lotus-pink);
        color: #ffffff;
        font-family: 'Source Serif 4', Georgia, serif;
        font-weight: 700;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .navbar-avk .brand-title {
        color: #ffffff;
        font-family: 'Source Serif 4', Georgia, serif;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        line-height: 1.1;
    }

    .navbar-avk .brand-sub {
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .navbar-avk-custom .nav-link,
    .navbar-avk .nav-link {
        color: #000 !important;
        font-weight: 600;
        font-size: 0.75rem;
        padding: 6px 12px !important;
        position: relative;
        transition: all 0.2s ease-in-out;
    }

        .navbar-avk-custom .nav-link:hover,
        .navbar-avk-custom .nav-link.active,
        .navbar-avk .nav-link:hover,
        .navbar-avk .nav-link.active {
            color: #ffffff !important;
            background-color: var(--color-primary-blue);
            border-radius: 50px;
            box-shadow: 0 4px 12px rgba(29, 82, 186, 0.3);
        }

    .navbar-avk-custom .btn-avk-primary,
    .navbar-avk .btn-avk-primary {
        font-size: 0.75rem !important;
        padding: 4px 14px !important;
        line-height: 1.5 !important;
        border-radius: 50px;
        display: inline-block;
    }

    .navbar-avk .dropdown-menu,
    .navbar-avk-custom .dropdown-menu {
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 12px;
        box-shadow: 0 16px 40px rgba(18, 55, 131, 0.18);
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        margin-top: 2px;
        padding: 0.25rem;
    }

    .navbar-avk .dropdown-item,
    .navbar-avk-custom .dropdown-item {
        border-radius: 6px;
        font-size: 0.75rem;
        padding: 6px 10px;
        transition: all 0.2s ease;
    }

        .navbar-avk .dropdown-item:hover,
        .navbar-avk-custom .dropdown-item:hover {
            background-color: rgba(29, 82, 186, 0.12);
            color: var(--color-primary-blue-dark);
            transform: translateX(3px);
        }

.custom-header-toggler {
    border: 1px solid rgba(18, 55, 131, 0.2);
    padding: 0.25rem 0.6rem;
    font-size: 1.25rem;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 0.375rem;
}

    .custom-header-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2818, 55, 131, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

/* ---------- Page Banner ---------- */
.page-banner {
    background: linear-gradient(120deg, var(--navy-dark), var(--navy));
    color: #fff;
    padding: 3.2rem 0;
}

    .page-banner .breadcrumb-avk {
        color: #a8b3c9;
        font-size: 0.85rem;
    }

        .page-banner .breadcrumb-avk a {
            color: #a8b3c9;
        }

/* ---------- Footer Section ---------- */
.footer-avk {
    position: relative;
    background: var(--navy-dark);
    color: #a8b3c9;
    padding-top: 3.5rem;
    overflow: hidden;
}

    .footer-avk .footer-bg-overlay {
        position: absolute;
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        background-image: linear-gradient(rgb(0 0 0 / 83%), rgb(18 57 131 / 71%)), url('../images/hero1.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        filter: blur(12px);
        -webkit-filter: blur(12px);
        transform: scale(1.05);
        z-index: 1;
    }

    .footer-avk .container {
        position: relative;
        z-index: 2;
    }

.footer-brand-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.footer-brand-title {
    line-height: 1.25;
    font-family: 'Source Serif 4', Georgia, serif;
}

.footer-avk h3,
.footer-col-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 8px;
}

    .footer-col-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 35px;
        height: 3px;
        background-color: var(--color-lotus-pink);
        border-radius: 2px;
    }

.footer-avk a {
    color: #a8b3c9;
    font-size: 0.86rem;
}

.footer-links li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

    .footer-links li a:hover,
    .footer-avk a:hover {
        color: var(--color-lotus-pink);
        transform: translateX(5px);
    }

.text-footer-muted {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.88rem;
}

.dendron-credit {
    color: var(--color-sun-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

    .dendron-credit:hover {
        color: #ffffff;
        text-decoration: underline;
    }

.footer-avk .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.1rem 0;
    font-size: 0.78rem;
    margin-top: 2.5rem;
}

/* ---------- Back to Menu Floating Button ---------- */
.btn-back-to-menu {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-lotus-pink);
    color: #ffffff;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(18, 55, 131, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

    .btn-back-to-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .btn-back-to-menu:hover {
        background-color: var(--color-lotus-pink-dark);
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(18, 55, 131, 0.4);
        transform: translateY(-2px);
    }

    .btn-back-to-menu:active {
        transform: translateY(0);
    }

/* ============================================================
   Site Layout Responsive Breakpoints (Laptop, Tab, Mobile)
   ============================================================ */

/* ---------- Desktop / Laptop Standard (992px+) ---------- */
@media (min-width: 1200px) {
    .brand-header-logo {
        height: 72px; /* Increases logo height from 54px to 72px */
    }
}

@media (min-width: 992px) {
    .custom-header-toggler {
        display: none !important;
    }
}

/* ---------- Medium Laptops & Tablets Landscape (1024px Screen Optimization) ---------- */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-avk-custom,
    .navbar-avk {
        padding: 0 0.5rem !important;
    }

        .navbar-avk-custom .nav-link,
        .navbar-avk .nav-link {
            font-size: 0.7rem !important;
            padding: 4px 8px !important;
        }

        .navbar-avk-custom .btn-avk-primary,
        .navbar-avk .btn-avk-primary {
            font-size: 0.7rem !important;
            padding: 4px 10px !important;
        }

    .header-brand-side {
        padding: 12px 20px;
    }

    .header-info-side {
        padding: 12px 20px 12px 50px;
        font-size: 0.82rem;
    }
}

/* ---------- Tablets & Mobile Collapsed Header (<= 991.98px) ---------- */
@media (max-width: 991.98px) {
    .header-top-banner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-brand-side {
        flex: 1 0 auto;
        width: 100%;
        padding: 12px 24px 12px 20px; /* Padding on right gives space to toggler */
        justify-content: space-between;
    }

    .header-info-side {
        display: none !important;
    }

    .custom-header-toggler {
        display: inline-block !important;
        margin-right: 12px; /* Pulls the icon slightly left from the screen edge */
        flex-shrink: 0;
    }

    .navbar-avk-custom,
    .navbar-avk {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.5rem 1rem !important;
    }

        .navbar-avk-custom,
        .navbar-avk-custom .container,
        .navbar-avk-custom .navbar-collapse,
        .navbar-avk-custom .navbar-nav {
            padding: 0 !important;
            margin: 0 !important;
        }

            .navbar-avk-custom .navbar-nav {
                text-align: center;
                width: 100%;
                padding: 0.75rem 0 !important;
            }

            .navbar-avk-custom .nav-item {
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                margin-bottom: 4px;
            }

            .navbar-avk-custom .nav-link {
                display: inline-block;
                width: auto;
                text-align: center;
                padding: 8px 16px !important;
            }

            .navbar-avk-custom .dropdown-menu {
                text-align: center;
                float: none;
                position: static !important;
                transform: none !important;
                box-shadow: none;
                background-color: rgba(238, 232, 222, 0.95);
                margin-top: 0.25rem;
                width: 100%;
            }
}

/* ---------- Mobile Screens (<= 576px) ---------- */
@media (max-width: 576px) {
    .header-brand-side {
        padding: 10px 12px;
        gap: 8px; /* Ensures a strict physical gap between logo and button */
    }

    /* Constrain the logo width on small screens so it never touches the menu button */
    .brand-header-logo {
        height: auto;
        max-height: 38px;
        max-width: calc(100vw - 80px); /* Reserves space specifically for toggler icon */
        object-fit: contain;
    }

    .custom-header-toggler {
        margin-right: 0;
        flex-shrink: 0; /* Prevents button from shrinking or overlapping */
    }

        .custom-header-toggler .navbar-toggler-icon {
            height: 1em;
            width: 1em;
        }

    .btn-back-to-menu {
        bottom: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
    }
}