/* Global Template Styles */
.global-template {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Loading Spinner */
.loading-container,
.page-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Top Header (Blue Utility Bar) */
.top-header {
    background: #1a365d;
    color: white;
    padding: 1.5rem 0;
    font-size: 0.875rem;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    flex: 1;
}

.top-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
}

.knowledge-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.punjabi-text {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fbbf24;
    white-space: nowrap;
}

.english-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    max-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item span {
    white-space: nowrap;
}

.contact-item .separator {
    margin: 0 0.5rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.top-header-right {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.affiliation-text {
    white-space: nowrap;
}

.top-header-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.top-header-social-link {
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-header-social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Activity Calendar Styles */
.activity-calendar-page {
    min-height: 80vh;
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.calendar-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 1rem;
}

.session-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
}

.session-info h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

/* Split Layout */
.calendar-split-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.calendar-left-panel {
    min-width: 0;
    width: 100%;
}

.calendar-left-panel .calendar-container {
    width: 100%;
    overflow: visible;
}

.calendar-right-panel {
    min-width: 0;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    /* Ensure minimum width for readability */
    min-width: 280px;
}

.calendar-container {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.8);
    width: 100%;
    box-sizing: border-box;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.calendar-navigation .btn {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.calendar-navigation .btn:hover {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
}

.calendar-navigation .btn i {
    font-size: 1.1rem;
}

.calendar-month-year {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
}

.calendar-day-header {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    color: white;
    padding: 1.2rem 0.8rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-width: 0;
}

.calendar-day {
    background: white;
    min-height: 120px;
    height: auto;
    padding: 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 1px;
    aspect-ratio: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calendar-day-empty {
    background: #f8f9fa;
    opacity: 0.7;
}

.calendar-day-has-events {
    background: linear-gradient(135deg, #fef5e7, #fef3e2);
    border: 1px solid #fbbf24;
}

.calendar-day-number {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.calendar-day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: visible;
    min-height: 0;
}

/* Minimal Event Display */
.calendar-event-minimal {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    background: rgba(224, 242, 254, 0.3);
    border-left: 2px solid #1976d2;
    min-height: 24px;
    width: 100%;
    box-sizing: border-box;
}

.calendar-event-minimal:hover {
    background: rgba(179, 229, 252, 0.5);
    transform: translateX(2px);
}

.calendar-event-minimal.calendar-event-holiday {
    background: rgba(255, 235, 238, 0.3);
    border-left-color: #d32f2f;
}

.calendar-event-minimal.calendar-event-holiday:hover {
    background: rgba(255, 205, 210, 0.5);
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1976d2;
    flex-shrink: 0;
}

.event-dot-holiday {
    background: #d32f2f;
}

.event-title-truncated {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1565c0;
    font-weight: 500;
    font-size: 0.7rem;
    min-width: 0;
}

.calendar-event-holiday .event-title-truncated {
    color: #d32f2f;
}

/* Legacy event styles (kept for backward compatibility) */
.calendar-event {
    background: linear-gradient(135deg, #e0f2fe, #b3e5fc);
    border-left: 3px solid #1976d2;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event:hover {
    background: linear-gradient(135deg, #b3e5fc, #90caf9);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.calendar-event-holiday {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-left-color: #d32f2f;
}

.calendar-event-holiday:hover {
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.calendar-event-title {
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.calendar-event-type {
    font-size: 0.65rem;
    color: #666;
    font-style: italic;
    font-weight: 500;
}

.calendar-event-holiday-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Event Details Panel (Right Side) */
.event-details-panel {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 4rem);
}

.event-details-header {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    color: white;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.event-details-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.event-details-title-pa {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 400;
}

.btn-close-event {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-close-event:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.event-details-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.event-details-content .event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.event-details-content .event-meta .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    align-self: flex-start;
}

.event-date {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.event-details-content .event-description {
    margin-bottom: 2rem;
}

.event-details-content .event-description h6 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.event-description-content {
    line-height: 1.7;
    color: #374151;
    font-size: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-description-pa {
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    background: #fef7ed;
    padding: 1.2rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #f59e0b;
}

.event-images {
    margin-top: 2rem;
}

.event-images h6 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.event-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.event-image-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.event-image-item img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
    object-fit: cover;
}

/* Event Details Placeholder */
.event-details-placeholder {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.placeholder-content h4 {
    color: #6b7280;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.placeholder-content p {
    color: #9ca3af;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Legacy Modal Styles (kept for backward compatibility) */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    color: white;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-body {
    padding: 2rem;
    background: #f8fafc;
}

.event-details .event-meta {
    margin-bottom: 1.5rem;
}

.event-details .event-meta .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 16px 16px;
}

.modal-footer .btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
}

.modal-footer .btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-1px);
}

/* Tablet Responsive Styles for Activity Calendar */
@media (max-width: 1024px) and (min-width: 769px) {
    .calendar-split-layout {
        grid-template-columns: 65% 35%;
        gap: 1.5rem;
    }

    .calendar-right-panel {
        min-width: 0;
    }
}

/* Mobile Responsive Styles for Activity Calendar */
@media (max-width: 768px) {
    .activity-calendar-page {
        padding: 1rem 0;
    }

    .calendar-split-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calendar-right-panel {
        position: static;
        max-height: none;
        min-width: 0;
        order: -1; /* Show event details first on mobile */
    }

    .calendar-left-panel {
        order: 1; /* Show calendar second on mobile */
    }

    .calendar-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .calendar-title {
        font-size: 2rem;
    }

    .calendar-navigation {
        margin-bottom: 2rem;
    }

    .calendar-navigation .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .calendar-month-year {
        font-size: 1.5rem;
    }

    .calendar-day {
        min-height: 100px;
        height: auto;
        padding: 0.5rem;
        aspect-ratio: 1;
    }

    .calendar-day-number {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .calendar-event-minimal {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
    }

    .event-title-truncated {
        font-size: 0.65rem;
    }

    .event-dot {
        width: 6px;
        height: 6px;
    }

    .event-details-panel {
        max-height: none;
    }

    .event-details-header {
        padding: 1.25rem;
    }

    .event-details-title {
        font-size: 1.1rem;
    }

    .event-details-content {
        padding: 1.5rem;
    }

    .event-description-content,
    .event-description-pa {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .event-images-grid {
        grid-template-columns: 1fr;
    }

    .placeholder-content {
        padding: 2rem 1.5rem;
    }

    .placeholder-icon {
        font-size: 3rem;
    }

    .placeholder-content h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 1rem;
        margin: 0;
    }

    .calendar-title {
        font-size: 1.8rem;
    }

    .calendar-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .calendar-navigation .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .calendar-month-year {
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
        order: -1;
    }

    .calendar-day {
        min-height: 80px;
        height: auto;
        padding: 0.4rem;
        aspect-ratio: 1;
    }

    .calendar-day-header {
        padding: 0.6rem 0.3rem;
        font-size: 0.75rem;
    }

    .calendar-day-number {
        font-size: 0.9rem;
    }

    .calendar-event-minimal {
        padding: 0.2rem 0.3rem;
        font-size: 0.6rem;
    }

    .event-title-truncated {
        font-size: 0.6rem;
    }

    .event-dot {
        width: 6px;
        height: 6px;
    }

    .event-details-panel {
        border-radius: 12px;
    }

    .event-details-header {
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }

    .event-details-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .event-details-content {
        padding: 1rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .event-date {
        font-size: 0.85rem;
    }

    .event-description h6 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .event-description-content {
        padding: 1rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .event-images-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .event-image-item img {
        max-height: 150px;
    }

    .placeholder-content {
        padding: 1.5rem 1rem;
        min-height: 300px;
    }

    .placeholder-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .placeholder-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .placeholder-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .calendar-container {
        padding: 0.75rem;
    }

    .calendar-title {
        font-size: 1.5rem;
    }

    .calendar-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-navigation .btn {
        width: 100%;
        justify-content: center;
    }

    .calendar-month-year {
        font-size: 1.1rem;
        order: 0;
    }

    .calendar-day {
        min-height: 70px;
        padding: 0.3rem;
    }

    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }

    .calendar-day-number {
        font-size: 0.85rem;
    }

    .event-details-header {
        padding: 0.75rem;
    }

    .event-details-title {
        font-size: 0.9rem;
    }

    .event-details-content {
        padding: 0.75rem;
    }

    .event-description-content {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Mobile Responsive Styles for Top Header */
@media (max-width: 768px) {
    .top-header {
        padding: 1rem 0;
        font-size: 0.75rem;
    }

    .top-header-content {
        flex-direction: column;
        gap: 0.75rem;
        position: static;
    }

    .top-header-left {
        justify-content: center;
        gap: 1rem;
        order: 1;
    }

    .top-header-center {
        position: static;
        transform: none;
        order: 2;
        margin: 0.5rem 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .knowledge-quote {
        gap: 0.125rem;
        width: 100%;
    }

    .punjabi-text {
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .english-text {
        font-size: 0.65rem;
        white-space: normal;
        text-align: center;
        max-width: 280px;
        line-height: 1.3;
    }

    .contact-item {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .contact-item .separator {
        margin: 0 0.25rem;
    }

    .top-header-right {
        justify-content: center;
        gap: 0.5rem;
        order: 3;
        white-space: normal;
        flex-wrap: wrap;
    }

    .affiliation-text {
        white-space: normal;
        text-align: center;
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .top-header-social {
        margin-right: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0.75rem 0;
    }

    .punjabi-text {
        font-size: 0.85rem;
    }

    .english-text {
        font-size: 0.6rem;
        max-width: 250px;
    }

    .contact-item {
        font-size: 0.7rem;
        gap: 0.2rem;
    }
}

/* Main Navigation */
.main-navigation {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.nav-logo {
    flex-shrink: 0;
    min-width: 0;
}

.logo-image-wrapper {
    flex-shrink: 0;
}

.site-logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-emblem {
    flex-shrink: 0;
}

.emblem-shield {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    color: white;
    font-size: 0.5rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.emblem-text-top {
    font-size: 0.5rem;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.emblem-book {
    font-size: 1.2rem;
    margin: 0.2rem 0;
}

.emblem-text-bottom {
    font-size: 0.5rem;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a365d;
    line-height: 1.1;
    white-space: nowrap;
}

.logo-divider {
    height: 1.5px;
    width: 100%;
    background: #1a365d;
    margin: 0.2rem 0;
}

.logo-subtitle {
    font-size: 0.875rem;
    font-weight: bold;
    color: #1a365d;
    line-height: 1.1;
    white-space: nowrap;
}

.logo-type {
    font-size: 0.75rem;
    font-weight: bold;
    color: #1a365d;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.5rem 0.5rem;
    transition: color 0.3s;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: #1a365d;
}

.nav-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
}

.nav-item.has-dropdown:hover .nav-link svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 200px;
    border-radius: 4px;
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.3s;
    text-transform: none;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #1a365d;
}

.dropdown-menu li.has-submenu {
    position: relative;
}

.dropdown-menu li.has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-menu li.has-submenu > a svg {
    flex-shrink: 0;
    margin-left: 0.5rem;
    opacity: 0.6;
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 200px;
    border-radius: 4px;
    z-index: 1001;
    margin-left: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.dropdown-menu li.has-submenu:hover .submenu,
.dropdown-menu li.has-submenu .submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.3s;
    text-transform: none;
}

.submenu a:hover {
    background: #f8f9fa;
    color: #1a365d;
}

.mobile-submenu-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.mobile-submenu-trigger:hover {
    background: rgba(26, 54, 93, 0.05);
    color: #1a365d;
}

.mobile-submenu-trigger svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-submenu-trigger svg.rotated {
    transform: rotate(180deg);
}

.admission-button {
    background: #1a365d;
    color: white;
    padding: 0.6rem 1.5rem;
    border: 2px solid #2c5282;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.admission-button:hover {
    background: #2c5282;
    border-color: #1a365d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.main-navigation .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(26, 54, 93, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.main-navigation .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(26, 54, 93, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.main-navigation .mobile-menu-toggle.active {
    background: rgba(26, 54, 93, 0.1);
    border-color: #1a365d;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.2);
}

.main-navigation .mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #1a365d;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    transform-origin: center;
}

.main-navigation .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.main-navigation .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.main-navigation .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
.site-main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Slider */
.hero-slider-section {
    width: 100%;
    position: relative;
    margin-top: 0;
}

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

/* Carousel Overlay Content */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 3rem 2rem 2rem;
}

.carousel-content {
    max-width: 600px;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.carousel-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.carousel-button {
    display: inline-block;
    background: #1a365d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 2px solid #1a365d;
}

.carousel-button:hover {
    background: #2c5282;
    border-color: #2c5282;
    color: white;
    text-decoration: none;
}

/* Carousel Overlay Content */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 3rem 2rem 2rem;
}

.carousel-content {
    max-width: 600px;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.carousel-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.carousel-button {
    display: inline-block;
    background: #1a365d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 2px solid #1a365d;
}

.carousel-button:hover {
    background: #2c5282;
    border-color: #2c5282;
    color: white;
    text-decoration: none;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-icon svg {
    width: 24px;
    height: 24px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.carousel-indicators button.active {
    background: white;
}

.carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Welcome Section */
.welcome-section {
    padding: 4rem 0;
    background: #fff;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.welcome-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.welcome-heading {
    font-size: 2rem;
    font-weight: bold;
    color: #1a365d;
    margin: 0;
    line-height: 1.3;
}

.welcome-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
    margin: 0;
}

.read-more-button {
    display: inline-block;
    background: #1a365d;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.read-more-button:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
}

.welcome-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Toppers Section */
.toppers-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.toppers-content {
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

/* Left Side - Toppers */
.toppers-left {
    background: #f0f0f0;
    padding: 2rem;
    border-radius: 8px;
}

/* Full Width Left Section (when toppers disabled, notice board takes full width) */
.toppers-left-full {
    background: #1a365d;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    color: white;
}

/* Full Width Toppers Section */
.toppers-full-width {
    background: #f0f0f0;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    width: 100%;
}

/* Reasons Section */
.reasons-section {
    padding: 4rem 0;
    background: white;
}

.reasons-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1a365d;
    text-align: center;
    margin: 0 0 3rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.reason-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.reason-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: #f0f0f0;
}

.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reason-heading {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a365d;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Collaborators Section */
.collaborators-section {
    padding: 4rem 0;
    background: #1a365d;
    margin-bottom: 3rem;
}

/* App Download Section */
.app-download-section {
    padding: 3.5rem 0;
    background: #f8fafc;
}

.app-download-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.app-download-title {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    color: #1a202c;
}

.app-download-description {
    margin: 0;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

.app-download-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a365d;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-download-btn:hover {
    background: #142a4a;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(26, 54, 93, 0.2);
    color: #fff;
}

.collaborators-title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0 0 3rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.collaborators-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.collaborators-track {
    display: flex;
    gap: 3rem;
    animation: slideLogos 30s linear infinite;
    width: fit-content;
}

.collaborators-track:hover {
    animation-play-state: paused;
}

@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.collaborator-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    min-width: 200px;
    height: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.collaborator-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.collaborator-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.collaborator-item:hover .collaborator-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.toppers-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1a365d;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toppers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.topper-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.topper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.topper-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    background: transparent;
    padding-top: 0.75rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.25rem;
    box-sizing: border-box;
}

.topper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.topper-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.topper-name {
    font-size: 0.95rem;
    font-weight: bold;
    color: #1a365d;
    margin: 0;
    line-height: 1.3;
}

.topper-grade {
    font-size: 0.85rem;
    color: #333;
    margin: 0;
}

.topper-board {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Right Side - News and Updates */
.toppers-right {
    background: #1a365d;
    padding: 1.5rem;
    border-radius: 8px;
    height: auto;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-marquee-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 380px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.news-marquee {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: marqueeScroll 30s linear infinite;
    padding: 1rem 0;
}

.news-marquee:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-33.333%);
    }
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.5rem 0;
}

.news-icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: #ffd700;
}

.news-text {
    flex: 1;
}

/* Home Page */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
}

.pages-section,
.features-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.page-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.page-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.page-content {
    padding: 1.5rem;
}

.page-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.page-content p {
    color: #666;
    margin: 0 0 1rem 0;
}

.read-more {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.feature-card p {
    color: #666;
    margin: 0;
}

/* Page Styles */
.page-header {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
}

.page-content {
    padding: 3rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.content-section p {
    color: #666;
    line-height: 1.8;
    margin: 0 0 1rem 0;
}

.values-list {
    list-style: disc;
    padding-left: 2rem;
    color: #666;
}

.values-list li {
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.contact-info p {
    color: #666;
    margin: 0 0 1rem 0;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.info-item p {
    color: #666;
    margin: 0;
}

.contact-form-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group .input-error {
    border-color: #e74c3c;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    background: #1a365d;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #142a4a;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message h3 {
    color: #27ae60;
    margin: 0 0 0.5rem 0;
}

.success-message p {
    color: #666;
    margin: 0;
}

/* Page View */
.page-view {
    min-height: 100vh;
    background: #f8f9fa;
}

.page-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f0f0f0;
}

.page-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-excerpt {
    font-size: 1.125rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

.page-body-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-featured-inline {
    margin: 0 0 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-featured-inline img {
    width: 100%;
    height: auto;
    display: block;
}

.page-body {
    color: #333;
    line-height: 1.8;
}

.page-body h1,
.page-body h2,
.page-body h3 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

.page-body p {
    margin: 0 0 1rem 0;
}

.page-body ul,
.page-body ol {
    margin: 0 0 1rem 1.25rem;
    color: #555;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #1a365d;
    background: #f8fafc;
    color: #444;
}

@media (max-width: 768px) {
    .documents-table {
        table-layout: fixed;
    }

    .documents-th.documents-th-center,
    .documents-td.documents-td-center {
        width: auto !important;
    }

    .documents-td.documents-td-center {
        display: flex;
        justify-content: center;
    }

    .documents-th.documents-th-center:last-child,
    .documents-td.documents-td-center:last-child {
        width: 120px !important;
        min-width: 120px;
    }

    .page-body-card {
        padding: 1.5rem;
    }
}

/* Not Found Page */
.not-found-page {
    padding: 4rem 0;
    text-align: center;
}

.not-found-content h1 {
    font-size: 6rem;
    margin: 0;
    color: #3498db;
}

.not-found-content h2 {
    font-size: 2rem;
    margin: 1rem 0;
    color: #333;
}

.not-found-content p {
    color: #666;
    margin: 0 0 2rem 0;
}

.home-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.home-link:hover {
    background: #2980b9;
}

.page-error {
    padding: 4rem 0;
    text-align: center;
}

.page-error h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.page-error p {
    color: #666;
    margin: 0;
}

/* Footer */
.site-footer {
    background: #1a365d;
    color: white;
    margin-top: auto;
}

.footer-main {
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.footer-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    align-items: flex-start;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-link {
    text-decoration: none;
    color: inherit;
}

.footer-logo-image-wrapper {
    display: flex;
    align-items: center;
}

.footer-logo-image {
    max-height: 60px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

.footer-logo-emblem {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-emblem-square {
    width: 60px;
    height: 60px;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-emblem-book {
    font-size: 2rem;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-main {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
}

.footer-logo-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    margin-top: 0.25rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* Footer Contact */
.footer-contact {
    gap: 0;
    min-width: 0;
}

.footer-about {
    min-width: 0;
}

.footer-about .footer-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.footer-contact {
    min-width: 0;
}

.footer-links {
    min-width: 0;
}

.footer-highlights {
    min-width: 0;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    min-height: 1.4rem;
    align-self: flex-start;
}

.footer-heading:empty {
    margin: 0 0 1.5rem 0;
    min-height: 1.4rem;
    line-height: 1.4;
    visibility: hidden;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact .contact-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-contact .contact-item span {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
}

/* Footer Links */
.footer-links {
    gap: 0;
}

.footer-highlights {
    gap: 0;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-list li {
    margin: 0;
}

.footer-link-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-block;
}

.footer-link-list a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    background: rgb(0, 81, 151);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.footer-copyright {
    text-align: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-copyright .iqwing {
    color: #ff4444;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    /* Top Header Mobile */
    .top-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .top-header-left {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .contact-item {
        font-size: 0.8rem;
    }

    .top-header-right {
        font-size: 0.75rem;
        width: 100%;
    }


    /* Navigation Mobile */
    .nav-content {
        flex-wrap: wrap;
        position: relative;
        min-height: 80px;
    }

    .main-navigation {
        position: relative;
    }

    .nav-logo {
        flex: 1;
        min-width: 0;
    }

    .site-logo-image {
        height: 40px;
        max-width: 150px;
    }

    .main-navigation .mobile-menu-toggle {
        position: absolute;
        right: 1rem;
        top: 1rem;
        transform: none;
        z-index: 1000;
    }

    .logo-link {
        gap: 0.75rem;
    }

    .emblem-shield {
        width: 50px;
        height: 50px;
    }

    .logo-main {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.875rem;
    }

    .logo-type {
        font-size: 0.75rem;
    }

    .main-navigation .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        right: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        background: white;
        flex-direction: column;
        align-items: stretch;
        display: none;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        border-top: 1px solid #e5e7eb;
    }

    .nav-menu-wrapper.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: white;
        padding: 1rem 0;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 0.75rem 1.5rem;
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        margin-left: 1rem;
        border-left: 2px solid #1a365d;
    }

    .admission-button {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

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

    /* Hero Slider Mobile */
    .carousel-inner {
        height: 300px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-control-icon svg {
        width: 20px;
        height: 20px;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-indicators button {
        width: 10px;
        height: 10px;
    }

    /* Welcome Section Mobile */
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .welcome-heading {
        font-size: 1.5rem;
    }

    .welcome-description {
        font-size: 0.9rem;
    }

    .welcome-image {
        min-height: 300px;
        order: -1;
    }

    /* Toppers Section Mobile */
    .toppers-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .toppers-title,
    .news-title {
        font-size: 1.5rem;
    }

    .toppers-left,
    .toppers-left-full,
    .toppers-right {
        padding: 1.5rem;
    }

    .toppers-full-width {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    /* Reasons Section Mobile */
    .reasons-section {
        padding: 3rem 0;
    }

    .reasons-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

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

    .reason-heading {
        font-size: 1.1rem;
        min-height: auto;
    }

    /* Collaborators Section Mobile */
    .collaborators-section {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }

    .app-download-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .app-download-actions {
        justify-content: center;
    }

    .collaborators-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .collaborator-item {
        min-width: 150px;
        height: 100px;
        padding: 1rem 1.5rem;
    }

    .news-marquee-container {
        height: 220px;
    }

    /* Mobile Submenu */
    .submenu {
        position: static;
        margin-left: 1rem;
        margin-top: 0.5rem;
        box-shadow: none;
        background: rgba(248, 249, 250, 0.8);
        backdrop-filter: blur(10px);
        border-left: 3px solid #2c5282;
        border-radius: 0 6px 6px 0;
        display: none;
        overflow: hidden;
    }

    .has-submenu.active .submenu {
        display: block;
        animation: submenuSlideIn 0.3s ease-out forwards;
    }

    @keyframes submenuSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
            max-height: 0;
        }
        to {
            opacity: 1;
            transform: translateY(0);
            max-height: 500px;
        }
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-main {
        padding: 2rem 0;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
}

/* CBSE Corner Modern Styles */
.cbse-corner-page {
    min-height: 100vh;
    background: #fafbfc;
}

/* Hero Section */
.cbse-hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    overflow: hidden;
}

.cbse-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.cbse-hero-section .hero-content {
    position: relative;
    z-index: 2;
}

/* CBSE Corner Section */
.cbse-corner-section {
    padding: 4rem 0;
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
}

/* Documents Card */
.documents-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.documents-card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2.5rem;
}

.documents-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.documents-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    backdrop-filter: blur(10px);
}

.documents-info h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.documents-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.documents-card-body {
    padding: 0;
}

/* Documents Table */
.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.documents-table-header {
    background: #f8fafc;
}

.documents-th {
    padding: 1.5rem 2rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.documents-th-center {
    text-align: center;
}

.documents-table-body {
    background: white;
}

.documents-table-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.documents-table-row:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.documents-table-row:last-child {
    border-bottom: none;
}

.documents-td {
    padding: 2rem;
    vertical-align: top;
}

.documents-td-center {
    text-align: center;
    vertical-align: middle;
}

/* Document Item */
.document-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.document-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.document-item-content {
    flex: 1;
    min-width: 0;
}

.document-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.document-item-description {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.document-item-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 500;
}

.meta-item i {
    font-size: 0.9rem;
}

/* Serial Number */
.serial-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
}

/* View Document Button */
.view-document-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-document-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Empty State */
.empty-state {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-content {
    text-align: center;
    max-width: 500px;
}

.gallery-refresh-btn {
    background: #1a365d;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(26, 54, 93, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gallery-refresh-btn:hover {
    background: #142a4a;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(26, 54, 93, 0.3);
}

.gallery-refresh-btn:active {
    transform: translateY(0);
}

.empty-icon {
    font-size: 5rem;
    color: #cbd5e0;
    margin-bottom: 2rem;
}

.empty-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.empty-subtitle {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* About Us Page Styles */
.about-us-page {
    min-height: 100vh;
    background: #f8f9fa;
}

/* Hero Section */
.about-hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    overflow: hidden;
}

.about-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.about-hero-section .hero-content {
    position: relative;
    z-index: 2;
}

/* Journey Section */
.journey-section {
    padding: 4rem 0;
    background: white;
}

.journey-content {
    padding-right: 2rem;
}

.journey-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.journey-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1rem;
}

.journey-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.journey-content-side,
.journey-image-side {
    flex: 1;
    min-width: 0;
}

.journey-content-side {
    padding-right: 1rem;
}

.journey-image-side {
    padding-left: 1rem;
}

.journey-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .journey-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .journey-content-side,
    .journey-image-side {
        padding-left: 0;
        padding-right: 0;
    }

    .journey-content-side {
        order: 1;
    }

    .journey-image-side {
        order: 2;
    }
}

/* What We Do Section */
.what-we-do-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #718096;
}

/* Tab Navigation */
.tabs-nav {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: white;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #e2e8f0;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: #f1f5f9;
}

.tab-btn.active {
    background: #1a365d;
    color: white;
}

/* Tab Content */
.tab-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-pane {
    padding: 2rem;
}


.tab-content-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.tab-image-side,
.tab-text-side {
    flex: 1;
    min-width: 0;
}

.tab-image-side {
    padding-right: 1rem;
}

.tab-text-side {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
}

.tab-content-title {
    margin-bottom: 1rem;
    margin-top: 0;
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 700;
}

.tab-content-text {
    margin: 0;
    flex: 1;
}

.tab-content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Mobile responsive for tab content */
@media (max-width: 768px) {
    .tab-content-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .tab-image-side,
    .tab-text-side {
        padding-left: 0;
        padding-right: 0;
    }

    .tab-image-side {
        order: 1;
    }

    .tab-text-side {
        order: 2;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .journey-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .journey-title {
        text-align: center;
        font-size: 1.8rem;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .tab-btn:last-child {
        border-bottom: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cbse-hero-section {
        padding: 60px 0;
    }

    .cbse-hero-section .display-4 {
        font-size: 2.5rem;
    }

    .cbse-corner-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .documents-card-header {
        padding: 2rem;
    }

    .documents-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .documents-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .documents-info h3 {
        font-size: 1.5rem;
    }

    .documents-th,
    .documents-td {
        padding: 1rem;
    }

    .document-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .document-item-icon {
        align-self: center;
    }

    .document-item-meta {
        justify-content: center;
    }

    .view-document-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .serial-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .documents-card-header {
        padding: 1.5rem;
    }

    .documents-th,
    .documents-td {
        padding: 0.75rem;
    }

    .document-item-title {
        font-size: 1rem;
    }

    .view-document-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Our Ethos Section */
.ethos-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.ethos-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ethos-image-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.ethos-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ethos-text-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ethos-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    font-style: italic;
    border-left: 4px solid #1a365d;
    padding-left: 2rem;
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
}

.ethos-text-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.ethos-text-content p:last-child {
    margin-bottom: 0;
}

/* Mobile responsive for ethos section */
@media (max-width: 768px) {
    .ethos-section {
        padding: 3rem 0;
    }

    .ethos-text-content {
        padding: 2rem 1.5rem;
    }

    .ethos-quote {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .ethos-image {
        max-width: 100%;
    }
}

/* Curriculum Page Styles */
.curriculum-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hero Section */
.curriculum-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-icon {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-weight: 400;
}

.school-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 500;
    margin-top: 1rem;
}

/* Stats Section */
.curriculum-stats {
    padding: 3rem 0;
    background: rgba(255,255,255,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.available {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    line-height: 1;
}

.stat-content p {
    color: #718096;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Filters Section */
.curriculum-filters {
    padding: 2rem 0;
    background: white;
}

.filters-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-search {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #f7fafc;
    color: #4a5568;
}

.results-count {
    color: #718096;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Curriculum Grid */
.curriculum-grid {
    padding: 3rem 0;
    background: #f8fafc;
}

.curriculum-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.curriculum-card-wrapper {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    opacity: 0;
}

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

.curriculum-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.8);
}

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

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.class-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.class-badge i {
    font-size: 1.2rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.available {
    background: rgba(255,255,255,0.2);
    color: white;
}

.card-body {
    padding: 2rem;
}

.syllabus-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.syllabus-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.syllabus-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.syllabus-meta {
    flex: 1;
}

.syllabus-meta h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.file-type {
    display: inline-block;
    background: #e6fffa;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.syllabus-preview {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: 200px;
}

.syllabus-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.syllabus-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-download {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-view {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.btn-view:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.no-syllabus {
    text-align: center;
    padding: 3rem 2rem;
    color: #a0aec0;
}

.no-syllabus-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-syllabus h4 {
    margin: 0 0 0.5rem 0;
    color: #4a5568;
    font-weight: 600;
}

.no-syllabus p {
    margin: 0;
    font-size: 0.9rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #a0aec0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    margin: 0 0 0.5rem 0;
    color: #4a5568;
    font-weight: 600;
}

.no-results p {
    margin: 0 0 2rem 0;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .curriculum-hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .school-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .filters-content {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }

    .search-box {
        max-width: none;
        min-width: auto;
    }

    .curriculum-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .class-badge {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .syllabus-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }
}