/* ========================================
   GLOBAL HEADER STYLES
   ======================================== */

/* Main header container */
header {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10;
    background: #f7f9fa;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block !important;
    visibility: visible !important;
}

/* ========================================
   SIMPLE NAVIGATION ABOVE BANNER
   ======================================== */

.simple-nav {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.simple-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.simple-nav-links li {
    display: flex;
    align-items: center;
}

.simple-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transform: translateY(0);
}

/* Individual button colors */
.home-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff5252) !important;
}

.home-btn:hover {
    background: linear-gradient(135deg, #ff5252, #e53935) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 107, 107, 0.4);
}

.news-btn {
    background: linear-gradient(135deg, #4ecdc4, #26a69a) !important;
}

.news-btn:hover {
    background: linear-gradient(135deg, #26a69a, #00695c) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(78, 205, 196, 0.4);
}

.resources-btn {
    background: linear-gradient(135deg, #45b7d1, #2196f3) !important;
}

.resources-btn:hover {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(69, 183, 209, 0.4);
}

.study-btn {
    background: linear-gradient(135deg, #96ceb4, #4caf50) !important;
}

.study-btn:hover {
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(150, 206, 180, 0.4);
}

.eligibility-btn {
    background: linear-gradient(135deg, #feca57, #ff9800) !important;
}

.eligibility-btn:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(254, 202, 87, 0.4);
}

.nav-emoji {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.nav-text {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ========================================
   BANNER SECTION
   ======================================== */

.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin: 0 auto;
    margin-bottom: 0;
    background: #f0f0f0;
    max-width: 1200px;
    border-radius: 0 0 12px 12px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../Images/banner.png');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Dark overlay for better text readability */
.banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.banner-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 90%;
    max-width: 800px;
}

.banner-logo {
    position: absolute;
    top: 2rem; left: 2rem;
    z-index: 4;
}

.banner-logo img {
    height: 120px; /* Increased from 80px (50% bigger) */
    width: auto;
    max-height: 120px; /* Increased from 80px (50% bigger) */
    display: block;
}

.banner-title h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.banner-title p {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    line-height: 1.4;
}

/* ========================================
   TRANSLATOR BUTTON STYLES
   ======================================== */

.translator-btn {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #005fa3, #0066b3);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    position: relative;
    z-index: 15;
    white-space: nowrap;
    min-width: auto;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0);
}

.translator-btn:hover {
    background: linear-gradient(135deg, #004a8a, #005fa3);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 95, 163, 0.4);
}

.translator-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.translator-text {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Force translator button visibility at all screen sizes */
.nav-links .translator-btn,
.nav-links li .translator-btn,
li .translator-btn,
.simple-nav-links .translator-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========================================
   GOOGLE TRANSLATE WIDGET STYLING
   ======================================== */

#google_translate_element {
    position: fixed !important;
    top: 120px !important;
    right: 15px !important;
    z-index: 9999 !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    padding: 10px !important;
    max-width: 250px !important;
}

#google_translate_element button[title="Close translator"] {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    color: #666 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background-color 0.2s ease !important;
}

#google_translate_element button[title="Close translator"]:hover {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

#google_translate_element .goog-te-gadget {
    font-family: inherit !important;
    font-size: 0.9rem !important;
}

#google_translate_element .goog-te-gadget-simple {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    padding: 0.5rem !important;
}

/* Hide Google Translate banner */
.goog-te-banner-frame {
    display: none !important;
}

/* ========================================
   RESPONSIVE STYLES FOR HEADER
   ======================================== */

/* Responsive background positioning for better mountain visibility */
@media (min-width: 1400px) {
    .banner-bg {
        background-position: center 40%;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .banner-bg {
        background-position: center 38%;
    }
}

@media (min-width: 1600px) {
    .banner-bg {
        background-position: center 42%;
    }
}

@media (min-width: 2000px) {
    .banner-bg {
        background-position: center 45%;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) {
    .banner {
        height: 350px;
    }
    
    .banner-title h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .banner-title p {
        font-size: 1.2rem;
    }
    
    .banner-logo img {
        height: 90px; /* Increased from 60px (50% bigger) */
        max-height: 90px; /* Increased from 60px (50% bigger) */
    }
}

/* Mobile responsive for simple nav */
@media (max-width: 767px) {
    .simple-nav {
        padding: 0.75rem 0; /* Reduce padding */
    }
    
    .simple-nav-links {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; /* 3 columns */
        grid-template-rows: auto auto; /* 2 rows */
        gap: 0.5rem;
        padding: 0 0.5rem;
        max-width: 100%;
        justify-items: center;
    }
    
    .simple-nav-links li {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .simple-nav-links a {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        white-space: nowrap;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .nav-emoji {
        font-size: 1.1rem !important;
    }
    
    .nav-text {
        font-size: 0.7rem;
        font-weight: 600;
    }
    
    /* Translator button stays in column 3, row 2 */
    .simple-nav-links li:last-child {
        grid-column: 3; /* Column 3 instead of spanning all */
        grid-row: 2; /* Row 2 */
        margin-top: 0;
    }
    
    .translator-btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        white-space: nowrap;
        width: 100%;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-content {
        width: 95%;
    }
    
    .banner-title h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .banner-title p {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .banner-logo {
        top: 1rem;
        left: 1rem;
    }
    
    .banner-logo img {
        height: 75px; /* Increased from 50px (50% bigger) */
        max-height: 75px; /* Increased from 50px (50% bigger) */
    }
    
    /* Mobile Google Translate positioning */
    #google_translate_element {
        top: 100px !important;
        right: 5px !important;
        left: 5px !important;
        width: calc(100% - 10px) !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .simple-nav {
        padding: 0.5rem 0; /* Even tighter padding */
    }
    
    .simple-nav-links {
        gap: 0.4rem;
        padding: 0 0.25rem; /* Tighter side padding */
    }
    
    .simple-nav-links a {
        padding: 0.4rem 0.3rem;
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.15rem;
        border-radius: 6px;
    }
    
    .nav-emoji {
        font-size: 1rem !important;
    }
    
    .nav-text {
        font-size: 0.65rem;
    }
    
    .translator-btn {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.5rem !important;
        width: 100%;
    }
    
    .banner {
        height: 250px;
        border-radius: 0;
    }
    
    .banner-title h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .banner-title p {
        font-size: 0.9rem;
    }
}
