/* --- BRAND VARIABLES --- */
:root {
    --primary-navy: #00274d;   
    --accent-orange: #f08e1e; 
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --transition: all 0.3s ease;
}

/* --- RESET & OVERFLOW FIX --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
    font-family: 'Poppins', sans-serif; 
    color: var(--text-dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
    width: 100%;
    scroll-behavior: smooth;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: 'Poppins', sans-serif; outline: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; overflow: hidden; } 
.dark-bg { background-color: var(--primary-navy); color: var(--white); }
.light-bg { background-color: var(--off-white); }
.orange-text { color: var(--accent-orange); }
.primary-text { color: var(--primary-navy); }
.white-text { color: var(--white); }
.text-center { text-align: center; }

/* Increased Text Sizes utility classes */
.large-tag { font-size: 1.4rem !important; }
.large-p { font-size: 2.4rem; color: #001a33; }
.large-sub { font-size: 2rem !important; }
.large-heading { font-size: 2.8rem !important; }
.large-tag-hero { font-size: 1.4rem !important; padding: 8px 20px !important; }

/* --- HEADER & NAV --- */
.top-header { background: #001a33; color: #ccc; padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-header .container { display: flex; justify-content: space-between; align-items: center; }
.top-left { display: flex; gap: 20px; align-items: center; }
.top-link { color: #fff; font-weight: 500; }
.top-link:hover { color: var(--accent-orange); }

.navbar { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; padding: 10px 0; width: 100%; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; max-width: 100%; padding-left: 10px; padding-right: 30px; }
.logo img { height: 60px; }

/* Desktop Menu */
.nav-menu { display: flex; gap: 20px; align-items: center; margin-left: auto; }
.nav-menu li { position: relative; }
.nav-menu li a { font-weight: 500; font-size: 0.95rem; color: var(--primary-navy); padding: 5px 0; display: flex; align-items: center; gap: 5px; }
.nav-menu li a:hover { color: var(--accent-orange); }

/* Dropdown */
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: var(--white); min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 5px; padding: 10px 0;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition);
    z-index: 1001;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { display: block; width: 100%; }
.dropdown-menu li a { padding: 8px 20px; display: block; font-size: 0.9rem; color: var(--primary-navy); }
.dropdown-menu li a:hover { background: var(--off-white); color: var(--accent-orange) !important; }

.highlight-btn { background: var(--accent-orange); color: var(--white) !important; padding: 8px 20px !important; border-radius: 5px; margin-left: 10px;}
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { width: 25px; height: 3px; background: var(--primary-navy); transition: 0.3s; }

/* --- MARQUEE --- */
.announcement-bar { background: var(--accent-orange); color: var(--primary-navy); display: flex; height: 40px; align-items: center; overflow: hidden; width: 100%; }
.announce-label { background: #d67a10; padding: 0 20px; height: 100%; display: flex; align-items: center; font-weight: bold; font-size: 0.9rem; z-index: 2; white-space: nowrap; }
.marquee-container { flex: 1; overflow: hidden; white-space: nowrap; }
.marquee-text { display: inline-block; padding-left: 100%; animation: scroll 20s linear infinite; font-size: 0.9rem; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- HERO SECTION --- */
.hero { background: linear-gradient(to right, var(--primary-navy) 40%, #003366 100%); color: var(--white); padding: 60px 0; position: relative; overflow: hidden; width: 100%; }
.hero-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 40px;}
.hero-text { flex: 1; z-index: 2; }
.hero-text h1 { font-size: 3.5rem; margin-bottom: 5px; line-height: 1.2; }
.hero-sub { font-size: 1.2rem; margin-bottom: 30px; color: #ddd; }

.badge-pill { display: inline-block; background: rgba(255,255,255,0.1); padding: 6px 15px; border-radius: 50px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.2); }

.hero-stats { display: flex; gap: 20px; margin-top: 30px; }
.stat-box { border: 1px solid rgba(255,255,255,0.2); padding: 10px 25px; border-radius: 8px; background: #f08e1e; }
.stat-box.orange { background: var(--accent-orange); border: none; }
.stat-box h3 { font-size: 1.5rem; line-height: 1; margin-top: 5px; }

.hero-slider-container { 
    flex: 1.5; 
    position: relative; max-width: 800px; height: 500px; 
    border-radius: 20px; overflow: hidden; box-shadow: -15px 15px 0 var(--accent-orange);
}
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.slider-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--accent-orange); width: 25px; border-radius: 5px; }

.enroll-badge {
    position: fixed; bottom: 30px; right: 30px; width: 90px; height: 90px;
    background: var(--accent-orange); color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; text-align: center; font-weight: bold;
    box-shadow: 0 5px 15px rgba(240, 142, 30, 0.4); z-index: 999; border: 3px solid var(--white);
    animation: bounce 2s infinite; cursor: pointer;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* --- ABOUT TABS SYSTEM --- */
.about-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.tab-btn:hover { color: var(--accent-orange); }
.tab-btn.active { color: var(--accent-orange); }
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 10px;
}

.tab-content { display: none; animation: fadeIn 0.6s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ABOUT US SECTION --- */
.about-wrapper { display: grid; grid-template-columns: 2fr 3fr; gap: 50px; align-items: center; }
.about-text p { margin-bottom: 1px; color: #555; font-size: 0.95rem; text-align: justify; }
.about-image img { border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; }

/* --- DIRECTOR TAB SPECIFIC --- */
.director-layout { align-items: flex-start; }
.director-img-frame { position: relative; }
.director-img-frame img { 
    border: 8px solid #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border-radius: 10px; 
}
.director-caption { margin-top: 20px; text-align: center; }
.director-caption h4 { color: var(--primary-navy); font-size: 1.2rem; margin-bottom: 3px; }
.director-caption p { color: var(--accent-orange); font-size: 0.95rem; font-weight: 600; }

.msg-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    border-left: 4px solid var(--accent-orange);
    padding-left: 25px;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* --- PROCESS FLOW --- */
.process-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px;}
.process-card {
    background: var(--white); width: 200px; padding: 25px 15px; text-align: center;
    border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative;
    border-top: 5px solid var(--accent-orange);
}
.step-badge {
    background: var(--primary-navy); color: var(--white); padding: 5px 15px;
    border-radius: 0 0 10px 10px; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); font-size: 0.8rem; font-weight: 600;
}
.p-icon { font-size: 2.5rem; color: var(--primary-navy); margin: 30px 0 15px; }
.process-card h4 { color: var(--primary-navy); margin-bottom: 10px; font-size: 1rem; }
.process-card p { font-size: 0.8rem; color: var(--text-light); }

/* --- SECTIONS & CARDS --- */
.section-header h2 { font-size: 2.8rem; margin-bottom: 10px; }
.divider { width: 60px; height: 3px; background: var(--primary-navy); margin: 0 auto 40px; }
.orange-divider { background: var(--accent-orange); }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; width: 100%; }

.mode-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 30px; border-radius: 10px; text-align: center; transition: var(--transition); }
.mode-card:hover { transform: translateY(-10px); border-color: var(--accent-orange); background: rgba(255,255,255,0.1); }
.mode-card p { color: #ddd; font-size: 0.9rem; margin-bottom: 20px; }
.icon-circle { font-size: 2.5rem; color: var(--accent-orange); margin-bottom: 15px; }

/* --- COURSE CARDS --- */
.course-grid { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 30px; }
.course-card { 
    background: var(--white); padding: 25px 20px; border-radius: 10px; text-align: center; transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); border: 5px solid #ffa600; display: flex;
    flex-direction: column; justify-content: flex-start; align-items: center; flex: 1 1 250px; max-width: 300px; width: 100%;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); border-color: var(--accent-orange);}
.card-icon { font-size: 3.5rem; color: var(--primary-navy); margin-bottom: 20px; }
.course-card h4 { font-size: 1.05rem; color: var(--primary-navy); margin-bottom: 8px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.course-card .card-line { width: 60px; height: 3px; background: var(--accent-orange); margin: 0 auto 20px auto; border-radius: 2px; }
.course-card p { font-size: 0.85rem; color: var(--primary-navy); font-weight: 700; margin-bottom: 25px; line-height: 1.4; }
.btn-apply-full { background: var(--accent-orange); border: none; color: var(--white); width: 100%; padding: 12px; border-radius: 25px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.3s; margin-top: auto; }
.btn-apply-full:hover { background: var(--primary-navy); }

/* --- FAQs SECTION --- */
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--white); margin-bottom: 15px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #eee; overflow: hidden; }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--primary-navy); transition: 0.3s; font-size: 1.1rem; }
.faq-question:hover { color: var(--accent-orange); }
.faq-question i { transition: transform 0.3s ease; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; background: #fafafa; }
.faq-answer p { font-size: 1rem; color: #555; }
.faq-item.active .faq-question { border-bottom: 1px solid #eee; color: var(--accent-orange); }
.faq-item.active .faq-answer { padding: 20px; max-height: 300px; }
.faq-item.active i { transform: rotate(45deg); }

/* --- SLIDER LOGO FIX (STRICT MODE) --- */
.slider-wrapper { overflow: hidden; width: 100%; position: relative; padding: 20px 0; }
.slider-track { display: flex; width: max-content; gap: 40px; animation: infinityScroll 30s linear infinite; }
@keyframes infinityScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.slider-track:hover { animation-play-state: paused; }

.partner-slide { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 100px !important; /* Forces the box height */
    width: 220px !important;  /* Forces the box width */
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    flex-shrink: 0; 
    transition: 0.3s; 
    overflow: hidden; /* Prevents oversized logos from showing outside the box */
}
.partner-slide:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: var(--accent-orange); }

.logo-wrapper, .logo-wrapper a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Internal spacing so logo doesn't touch the borders */
    box-sizing: border-box;
}

.logo-wrapper img { 
    max-width: 100% !important; 
    max-height: 100% !important; 
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Scaled perfectly within the 100x220 box */
    filter: none; 
    opacity: 1; 
    display: block;
}

/* --- TESTIMONIALS & FOOTER --- */
.testi-card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(255, 0, 0, 0.05); width: 350px; flex-shrink: 0; border: 1px solid #eee; text-align: left; }
.quote-icon { color: var(--accent-orange); font-size: 1.5rem; margin-bottom: 15px; opacity: 0.5; }
.testi-card p { font-style: italic; color: #ff8800; font-size: 0.9rem; margin-bottom: 20px; min-height: 80px; }
.testi-author h4 { color: var(--primary-navy); font-size: 1rem; font-weight: 600; }
.testi-author span { font-size: 0.8rem; color: #888; }

footer { background: #001122; color: #8899aa; padding-top: 70px; font-size: 1.1rem; width: 100%; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; font-size: 1.6rem;}
.footer-col p { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.8;}
.footer-col ul li { margin-bottom: 15px; font-size: 1.1rem;}
.footer-col a:hover { color: var(--accent-orange); padding-left: 5px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.05); padding: 25px 0; text-align: center; font-size: 1rem; }

/* --- ENHANCED MODAL --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 39, 77, 0.85); backdrop-filter: blur(8px); perspective: 1000px; }
.modal-content { background-color: transparent; margin: 5vh auto; padding: 0; border: none; width: 90%; max-width: 450px; border-radius: 20px; position: relative; animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; box-shadow: 0 25px 50px rgba(0,0,0,0.5); overflow: hidden; display: block; }
@keyframes modalPop { from { transform: scale(0.8) translateY(50px) rotateX(-10deg); opacity: 0; } to { transform: scale(1) translateY(0) rotateX(0); opacity: 1; } }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 30px; font-weight: bold; cursor: pointer; color: rgba(255, 255, 255, 0.8); line-height: 1; z-index: 10; transition: 0.3s ease; }
.close-btn:hover { color: #fff; transform: rotate(90deg); }
.modal-header-enhanced { background: linear-gradient(135deg, var(--primary-navy) 0%, #004d99 100%); padding: 35px 30px 25px; text-align: center; color: var(--white); position: relative; }
.header-icon-circle { width: 65px; height: 65px; background: var(--accent-orange); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 15px; box-shadow: 0 8px 20px rgba(240, 142, 30, 0.4); animation: floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.modal-body-form { padding: 30px; background: #ffffff; }
.modal-form { display: flex; flex-direction: column; gap: 18px; }
.input-group { position: relative; transition: 0.3s; }
.input-group i { position: absolute; left: 18px; top: 16px; color: #94a3b8; font-size: 1.1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.modal-form input, .modal-form textarea { width: 100%; padding: 14px 15px 14px 45px; border: 2px solid #eef2f6; background: #eef2f6; border-radius: 10px; outline: none; font-family: inherit; font-size: 0.95rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); color: var(--primary-navy); font-weight: 500; }
.modal-form input:focus, .modal-form textarea:focus { border-color: var(--accent-orange); background: var(--white); box-shadow: 0 8px 25px rgba(240, 142, 30, 0.15); transform: translateY(-3px); }
.input-group:focus-within i { color: var(--accent-orange); transform: scale(1.15); }
.btn-submit-animated { width: 100%; background: linear-gradient(135deg, var(--accent-orange) 0%, #ff9f43 100%); color: var(--white); padding: 15px; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; font-size: 1.1rem; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 20px rgba(240, 142, 30, 0.3); }
.btn-submit-animated:hover { transform: translateY(-4px); box-shadow: 0 15px 25px rgba(240, 142, 30, 0.4); background: linear-gradient(135deg, #d67a10 0%, var(--accent-orange) 100%); }

/* --- MOBILE DRAWER --- */
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); z-index: 1099; opacity: 0; visibility: hidden; transition: 0.3s; }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.mobile-sidebar { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--white); z-index: 1100; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: 0.3s ease; display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
.mobile-sidebar.active { right: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 10px;}
.sidebar-logo { height: 40px; }
.close-sidebar { font-size: 1.5rem; color: var(--text-light); cursor: pointer; }
.sidebar-links { display: flex; flex-direction: column; gap: 15px; }
.sidebar-links a { color: var(--primary-navy); font-weight: 500; font-size: 1.05rem; display: block;}
.btn-uap-mobile { background: var(--primary-navy); color: var(--white) !important; text-align: center; padding: 12px; border-radius: 5px; }

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 990px) {
    .nav-menu { display: none; } 
    .menu-toggle { display: flex; } 
    .hero-wrapper { flex-direction: column; text-align: center; }
    .hero-slider-container { width: 100%; max-width: 100%; height: 350px;}
    .hero-stats { justify-content: center; }
    .about-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .about-text { text-align: center; }
    .about-tabs-nav { flex-wrap: wrap; }
    .tab-btn { padding: 10px 15px; font-size: 1rem; }
}

@media (max-width: 768px) {
    .top-header { display: none; } 
    .hero h1 { font-size: 2.2rem; }
    .large-sub { font-size: 1.5rem !important; }
    .grid-4, .footer-content { grid-template-columns: 1fr; }
    .footer-content { text-align: center; }
}

/* --- FEE MODAL SPECIFIC --- */
.bank-details-list { display: flex; flex-direction: column; gap: 10px; }
.detail-item { background: #f1f5f9; padding: 10px 15px; border-radius: 8px; border-left: 4px solid var(--accent-orange); text-align: left; }
.detail-item strong { display: block; font-size: 0.75rem; color: var(--accent-orange); text-transform: uppercase; }
.close-fee { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #fff; z-index: 100; }