/* Responsive & Component Specific Styles */
@import 'variables.css';

/* Global Mobile Fixes - Prevent horizontal scrolling and ensure proper padding */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Hero Slider - Bootstrap Enhanced */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-carousel {
    height: 750px;
    background-color: var(--background-light);
    position: relative;
}

.carousel-inner {
    position: relative;
    height: 100%;
}

.carousel-item {
    height: 750px;
    position: relative;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: zoomSlide 6s ease-out forwards;
}

@keyframes zoomSlide {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(41, 81, 146, 0.55) 35%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content-wrapper .container {
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-content-wrapper .row {
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-text-content {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(191, 49, 73, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 550px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Bootstrap Carousel Customization */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1f3a6b 100%);
    border-radius: 50%;
    opacity: 0.95;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0;
}

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: linear-gradient(135deg, #1f3a6b 0%, #162856 100%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 0;
    height: 0;
    background-image: none !important;
}

.carousel-control-prev::before,
.carousel-control-next::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 24px;
    line-height: 1;
}

.carousel-control-prev::before {
    content: '\f053';
}

.carousel-control-next::before {
    content: '\f054';
}

.carousel-control-prev .visually-hidden,
.carousel-control-next .visually-hidden {
    display: none;
}

.carousel-indicators.customized {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    gap: 12px;
    display: flex;
    z-index: 20;
    pointer-events: auto;
}

.carousel-indicators.customized button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    pointer-events: auto;
}

.carousel-indicators.customized button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

/* CBSE Affiliation Box */
.cbse-affiliation-box {
    display: none;
}

.cbse-logo-column {
    flex: 0 0 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(41, 81, 146, 0.08) 0%, rgba(191, 49, 73, 0.05) 100%);
    border-radius: 14px;
    padding: 15px;
    transition: transform 0.3s ease;
}

.cbse-logo-column:hover {
    transform: scale(1.05);
}

.cbse-logo-column img {
    width: 70px;
    height: auto;
    max-width: 70px;
    filter: drop-shadow(0 4px 8px rgba(41, 81, 146, 0.2));
}

.cbse-text-column {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 35px;
    border-right: 2px solid #e0e8f5;
    position: relative;
}

.cbse-affiliation-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
    text-align: left;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.cbse-affiliation-number {
    font-size: 1rem;
    color: white;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(191, 49, 73, 0.3);
}

.announcements-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 35px;
    max-height: 70px;
    overflow: hidden;
}

.announcements-heading {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0;
    text-align: left;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcements-heading::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.announcements-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.5;
    min-height: 28px;
    animation: verticalScroll 5s linear infinite;
}

@keyframes verticalScroll {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 1;
    }
    45% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    95% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.carousel-indicators.customized button.active {
    background-color: white;
    width: 36px;
    border-radius: 6px;
    opacity: 1;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}

/* Small CBSE Badge on Hero Slider */
.cbse-badge-small {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.cbse-badge-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cbse-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cbse-badge-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbse-badge-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* About Section - Modern Layout */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.about-image-side {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
}

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

.about-content-side {
    padding: var(--spacing-lg);
}

.about-tagline {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(191, 49, 73, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
}

.about-heading {
    font-size: var(--font-size-h2);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 32px;
    line-height: var(--line-height-heading);
    letter-spacing: -0.5px;
}

.about-description {
    margin-bottom: 40px;
    padding-left: 24px;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.about-description p {
    color: rgba(0, 0, 0, 0.68);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* Years Badge */
.years-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 140px;
}

.years-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
}

.years-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    text-transform: capitalize;
}

/* About Feature Boxes - Hidden */
.features-about {
    display: none;
}

.feature-about-item {
    display: flex;
    gap: 16px;
}

.feature-about-icon {
    font-size: 2.4rem;
    color: var(--accent-color);
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-about-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.feature-about-content p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* Read More Link as Button */
.read-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--accent-color);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    margin-top: 24px;
    padding: 16px 48px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.read-more-link:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(191, 49, 73, 0.3);
    transform: translateY(-2px);
}

/* Accordion Styles - Hidden for new layout */
.accordion-section {
    display: none;
}

