:root {
    --primary-color: {{ $school->primary_color ?? '#1e40af' }};
    --secondary-color: {{ $school->secondary_color ?? '#1f2937' }};
    --hero-gradient-color: {{ $school->hero_gradient_color ?? '#3b82f6' }};
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
    background-color: var(--primary-color);
    color: var(--white);
}

@media (max-width: 400px) {
    .carousel-inner {
        height: 48vh;
    }
}


/* Fallback Hero Section */
.hero-fallback-section {
    position: relative;
    height: auto;
    min-height: 400px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent horizontal scroll */
    max-width: 100vw;
    box-sizing: border-box;
    /* Ensure proper containment */
    contain: layout style;
    padding: 2rem 0;
}

/* Dynamic Background with Multiple Gradients */
.hero-fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    animation: gradientShift 20s ease-in-out infinite;
    z-index: 1;
}

.hero-fallback-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--hero-gradient-color) 100%);
    opacity: 0;
    animation: gradientShift 20s ease-in-out infinite reverse;
    z-index: 2;
}

.hero-fallback-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hero-gradient-color) 0%, var(--accent-color) 100%);
    opacity: 0;
    animation: gradientShift 20s ease-in-out infinite;
    animation-delay: -6.67s;
    z-index: 3;
}

/* Animated Background Elements */
.hero-fallback-bg .bg-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.hero-fallback-bg .bg-element:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-fallback-bg .bg-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.hero-fallback-bg .bg-element:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.hero-fallback-bg .bg-element:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.hero-fallback-bg .bg-element:nth-child(5) {
    width: 120px;
    height: 120px;
    bottom: 40%;
    right: 10%;
    animation-delay: 3s;
}

/* Content Container */
.hero-fallback-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 1.5rem;
    animation: fadeInUp 1s ease-out;
    /* Prevent content overflow */
    width: 100%;
    box-sizing: border-box;
    /* Ensure proper word wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* School Badge */
.hero-fallback-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem !important;
    animation: slideInDown 0.8s ease-out;
}

.hero-fallback-badge i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Main Title */
.hero-fallback-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Subtitle */
.hero-fallback-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Action Buttons */
.hero-fallback-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    /* Prevent button overflow */
    width: 100%;
    box-sizing: border-box;
}

.hero-fallback-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Ensure buttons don't break */
    min-width: 120px;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

.hero-fallback-btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.hero-fallback-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
    color: var(--white);
}

.hero-fallback-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.hero-fallback-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: var(--white);
}

.hero-fallback-btn i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Features Grid */
.hero-fallback-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.8s both;
    /* Prevent grid overflow */
    width: 100%;
    box-sizing: border-box;
}

.hero-fallback-feature {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    /* Ensure features don't break */
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-fallback-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-fallback-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.hero-fallback-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-fallback-feature-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--white);
}

/* Scroll Indicator */
.hero-fallback-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.hero-fallback-scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-fallback-scroll-btn:hover {
    opacity: 1;
    color: var(--white);
}

