* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-down {
    animation: slideInDown 0.6s ease-out forwards;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #6B7280;
    line-height: 1.6;
    background: #FFFFFF;
}

h1 {
    font-size: 48px;
    font-weight: bold;
    color: #0B3C5D;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    font-weight: 600;
    color: #0B3C5D;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    color: #0B3C5D;
    line-height: 1.4;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0B3C5D;
    line-height: 1.4;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none !important;
}

/* Navbar */
.navbar {
    background: #00365a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-button {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    transition: opacity 0.3s;
}

.logo-button:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-title {
    font-size: 20px;
    color: white;
    margin: 0;
    position: relative;
    right: 7%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: white;
    position: relative;
    transition: all 0.3s ease;
    font-size: 16px;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: #2F80ED;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2F80ED;
    animation: slideInDown 0.3s ease-out;

    text-decoration: none;
}

.btn-primary {
    background: #2F80ED;
    color: white;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(47, 128, 237, 0.3);
}

.mobile-menu-btn {
    display: none;
    color: white;
}

.mobile-menu {
    padding: 16px 0;
    border-top: 1px solid #2F80ED;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 24px;
    color: white;
    transition: background 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #2F80ED;
}

/* Footer */
.footer {
    background: #0B3C5D;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-text {
    color: #EAF3FB;
    font-size: 14px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: #2F80ED;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.social-btn:hover {
    background: #2563EB;
}

.footer-section h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links button {
    color: #EAF3FB;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links button:hover {
    color: #2F80ED;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #EAF3FB;
    font-size: 14px;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid #2F80ED;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #EAF3FB;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links button {
    color: #EAF3FB;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-bottom-links button:hover {
    color: #2F80ED;
}

/* Common Section Styles */
.section {
    padding: 80px 24px;
    opacity: 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    margin-bottom: 16px;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-index {
    position: relative;
    aspect-ratio: 16 / 6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    z-index: 20;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
    left: 24px;
}

.hero-slider-next {
    right: 24px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 7, 11, 0.564);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: white;
}

.hero-content-inner {
    max-width: 800px;
}

.hero h1 {
    color: white;
    margin-bottom: 24px;
}

.hero-index h1 {
    color: white;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 20px;
    color: #EAF3FB;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: #0B3C5D;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-icon {
    width: 150px;
}

/* about */

.about-text-left {
    padding-right: 24px;
    text-align: justify;

}

.about-img-1 img {
    position: relative;
    width: 100%;
    height: 550px;
    float: right;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

}

.about-img-3 img {
    position: relative;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

}

.about-text-right {
    padding-left: 24px;
    text-align: justify;
    position: relative;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

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

.admission-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

/* Cards */
.card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: #2F80ED;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
}

.card-title {
    margin-bottom: 12px;
}

.card-description {
    font-size: 14px;
    color: #6B7280;
}

/* Image Card */
.image-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.image-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.image-card-img {
    width: 100%;
    height: 256px;
    object-fit: cover;
}

.image-card-content {
    padding: 24px;
}

/* Background Colors */
.bg-white {
    background: #FFFFFF;
}

.bg-light-blue {
    background: #EAF3FB;
}

.bg-primary {
    background: #0B3C5D;
    color: white;
}

.bg-secondary {
    background: #2F80ED;
    color: white;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transition: all 0.6s ease;
}

.stat-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    color: #2F80ED;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    color: #EAF3FB;
    font-size: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: #0B3C5D;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #2F80ED;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Accordion */
.accordion-item {
    background: #EAF3FB;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.accordion-button {
    width: 100%;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: background 0.3s;
}

.accordion-button:hover {
    background: #dae7f5;
}

.accordion-icon {
    transition: transform 0.3s;
    color: #2F80ED;
}

.accordion-icon.open {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 24px 24px;
    color: #6B7280;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 48rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #EAF3FB;
}

.modal-body {
    padding: 32px;
}

/* Gallery */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 32px 24px;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 80px;
    z-index: 40;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 16px;
}

.filter-btn.active {
    background: #2F80ED;
    color: white;
}

.filter-btn:not(.active) {
    background: #EAF3FB;
    color: #0B3C5D;
}

.filter-btn:not(.active):hover {
    background: #dae7f5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    aspect-ratio: 1;
}

.gallery-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    color: white;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-content {
    max-width: 80rem;
    width: 100%;
}

.lightbox-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 16px;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: #E5E7EB;
}

.timeline-item {
    position: relative;
    margin-bottom: 64px;
}

.timeline-content {
    background: #EAF3FB;
    padding: 24px;
    border-radius: 16px;
}

