/* Reset and base styles */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

body {
    font-family: 'Poppins', sans-serif;
    padding: 0;
    padding-top: 90px;
    background: none !important; /* remove old fixed background */
    position: relative;
    z-index: 0;
}

/* Create fixed background layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../Uploads/bg.jpg") no-repeat center center;
    background-size: cover;
    z-index: -1; /* push behind content */
}

.teledrama-container .col {
    padding: 0;
}

.teledrama-container .row {
    gap: 0;
}

.teledrama-container .card {
    margin-bottom: 15px;
}

.container.ts {
    margin: 40px auto 20px !important;
}

.split-right {
    padding: unset !important;
}

.swiper-container {
    margin: 20px auto !important;
}

.facebook-feed {
    height: -webkit-fill-available !important;
}

/* Existing styles */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Navbar (unchanged) */
.navbar.navbar-expand-lg.navbar-light {
    background: rgba(0, 25, 118, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    z-index: 1000;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.navbar-brand img {
    height: 50px;
    max-width: 100%;
}

.nav-item .nav-link {
    color: #fdc206;
    font-size: 18px;
    margin-right: 20px;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-item .nav-link:hover {
    color: #ffffff;
}

.nav-item .live-button {
    display: inline-flex;
    align-items: center;
    background-color: #FFC107;
    color: #1A237E;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 7px;
    animation: pulse 1.5s infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-item .live-button:hover {
    background-color: #ff0000;
    color: #1A237E;
    text-decoration: none;
}

.nav-item .live-button .live-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #1A237E;
    border-radius: 50%;
    margin-right: 5px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Universal margin/padding for mobile devices */
@media (max-width: 767px) {
    .container, .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 80px !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        right: 10px;
        left: auto;
    }

    .swiper-button-prev {
        left: 10px;
        right: auto;
    }

    .navbar-collapse {
        background: rgba(0, 25, 118, 0.1);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-radius: 15px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 10px 0;
    }

    .nav-item .nav-link {
        font-size: 1.2rem;
        margin-right: 0;
    }

    .nav-item .live-button {
        justify-content: center;
        margin-top: 0;
    }

    .navbar.navbar-expand-lg.navbar-light {
        padding: 0.5rem 1rem;
        border-radius: 15px;
    }
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 5px #000000;
}

.card-img-top {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    color: #ffffff;
}

.card-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #ecf0f1;
    margin-bottom: 15px;
}

.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #FFC107;
    color: #1A237E;
    padding: 8px 15px;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.btn.btn-primary:hover {
    background-color: #ff0000;
    color: #1A237E;
    transform: scale(1.05);
    text-decoration: none;
}

/* Pagination */
.pagination .page-link {
    color: #1A237E;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 25, 118, 0.2);
    transition: background-color 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #FFC107;
    color: #1A237E;
    border-color: #FFC107;
}

.pagination .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.5);
    color: #6c757d;
}

.pagination .page-link:hover {
    background-color: #ff0000;
    color: #ffffff;
}

/* Container */
.container.ts {
    padding-bottom: 80px;
}

/* Page title */
h1.page-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #FFC107;
    text-align: left;
    margin-bottom: 20px;
}

/* ========================================== */
/* CORRECTED BANNER SLIDER ELEMENTS           */
/* ========================================== */

.banner-slider {
    position: relative;
    width: 96% !important; /* Creates the small left/right margin */
    max-width: 100%; /* Allows growth but maintains control */
    margin: 40px auto 0 !important; /* Centers horizontally */
    border-radius: 20px;
    overflow: hidden;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: auto !important; /* Allow image to define height */
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* Make active slide relative so it pushes container height */
.banner-slide.active {
    position: relative !important; 
    opacity: 1;
    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: auto !important; /* Full height, no stretching */
    object-fit: contain !important; /* Show full image, no cropping */
    border-radius: 20px;
    display: block;
}

/* Buttons and Dots */
.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: #1A237E;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 20;
}

.banner-prev { left: 15px; }
.banner-next { right: 15px; }

.banner-prev:hover,
.banner-next:hover {
    background: #FFC107;
}

.banner-dots {
    text-align: center;
    padding: 10px 0;
    position: relative;
    z-index: 30;
}

.banner-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.banner-dot.active {
    background: #FFC107;
    transform: scale(1.2);
}

/* Responsive Adjustments for Banner */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
    .banner-slider {
        margin: 20px auto !important;
        width: 94% !important;
    }
    .banner-slides {
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .banner-slider-wrapper {
        padding: 0 10px; 
    }
    .banner-slides {
        height: 250px !important; /* Your confirmed old height */
    }
    .banner-slide img {
        height: 250px !important;
        object-fit: cover !important;
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 50px;
    }
    .banner-slider {
        width: 100% !important; /* Edge to edge on smallest mobile */
        border-radius: 0;
    }
    .banner-slide img {
        border-radius: 0;
    }
    .banner-slides {
        height: auto !important;
    }
}

/* ========================================== */
/* GRID & CARD RESTORATION                    */
/* ========================================== */

/* Restore Bootstrap Grid Behavior */
.row.row-cols-1.row-cols-md-3 > .col {
    flex: 0 0 auto; /* Reset from 100% */
}

@media (max-width: 768px) {
    .banner-slider-wrapper {
        padding: 0 10px; 
    }
    .banner-slides {
        height: 250px !important; /* Fixed height for mobile */
    }
    .banner-slide img {
        border-radius: 15px;
    }
}

@media (max-width: 767px) {
    .row.row-cols-1 > .col {
        flex: 0 0 100%; /* 1 column on mobile */
        max-width: 100%;
    }
}

.card-body {
    padding: 15px; /* Restored standard padding */
}

.facebook-feed {
    height: 400px !important;
}

.split-left,
.split-right {
    padding: 0 !important;
}

.nav-tabs .nav-link.active {
    background-color: #fdc206;
    color: #333;
    font-weight: bold;
}
.nav-tabs .nav-link {
    color: white;
    border-radius: 5px 5px 0 0;
}