.accordion-section-old {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.accordion-item {
    background-color: var(--background-lighter);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
    background-color: var(--background-lighter);
}

.accordion-header:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.accordion-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--spacing-lg);
}

.accordion-header.active + .accordion-content {
    max-height: 350px;
    padding: var(--spacing-lg);
}

.accordion-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Highlights Section - Gradient Background with Image Overlay */
.section.section-light:has(.highlights-grid) {
    background-image: url('../images/School Photos/UKP01432.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    position: relative;
}

.section.section-light:has(.highlights-grid)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 81, 146, 0.8) 0%, rgba(191, 49, 73, 0.8) 100%);
    pointer-events: none;
}

.section:has(.highlights-grid) > .container {
    position: relative;
    z-index: 2;
}

/* Highlights Section */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.highlight-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.highlight-card:hover {
    box-shadow: 0 20px 50px rgba(41, 81, 146, 0.18);
    transform: translateY(-12px);
    border-color: rgba(41, 81, 146, 0.2);
}

.highlight-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
    letter-spacing: -1px;
}

.highlight-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: var(--font-size-h5);
    font-weight: 700;
    line-height: var(--line-height-heading);
}

.highlight-card p {
    color: rgba(0, 0, 0, 0.65);
    font-size: var(--font-size-small);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.highlight-item {
    padding: 28px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}\n\n.highlight-item:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    transform: translateX(8px);
}

.highlight-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

/* Features Grid */
.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    align-items: stretch;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature-item {
    background-color: var(--background-lighter);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.feature-item.active .feature-header {
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-item.active .feature-header h4 {
    color: var(--white);
}

.feature-item.active .feature-header i {
    color: var(--white);
    transform: rotate(90deg);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
    background-color: var(--background-lighter);
}

.feature-header:hover {
    background-color: rgba(41, 81, 146, 0.05);
}

.feature-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: var(--font-size-h5);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.feature-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease, color var(--transition-fast);
}

.feature-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--spacing-lg);
}

.feature-item.active .feature-description {
    max-height: 300px;
    padding: var(--spacing-lg);
}

.feature-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.features-image-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.features-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Gallery Grid - Masonry with 5 Images */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--grid-gap);
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 250px;
}

/* First column - single large image spanning 2 rows */
.gallery-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 520px;
}

/* Second and third items - stacked in column 2 */
.gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.gallery-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

/* Fourth and fifth items - stacked in column 3 */
.gallery-item:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
}

.gallery-item:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

/* Hide items 6 and beyond */
.gallery-item:nth-child(n+6) {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.12) rotate(2deg);
}

.gallery-item:hover {
    box-shadow: 0 20px 40px rgba(41, 81, 146, 0.25);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 81, 146, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.gallery-overlay-icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}
/* Testimonials Section */
.testimonials-section {
    background-color: var(--background-lighter);
}

.testimonials-section .section-title h2 {
    color: var(--primary-color);
    font-size: calc(var(--font-size-h2) * 1.15);
    font-weight: 800;
    margin-bottom: var(--spacing-xl);
}

