
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --army-green: #4b5320;
    --dark-green: #2f3513;
    --gold: #d4af37;
    --black: #0a0a0a;
    --text-white: #ffffff;
    --hero-overlay: rgba(0, 0, 0, 0.7);
}

body {
    background-color: var(--black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/*TOP HEADER*/
.top-header {
    background: linear-gradient(to right, #1a1a1a, var(--dark-green));
    border-bottom: 3px solid var(--gold);
    padding: 15px 0;
    text-align: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.title-block h1 {
    font-size: 2rem;
    text-transform: uppercase;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.title-block p {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/*NAVIGATION BAR*/
.navbar {
    background: #111;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; 
    align-items: center;
    height: 60px;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-links li a:hover {
    color: var(--gold);
}

/* Underline effect on hover */
.nav-links li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-links li a:hover::after {
    width: 100%;
}

.register-btn {
    background: var(--gold);
    color: #000 !important;
    padding: 8px 18px !important;
    border-radius: 4px;
    font-weight: 800 !important;
}

.register-btn:hover {
    background: #fff !important;
    color: #000 !important;
    transform: scale(1.05);
}

/*NEWS TICKER*/
.updates-bar {
    background: var(--gold);
    color: #000;
    display: flex;
    font-weight: bold;
    height: 35px;
    align-items: center;
    overflow: hidden;
}

.updates-label {
    background: #000;
    color: var(--gold);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    z-index: 2;
}

.ticker-text {
    padding-left: 20px;
    animation: slide 15s linear infinite;
    white-space: nowrap;
}

@keyframes slide {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/*HERO SECTION*/
.hero {
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('https://images.unsplash.com/photo-1579912437766-79b88950854d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-text h2 {
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    margin-bottom: 20px;
    border-bottom: 4px solid var(--gold);
    display: inline-block;
    padding-bottom: 10px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #eee;
    max-width: 700px;
    margin: 0 auto;
}

/*SECTIONS GENERAL*/
.section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    border-bottom: 1px solid #333;
}

.section h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* COURSE LIST & GALLERY */
.course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.course-list li {
    background: #222;
    border: 1px solid var(--gold);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.course-list li:hover {
    background: var(--gold);
    color: #000;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}




.photo-grid {
    display: grid;
    /* This creates a responsive grid that fits mobile and desktop automatically */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-img {
    width: 100%;       
    height: 250px;     
    object-fit: cover; 
    object-position: center; 
    border: 2px solid var(--gold);
    border-radius: 8px;
    transition: transform 0.3s ease;
}


.gallery-img:hover {
    transform: scale(1.03);
    border-color: #fff;
}

/* ---  MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; }
    .hero-text h2 { font-size: 2rem; }
    
    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .bar { height: 3px; width: 100%; background: var(--gold); }

    .nav-container { justify-content: flex-start; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px 0;
        border-bottom: 2px solid var(--gold);
    }
    
    .nav-links.active { display: flex; }
    
    .nav-links li { text-align: center; }
}

.navbar {
    background: #000;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 0 20px;
    height: 70px;
}


.nav-links li {
    background: none !important; 
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 15px;
    transition: 0.3s;
}


.register-btn {
    background-color: var(--gold) !important;
    color: #000 !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    font-weight: 800 !important;
    text-transform: uppercase;
    display: inline-block;
    line-height: normal; 
    margin-left: 10px;
}

.register-btn:hover {
    background-color: #fff !important;
    color: #000 !important;
}

.mini-photo {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important; 
    border: 2px solid #d4af37 !important;
    background: #000;
    display: block !important;
    visibility: visible !important;
}

/* Fix for the container positioning in the header */
.mini-profile-box {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 25px;
    border: 1px solid #d4af37;
}
.email-link {
    color:var(--text-white); 
    text-decoration: none; 
    font-weight: bold;
}

.email-link:hover {
    color: #0056b3; 
    text-decoration: underline;
}

footer {
    background-color: #000;         
    color: #d4af37;                  
    text-align: center;              
    padding: 20px 0;                 
    font-family: 'Poppins', sans-serif; 
    font-size: 14px;                 
    letter-spacing: 1px;             
    border-top: 1px solid #333;      
    margin-top: auto;
}

/* --- UNIFIED FOOTER STYLES --- */
footer {
    background-color: #1a1a1a;
    color: #ecf0f1;
    padding-top: 50px;
    border-top: 4px solid #d4af37; /* Gold Border */
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Pushes content to left and right */
    flex-wrap: wrap; /* Allows stacking on mobile */
    padding: 0 20px 40px 20px;
    gap: 40px;
}

/* Footer Columns */
.footer-column h3 {
    color: #d4af37; /* Gold Heading */
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Links Styling */
.contact-details p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hover Effect for Contact Links */
.contact-details a:hover {
    color: #d4af37;
}

.contact-details i {
    color: #d4af37; /* Gold Icons */
    width: 20px; /* Aligns icons neatly */
    text-align: center;
}

/* Social Media Section */
.social-connect {
    text-align: center; /* Center align title on mobile if needed */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon.whatsapp:hover { background: #25D366; transform: translateY(-3px); }
.social-icon.instagram:hover { background: #E1306C; transform: translateY(-3px); }

/* Copyright Section */
.copyright {
    text-align: center;
    background-color: #111;
    padding: 15px;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #333;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stack vertically on phones */
        text-align: center;
        align-items: center;
    }

    .contact-details p, 
    .contact-details a {
        justify-content: center; /* Center links on mobile */
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Eye Icon Container */
.password-wrapper {
    position: relative;
    width: 100%;
}

/* The Eye Icon itself */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    z-index: 2;
}

.toggle-password:hover {
    color: #d4af37; /* Gold on hover */
}

/* --- TOAST NOTIFICATION STYLES (Mobile Friendly) --- */
#toast-box {
    visibility: hidden;
    min-width: 280px; /* Slightly wider for readability */
    max-width: 90%;   /* Prevents it from going off-screen on phones */
    background-color: #222; /* Darker background */
    color: #fff;
    text-align: center;
    border-radius: 8px; /* Softer corners */
    padding: 15px 20px;
    position: fixed;
    z-index: 9999; /* Ensures it is on top of everything */
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 15px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.5); /* Stronger shadow */
    opacity: 0;
    transition: opacity 0.4s ease-in-out, bottom 0.4s ease-in-out;
    white-space: nowrap; /* Keeps text on one line if possible */
}

/* Mobile Specific Adjustments */
@media (max-width: 600px) {
    #toast-box {
        width: 85%;       /* Take up most of the screen width */
        bottom: 20px;     /* Sit slightly lower */
        font-size: 14px;  /* Slightly smaller text */
        white-space: normal; /* Allow text to wrap on small phones */
    }
}

#toast-box.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Moves up slightly when appearing */
}

/* Colors for Success and Error */
#toast-box.success { 
    border-left: 6px solid #2ecc71; /* Green Bar */
} 

#toast-box.error { 
    border-left: 6px solid #e74c3c; /* Red Bar */
}

/* =========================================
   NAVIGATION BAR (FIXED FOR MOBILE)
   ========================================= */
.navbar {
    background: #000;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; 
    align-items: center;
    height: 70px;
    padding: 0 20px;
    position: relative; /* Crucial for mobile menu icon positioning */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li { background: none !important; }

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: 0.3s;
    position: relative;
}

.nav-links li a:hover {
    color: var(--gold);
}

.nav-links li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-links li a:hover::after {
    width: 100%;
}

/* Hamburger Menu Icon Base (Hidden on Desktop) */
.menu-icon {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
}

/* --- MOBILE RESPONSIVE NAVBAR OVERRIDES --- */
@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-start;
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        position: absolute;
        right: 20px;
        top: 24px; /* Centers the icon perfectly inside the 70px tall navbar */
    }

    .nav-links {
        display: none; /* Hidden until menu icon is clicked */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Placed exactly below the navbar */
        left: 0;
        width: 100%;
        background: #111;
        padding: 15px 0;
        border-bottom: 2px solid var(--gold);
        box-shadow: 0px 5px 10px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }
}

/* --- BEAUTIFUL MOBILE MENU ANIMATIONS --- */
@media screen and (max-width: 768px) {
    /* 1. Smooth Dropdown Menu */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.98); /* Slightly transparent */
        backdrop-filter: blur(10px);
        flex-direction: column;
        
        /* Force flex but hide with CSS transforms */
        display: flex !important; 
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        padding-bottom: 20px;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 2. Hamburger turns into an 'X' */
    .menu-icon {
        cursor: pointer;
        z-index: 100;
    }
    .menu-icon .bar {
        transition: all 0.3s ease;
        transform-origin: left center;
    }
    
    /* When active, transform the 3 bars */
    .menu-icon.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(2px, -2px);
    }
    .menu-icon.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-icon.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(2px, 2px);
    }
}

html{
    scroll-behavior: smooth;
}

/* --- AI CHATBOT WIDGET --- */
#chat-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

#chat-toggle-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b5952f);
    color: #111;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

#chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 480px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

#chat-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5); /* Cool zooming effect when opening */
}

.chat-header {
    background: #111;
    color: #d4af37;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

#close-chat {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

#close-chat:hover { color: #ff4d4d; }

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #222;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message {
    background: #333;
    color: #eee;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background: #d4af37;
    color: #111;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    font-weight: 500;
}

.chat-footer {
    display: flex;
    padding: 10px;
    background: #111;
    border-top: 1px solid #333;
}

#chat-input {
    flex: 1;
    padding: 12px;
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 20px;
    color: white;
    outline: none;
    font-size: 13px;
}

#send-chat {
    background: #d4af37;
    color: #111;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

#send-chat:hover { transform: scale(1.1); }

/* Custom Scrollbar for chat */
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: #222; }
.chat-body::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }

@media screen and (max-width: 480px) {
    #chat-window {
        width: 320px;
        right: -10px;
    }
}