/* Vaikom Vartha - Header Reset Version */


#vaikom-custom-header :root {
    --header-brand-color: #667eea;
    --header-ad-color: #f5576c;
    --header-text-dark: #2c3e50;
    --header-text-light: #7f8c8d;
}

/* --- LAYER 1: TOP BAR STYLES --- */


#vaikom-custom-header .top-bar {
    background: #ffffff; /* UPDATED: White background */
    color: var(--header-text-dark); /* UPDATED: Dark text for readability */
    border-bottom: 1px solid #eef;
    position: relative;
    overflow: hidden;
}

#vaikom-custom-header .top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    position: relative;
    z-index: 2;
}

#vaikom-custom-header .top-bar-left,
#vaikom-custom-header .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1rem;
}

#vaikom-custom-header #top-bar-weather {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--header-text-dark);
}

/* NEW: Subtle glow animation for the weather icon */
#vaikom-custom-header #top-bar-weather i {
    color: #2c3e50; /* Black icon color */
    animation: weather-glow 3s ease-in-out infinite;
}


#vaikom-custom-header #top-bar-weather .weather-icon {
    display: inline-block; /* Required for animations to work properly */
}

/* Specific animations for each weather type */
#vaikom-custom-header .weather-icon.sunny { animation: sunRotate 12s linear infinite; }
#vaikom-custom-header .weather-icon.cloudy { animation: cloudFloat 5s ease-in-out infinite; }
#vaikom-custom-header .weather-icon.rainy { animation: rainDrop 2.5s ease-in-out infinite; }

@keyframes sunRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes cloudFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}
@keyframes rainDrop {
    0%, 100% { transform: translateY(0px) rotate(-10deg); }
    50% { transform: translateY(3px) rotate(10deg); }
}

/* Animation for the date icon */
#vaikom-custom-header #top-bar-date-time .date-icon {
    animation: dateIconPulse 4s ease-in-out infinite;
    margin-right: 8px;
}
@keyframes dateIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Animation for the temperature text */
#vaikom-custom-header .temperature {
    font-weight: 600;
    animation: temperaturePulse 8s ease-in-out infinite;
}
@keyframes temperaturePulse {
    0%, 100% { color: #e74c3c; } /* Reddish-orange */
    50% { color: #f39c12; } /* Golden */
}

/* Animation for the weather condition text */
#vaikom-custom-header .weather-condition {
    animation: conditionFade 6s ease-in-out infinite;
}
@keyframes conditionFade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

#vaikom-custom-header #top-bar-date-time {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--header-text-dark);
}

#vaikom-custom-header .separator {
    color: #e74c3c; /* Reddish-orange color */
    margin: 0 8px;
    font-weight: bold;
}

/* NEW: Minimal social button styles */
#vaikom-custom-header .social-links {
    display: flex;
    gap: 15px;
}

#vaikom-custom-header .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    color: #333; /* Black icon color */
    transition: all 0.3s ease;
}

#vaikom-custom-header .social-btn:hover {
    color: #e74c3c; /* Reddish-orange on hover */
    transform: scale(1.2);
}

#vaikom-custom-header .share-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
/* --- LAYER 2: MAIN HEADER STYLES --- */
#vaikom-custom-header .main-header { background: #fff; border-bottom: 1px solid #eef; padding: 12px 60px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
#vaikom-custom-header .main-header-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
#vaikom-custom-header .logo-section { display: flex; align-items: center; flex-grow: 1; }
#vaikom-custom-header .logo-branding { display: flex; align-items: center; gap: 20px; text-decoration: none; color: inherit; flex-shrink: 0; }
#vaikom-custom-header .logo-circle { width: 70px; height: 70px; background: var(--header-brand-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin: 0 !important; }
#vaikom-custom-header .site-icon { width: 95%; height: 95%; object-fit: cover; border-radius: 50%; }
#vaikom-custom-header .logo-container { display: flex; margin: 0 !important; }
#vaikom-custom-header .site-logo { max-height: 75px; width: auto; object-fit: contain; margin: 0; box-shadow: none !important; filter: none !important; }
#vaikom-custom-header .site-title { font-size: 2rem; color: var(--header-text-dark); margin: 0; }