.testimonials-carousel {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonials-container {
    overflow: hidden;
    flex: 1;
}

.testimonials-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.testimonial-card {
    flex: 0 0 calc(50% - var(--spacing-sm));
    background: linear-gradient(135deg, var(--white) 0%, #fafbfc 100%);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(41, 81, 146, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.testimonial-card:hover {
    box-shadow: 0 20px 50px rgba(41, 81, 146, 0.18);
    transform: translateY(-10px);
    border-color: rgba(41, 81, 146, 0.2);
}

.testimonial-quote-icon {
    font-size: 4rem;
    color: rgba(41, 81, 146, 0.08);
    margin-bottom: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(0, 0, 0, 0.68);
    margin-bottom: 20px;
    font-weight: 400;
}

.testimonial-rating {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1.15rem;
}

.testimonial-author {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.testimonial-location {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
}

/* Testimonial Navigation */
.testimonial-nav {
    position: relative;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1f3a6b 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 16px rgba(41, 81, 146, 0.3);
    flex-shrink: 0;
}

.testimonial-nav:hover {
    background: linear-gradient(135deg, #1f3a6b 0%, #162856 100%);
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(41, 81, 146, 0.4);
}

.testimonial-prev {
    order: -1;
}

.testimonial-next {
    order: 1;
}

/* Testimonial Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    width: 100%;
    order: 100;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(41, 81, 146, 0.25);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0;
}

.testimonial-dot.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1f3a6b 100%);
    width: 38px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(41, 81, 146, 0.35);
}
/* Blogs Section */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.blog-card {
    background: linear-gradient(135deg, var(--white) 0%, #fafbfc 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(41, 81, 146, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 20px 50px rgba(41, 81, 146, 0.18);
    transform: translateY(-10px);
    border-color: rgba(41, 81, 146, 0.2);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.08);
}

.blog-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #a82a35 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(191, 49, 73, 0.25);
}

.blog-title {
    font-size: var(--font-size-h5);
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: var(--line-height-heading);
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: var(--font-size-small);
    margin-bottom: var(--spacing-md);
}

.blog-link {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-small);
}

.blog-link:hover {
    color: var(--primary-dark);
}

/* Enquiry Form Section */
.enquiry-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
}

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

@media (max-width: 768px) {
    .enquiry-section {
        padding: 60px var(--container-padding) !important;
    }

    .enquiry-section .container {
        max-width: 100%;
        padding: 0 var(--container-padding) !important;
    }

    .form-header h3 {
        font-size: 2.8rem !important;
    }

    .form-header p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .enquiry-section {
        padding: 60px var(--container-padding) !important;
    }

    .enquiry-section .container {
        max-width: 100%;
        padding: 0 var(--container-padding) !important;
    }

    .form-header h3 {
        font-size: 1.8rem !important;
    }

    .form-header {
        margin-bottom: 30px;
    }
}

.enquiry-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.enquiry-section .form-header h3,
.enquiry-section .form-header p {
    color: var(--white);
}

.enquiry-section input,
.enquiry-section textarea,
.enquiry-section select {
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    padding: 16px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.enquiry-section input {
    height: 56px;
    line-height: 1.5;
}

.enquiry-section textarea {
    min-height: 140px;
    resize: vertical;
    font-size: 1rem;
}

.enquiry-section select {
    height: 56px;
    cursor: pointer;
}

.enquiry-section input::placeholder,
.enquiry-section textarea::placeholder {
    color: var(--text-light);
}

.enquiry-section input:focus,
.enquiry-section textarea:focus,
.enquiry-section select:focus {
    border-color: var(--white);
    outline: none;
}

.enquiry-section .btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a82a35 100%);
}

.enquiry-section .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(191, 49, 73, 0.4);
    color: white;
}

.enquiry-section .form-success {
    background-color: rgba(212, 237, 218, 0.95);
}

.enquiry-section .checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    color: var(--white);
    font-weight: 500;
}

.enquiry-section .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}

.form-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.form-header h3 {
    color: var(--white);
    font-size: var(--font-size-h2);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.enquiry-section .form-group {
    margin-bottom: 25px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-success {
    display: none;
    padding: var(--spacing-lg);
    background-color: #D4EDDA;
    color: #155724;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid #C3E6CB;
}

.form-success.show {
    display: block;
}

/* Highlights Grid Section */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.highlight-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.highlight-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.highlight-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.highlight-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-h5);
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-small);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background-color: #EFEFEF;
    padding: var(--spacing-xl) 0;
}

.cta-content {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    color: var(--text-primary);
}

