:root {
    --navy: #1a237e;
    --navy-dark: #0d1452;
    --periwinkle: #9fa8da;
    --cream: #f5f5dc;
    --maroon: #5d4b68;
    --accent: #b22222;
    --gold: #d4a017;
    --white: #ffffff;
    --text: #333333;
    --light-bg: #f8f9fc;
    --shadow: 0 4px 20px rgba(26, 35, 126, 0.12);
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--navy);
    line-height: 1.3;
}

a { text-decoration: none; color: var(--navy); transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* Top Bar */
.top-bar {
    background: var(--navy-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar a { color: var(--periwinkle); }
.top-bar a:hover { color: var(--white); }

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left i, .top-bar-right i { margin-right: 6px; color: var(--gold); }

/* Navbar */
.navbar-custom {
    background: transparent;
    padding: 12px 0;
    transition: var(--transition);
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-custom.scrolled {
    position: fixed;
    top: 0;
    background: var(--navy);
    box-shadow: var(--shadow);
    padding: 8px 0;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-custom .navbar-brand img { height: 55px; }
.navbar-custom.scrolled .navbar-brand img { height: 45px; }

.navbar-custom .nav-link {
    color: var(--white) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    position: relative;
}

.navbar-custom.scrolled .nav-link,
.inner-page .navbar-custom .nav-link { color: var(--white) !important; }

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { width: 70%; }

.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 8px 0;
}

.navbar-custom .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 20px;
}

.navbar-custom .dropdown-item:hover {
    background: var(--light-bg);
    color: var(--navy);
}

.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Slider */
.hero-slider { position: relative; height: 85vh; min-height: 500px; }
.hero-slider .swiper { width: 100%; height: 100%; }
.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,35,126,0.75) 0%, rgba(26,35,126,0.35) 100%);
}
.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 90%;
    max-width: 800px;
}
.hero-slide-content h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease;
}
.hero-slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 28px;
    opacity: 0.95;
}
.hero-slide-content .motto {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--periwinkle);
    margin-bottom: 12px;
}

.hero-slider .swiper-pagination-bullet { background: var(--white); opacity: 0.5; width: 12px; height: 12px; }
.hero-slider .swiper-pagination-bullet-active { opacity: 1; background: var(--gold); }

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev { color: var(--white); }

/* Page Banner */
.page-banner {
    background-size: cover;
    background-position: center;
    padding: 160px 0 80px;
    position: relative;
    text-align: center;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,35,126,0.85), rgba(93,75,104,0.7));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.breadcrumb-custom {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}
.breadcrumb-custom li { color: var(--periwinkle); font-size: 0.9rem; }
.breadcrumb-custom li a { color: var(--white); }
.breadcrumb-custom li::after { content: '/'; margin-left: 8px; opacity: 0.6; }
.breadcrumb-custom li:last-child::after { display: none; }
.breadcrumb-custom li:last-child { color: var(--gold); }

.inner-page .navbar-custom {
    background: var(--navy);
    position: relative;
    top: 0;
}

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-title .underline {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 16px;
}
.section-title p { color: #666; max-width: 600px; margin: 0 auto; }
.section-alt { background: var(--light-bg); }

/* Buttons */
.btn-primary-custom {
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}
.btn-primary-custom:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-outline-custom {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    display: inline-block;
    margin-left: 12px;
}
.btn-outline-custom:hover { background: var(--white); color: var(--navy); }

/* Welcome Section */
.welcome-img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.welcome-img img { width: 100%; height: 350px; object-fit: cover; }

/* Stats */
.stats-section { background: var(--navy); color: var(--white); padding: 60px 0; }
.stat-item { text-align: center; padding: 20px; }
.stat-item .number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
}
.stat-item .label { font-size: 0.95rem; opacity: 0.9; margin-top: 4px; }

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.feature-card:hover { transform: translateY(-8px); }
.feature-card .icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--navy);
}
.feature-card h4 { margin-bottom: 12px; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; color: #666; margin: 0; }

/* Leadership Cards */
.leader-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.leader-card:hover { transform: translateY(-5px); }
.leader-card .leader-img {
    height: 280px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.leader-card .leader-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader-card .leader-img i { font-size: 5rem; color: var(--periwinkle); }
.leader-card .leader-body { padding: 24px; text-align: center; }
.leader-card h4 { margin-bottom: 4px; }
.leader-card .designation { color: var(--accent); font-size: 0.9rem; margin-bottom: 12px; }

/* Notice Ticker */
.notice-ticker {
    background: var(--accent);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
}
.notice-ticker-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.notice-label {
    background: var(--navy-dark);
    padding: 4px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.notice-marquee { overflow: hidden; flex: 1; }
.notice-marquee span {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Notice List */
.notice-item {
    background: var(--white);
    border-left: 4px solid var(--navy);
    padding: 20px 24px;
    margin-bottom: 16px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.notice-item:hover { border-left-color: var(--gold); transform: translateX(4px); }
.notice-date {
    background: var(--navy);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 8px;
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,35,126,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay i { color: var(--white); font-size: 2rem; }

.gallery-filter { margin-bottom: 30px; text-align: center; }
.gallery-filter button {
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-filter button.active,
.gallery-filter button:hover {
    background: var(--navy);
    color: var(--white);
}

/* CTA Strip */
.cta-strip {
    background: linear-gradient(135deg, var(--navy), var(--maroon));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip p { opacity: 0.9; margin-bottom: 24px; }

/* Content Box */
.content-box {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.content-box h3 { margin-bottom: 16px; font-size: 1.3rem; }

/* Vision Mission */
.vm-card {
    background: var(--white);
    border-radius: 12px;
    padding: 36px;
    box-shadow: var(--shadow);
    height: 100%;
    border-top: 4px solid var(--navy);
}
.vm-card.vision { border-top-color: var(--gold); }
.vm-card i { font-size: 2.5rem; color: var(--navy); margin-bottom: 16px; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--periwinkle);
}
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 24px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--navy);
}

/* Table */
.table-custom { width: 100%; border-collapse: collapse; }
.table-custom th {
    background: var(--navy);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
}
.table-custom td { padding: 12px 16px; border-bottom: 1px solid #eee; }
.table-custom tr:hover td { background: var(--light-bg); }

/* Forms */
.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: 'Open Sans', sans-serif;
}
.form-control-custom:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }

.alert-custom {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Contact */
.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.contact-info-item .icon-box {
    width: 50px;
    height: 50px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer {
    background: var(--navy-dark);
    color: var(--periwinkle);
    padding: 60px 0 0;
}
.footer h5 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer a { color: var(--periwinkle); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--gold); }
.footer-logo { height: 70px; margin-bottom: 16px; }
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--navy); color: var(--white); }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

[data-aos] { pointer-events: auto; }

/* Document List */
.doc-list { list-style: none; padding: 0; }
.doc-list li {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.doc-list li i { color: var(--accent); margin-right: 8px; }

/* Quote Block */
.quote-block {
    background: var(--light-bg);
    border-left: 4px solid var(--gold);
    padding: 24px 32px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--navy);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-custom { top: 0; background: var(--navy); position: relative; }
    .hero-slider { height: 70vh; min-height: 400px; }
    .page-banner { padding: 120px 0 60px; }
    .btn-outline-custom { margin-left: 0; margin-top: 12px; }
}

@media (max-width: 576px) {
    .section { padding: 50px 0; }
    .hero-slider { height: 60vh; }
    .stat-item .number { font-size: 2rem; }
}