.timeline-year {
    color: #2F80ED;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.timeline-event {
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 14px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #2F80ED;
    border-radius: 50%;
    border: 4px solid white;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-index{
        aspect-ratio: 16 / 9;
    }

    .hero-index h1 {
        font-size: 18px;
    }

    .hero-index .hero-description {
        font-size: 10px;
    }

    .hero-index .hero-buttons .btn-primary{
        padding: 2px 16px;
        font-size: 10px;
    }

    .hero-index .hero-buttons .btn-secondary{
        padding: 8px 16px;
        font-size: 10px;
    }

    .hero-slider-btn {
        width: 15px;
        height: 15px;
        font-size: 10px;
    }

    .hero-slider-dots {
        bottom: 8px;
        margin-bottom: 0px;
        margin-top: 10px;
        gap: 4px;
    }

    .hero-dot {
        width: 4px;
        height: 4px;
    }

    .section {
        padding: 60px 24px;
    }

    /* Keep 3/4-column grids stacked; make 2-column rows use flex column so we can reorder items */
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        display: flex;
        flex-direction: column;
        gap: 48px;
    }

    /* Ensure image blocks come before text blocks in stacked mobile view regardless of DOM order */
    .grid-2 .about-img-1,
    .grid-2 .about-img-2,
    .grid-2 .about-img-3,
    .grid-2 .featured-img {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-logo .logo-icon {
        width: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    .timeline-line {
        display: none;
    }

    .timeline-dot {
        display: none;
    }

    /* Gallery responsive styles */
    .gallery-filters {
        top: 80px;
        gap: 8px;
        padding: 16px 12px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .gallery-item-overlay {
        padding: 12px;
    }

    .gallery-item-overlay p {
        font-size: 12px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-6 {
    margin-bottom: 48px;
}

.mt-4 {
    margin-top: 32px;
}

.rounded-2xl {
    border-radius: 16px;
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.overflow-hidden {
    overflow: hidden;
}

/* Step Cards */
.step-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: box-shadow 0.3s;
}

.step-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 64px;
    height: 64px;
    background: #2F80ED;
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Document Card */
.document-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.3s;
}

.document-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.document-icon {
    width: 48px;
    height: 48px;
    background: #EAF3FB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2F80ED;
}

.document-download {
    width: 40px;
    height: 40px;
    background: #2F80ED;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.document-download:hover {
    background: #2563EB;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.star {
    color: #2F80ED;
    fill: #2F80ED;
}

/* Application Form */
.application-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #0B3C5D;
}

.form-input {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #2F80ED;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #EAF3FB;
    border-top: 4px solid #2F80ED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================================
   CLASS PHOTOS SECTION — Append this entire block to styles.css
   ============================================================ */

/* ── Controls Bar ─────────────────────────────────────────── */
.cp-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.cp-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}

.cp-search-icon {
    position: absolute;
    left: 14px;
    color: #9CA3AF;
    pointer-events: none;
    flex-shrink: 0;
}

.cp-search-input {
    width: 100%;
    padding: 11px 44px 11px 44px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: #0B3C5D;
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
    /* hide the number spinner arrows */
    -moz-appearance: textfield;
}
.cp-search-input::-webkit-outer-spin-button,
.cp-search-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cp-search-input:focus {
    outline: none;
    border-color: #2F80ED;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.cp-search-input::placeholder {
    color: #9CA3AF;
}

.cp-clear-btn {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #9CA3AF;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.cp-clear-btn:hover {
    background: #6B7280;
}

/* ── Sort Buttons ─────────────────────────────────────────── */
.cp-sort-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cp-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    background: white;
    color: #0B3C5D;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.25s;
}

.cp-sort-btn:hover {
    border-color: #2F80ED;
    color: #2F80ED;
}

.cp-sort-btn.active {
    background: #2F80ED;
    color: white;
    border-color: #2F80ED;
}

/* ── Decade Quick-Jump Nav ────────────────────────────────── */
.cp-decade-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.cp-decade-btn {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    background: white;
    color: #0B3C5D;
    border: 2px solid #dae7f5;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.3px;
}

.cp-decade-btn:hover {
    background: #2F80ED;
    border-color: #2F80ED;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(47, 128, 237, 0.25);
}

/* ── Decade Group ─────────────────────────────────────────── */
.cp-decade-group {
    margin-bottom: 48px;
    scroll-margin-top: 160px; /* offset for sticky navbar + sticky filters */
}

.cp-decade-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2F80ED;
    padding: 6px 14px;
    background: rgba(47, 128, 237, 0.08);
    border-left: 3px solid #2F80ED;
    border-radius: 0 8px 8px 0;
    display: inline-block;
    margin-bottom: 20px;
}

/* ── Photo Grid inside each decade ───────────────────────── */
.cp-decade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

/* ── Individual Photo Card ────────────────────────────────── */
.cp-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
}

.cp-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.cp-card-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #EAF3FB;
}

.cp-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cp-card:hover .cp-card-img-wrap img {
    transform: scale(1.05);
}

/* Hover overlay */
.cp-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 60, 93, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.cp-card:hover .cp-card-overlay {
    opacity: 1;
}

/* Card Footer */
.cp-card-footer {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #EAF3FB;
}

.cp-card-year {
    font-size: 18px;
    font-weight: 700;
    color: #0B3C5D;
    line-height: 1;
}

.cp-card-caption {
    font-size: 12px;
    color: #9CA3AF;
}

/* ── Empty / No-results State ─────────────────────────────── */
.cp-no-results {
    text-align: center;
    padding: 80px 24px;
    color: #9CA3AF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cp-no-results p {
    font-size: 16px;
    color: #6B7280;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .cp-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-search-wrapper {
        max-width: 100%;
    }

    .cp-sort-group {
        justify-content: flex-start;
    }

    .cp-decade-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .cp-card-year {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cp-decade-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery styles for very small screens */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .gallery-filters {
        gap: 6px;
        padding: 12px 8px;
    }

    .lightbox-content {
        width: 100%;
        max-height: 80vh;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 70vh;
    }

    .lightbox-caption {
        font-size: 12px;
    }
}