﻿/* ==================== COMPLETE COMBINED STYLESHEET ==================== */

/* ========== BASE STYLES ========== */
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}


/* ========== HEADER & NAVIGATION STYLES ========== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 12px 0;
}

    .navbar .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

    .logo img:hover {
        transform: scale(1.05);
    }

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

    .nav-menu li {
        position: relative;
    }

        .nav-menu li a {
            color: #1c4e80;
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            padding: 8px 16px;
            border-radius: 6px;
            transition: all 0.3s ease;
            display: block;
        }

            .nav-menu li a:hover {
                background: #f0f7ff;
                color: #c5833c;
            }

            /* Active Navigation Link */
            .nav-menu li a.active {
                background: transparent;
                color: #fff;
                font-weight: 600;
                box-shadow: none;
            }

            /* Alternative Active Style - Bottom Border */
            .nav-menu li a.active-border {
                color: #c5833c;
                border-bottom: 3px solid #c5833c;
                background: transparent;
            }

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
}

    .user-dropdown .user-btn {
        background: none;
        border: none;
        cursor: pointer;
        color: #1c4e80;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 6px;
        transition: background 0.3s ease;
    }

        .user-dropdown .user-btn:hover {
            background: #f0f7ff;
        }

        .user-dropdown .user-btn img {
            width: 24px;
            height: 24px;
            border-radius: 50%;
        }

    .user-dropdown .dropdown-menu {
        position: absolute;
        right: 0;
        top: 35px;
        list-style: none;
        margin: 0;
        padding: 6px 0;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        min-width: 120px;
        display: none;
        z-index: 999;
    }

        .user-dropdown .dropdown-menu li a {
            display: block;
            padding: 8px 12px;
            color: #333;
            text-decoration: none;
            font-size: 13px;
            transition: background 0.3s ease;
        }

            .user-dropdown .dropdown-menu li a:hover {
                background: #f5f5f5;
                color: #c5833c;
            }

/* ========== FOOTER STYLES ========== */
footer {
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    margin-top: 40px;
}

