/* Highlight Section Fix for index.html */
/* This CSS fixes the text visibility issues on different screen sizes */

/* Desktop and wider screens - overlapping layout */
@media (min-width: 992px) {
    .highlight-section {
      
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: 80%;
        max-width: 1400px;
        height: 250px;
        position: relative;
        margin-bottom: 30px;
    }

    .highlight-container {
        position: relative;
        top: -100px !important; /* Adjusted negative positioning for smaller height */
        max-width: 1200px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        height: 300px;
        border-radius: 10px;
        padding: 40px 40px;
        margin: 0;
        align-items: center;
    }
    
    .highlight-left p {
        font-size: 2rem !important; /* Desktop font size */
    }
}

/* Tablet and smaller screens - normal flow layout */
@media (max-width: 991px) {
    .highlight-section {
       
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 30px auto;
        width: 80%;
        max-width: 1400px;
        padding: 0;
        height: auto !important;
        min-height: 180px;
        position: relative;
    }

    .highlight-container {
        position: relative;
        top: 0 !important; /* No negative positioning for smaller screens */
        max-width: 100%;
        width: 100%;
        display: flex;
        height: auto;
        min-height: 200px;
        flex-wrap: wrap;
        gap: 2rem;
        background: #0165f2;
        border-radius: 10px;
        padding: 30px;
        margin: 0;
        align-items: center;
    }
    
    .highlight-left p {
        font-size: 1.8rem !important; /* Tablet font size */
    }
}

/* Ensure both columns are visible */
.highlight-left,
.highlight-right {
    flex: 1;
    min-width: 280px;
    display: block;
    visibility: visible;
}

/* Left text styling - base styles (will be overridden by media queries) */
.highlight-left p {
    font-weight: 800;
    font-family: 'Ubuntu', sans-serif;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
}

/* Right text styling */
.highlight-right p {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem); /* Slightly smaller responsive font size */
    font-weight: normal;
    color: #fff;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
}

/* Medium desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .highlight-left p {
        font-size: 2.1rem !important; /* Medium desktop font size */
    }
}

/* Large desktop adjustments */
@media (min-width: 1400px) {
    .highlight-section {
        height: 200px;
    }
    
    .highlight-container {
        top: -120px !important; /* Adjusted negative positioning for smaller height */
        padding: 50px 60px;
        height: 300px;
    }
    
    .highlight-left p {
        font-size: 2.2rem !important; /* Large desktop font size */
    }
}

/* Mobile view (less than 768px) - more specific styling */
@media (max-width: 767px) {
    .highlight-section {
        width: 95% !important;
        margin: 15px auto !important;
        height: auto !important;
    }
    
    .highlight-container {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 1rem !important;
        top: 0 !important; /* Ensure no negative positioning on mobile */
        height: auto !important;
        align-items: stretch !important;
    }
    
    .highlight-left,
    .highlight-right {
        flex: none !important;
        min-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }
    
    .highlight-left p {
        font-size: 1.5rem !important; /* Mobile font size */
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    
    .highlight-right p {
        font-size: 1rem !important;
        text-align: center !important;
    }
}

/* Small mobile devices (less than 480px) */
@media (max-width: 480px) {
    .highlight-section {
        width: 100%;
        border-radius: 0;
    }
    
    .highlight-container {
        padding: 15px;
        border-radius: 0;
    }
    
    .highlight-left p {
        font-size: 1.25rem !important; /* Small mobile font size */
    }
    
    .highlight-right p {
        font-size: 0.95rem;
    }
}

/* Ensure text is always visible - override any conflicting styles */
.highlight-section * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix for any potential overflow issues */
.highlight-section {
    overflow: visible;
}

.highlight-container {
    overflow: visible;
}

/* Ensure proper stacking context */
.highlight-left p,
.highlight-right p {
    position: relative;
    z-index: 1;
}