.hero-fallback-scroll-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-fallback-scroll-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    33% {
        opacity: 0;
    }
    66% {
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
/* Large Desktop */
@media (max-width: 1400px) {
    .hero-fallback-content {
        padding: 2rem;
        max-width: 1200px;
    }
    
    .hero-fallback-features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

/* Specific breakpoint for 800px screens (like 792x832) */
@media (max-width: 800px) {
    .hero-fallback-section {
        height: auto;
        min-height: 500px;
        padding: 1.5rem 0;
    }
    
    .hero-fallback-content {
        padding: 1.25rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: 1rem;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-fallback-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-fallback-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: auto;
        max-width: 200px;
    }
    
    .hero-fallback-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .hero-fallback-feature {
        padding: 1rem;
    }
    
    .hero-fallback-feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .hero-fallback-feature-title {
        font-size: 1rem;
    }
    
    .hero-fallback-feature-desc {
        font-size: 0.85rem;
    }
}

/* Specific breakpoint for 700px screens */
@media (max-width: 700px) {
    .hero-fallback-section {
        height: auto;
        min-height: 450px;
        padding: 1.25rem 0;
    }
    
    .hero-fallback-content {
        padding: 1rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.8rem, 4.5vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.9rem, 2.2vw, 1.1rem);
        margin-bottom: 1.25rem;
    }
    
    .hero-fallback-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-fallback-btn {
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 220px;
    }
    
    .hero-fallback-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        margin-top: 1.25rem;
    }
    
    .hero-fallback-feature {
        padding: 0.875rem;
    }
    
    .hero-fallback-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-fallback-feature-title {
        font-size: 0.95rem;
    }
    
    .hero-fallback-feature-desc {
        font-size: 0.8rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-fallback-content {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .hero-fallback-features {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    }
}

/* Large Tablet - Hide all feature cards below 993px */
@media (max-width: 992px) {
    .hero-fallback-section {
        height: auto;
        min-height: 300px;
        padding: 1.5rem 0;
    }
    
    .hero-fallback-content {
        padding: 1.5rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(1rem, 2vw, 1.2rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-fallback-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-fallback-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: auto;
        max-width: 200px;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
}

/* Tablet Design */
@media (max-width: 768px) {
    .hero-fallback-section {
        height: auto;
        min-height: 280px;
        padding: 1.25rem 0;
    }
    
    .hero-fallback-content {
        padding: 1.25rem;
        max-width: 100%;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-fallback-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .hero-fallback-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
    
    .hero-fallback-bg .bg-element {
        display: none;
    }
    
    .hero-fallback-scroll {
        display: none;
    }
}

/* Medium Tablet */
@media (max-width: 640px) {
    .hero-fallback-section {
        height: auto;
        min-height: 280px;
        padding: 1.25rem 0;
    }
    
    .hero-fallback-content {
        padding: 1rem;
    }
    
    .hero-fallback-badge {
        font-size: 0.75rem;
        margin-bottom: 0.7rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.7rem, 5vw, 2.3rem);
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
        margin-bottom: 1.25rem;
        line-height: 1.3;
    }
    
    .hero-fallback-actions {
        margin-bottom: 1.5rem;
    }
    
    .hero-fallback-btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.92rem;
        max-width: 230px;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
}

/* Medium Mobile */
@media (max-width: 500px) {
    .hero-fallback-section {
        height: auto;
        min-height: 240px;
        padding: 1rem 0;
    }
    
    .hero-fallback-content {
        padding: 0.75rem;
    }
    
    .hero-fallback-badge {
        font-size: 0.72rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.6rem, 7.2vw, 2rem);
        margin-bottom: 0.4rem;
        line-height: 1.1;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.82rem, 3.6vw, 0.95rem);
        margin-bottom: 0.9rem;
        line-height: 1.3;
    }
    
    .hero-fallback-actions {
        margin-bottom: 1.2rem;
    }
    
    .hero-fallback-btn {
        padding: 0.75rem 1.3rem;
        font-size: 0.87rem;
        max-width: 210px;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
}

/* Mobile Design - Optimized for Mobile */
@media (max-width: 576px) {
    .hero-fallback-section {
        height: auto;
        min-height: 200px;
        padding: 1rem 0;
    }
    
    .hero-fallback-content {
        padding: 0.75rem;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .hero-fallback-badge {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-fallback-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-fallback-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
}

/* Specific breakpoint for iPhone SE and similar (375px) */
@media (max-width: 375px) {
    .hero-fallback-section {
        height: auto;
        min-height: 180px;
        padding: 0.75rem 0;
    }
    
    .hero-fallback-content {
        padding: 0.5rem;
    }
    
    .hero-fallback-badge {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: 0.25rem;
        line-height: 1.1;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.8rem, 4vw, 0.95rem);
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .hero-fallback-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-fallback-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
}

/* Additional breakpoint for 480px screens */
@media (max-width: 480px) {
    .hero-fallback-section {
        height: auto;
        min-height: 220px;
        padding: 0.75rem 0;
    }
    
    .hero-fallback-content {
        padding: 0.5rem;
    }
    
    .hero-fallback-badge {
        font-size: 0.72rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.7rem, 7.5vw, 2.1rem);
        margin-bottom: 0.4rem;
        line-height: 1.1;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.85rem, 3.8vw, 0.98rem);
        margin-bottom: 0.9rem;
        line-height: 1.3;
    }
    
    .hero-fallback-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-fallback-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
    
    .hero-fallback-bg .bg-element {
        display: none;
    }
    
    .hero-fallback-scroll {
        display: none;
    }
}

/* Small Mobile Design */
@media (max-width: 480px) {
    .hero-fallback-section {
        height: auto;
        min-height: 350px;
        padding: 1.5rem 0;
    }
    
    .hero-fallback-content {
        padding: 0.75rem;
        height: auto;
    }
    
    .hero-fallback-badge {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.4rem, 8vw, 1.8rem);
        margin-bottom: 0.25rem;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.8rem, 4vw, 0.9rem);
        margin-bottom: 1rem;
    }
    
    .hero-fallback-actions {
        margin-bottom: 1rem;
    }
    
    .hero-fallback-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        max-width: 220px;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
    
    .hero-fallback-feature {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .hero-fallback-feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .hero-fallback-feature-title {
        font-size: 0.95rem;
    }
    
    .hero-fallback-feature-desc {
        font-size: 0.8rem;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-fallback-bg {
        background-size: cover;
    }
}

/* Print Styles */
@media print {
    .hero-fallback-section {
        height: auto;
        min-height: auto;
        background: var(--primary-color) !important;
    }
    
    .hero-fallback-bg,
    .hero-fallback-bg::before,
    .hero-fallback-bg::after {
        display: none;
    }
    
    .hero-fallback-content {
        color: var(--white) !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-fallback-bg,
    .hero-fallback-bg::before,
    .hero-fallback-bg::after,
    .hero-fallback-bg .bg-element {
        animation: none;
    }
    
    .hero-fallback-content * {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-fallback-badge {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .hero-fallback-feature {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Mobile Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hero-fallback-btn {
        min-height: 44px; /* Apple's recommended touch target size */
    }
    
    .hero-fallback-feature {
        min-height: 60px;
    }
    
    .hero-fallback-badge {
        min-height: 44px;
    }
}

/* Extra Mobile Optimization - Reduce Space Further */
@media (max-width: 576px) {
    .hero-fallback-section {
        padding: 0.75rem 0;
    }
    
    .hero-fallback-content {
        padding: 0.5rem;
    }
    
    .hero-fallback-title {
        margin-bottom: 0.25rem;
    }
    
    .hero-fallback-subtitle {
        margin-bottom: 0.75rem;
    }
    
    .hero-fallback-actions {
        margin-bottom: 1rem;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
}

/* Very Small Mobile */
@media (max-width: 400px) {
    .hero-fallback-section {
        padding: 0.5rem 0;
        min-height: 200px;
    }
    
    .hero-fallback-content {
        padding: 0.4rem;
    }
    
    .hero-fallback-badge {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.3rem, 6.5vw, 1.7rem);
        margin-bottom: 0.25rem;
        line-height: 1.1;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.75rem, 3.8vw, 0.88rem);
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .hero-fallback-actions {
        margin-bottom: 0.75rem;
    }
    
    .hero-fallback-btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.82rem;
        max-width: 190px;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
}

/* Landscape Mobile Optimization */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-fallback-section {
        height: 100vh;
        min-height: 100vh;
        padding: 0.5rem 0;
    }
    
    .hero-fallback-content {
        padding: 0.5rem;
        justify-content: flex-start;
        padding-top: 1rem;
    }
    
    .hero-fallback-badge {
        margin-bottom: 0.5rem;
        font-size: 0.7rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 0.25rem;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-fallback-actions {
        margin-bottom: 0.75rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .hero-fallback-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        max-width: 150px;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
    
    .hero-fallback-feature {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .hero-fallback-feature-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero-fallback-feature-title {
        font-size: 0.8rem;
    }
    
    .hero-fallback-feature-desc {
        font-size: 0.7rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .hero-fallback-section {
        min-height: 800px;
    }
    
    .hero-fallback-content {
        padding: 4rem;
        max-width: 1400px;
    }
    
    .hero-fallback-title {
        font-size: clamp(4rem, 3vw, 6rem);
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(1.5rem, 1.5vw, 2rem);
    }
    
    .hero-fallback-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .hero-fallback-feature {
        padding: 2rem;
    }
    
    .hero-fallback-feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .hero-fallback-feature-title {
        font-size: 1.3rem;
    }
    
    .hero-fallback-feature-desc {
        font-size: 1rem;
    }
}

/* Additional fixes for common screen sizes */
@media (max-width: 900px) and (min-width: 769px) {
    .hero-fallback-section {
        height: auto;
        min-height: 400px;
        padding: 1.5rem 0;
    }
    
    .hero-fallback-content {
        padding: 1.25rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
        margin-bottom: 1rem;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-fallback-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-fallback-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: auto;
        max-width: 200px;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
}

/* Fix for screens between 600px and 700px */
@media (max-width: 600px) and (min-width: 577px) {
    .hero-fallback-section {
        height: auto;
        min-height: 250px;
        padding: 1rem 0;
    }
    
    .hero-fallback-content {
        padding: 0.75rem;
    }
    
    .hero-fallback-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-fallback-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        margin-bottom: 1.25rem;
    }
    
    .hero-fallback-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-fallback-btn {
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 220px;
    }
    
    /* Hide all feature cards below 993px */
    .hero-fallback-features {
        display: none;
    }
}