/* Gradient Top Section */
.footer-top {
    background: linear-gradient(90deg, #e69d53, #4973b8);
    color: #fff;
    padding: 30px 15px;
}

    .footer-top h3 {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .footer-top p {
        font-size: 15px;
        opacity: 0.9;
        margin-bottom: 25px;
    }

.footer-buttons a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-teen {
    background-color: #c5833c;
}

.btn-mentor {
    background-color: #345a8c;
}

.footer-buttons a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* White Bottom Section */
.footer-bottom {
    background: #fff;
    color: #333;
    padding: 25px 15px;
    border-top: 1px solid #ddd;
}

.footer-links {
    margin-bottom: 10px;
    font-size: 14px;
}

    .footer-links a {
        color: #000;
        text-decoration: none;
        margin: 0 5px;
        font-weight: 500;
        padding: 5px 10px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: #c5833c;
            background: #f9f9f9;
        }

.footer-contact {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.footer-logo img {
    height: 35px;
    margin-top: 5px;
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */

/* Large Tablets & Small Desktops (1024px - 1199px) */
@media only screen and (max-width: 1199px) {
    .navbar .container {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 15px !important;
    }

        .nav-menu li a {
            font-size: 14px;
        }

    .footer-top h3 {
        font-size: 22px;
    }

    .footer-top p {
        font-size: 14px;
    }
}

/* Tablets Portrait (768px - 1023px) */
@media only screen and (max-width: 1023px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-content {
        flex-wrap: wrap;
    }

    .logo img {
        height: 40px !important;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 12px !important;
        justify-content: center;
    }

        .nav-menu li a {
            font-size: 13px;
            padding: 6px 10px;
        }

    .user-dropdown .user-btn {
        font-size: 13px !important;
    }

    .footer-top {
        padding: 25px 15px;
    }

        .footer-top h3 {
            font-size: 20px;
        }

    .footer-buttons a {
        padding: 9px 24px;
        font-size: 14px;
    }

    .footer-bottom {
        padding: 20px 15px;
    }
}

/* Mobile Landscape & Small Tablets (600px - 767px) */
@media only screen and (max-width: 767px) {
    .navbar {
        padding: 8px 0;
    }

        .navbar .container {
            padding: 0 10px;
        }

    .nav-content {
        flex-direction: column;
        gap: 12px;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

        .logo img {
            height: 38px !important;
        }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 8px !important;
        padding: 0 !important;
    }

        .nav-menu li {
            width: 100%;
            text-align: center;
        }

            .nav-menu li a {
                display: block;
                padding: 10px 15px;
                background: #f5f5f5;
                border-radius: 6px;
                font-size: 14px;
                transition: background 0.3s;
            }

                .nav-menu li a:hover {
                    background: #e0e0e0;
                }

                .nav-menu li a.active {
                    background: transparent;
                    color: #fff;
                }

    .user-dropdown {
        width: 100%;
        text-align: center;
    }

        .user-dropdown .user-btn {
            width: 100%;
            justify-content: center;
            padding: 10px;
            background: #f0f7ff !important;
            border-radius: 6px;
        }

        .user-dropdown .dropdown-menu {
            right: auto;
            left: 50%;
            transform: translateX(-50%);
            top: 45px;
        }

    .container.body-content {
        padding: 0 10px;
    }

    footer {
        margin-top: 30px;
    }

    .footer-top {
        padding: 20px 15px;
    }

        .footer-top h3 {
            font-size: 18px;
            margin-bottom: 10px;
        }

        .footer-top p {
            font-size: 13px;
            margin-bottom: 20px;
        }

    .footer-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

        .footer-buttons a {
            width: 80%;
            max-width: 250px;
            padding: 12px 20px;
            margin: 0;
            text-align: center;
        }

    .footer-bottom {
        padding: 20px 10px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }

        .footer-links a {
            display: inline-block;
            padding: 5px 8px;
            font-size: 13px;
        }

    .footer-contact {
        font-size: 13px;
        margin-bottom: 15px;
    }

        .footer-contact span {
            display: inline-block;
            margin: 0 5px;
        }

    .footer-logo img {
        height: 32px;
    }
}

/* Mobile Portrait (480px - 599px) */
@media only screen and (max-width: 599px) {
    .logo img {
        height: 35px !important;
    }

    .nav-menu li a {
        font-size: 13px;
        padding: 9px 12px;
    }

    .user-dropdown .user-btn {
        font-size: 12px !important;
    }

        .user-dropdown .user-btn img {
            width: 20px !important;
            height: 20px !important;
        }

    .footer-top h3 {
        font-size: 16px;
    }

    .footer-top p {
        font-size: 12px;
    }

    .footer-buttons a {
        width: 90%;
        padding: 10px 18px;
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 5px;
    }

        .footer-links a {
            font-size: 12px;
            padding: 4px 6px;
        }

    .footer-contact {
        font-size: 12px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .footer-logo img {
        height: 30px;
    }
}

/* Small Mobile Devices (375px - 479px) */
@media only screen and (max-width: 479px) {
    .navbar {
        padding: 6px 0;
    }

        .navbar .container {
            padding: 0 8px;
        }

    .logo img {
        height: 32px !important;
    }

    .nav-menu li a {
        font-size: 12px;
        padding: 8px 10px;
    }

    .user-dropdown .user-btn {
        font-size: 11px !important;
        padding: 8px !important;
    }

        .user-dropdown .user-btn img {
            width: 18px !important;
            height: 18px !important;
        }

    .dropdown-menu {
        min-width: 100px !important;
    }

        .dropdown-menu li a {
            font-size: 12px !important;
            padding: 6px 10px !important;
        }

    .container.body-content {
        padding: 0 8px;
    }

    footer {
        margin-top: 25px;
    }

    .footer-top {
        padding: 18px 12px;
    }

        .footer-top h3 {
            font-size: 15px;
        }

        .footer-top p {
            font-size: 11px;
            margin-bottom: 15px;
        }

    .footer-buttons a {
        width: 95%;
        padding: 10px 15px;
        font-size: 12px;
        border-radius: 20px;
    }

    .footer-bottom {
        padding: 18px 8px;
    }

    .footer-links a {
        font-size: 11px;
        padding: 3px 5px;
    }

    .footer-contact {
        font-size: 11px;
    }

    .footer-logo img {
        height: 28px;
    }
}

/* Extra Small Devices (320px - 374px) */
@media only screen and (max-width: 374px) {
    .logo img {
        height: 30px !important;
    }

    .nav-menu li a {
        font-size: 11px;
        padding: 7px 8px;
    }

    .user-dropdown .user-btn {
        font-size: 10px !important;
        padding: 6px !important;
    }

        .user-dropdown .user-btn img {
            width: 16px !important;
            height: 16px !important;
        }

    .footer-top h3 {
        font-size: 14px;
    }

    .footer-top p {
        font-size: 10px;
    }

    .footer-buttons a {
        padding: 9px 12px;
        font-size: 11px;
    }

    .footer-links a {
        font-size: 10px;
    }

    .footer-contact {
        font-size: 10px;
    }

    .footer-logo img {
        height: 26px;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .nav-menu li a {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    .footer-buttons a {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    .user-btn {
        -webkit-appearance: none !important;
    }

    input,
    select,
    textarea {
        -webkit-appearance: none;
        border-radius: 6px;
    }
}

/* iPad Specific (768px - 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .nav-content {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-menu {
        flex-direction: row;
        gap: 10px !important;
        justify-content: center;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    .user-dropdown {
        order: 2;
    }

    .footer-buttons {
        display: flex;
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }

        .footer-buttons a {
            width: auto;
            min-width: 150px;
        }
}

/* Landscape Orientation for Mobile */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 5px 0;
    }

    .logo img {
        height: 30px !important;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px !important;
    }

        .nav-menu li a {
            padding: 6px 10px;
            font-size: 12px;
        }

    .footer-top {
        padding: 15px 10px;
    }

        .footer-top h3 {
            font-size: 16px;
            margin-bottom: 5px;
        }

        .footer-top p {
            font-size: 12px;
            margin-bottom: 15px;
        }

    .footer-buttons {
        flex-direction: row;
    }

    .footer-bottom {
        padding: 15px 10px;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .nav-menu li a,
    .footer-buttons a,
    .user-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .nav-menu li a:active,
        .footer-buttons a:active {
            opacity: 0.7;
        }
}

/* High DPI Displays (Retina) */
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}
