/* Additional Custom Styles */
.mobile-menu-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu-show {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* Fix for sticky header */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.97);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .news-card img {
        height: 200px;
    }
    
    .line-clamp-2 {
        -webkit-line-clamp: 2;
    }
    
    .line-clamp-3 {
        -webkit-line-clamp: 3;
    }
    
    .marquee {
        font-size: 0.875rem;
    }
}

/* Tamil font optimization */
.tamil-text {
    font-feature-settings: "tnum", "salt", "ss01";
    text-rendering: optimizeLegibility;
}

/* Smooth animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ad-animate-wrapper {
    width: 100%;
}

/* animation goes here */
.ad-animate-wrapper a {
    position: relative;
    display: block;
    padding: 3px;               /* border thickness */
    border-radius: 12px;
    overflow: hidden;
}

/* animated border */
.ad-animate-wrapper a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #22c55e,
        #3b82f6,
        #ec4899,
        #22c55e
    );
    background-size: 300% 300%;
    animation: borderMove 4s linear infinite;
    z-index: 0;
}

/* image layer */
.ad-animate-wrapper img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: #fff;
}



/* Animation */
@keyframes borderMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Label common */
.ad-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 999px;
    z-index: 10;
}

/* Start label */
.ad-label.start {
    background: #16a34a;
    color: white;
}

/* End label */
.ad-label.end {
    background: #dc2626;
    color: white;
}
