/* 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: 0.5rem 0;
    font-size: 0.875rem;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.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;
}

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

.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);
}

/* 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 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-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%;
    }
}
