﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Smooth fade + slide down animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.fade-in-down {
    animation: fadeInDown 0.5s ease forwards;
}

.fade-out-up {
    animation: fadeOutUp 0.5s ease forwards;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0,123,255,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0);
    }
}

#newPostsBanner {
    animation: pulse 2s infinite;
}

/*.news-card {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .news-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }*/

.news-grid {
    margin: 0 auto;
}
/*.news-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
*/
.news-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    width: calc(25% - 15px);
    margin-bottom: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/*.news-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: 0.25s ease;
    cursor: pointer;
    border: 1px solid #ececec;
}*/

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.news-image-wrapper {
    position: relative;
    overflow: hidden;
}

.news-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.news-badge-container {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.news-badge {
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
}

.news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9CA3AF;
    font-size: 13px;
}

    .news-meta i {
        font-size: 15px;
    }

.news-card a {
    text-decoration: none;
    color: inherit;
}
ProdConnection
    .news-card:hover {
        transform: translateY(-6px);
    }

/* Responsive widths */
@media (max-width: 1200px) {
    .news-card {
        width: calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .news-card {
        width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .news-card {
        width: 100%;
    }
}

#loadMoreBtn {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

    #loadMoreBtn:hover {
        background-color: #dc3545;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
    }
.news-image-container {
    position: relative;
}

    .news-image-container img {
        width: 100%;
        display: block;
        border-radius: 6px;
    }

.news-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 10px;
    background-color: rgba(255, 0, 0, 0.6); /* red with medium opacity */
    color: white;
    font-size: 1.0rem;
    font-weight: 600;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    text-align: center;
}
.newsheader-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 10px;
    background-color: #333; /* red with medium opacity rgba(255, 0, 0, 0.6);*/
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    text-align: center;
}

/* Floating Load More Button */
.floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff5858, #ff9a44);
    color: #fff;
    border: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .floating-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }

/* Glow pulse animation */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(255,90,90,0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(255,154,68,0.8);
    }

    100% {
        box-shadow: 0 0 10px rgba(255,90,90,0.4);
    }
}

.floating-btn.pulse {
    animation: glowPulse 1.8s infinite;
}

/* Hide button temporarily when loading */
.floating-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.floating-btn {
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    z-index: 1050;
}

.video-wrapper {
    position: relative;
    cursor: pointer;
}

    .video-wrapper .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 50px;
        color: rgba(255,255,255,0.9);
        text-shadow: 0 0 15px rgba(0,0,0,0.5);
        pointer-events: none;
    }


/* Sticky navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: radial-gradient(circle at top, #1a0000, #000);
    padding: 8px 20px;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
    border-bottom: 2px solid #ff0000;
    animation: navbarPulse 3s infinite alternate;
}

/* Navbar glow */
@keyframes navbarPulse {
    0% {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 100, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    }
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Rotating globe */
.globe {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #00bfff, #00264d);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
    animation: globeSpin 6s linear infinite;
}

@keyframes globeSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Seithi 24/7 banner with 3D waving */
.seithi-banner {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, #ff0000, #ffea00);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 120, 0, 0.9);
    overflow: hidden;
    transform-style: preserve-3d;
    animation: waveBanner 3s ease-in-out infinite;
}

/* Gentle 3D wave motion */
@keyframes waveBanner {
    0%, 100% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: rotateY(5deg) rotateX(3deg);
    }

    50% {
        transform: rotateY(-5deg) rotateX(-3deg);
    }

    75% {
        transform: rotateY(4deg) rotateX(2deg);
    }
}

.seithi-banner span {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffea00, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 50, 0, 0.9);
}

/* Light sweep */
.shine {
    position: absolute;
    top: 0;
    left: -100%;
}


/* --- Floating Seithi 24/7 Banner (Bottom-Right) --- */
/* Floating Seithi 24/7 Banner */
.floating-seithi-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999; /* lowered so other elements like Load icon can show above */
    animation: floatUpDown 3s ease-in-out infinite;
}
/* Make sure Load More icon stays on top */
.load-more-icon, .load-more-button {
    position: relative;
    z-index: 1000; /* higher than the floating banner */
}
/* Make sure Load More icon stays on top */
.load-more-icon, .load-more-button {
    position: relative;
    z-index: 1000; /* higher than the floating banner */
}
/* Floating animation */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Rotating globe */
.floating-seithi-banner .globe {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #00bfff, #00264d);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
    animation: globeSpin 6s linear infinite;
}

