/* assets/css/style.css - FINAL POLISH */

/* --- RESET & VARIABLES --- */
:root {
    --primary: #003366; /* Academic Blue */
    --primary-dark: #002244;
    --secondary: #FFD700; /* Gold */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* --- TOP BAR & MARQUEE --- */
.top-bar { background: var(--primary); color: white; padding: 8px 0; font-size: 0.9rem; position: relative; overflow: hidden; }
.top-bar a { color: white; font-weight: 500; }
.top-bar .contact-info { z-index: 2; position: relative; background: var(--primary); padding-right: 20px; }

.marquee-container { flex-grow: 1; overflow: hidden; white-space: nowrap; position: relative; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-content { display: inline-block; padding-left: 100%; animation: scroll-left 15s linear infinite; color: var(--secondary); font-weight: 700; }

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

/* --- MAIN HEADER --- */
.main-header { background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; padding: 10px 0; }
.main-logo-img { height: 60px; width: auto; }

/* NAVIGATION */
.main-nav ul { display: flex; align-items: center; gap: 25px; }
.main-nav li { list-style: none; }
.main-nav a { font-weight: 500; color: var(--primary); font-size: 0.95rem; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-dark); }
.main-nav a:not(.btn-nav):after { content: ''; display: block; width: 0; height: 2px; background: var(--secondary); transition: width 0.3s; margin-top: 2px; }
.main-nav a:not(.btn-nav):hover:after { width: 100%; }

.btn-nav { 
    background: var(--primary); 
    color: white !important; 
    padding: 10px 25px; 
    border-radius: 50px; 
    font-weight: 600; 
    border: 2px solid var(--primary);
}
.btn-nav:hover { background: transparent; color: var(--primary) !important; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background-color: var(--primary);
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
}
.hero h1 { font-family: 'Merriweather', serif; font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.3rem; max-width: 800px; margin: 0 auto 40px; opacity: 0.9; font-weight: 300; }
.highlight { color: var(--secondary); }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 14px 35px; border-radius: 5px; font-weight: 600; cursor: pointer; transition: transform 0.2s; }
.btn-primary { background: var(--secondary); color: var(--primary-dark); border: none; }
.btn-primary:hover { background: #e5c100; transform: translateY(-3px); }
.btn-outline { background: transparent; color: white; border: 2px solid white; margin-left: 15px; }
.btn-outline:hover { background: white; color: var(--primary); transform: translateY(-3px); }

/* --- FEATURES STRIP --- */
.features-strip { 
    background: white; 
    padding: 40px 0; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
    border-radius: 8px; 
    margin-top: -60px; 
    position: relative; 
    z-index: 10; 
    max-width: 1100px; 
    margin-left: auto; 
    margin-right: auto; 
    border-bottom: 4px solid var(--secondary);
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-box { padding: 0 20px; border-right: 1px solid #eee; }
.feature-box:last-child { border-right: none; }
.feature-box h3 { color: var(--primary); font-family: 'Merriweather', serif; font-size: 1.2rem; margin-bottom: 5px; }

/* --- CONTENT SECTIONS --- */
.section-title { font-family: 'Merriweather', serif; color: var(--primary); font-size: 2.5rem; margin-bottom: 40px; position: relative; display: inline-block; }
.section-title:after { content: ''; display: block; width: 60%; height: 4px; background: var(--secondary); margin-top: 10px; }

.grid-2-sidebar { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.poster-container { padding: 10px; background: white; box-shadow: var(--shadow); transform: rotate(2deg); border: 1px solid #eee; }

/* --- FOOTER --- */
.main-footer { background: #0b1c2e; color: #a0a0a0; padding: 70px 0 30px; }
.main-footer h3 { color: white; border-bottom: 2px solid var(--secondary); padding-bottom: 10px; display: inline-block; margin-bottom: 20px; }
.footer-contact-link { color: #ccc; display: block; margin-bottom: 5px; }
.footer-contact-link:hover { color: var(--secondary); padding-left: 5px; }
.copyright { border-top: 1px solid #1f364d; margin-top: 50px; padding-top: 20px; text-align: center; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .features-strip { display: none; }
    .hero { padding: 100px 0; }
    .hero h1 { font-size: 2.2rem; }
    .grid-2-sidebar { grid-template-columns: 1fr; }
    .poster-container { transform: none; max-width: 100%; margin-top: 30px; }
    
    .mobile-toggle { display: block; width: 30px; height: 25px; position: relative; background: none; border: none; cursor: pointer; }
    .mobile-toggle span { display: block; width: 100%; height: 3px; background: var(--primary); margin-bottom: 5px; }
    
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav li { border-bottom: 1px solid #eee; }
    .main-nav a { display: block; padding: 15px 0; }
    .btn-nav { text-align: center; margin-top: 15px; }
    .contact-info .desktop-only { display: none; }
}

/* =========================================
   NEW ADDITIONS BELOW THIS LINE
   ========================================= */

/* 1. FIXED WHATSAPP ICON (Prevents it from being huge) */
.sticky-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.sticky-whatsapp img {
    width: 35px !important;
    height: 35px !important;
    display: block;
}

.sticky-whatsapp:hover {
    transform: scale(1.1);
}

/* 2. PROGRAMS TABLE DESIGN */
.eligibility-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.eligibility-table th, .eligibility-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.eligibility-table th {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eligibility-table tr:last-child td {
    border-bottom: none;
}

/* 3. GALLERY GRID DESIGN */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: #000;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    opacity: 0.95;
    transition: all 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* 4. PROGRAM CARD DESIGN */
.program-card { 
    background: var(--white); 
    padding: 40px 30px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: transform 0.3s, box-shadow 0.3s; 
    border-top: 5px solid var(--secondary); 
    border-bottom: 1px solid #eee;
    height: 100%;
}
.program-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.card-icon { font-size: 3rem; margin-bottom: 20px; display: inline-block; background: #f4f6f9; width: 80px; height: 80px; line-height: 80px; border-radius: 50%; text-align: center; color: var(--primary); }