.cta-content h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-h3);
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-h5);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.cta-buttons .btn {
    font-size: 1rem;
    padding: var(--spacing-md) var(--spacing-lg);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-carousel {
        height: 600px;
    }

    .carousel-item {
        height: 600px;
    }

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

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

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-heading {
        font-size: 1.8rem;
    }

    .features-about {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .years-badge {
        width: 140px;
        padding: 20px 20px;
        font-size: 0.85rem;
    }

    .years-number {
        font-size: 2.4rem;
    }

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

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

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .section {
        padding: 60px var(--container-padding);
    }

    .hero-carousel {
        height: 550px;
    }

    .carousel-item {
        height: 550px;
    }

    .cbse-badge-small {
        display: none !important;
    }

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

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-actions .btn {
        font-size: 0.95rem;
        padding: 10px 24px;
    }

    /* Mobile section padding fix */
    .section {
        padding: 40px var(--container-padding);
    }

    .container {
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text-content {
        padding: 0 var(--container-padding);
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

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

    .carousel-indicators.customized button.active {
        width: 30px;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    .hero-content-wrapper .col-lg-7 {
        width: 100%;
    }

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

    .about-content-side {
        padding: 0;
    }

    .accordion-header {
        padding: var(--spacing-md);
    }

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

    .features-list {
        order: 2;
    }

    .features-image-container {
        order: 1;
        min-height: 320px;
        margin-bottom: 30px;
    }

    .features-image-container img {
        height: 320px;
    }

    .feature-header h4 {
        font-size: 1.15rem;
    }

    .feature-description p {
        font-size: 0.95rem;
    }

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

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

    .gallery-item:nth-child(1) {
        grid-column: 1;
        grid-row: auto;
        min-height: 250px;
    }

    .gallery-item:nth-child(2) {
        grid-column: 1;
        grid-row: auto;
    }

    .gallery-item:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }

    .gallery-item:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }

    .gallery-item:nth-child(5) {
        display: none;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-section {
        padding: 20px 0;
    }

    .cta-content {
        padding: var(--spacing-lg);
        flex-direction: column;
    }

    .testimonial-card {
        flex: 0 0 100% !important;
    }

    .testimonials-section .section-title h2 {
        font-size: 2.8rem;
    }

    .testimonial-prev,
    .testimonial-next {
        display: none !important;
    }

    .testimonials-carousel {
        padding: 0;
        gap: 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        margin-bottom: 35px;
    }

    .section-title h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .section {
        padding: 60px var(--container-padding);
    }

    .features-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .hero-carousel {
        height: 400px;
    }

    .carousel-item {
        height: 400px;
    }

    .cbse-badge-small {
        bottom: 15px;
        right: 15px;
        padding: 8px 10px;
        gap: 8px;
    }

    .cbse-badge-logo {
        width: 35px;
        height: 35px;
    }

    .cbse-badge-label {
        font-size: 0.6rem;
    }

    .cbse-badge-number {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    /* Extra small mobile section padding */
    .section {
        padding: 60px var(--container-padding);
    }

    .hero-text-content {
        padding: 0 var(--container-padding);
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-indicators.customized {
        bottom: 20px;
    }

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

    .carousel-indicators.customized button.active {
        width: 24px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    .hero-content-wrapper .col-lg-7 {
        width: 100%;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .about-heading {
        font-size: 1.3rem;
    }

    .about-description {
        padding-left: var(--spacing-md);
        border-left-width: 3px;
    }

    .about-description p {
        font-size: 0.95rem;
    }

    .features-about {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 24px 0;
    }

    .years-badge {
        bottom: 20px;
        left: 20px;
        width: 130px;
        padding: 18px 16px;
    }

    .years-number {
        font-size: 2.2rem;
    }

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

    .accordion-header {
        padding: var(--spacing-md);
    }

    .accordion-title {
        font-size: var(--font-size-body);
    }

    .slider-prev {
        left: var(--spacing-sm);
    }

    .slider-next {
        right: var(--spacing-sm);
    }

    .slider-controls {
        bottom: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-dot.active {
        width: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

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

    .highlight-number {
        font-size: 2.5rem;
    }

    .features-image-container {
        min-height: 280px;
        margin-bottom: 25px;
    }

    .features-image-container img {
        height: 280px;
    }

    .feature-header h4 {
        font-size: 1.05rem;
    }

    .feature-description p {
        font-size: 0.9rem;
    }

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

    .cta-content {
        padding: var(--spacing-lg) var(--container-padding);
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 1.25rem;
    }

    .cta-content p {
        font-size: 0.9rem;
    }

    .testimonials-section {
        padding: 60px var(--container-padding) !important;
    }

    .testimonials-section .section-title h2 {
        font-size: 1.8rem;
    }

    .testimonial-prev,
    .testimonial-next {
        display: none !important;
    }

    .testimonials-carousel {
        padding: 0;
        gap: 15px;
        justify-content: center;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .testimonial-author {
        font-size: 0.95rem;
    }

    .testimonial-location {
        font-size: 0.85rem;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Sticky Side Buttons */
.sticky-buttons {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 999;
    pointer-events: auto;
}

.sticky-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    color: white !important;
}

.sticky-btn i {
    font-size: 1.4rem;
    opacity: 1 !important;
    color: white !important;
    display: flex;
}

.sticky-btn-label {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sticky-btn-enquiry {
    background-color: var(--accent-color);
    color: white;
}

.sticky-btn-enquiry:hover {
    background-color: var(--accent-color);
    color: white;
}

.sticky-btn-enquiry:hover i {
    color: white !important;
}

.sticky-btn-call {
    background-color: var(--primary-color);
    color: white;
}

.sticky-btn-call:hover {
    background-color: var(--primary-color);
    color: white;
}

.sticky-btn-call:hover i {
    color: white !important;
}

/* Mobile-Only Action Buttons */
.mobile-action-buttons {
    display: none;
    gap: 0;
}

.mobile-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.mobile-action-btn i {
    font-size: 1.1rem;
}

.mobile-action-enquiry {
    background-color: #BF3149;
    color: white;
}

.mobile-action-enquiry:active {
    background-color: #A02840;
    opacity: 0.9;
}

.mobile-action-call {
    background-color: #295192;
    color: white;
}

.mobile-action-call:active {
    background-color: #1F3B6B;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .sticky-buttons {
        display: none !important;
    }
    
    .cbse-affiliation-box {
        flex-direction: column;
        gap: 30px;
        padding: 40px;
        width: 95%;
    }
    
    .cbse-text-column {
        border-right: none;
        border-bottom: 1px solid #dfe5f0;
        padding-right: 0;
        padding-bottom: 30px;
        flex: 1;
    }
    
    .announcements-column {
        padding-left: 0;
        flex: 1;
    }
    
    .cbse-affiliation-text {
        font-size: 0.95rem;
    }
    
    .announcements-heading {
        font-size: 0.75rem;
    }
    
    .announcements-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .sticky-buttons {
        display: none;
    }
    
    body {
        padding-bottom: 20px;
    }
    
    .mobile-action-buttons {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid rgba(41, 81, 146, 0.1);
        z-index: 999;
        gap: 0;
    }
    
    .cbse-affiliation-box {
        margin-top: -60px;
        padding: 30px var(--container-padding);
        width: 95%;
        gap: 20px;
    }
    
    .cbse-logo-column {
        flex: 0 0 70px;
    }
    
    .cbse-logo-column img {
        width: 70px;
        max-width: 70px;
    }
    
    .cbse-text-column {
        flex: 1;
    }
    
    .announcements-text {
        font-size: 0.9rem;
    }

    /* Video Container - Mobile Responsive */
    .video-container {
        margin-top: 30px;
        margin-bottom: 40px;
    }
}

/* Video Section - Tablet Adjustments */
@media (max-width: 768px) {
    .video-container {
        margin-top: 30px;
        margin-bottom: 40px;
    }
}

/* ========================================
   MOBILE STYLING FIXES & OPTIMIZATION
   ======================================== */

@media (max-width: 767px) {
    /* Preloader Mobile Optimization */
    .preloader-content {
        gap: 20px;
    }
    
    .preloader-logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .preloader-spinner {
        width: 90px !important;
        height: 90px !important;
        border: 2px solid rgba(19, 110, 237, 0.1);
        border-top: 2px solid var(--primary-color);
    }
    
    /* Hero Slider Mobile */
    .hero-carousel {
        height: 500px;
    }
    
    .carousel-item {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    /* Navigation Mobile */
    .header-nav {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #f8f9fa;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    
    .header-nav.active {
        left: 0;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Mobile Menu Toggle Ensure Visibility */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        z-index: 110;
        gap: 6px;
        padding: 8px;
        margin: -8px -8px -8px 0;
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 2.5px;
        background: var(--primary-color);
        transition: 0.3s ease;
        border-radius: 2px;
        display: block;
    }
    }
    
    /* Form Mobile */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control,
    .form-select {
        font-size: 16px;
    }
    
    /* Button Mobile */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 30px;
    }
    
    /* Ensure all text is readable */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}