@keyframes globeSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Seithi 24/7 banner style */
.floating-seithi-banner .seithi-banner {
    position: relative;
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(90deg, #ff0000, #ffea00);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(255, 120, 0, 0.9);
    animation: bannerPulse 2s infinite alternate;
}

/* Banner glow */
@keyframes bannerPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(255,120,0,0.8);
    }

    50% {
        box-shadow: 0 0 25px rgba(255,150,0,1);
    }
}

/* Gradient text */
.floating-seithi-banner .seithi-banner span {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(90deg, #ffea00, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 6px rgba(255, 50, 0, 0.8);
}

/* Shine animation */
.floating-seithi-banner .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient( 120deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.1) 100% );
    transform: skewX(-20deg);
    animation: shineSweep 3s linear infinite;
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* --- Responsive Behavior --- */
@media (max-width: 768px) {
    .floating-seithi-banner {
        bottom: 10px;
        right: 10px;
        transform: scale(0.8);
    }

        .floating-seithi-banner .seithi-banner span {
            font-size: 18px;
        }
}

@media (max-width: 480px) {
    .floating-seithi-banner {
        display: none; /* hide on very small screens */
    }
}













    /* Webkit scrollbar styling (optional) */
    .news-categories-pills::-webkit-scrollbar {
    display: none;
    }

    .news-categories-pills::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 3px;
    }

/*pills */
/*.news-categories-pills {
    position: fixed;
    top: 10px;*/ /* adjust according to navbar height */
    /*left: 50%;
    transform: translateX(-50%);*/ /* center horizontally */
    /*display: flex;
    gap: 12px;
    padding: 8px 0;
    z-index: 999;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}*/

/* Individual Pill Style */
/*.category-pill {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background-color: transparent;*/ /* no background */
    /*border: 2px solid #ff0000;*/ /* red border */
    /*color: #ff0000;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

    .category-pill:hover,
    .category-pill.active {
        background-color: #ff0000;
        color: white;
        transform: scale(1.05);
    }*/
.news-categories-pills {
    position: fixed;
    top: 00px; /* Adjust based on navbar height */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: unset;
    backdrop-filter: blur(6px);
    border-radius: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1020;
    scroll-behavior: smooth;
}

.category-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: white;
    color: #091ba5;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .category-pill.active {
        background: linear-gradient(90deg, #ff0000, #ffcc00);
        color: #fff;
        box-shadow: 0 0 12px rgba(255, 204, 0, 0.6), 0 0 8px rgba(255, 0, 0, 0.5);
        font-weight: 600;
        border-color: transparent;
        transform: scale(1.05);
    }
    .category-pill:hover {
        background: rgba(255, 0, 0, 0.6);
        transform: translateY(-2px);
    }
    
    /*nsive adjustment for small screens */
@media (max-width: 768px) {
    .news-categories-pills {
        top: 0px;
        gap: 8px;
        padding: 6px 0;
    }

    .category-pill {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
.news-container{
    max-width: 1200px; /* adjust as needed */
    margin: 0 auto;
    padding: 20px;
    /* Push container below navbar + category pills */
    margin-top: 100px; /* adjust according to navbar + pills height */
}






/* Make Fancybox backdrop fully transparent (but with blur) */
/* Transparent blurred backdrop */
.fancybox__container {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Solid article container */
.fancybox__content {
    border-radius: 16px;
    overflow: hidden; /* keep outer box clipped */
    max-height: 90vh; /* limit to viewport */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* allow inner container to scroll */
    height: 100%;
    width: 1000px;
    background-color:black
}

    /* target the inner content area (iframe) to scroll */
    .fancybox__content > iframe,
    .fancybox__content > .fancybox__inner {
        height: 100%;


    }

    /* Glowing "Seithi 24/7" watermark */
    .fancybox__content::after {
        content: "Seithi 24/7";
        position: absolute;
        bottom: 12px;
        right: 18px;
        font-size: 1rem;
        font-weight: bold;
        color: rgba(255, 0, 0, 0.5);
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
        pointer-events: none;
    }

    /* Smooth internal scroll */
    .fancybox__content::-webkit-scrollbar {
        width: 6px;
    }

    .fancybox__content::-webkit-scrollbar-thumb {
        background-color: #ff0000;
        border-radius: 3px;
    }

    .fancybox__content::-webkit-scrollbar-track {
        background: #222;
    }



/* Darken background but keep semi-transparent */
.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.6) !important;
}
@media (max-width: 768px) {
    .news-details-popup .fancybox__content {
        max-width: 95%;
        padding: 10px;
    }
}