/* ========================================
   Front Page Styles - W3C Validated
   ======================================== */

/* Hero Section Container */
.hero-container {
    display: block;
    width: 100%;
    overflow: hidden;
    max-width: 100%;
    visibility: visible;
    opacity: 1;
}

/* Dynamic Hero Section */
.dynamic-hero {
    display: block;
    width: 100%;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
}

/* Static Hero Section (Fallback) - Hidden by default */
.static-hero {
    display: none !important;
}

/* Only show static hero if STQC slider fails */
.static-hero.show-fallback {
    display: block !important;
}

/* Static Hero Styles - Only used as fallback */
.static-hero.country-style {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.static-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.static-hero .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.static-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.static-hero .hero-container {
    position: relative;
    width: 100%;
    z-index: 3;
}

.static-hero .hero-wrapper {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 0 3rem;
}

.static-hero .hero-content {
    max-width: 500px;
    color: white;
    padding: 2.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0.5rem;
}

.static-hero .hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.static-hero .hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.static-hero .hero-buttons {
    display: flex;
    gap: 1rem;
}

.static-hero .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.static-hero .country-btn i {
    transition: transform 0.3s ease;
}

.static-hero .country-btn:hover i {
    transform: translateX(5px);
}

/* Static Hero Responsive styles */
@media (max-width: 768px) {
    .static-hero.country-style {
        height: auto;
        min-height: 400px;
    }
    
    .static-hero .hero-wrapper {
        padding: 0 1rem;
    }
    
    .static-hero .hero-content {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .static-hero .hero-title {
        font-size: 2rem;
    }
    
    .static-hero .hero-description {
        font-size: 1rem;
    }
    
    .static-hero .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .static-hero .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Critical News Ticker Container */
.critical-news-ticker-container {
    display: block;
    visibility: visible;
    opacity: 1;
    width: 100%;
}

/* Emergency Ticker Fix Styles */
.tcl-critical-ticker {
    display: block;
    opacity: 1;
    visibility: visible;
    height: auto;
}

.tcl-ticker-container {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.tcl-ticker-wrapper {
    display: block;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
}

.tcl-ticker-list {
    display: flex;
    opacity: 1;
    visibility: visible;
    animation: ticker-scroll 20s linear infinite;
}

.tcl-ticker-item {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Ticker Animation */
@keyframes ticker-scroll {
    0% { 
        transform: translateX(100%); 
    }
    100% { 
        transform: translateX(-100%); 
    }
}

/* Header Spacing Fix */
.tcl-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Navigation Spacing Fix */
.tcl-navigation {
    margin-bottom: 0;
    border-bottom: none;
}

/* Hero Section Spacing Fix */
.stqc-hero-section {
    margin-top: -1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        width: 100%;
        max-width: 100%;
    }
    
    .dynamic-hero {
        width: 100%;
    }
    
    .critical-news-ticker-container {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .hero-container,
    .dynamic-hero,
    .static-hero,
    .critical-news-ticker-container {
        display: none;
    }
}

/* Header and Navigation Fixes */
.tcl-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

.tcl-navigation {
    margin-bottom: 0;
    border-bottom: none;
}

.stqc-hero-section {
    margin-top: 0;
    padding-top: 0;
}

/* Footer Tab Order Fix */
.footer-section a,
.gigw-links-list a {
    position: relative;
    z-index: 2;
    outline: none;
}

.footer-section a:focus,
.gigw-links-list a:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Hero Section Fixes */
.hero-media::before {
    z-index: 2;
    opacity: 0.5;
}

.hero-media img {
    position: relative;
    z-index: 1;
}

/* Typography */
.hero-content h2 {
    font-family: 'Georgia', serif;
    line-height: 1.3;
}

.hero-buttons .btn {
    font-family: 'Georgia', serif;
    letter-spacing: 0.03em;
}

/* Button Controls Fix */
.hero-buttons {
    position: relative;
    z-index: 20;
}

.hero-buttons .btn {
    position: relative;
    z-index: 20;
    background-color: var(--secondary);
}

.hero-buttons .btn-outline {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Main Header Styles */
.main-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        height: auto;
        overflow: visible;
    }
    
    .hero-slide {
        height: auto;
        min-height: auto;
        position: relative;
        overflow: visible;
    }
    
    .hero-controls {
        bottom: 0;
        position: relative;
        margin-top: 0;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .hero-content {
        padding-bottom: 20px;
    }
    
    /* Text Content Fixes */
    .hero-content div pre,
    .hero-content div .tw-data-text {
        white-space: normal;
        overflow-wrap: break-word;
        font-family: inherit;
        font-size: 1rem;
        line-height: 1.6;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        max-width: 100%;
        width: 100%;
        text-align: left;
    }
    
    /* Translated Text Fix */
    .hero-content .Y2IQFc[lang="hi"] {
        font-family: inherit;
        line-height: 1.7;
        display: inline-block;
        width: 100%;
        text-align: left;
    }
    
    /* Translation Container Fix */
    #tw-target-text {
        white-space: normal;
        background: transparent;
        border: none;
        margin: 0;
        padding: 0;
        font-family: inherit;
        overflow: visible;
        width: 100%;
        max-width: 100%;
    }
    
    .content-last-updated {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        opacity: 0.8;
    }
    
    .hero-slide {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-credentials {
        margin: 0;
        padding: 0;
    }
    
    .header-container {
        padding: 0 0.5rem;
    }
} 