/* education-responsive.css - Enhanced Responsive Education Page Styles */

/* Hero Section with Big Background */
.education-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 40px;
    overflow: hidden;
}

.hero-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/RUKHAMABAI\ BALIKASHRAM.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    animation: bgZoom 30s infinite alternate ease-in-out;
}

@keyframes bgZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.2);
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 110, 79, 0.9) 0%, rgba(8, 87, 62, 0.95) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    width: 100%;
}

.hero-text-content {
    color: var(--light);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--light);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    font-weight: 800;
    color: var(--light);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.title-line.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 165, 0, 0.3);
    z-index: -1;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    max-width: 100%;
    word-wrap: break-word;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Hero Visual Content */
.hero-visual-content {
    position: relative;
    width: 100%;
}

.floating-cards-container {
    position: relative;
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.floating-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    width: 100%;
    max-width: 280px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: var(--light);
}

.card-1, .card-2, .card-3 {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    z-index: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.floating-card h4 {
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.floating-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--light);
    font-size: 1rem;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-down:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Balikashram Section */
.balikashram-section {
    padding: var(--space-lg) 0;
    background: linear-gradient(135deg, #f8f5f0 0%, #ffffff 100%);
}

.header-with-tag {
    position: relative;
    margin-bottom: var(--space-lg);
}

.csr-tag {
    position: relative;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-top: var(--space-md);
    width: fit-content;
}

.balikashram-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.balikashram-card {
    display: flex;
    flex-direction: column;
    background: var(--light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-border);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: var(--space-md);
}

.overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.content-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
    flex-wrap: wrap;
}

.content-header h3 i {
    color: var(--accent);
}

.content-header p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

.highlight-box {
    background-color: var(--accent-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border-left: 5px solid var(--accent);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.highlight-text h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.highlight-text p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.feature {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    padding: var(--space-sm);
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature:hover {
    background-color: var(--light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feature-text h5 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.feature-text p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.card-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

/* Education Philosophy */
.education-philosophy-section {
    padding: var(--space-lg) 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-item {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-border);
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.item-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(10, 110, 79, 0.05);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.item-content h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    flex-wrap: wrap;
}

.item-content h3 i {
    color: var(--primary);
}

.item-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Institutions with Carousels */
.institutions-section {
    padding: var(--space-lg) 0;
    background: linear-gradient(135deg, #f0f7f4 0%, #ffffff 100%);
}

.institution-with-carousel {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-border);
    transition: var(--transition);
    width: 100%;
    overflow: hidden;
}

.institution-with-carousel:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.institution-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.institution-title-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.institution-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.institution-header h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.3;
    word-wrap: break-word;
}

.institution-location {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.institution-stats {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.stat i {
    font-size: 1rem;
}

.institution-description {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-border);
    word-wrap: break-word;
}

/* Institution Carousel */
.institution-carousel {
    margin-bottom: var(--space-lg);
    width: 100%;
    overflow: hidden;
}

.carousel-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.carousel-header h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-dark);
    font-size: 1.1rem;
    flex-wrap: wrap;
}

.carousel-header h4 i {
    color: var(--primary);
}

.carousel-nav-buttons {
    display: flex;
    gap: 0.5rem;
    align-self: flex-start;
}

.carousel-prev,
.carousel-next {
    width: 36px;
    height: 36px;
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: scale(1.1);
}

/* Swiper Carousel */
.swiper {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.swiper-slide-active .slide-image img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: var(--space-md);
    color: var(--light);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.slide-content h5 {
    color: var(--light);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.slide-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
}

.swiper-pagination {
    position: relative !important;
    margin-top: var(--space-md);
}

.swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background-color: var(--gray-border) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
}

.carousel-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-border);
}

.carousel-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.carousel-stats .stat-item i {
    font-size: 1.1rem;
}

.institution-footer {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-border);
}

.btn-website {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-website:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    gap: 0.75rem;
}

.institutions-note {
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    border-left: 4px solid var(--primary);
}

.note-content {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.note-content i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.note-content p {
    color: var(--primary-dark);
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.note-content strong {
    color: var(--primary);
}

/* Impact & Partnership */
.impact-partnership-section {
    padding: var(--space-lg) 0;
    background: linear-gradient(135deg, #e8f5f0 0%, #ffffff 100%);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.impact-card {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.impact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--space-md);
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.impact-title {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.impact-card p {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.partnership-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    color: var(--light);
    margin-top: var(--space-lg);
}

.cta-content h3 {
    color: var(--light);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

/* Container adjustments for mobile */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

/* Footer responsive */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--space-lg);
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.footer-links ul li a {
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.footer-newsletter h3 {
    font-size: 1.1rem;
}

.footer-newsletter p {
    font-size: 0.9rem;
}

.newsletter-input input {
    font-size: 16px !important;
    padding: 0.75rem 1rem;
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
    .hero-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }
}

@media (max-width: 1200px) {
    .hero-content-wrapper {
        gap: var(--space-lg);
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero-description {
        font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    }
    
    .swiper {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }
    
    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .floating-cards-container {
        height: auto;
        margin-top: var(--space-xl);
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-md);
    }
    
    .floating-card {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
        transform: none !important;
    }
    
    .card-1, .card-2, .card-3 {
        position: relative;
    }
    
    .balikashram-card {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 250px;
    }
    
    .institution-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .institution-stats {
        justify-content: flex-start;
        width: 100%;
    }
    
    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .carousel-nav-buttons {
        align-self: flex-start;
    }
    
    .swiper {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .education-hero-section {
        padding: 80px 0 30px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .floating-cards-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .swiper {
        height: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .csr-tag {
        position: relative;
        top: auto;
        right: auto;
        margin-top: var(--space-md);
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .institution-header h3 {
        font-size: 1.4rem;
    }
    
    .institution-description {
        font-size: 0.95rem;
    }
    
    .carousel-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .balikashram-card {
        border-radius: var(--radius-lg);
    }
    
    .card-content {
        padding: var(--space-md);
    }
    
    .highlight-box {
        padding: var(--space-md);
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .highlight-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .feature {
        padding: var(--space-sm);
    }
    
    .feature-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .feature-text h5 {
        font-size: 0.8rem;
    }
    
    .feature-text p {
        font-size: 0.75rem;
    }
    
    .card-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .swiper {
        height: 250px;
    }
    
    .slide-content h5 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .slide-category {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-item {
        padding: var(--space-md);
    }
    
    .item-number {
        font-size: 2.5rem;
    }
    
    .item-content h3 {
        font-size: 1.1rem;
    }
    
    .item-content p {
        font-size: 0.9rem;
    }
    
    .institution-with-carousel {
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }
    
    .institution-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .institution-header h3 {
        font-size: 1.2rem;
    }
    
    .stat {
        font-size: 0.8rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .btn-website {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .floating-card {
        padding: var(--space-md);
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .floating-card h4 {
        font-size: 1rem;
    }
    
    .floating-card p {
        font-size: 0.85rem;
    }
    
    .swiper {
        height: 220px;
    }
    
    .slide-content {
        padding: var(--space-sm);
    }
    
    .institution-description {
        font-size: 0.9rem;
    }
    
    .csr-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .card-buttons {
        flex-direction: column;
    }
    
    .card-buttons .btn {
        width: 100%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .floating-card:hover,
    .stat-item:hover,
    .feature:hover,
    .philosophy-item:hover,
    .institution-with-carousel:hover,
    .impact-card:hover {
        transform: none;
    }
    
    .carousel-prev:hover,
    .carousel-next:hover,
    .btn-website:hover,
    .scroll-down:hover {
        transform: none;
    }
    
    .floating-card:hover {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .stat-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .feature:hover {
        background-color: var(--primary-light);
    }
}

/* Landscape mode optimizations */
@media (max-height: 600px) and (orientation: landscape) {
    .education-hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: var(--space-lg);
    }
    
    .hero-stats-grid {
        margin-bottom: var(--space-lg);
    }
    
    .floating-cards-container {
        height: 300px;
    }
    
    .floating-card {
        width: 200px;
        padding: var(--space-md);
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg-image {
        background-size: cover;
        background-position: center;
    }
}

/* Print styles */
@media print {
    .education-hero-section {
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-bg-overlay,
    .hero-scroll-indicator,
    .carousel-nav-buttons,
    .swiper-pagination {
        display: none !important;
    }
    
    .floating-cards-container {
        display: none !important;
    }
    
    .hero-bg-image {
        filter: grayscale(100%);
        opacity: 0.3;
    }
}