/* --- LAYER 3: CUSTOM NAVIGATION --- */
#vaikom-custom-header .main-navigation { background: #fff; border-bottom: 1px solid #f0f0f0; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04); }
#vaikom-custom-header .main-navigation-content { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: center; }
#vaikom-custom-header .main-navigation .nav { display: flex; margin: 0; padding: 0; list-style: none; }
#vaikom-custom-header .main-navigation .nav a { display: block; padding: 14px 20px; color: var(--header-text-dark); font-size: 1.2rem; font-weight: 600; text-decoration: none; text-transform: uppercase; transition: all 0.2s ease; position: relative; }
#vaikom-custom-header .main-navigation .nav a:hover { color: var(--header-brand-color); }



#vaikom-custom-header .main-navigation .nav .nav-current a { color: var(--header-brand-color); box-shadow: inset 0 -3px 0 var(--header-brand-color); }


/* Ad Banner Styles for Slider */
#vaikom-custom-header .ad-banner-section.swiper { width: 600px; height: 120px; border-radius: 10px; overflow: hidden; position: relative; background: #f0f2f5; cursor: pointer; }
#vaikom-custom-header .swiper-slide { display: block; width: 100%; height: 100%; }
#vaikom-custom-header .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
/* --- NEW: Custom Top-to-Bottom Flip Animation --- */

/* Create the 3D space for the animation */
#vaikom-custom-header .ad-banner-section.swiper {
    perspective: 1200px;
}

/* Prepare the slides for 3D transformation */
#vaikom-custom-header .swiper-wrapper {
    transform-style: preserve-3d;
}

/* Create the 3D space for the animation */
#vaikom-custom-header .ad-banner-section.swiper {
    perspective: 1200px;
}
/* ... (and all the other rules down to the end of the block) ... */
#vaikom-custom-header .swiper-slide-active {
    transform: rotateX(0deg);
}















@media (max-width: 1280px) {
    #vaikom-custom-header .main-header {
        padding: 15px 20px;
    }
    #vaikom-custom-header .logo-circle {
        width: 55px;
        height: 55px;
    }
    #vaikom-custom-header .site-logo {
        max-height: 45px;
    }
    #vaikom-custom-header .ad-banner-section.swiper {
        width: 420px;
        height: 84px;
    }
    #vaikom-custom-header .site-description {
        display: none;
    }

}

/* --- For Small Tablets (992px and below) --- */
/* At this point, the header STACKS vertically. */
@media (max-width: 992px) {
    #vaikom-custom-header .main-header-content {
        flex-direction: column;
        gap: 20px;
    }
    #vaikom-custom-header .ad-banner-section.swiper {
        width: 100%;
        max-width: 500px;
        height: 100px; /* Defines the height for this size */
    }
}

/* --- For Mobile Phones (768px and below) --- */
/* This adds the final tweaks for the smallest screens. */
@media (max-width: 768px) {
    /* The header is already stacked, we just make the ad banner smaller */
    #vaikom-custom-header .ad-banner-section.swiper {
        max-width: 350px;
        height: 70px;
    }
    
    #vaikom-custom-header .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Use 'contain' for mobile to prevent cropping */
    }

    #vaikom-custom-header .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    #vaikom-custom-header .top-bar-right {
        width: 100%;
        justify-content: center;
    }

    #vaikom-custom-header .main-navigation-content {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 10px;
    }
    #vaikom-custom-header .main-navigation-content::-webkit-scrollbar {
        display: none;
    }
    #vaikom-custom-header .main-navigation .nav a {
        white-space: nowrap;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
     #vaikom-custom-header .top-bar-left {
        display: none;
    }
    #vaikom-custom-header .top-bar-right {
        flex-grow: 1;
        justify-content: center;
    }
}








