/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Clean Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    color: #333;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

.school-name {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1f2937;
}

.nav-tabs {
    display: flex;
    gap: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-icon:hover {
    background: #f3f4f6;
}

.menu-icon span {
    display: block;
    width: 24px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    min-width: 150px;
    z-index: 20;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.mobile-menu.open {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.mobile-menu-btn {
    background: none;
    border: none;
    color: #374151;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #f3f4f6;
}

/* Main Content Area - More Compact */
main {
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.page.active {
    display: block;
}

/* Clean Content Sections - More Compact */
.content-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.content-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.content-section h2 i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.section-description {
    text-align: center;
    line-height: 1.6;
    color: #6b7280;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Compact Image Carousel */
.image-carousel {
    margin: 1.5rem 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scrollbar-width: none;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 12px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track img {
    width: 350px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.carousel-track img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

/* Compact Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-item {
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.image-item:hover img {
    transform: scale(1.02);
}

.image-item p {
    font-weight: 600;
    color: #374151;
    margin: 0;
    font-size: 1rem;
}

/* Clean Page Headers */
h1 {
    color: #1f2937;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}

h1 i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

/* Responsive Design - More Compact */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .school-name {
        font-size: 1.1rem;
    }

    .nav-tabs {
        display: none;
    }

    .menu-icon {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }

    .mobile-menu.open {
        display: flex;
    }

    main {
        padding: 1rem;
    }

    .content-section {
        margin: 1.5rem 0;
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .content-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }

    .image-item {
        padding: 0.75rem;
    }

    .image-item img {
        height: 160px;
    }

    .section-description {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .carousel-track img {
        width: 90vw;
        max-width: 300px;
        height: 160px;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-item img {
        height: 140px;
    }

    h1 {
        font-size: 1.75rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Clean Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Documents Page Styles */
.document-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.icon-btn {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
}

.icon-btn i {
    font-size: 1.2rem;
}

.icon-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pdf-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.share-btn:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #2563eb;
}

.header-right h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
}

.document-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.document-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.document-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-bottom: 1px solid #e5e7eb;
}

.document-info {
    padding: 1.5rem;
    text-align: center;
}

.document-info h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.download-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

}

.download-btn i {
    font-size: 1rem;
}

.download-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.download-btn.combined {
    background: #10b981;
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.download-btn.combined:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.combined-download {
    text-align: center;
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

/* Mobile Responsive for Documents */
@media (max-width: 768px) {
    .document-section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-left {
        gap: 0.6rem;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .icon-btn i {
        font-size: 1rem;
    }

    .header-right h2 {
        font-size: 1.5rem;
    }

    .document-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .document-item img {
        max-height: 300px;
    }

    .document-info {
        padding: 1rem;
    }

    .document-info h3 {
        font-size: 1.1rem;
    }

    .download-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .download-btn i {
        font-size: 0.9rem;
    }

    .download-btn.combined {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h1 i {
        font-size: 1.8rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .content-section h2 i {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .document-item img {
        max-height: 250px;
    }

    .document-info h3 {
        font-size: 1rem;
    }

    .download-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Image Overlay Styles */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay.active {
    display: flex;
    opacity: 1;
}

.overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-close i {
    font-size: 1.5rem;
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

.overlay-nav i {
    font-size: 1.5rem;
}

.overlay-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.overlay-prev {
    left: 30px;
}

.overlay-next {
    right: 30px;
}

#overlayImage {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.overlay-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    word-wrap: break-word;
}

/* Mobile Responsive for Overlay */
@media (max-width: 768px) {
    .overlay-close {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .overlay-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .overlay-prev {
        left: 15px;
    }

    .overlay-next {
        right: 15px;
    }

    #overlayImage {
        max-width: 95%;
        max-height: 70%;
    }

    .overlay-caption {
        bottom: 20px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .overlay-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .overlay-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    #overlayImage {
        max-width: 98%;
        max-height: 65%;
    }

    .overlay-caption {
        bottom: 15px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}