 /* Hide main content until data loads */
 #content-div {
     display: none;
 }
















 .grid-container {
     columns: 5 200px;
     column-gap: 0.8rem;
     width: 98%;
     margin: 0 auto;
 }

 .grid-container div {
     width: 150px;
     margin: 0 1.5rem 1.5rem 0;
     display: inline-block;
     width: 100%;
     border: solid 1px gray;
     padding: 5px;
     /* box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5); */
     border-radius: 5px;
     transition: all 0.25s ease-in-out;
 }

 .grid-container div:hover img {
     filter: grayscale(0);
 }

 .grid-container div:hover {
     border-color: coral;
 }

 .grid-container div img {
     width: 100%;
     filter: grayscale(75%);
     border-radius: 5px;
     transition: all 0.25s ease-in-out;
 }

 .grid-container div p {
     margin: 5px 0;
     padding: 0;
     text-align: center;
     font-style: italic;
 }


 .section-title {
     background: #d50000;
     color: #fff;
     font-size: 20px;
     font-weight: bold;
     padding: 10px 20px;
     margin: 0;
 }






 .carousel {
     /** Create an anchor for the buttons later on **/
     anchor-name: --carousel;

     /** Set the scroll behaviour & type **/
     scroll-behavior: smooth;
     scroll-snap-type: x mandatory;

     /*
  * Tell the browser where we want to place our marker 
  * https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-marker-group
  */
     scroll-marker-group: after;
 }

 @media (min-width: 768px) {

     /** 
   * Create the buttons
   * https://developer.mozilla.org/en-US/docs/Web/CSS/::scroll-button
  **/
     .carousel::scroll-button(inline-start),
     .carousel::scroll-button(inline-end) {
         display: block;
         content: "\00AB";
         width: 3rem;
         border: none;
         border-radius: 50%;
         position: fixed;
         position-anchor: --carousel;
         position-area: center left;
         cursor: pointer;
         font-size: 2rem;
         background-color: hsl(from var(--brand) h s 20%);
         color: #fff;
         padding-bottom: 0.5rem;
         transform: translate(50%);
         transition: opacity 0.4s ease-in-out;
         z-index: 5;
     }

     /* Adjusting the right button */
     .carousel::scroll-button(inline-end) {
         content: "\00BB";
         position-area: center right;
         transform: translate(-50%);
     }

     /* Controlling disabled buttons */
     .carousel::scroll-button(inline-start):disabled,
     .carousel::scroll-button(inline-end):disabled {
         opacity: 0.4;
         filter: grayscale(100%);
         cursor: default;
     }
 }

 /* Set basic style for the scroll maker group */
 .carousel::scroll-marker-group {
     display: flex;
     gap: 0.25rem;
     justify-content: center;
     align-items: center;
     margin-inline: 20%;
 }

 @media (min-width: 768px) {
     .carousel::scroll-marker-group {
         gap: 0.5rem;
         margin-inline: 0;
     }
 }

 /** Controlling the items **/

 /* Slide for a single card on mobile */
 @media (max-width: 767px) {
     .item {
         scroll-snap-align: center;
     }

     .item:first-child {
         scroll-snap-align: start;
     }

     .item:last-child {
         scroll-snap-align: end;
     }
 }

 /* We want to slide per 3 items on desktop */
 @media (min-width: 768px) {
     .item:nth-child(3n + 1) {
         scroll-snap-align: start;
     }
 }

 /* Styling for the scrollmarker */
 .item::scroll-marker {
     content: "";
     border-top: 0.25rem solid rgb(from var(--brand) r g b / 0.2);
     transition: border-color 0.4s ease-in-out;
     display: none;
 }

 @media (max-width: 767px) {
     .item::scroll-marker {
         flex: 1 1 auto;
         display: block;
     }
 }

 /**
 * Each item will get it's own scroll marker
 * let's hide the one's we don't use
**/
 @media (min-width: 768px) {
     .item:nth-child(3n + 1)::scroll-marker {
         display: block;
         width: 1rem;
         height: 1rem;
         box-sizing: border-box;
     }
 }

 /* Set active state on current active scroll marker */
 .item::scroll-marker:target-current {
     border-color: var(--brand);
 }

 /** General styling **/
 :root {
     --brand: #11abb0;
     --max-width: 1140px;
 }

 ::selection {
     background-color: hsl(from var(--brand) h s 20%);
 }



 .carousel {
     display: flex;
     gap: 1rem;
     width: 100%;
     overflow-x: auto;
     overflow-y: visible;
     margin-inline: auto;
     margin-top: 0rem;
     margin-bottom: 1rem;
 }

 @media (min-width: 768px) {
     .carousel {
         border-radius: 8px;
     }

     .carousel:has(.item:hover) .item:not(:hover) {
         filter: grayscale(25%);
     }
 }

 .carousel::-webkit-scrollbar {
     display: none;
 }

 .item {
     flex: 0 0 80%;
     aspect-ratio: 3 / 4;
     background-color: #444;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 8px;
     font-size: 2rem;
     position: relative;
     overflow: hidden;
     z-index: 1;
     transition: filter 0.4s 1s ease-in-out;
 }

 .item::before {
     content: "";
     border: 2px solid #fff;
     border-radius: 50%;
     border-right-color: transparent;
     opacity: 0.4;
     position: absolute;
     inset: auto;
     display: flex;
     place-content: center;
     align-item: center;
     animation: rotate 1s infinite;
     aspect-ratio: 1 / 1;
     transform-origin: center center;
     vertical-align: middle;
     width: 1rem;
 }

 .item img {
     object-fit: cover;
     position: absolute;
 }

 @media (min-width: 768px) {
     .item {
         /* flex-basis: calc((44% - 2rem) / 3); */
         flex-basis: calc((620% - -5rem) / 51);
     }
 }

 @keyframes rotate {
     from {
         transform: rotate(0deg);
     }

     to {
         transform: rotate(360deg);
     }
 }



 body {
     background-color: #111;
     color: #eee;
     font-family: Monaco, SF Mono, sans-serif;
     font-size: 1.125rem;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
 }

 h1,
 p {
     max-width: var(--max-width);
     margin-inline: auto;
 }

 p {
     opacity: 0.7;
     line-height: 150%;
 }

 em {
     display: block;
 }

 a {
     color: var(--brand);
     text-underline-offset: 5px;
 }








 .note {
     display: flex;
     justify-content: space-between;
     font-size: 0.75em;
     max-width: var(--max-width);
     margin-top: 5rem;
 }

 .warning {
     --color: red;
     --icon: "\00D7";
     font-size: 0.75em;
 }

 .warning .title {
     display: block;
     margin-bottom: 8px;
     opacity: 0.7;
 }

 .warning a {
     text-decoration: none;
 }

 .warning code {
     background-color: hsl(from var(--color) h s 20%);
     color: hsl(from var(--color) h s 80%);
     padding: 4px 6px;
     border-radius: 4px;
 }

 .warning code::before {
     content: var(--icon);
     margin-inline: 4px;
     font-weight: 700;
 }

 @supports (scroll-marker-group: after) {
     .smg {
         --color: green;
         --icon: "\2713";
     }
 }

 @supports selector(::scroll-button(inline-start)) {
     .sb {
         --color: green;
         --icon: "\2713";
     }
 }

 .youtube-thumb {
     position: relative;
     width: 300px;
     height: 180px;
     cursor: pointer;
     overflow: hidden;
 }

 .youtube-thumb img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .play-button {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 60px;
     height: 60px;
     background: rgba(0, 0, 0, 0.6);
     border-radius: 50%;
 }

 .play-button::before {
     content: "▶";
     color: #fff;
     font-size: 28px;
     position: absolute;
     top: 50%;
     left: 40%;
     transform: translate(-40%, -50%);
 }

 /* Modal styling */
 .modal {
     display: none;
     position: fixed;
     z-index: 1000;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.8);
 }

 .modal-content {
     position: relative;
     margin: 5% auto;
     width: 80%;
     max-width: 800px;
     background: #000;
     padding: 0;
 }

 .modal-content iframe {
     width: 100%;
     height: 450px;
     border: none;
 }

 .close {
     position: absolute;
     top: 10px;
     right: 15px;
     color: #fff;
     font-size: 28px;
     cursor: pointer;
 }































 .video-slider {
     position: relative;
     max-width: 100%;
     margin: 4px auto;
     overflow: hidden;
     background: #cc000000;
     padding: 13px;
     border-radius: 6px;
 }

 .video-track {
     display: flex;
     transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
     /* smoother easing */
     will-change: transform;
     /* hint to browser for smoother GPU animation */
 }

 .video-card {
     min-width: 300px;
     margin: 0 8px;
     background: #000;
     border-radius: 6px;
     overflow: hidden;
     flex-shrink: 0;
     position: relative;
 }

 .video-card iframe,
 .video-card img {
     width: 100%;
     height: 170px;
     display: block;
 }

 .nav-btn {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background: rgba(0, 0, 0, 0.5);
     color: #fff;
     border: none;
     font-size: 22px;
     padding: 10px;
     cursor: pointer;
     border-radius: 50%;
     z-index: 10;
 }

 .nav-btn.left {
     left: 5px;
 }

 .nav-btn.right {
     right: 5px;
 }






 /* width: 127px;
    height: 93px;
    object-fit: cover;
    border-radius: 7px; */




 .btn-gradient {
     background: linear-gradient(135deg, #791f1f, #ff0000);
     color: #fff;
     border: none;
     border-radius: 4px;
     padding: 1px 15px;
     font-size: 14px;
     font-weight: 500;
     transition: all 0.3s ease;
 }

 .btn-gradient:hover {
     background: linear-gradient(135deg, #ff0000, #791f1f);
     /* reversed */
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(106, 4, 0, 0.4);
 }

 .btn-gradient:active {
     transform: scale(0.97);
 }








 .news-item {
     display: flex;
     align-items: flex-start;
     /* image + text align at top */
 }

 .image-thumb {
     width: 138px;
     /* fixed width */
     height: 91px;
     /* fixed height */
     object-fit: cover;
     /* crop without stretching */
     border-radius: 5px;
     /* rounded corners */
     flex-shrink: 0;
     /* don’t shrink */
     margin-right: 12px;
     /* space between image & text */
 }

 .news-item .fw-semibold {
     font-size: 15px;
     line-height: 1.3;
     margin-bottom: 4px;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     /* show only 2 lines */
     -webkit-box-orient: vertical;
     overflow: hidden;
     /* add ellipsis for long text */
 }

 .news-item small {
     font-size: 13px;
 }



 .category-posts {
     max-height: 500px;
     /* adjust height as needed */
     overflow-y: auto;
     /* enable vertical scroll */
     overflow-x: hidden;
     /* prevent horizontal scroll */
     padding-right: 5px;
     /* space so scrollbar doesn’t overlap text */
 }

 /* Optional: style scrollbar for better look */
 .category-posts::-webkit-scrollbar {
     width: 6px;
 }

 .category-posts::-webkit-scrollbar-thumb {
     background: #aaa;
     border-radius: 3px;
 }

 .category-posts::-webkit-scrollbar-thumb:hover {
     background: #666;
 }




















 .slider-container {
     width: 100%;
     max-width: 90vw;
     position: relative;
     overflow: hidden;
     border-radius: 2px;
     box-shadow: 0 7px 31px rgba(0, 0, 0, 0.3);
     z-index: 5;
     background: rgb(10 10 10 / 22%);
     backdrop-filter: blur(1px);
     -webkit-backdrop-filter: blur(10px);
     padding: 2px;
     border: 1px solid rgba(255, 255, 255, 0.2);
     animation: appear 1s ease-out;
 }


 /* .slider-container {
     width: 100%;
     max-width: 90vw;
     position: relative;
     overflow: hidden;
     border-radius: 10px;
     box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
     z-index: 5;
     background: rgba(0, 0, 0, 0.2);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     padding: 15px;
     border: 1px solid rgba(255, 255, 255, 0.2);
     animation: appear 1s ease-out;
 } */

 @keyframes appear {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .slider {
     position: relative;
     height: 450px;
     overflow: hidden;
 }

 .slide {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     opacity: 0;
     z-index: 1;
     transition: opacity 0.5s ease;
     overflow: hidden;
     pointer-events: none;
 }

 .slide.active {
     opacity: 1;
     z-index: 2;
     pointer-events: auto;
 }

 .slide img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     /* transition: transform 8s ease-in-out; */
 }

 /* .slide.active img {
     transform: scale(1.1);
 } */

 .slide-content {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     padding: 20px;
     background: linear-gradient(#00000000, rgb(0 0 0));
     color: white;
     transform: translateY(100%);
     transition: transform 0.7s ease, opacity 0.5s ease;
     opacity: 0;
 }

 /* .slide-content {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     padding: 20px;
     background: linear-gradient(#00000094, rgb(0 0 0 / 84%));     ;
     color: white;
     transform: translateY(100%);
     transition: transform 0.7s ease, opacity 0.5s ease;
     opacity: 0;
 } */

 .slide.active .slide-content {
     transform: translateY(0);
     opacity: 1;
     transition-delay: 0.3s;
 }

 .slide:hover .slide-content {
     transform: translateY(0);
     opacity: 1;
 }

 /* Slide title and description parallax effects */
 .slide-title {
     /* transform: translateX(-50px); */
     opacity: 0;
     /* transition: transform 1s ease, opacity 1s ease; */
     transition-delay: 0.2s;
     font-size: 1.5rem;
     margin-bottom: 8px;
 }

 /* .slide-description {
     transform: translateX(50px);
     opacity: 0;
     transition: transform 1s ease, opacity 1s ease;
     transition-delay: 0.4s;
     font-size: 1rem;
     opacity: 0.9;
 } */

 .slide.active .slide-title,
 .slide.active .slide-description {
     transform: translateX(0);
     opacity: 1;
 }

 /* Navigation arrows */
 .navigation {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 20;
     pointer-events: none;
 }

 .nav-btn {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background-color: rgba(255, 255, 255, 0.7);
     color: #333;
     border: none;
     border-radius: 50%;
     width: 50px;
     height: 50px;
     cursor: pointer;
     display: flex;
     justify-content: center;
     align-items: center;
     font-size: 1.5rem;
     transition: all 0.3s ease;
     pointer-events: auto;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     z-index: 30;
 }

 .nav-btn.prev {
     left: 20px;
     background-color: rgba(255, 255, 255, 0.103);
     color: #eee;

 }

 .nav-btn.next {
     right: 20px;
     background-color: rgba(255, 255, 255, 0.103);
     color: #eee;


 }

 .nav-btn:hover {
     background-color: rgba(255, 255, 255, 0.37);
     transform: translateY(-50%) scale(1.1);
     color: #fcd9d9;

 }

 /* Dots indicators */
 .dots-container {
     display: flex;
     justify-content: center;
     position: absolute;
     bottom: 4px;
     width: 100%;
     z-index: 10;
 }

 .dot {
     width: 3px;
     height: 3px;
     border-radius: 50%;
     margin: 0 5px;
     background-color: rgba(255, 255, 255, 0.5);
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .dot.active {
     background-color: white;
     transform: scale(1.2);
 }

 /* Animation keyframes for transitions */
 /* @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 } */

 /* @keyframes slideInRight {
     from {
         transform: translateX(50px);
         opacity: 0;
     }

     to {
         transform: translateX(0);
         opacity: 1;
     }
 }

 @keyframes slideInLeft {
     from {
         transform: translateX(-50px);
         opacity: 0;
     }

     to {
         transform: translateX(0);
         opacity: 1;
     }
 } */

 /* @keyframes zoomIn {
     from {
         transform: scale(1.2);
         opacity: 0;
     }

     to {
         transform: scale(1);
         opacity: 1;
     }
 } */

 /* @keyframes slideInUp {
     from {
         transform: translateY(50px);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 } */

 /* Transition effect classes */
 /* .transition-fade .slide-content {
     animation: fadeIn 1s forwards;
 }

 .transition-slideRight .slide-content {
     animation: slideInRight 1s forwards;
 }

 .transition-slideLeft .slide-content {
     animation: slideInLeft 1s forwards;
 }

 .transition-zoom .slide-content {
     animation: zoomIn 1s forwards;
 }

 .transition-slideUp .slide-content {
     animation: slideInUp 1s forwards;
 } */

















 /* 🔹 First big post image */
 .main-img {
     height: auto;
     object-fit: cover;
     width: 100%;
 }

 /* 🔹 Smaller post images */
 /* .side-img {
      height: 180px;
      width: 100%;
      object-fit: cover;
    } */
 .side-img-box {
     width: 100%;
     height: 200px;
     /* ✅ Fixed height (adjust as you like: 180px, 220px, etc.) */
     overflow: hidden;
     /* hides overflow */
     display: flex;
     align-items: center;
     justify-content: center;
     background: #f8f9fa;
     /* optional gray bg */
 }

 .side-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     /* ✅ crop nicely, keeps aspect ratio */
 }

 /* 🔹 Uniform text preview */
 .card-text {
     overflow: hidden;
     text-overflow: ellipsis;
     display: -webkit-box;
     -webkit-line-clamp: 3;
     /* Show max 3 lines */
     -webkit-box-orient: vertical;
 }

 /* 🔹 Card hover effect */
 .card:hover {
     transform: translateY(-3px);
     transition: all 0.2s ease-in-out;
     /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); */
 }



/* Main content scrollable */
.content-scroll {
  max-height: 110vh;   /* Adjust height as needed */
  overflow-y: auto;   /* Enable vertical scroll */
  padding-right: 10px;
    /* Hide scrollbar but keep scroll working */
  scrollbar-width: none;   /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}


.content-scroll::-webkit-scrollbar {
  display: none;  /* Chrome, Safari */
}

/* Sidebar fixed (sticky) */
.sticky-sidebar {
  position: sticky;
  top: 80px; /* distance from top (header space) */
}













/* .ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ticker-content {
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.ticker-content p {
    display: inline-block;
    padding-left: 100%;
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
} */




.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%); /* start off-screen */
  }
  100% {
    transform: translateX(-100%); /* move fully left */
  }
}









.error-card {
        border: 1.5px solid #79030efa;
        border-radius: .6rem;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        background: #fff;
    }

    .error-code {
        font-size: 6rem;
        font-weight: 900;
        color: #79030efa;
        text-shadow: 2px 2px 6px rgba(121, 3, 14, 0.3);
        animation: bounce 1.5s infinite;
    }

    .error-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: #333;
    }

    .error-text {
        font-size: 1rem;
        color: #666;
        margin-bottom: 2rem;
    }

    .btn-home {
        background: linear-gradient(45deg, #79030efa, #ff416c);
        border: none;
        color: #fff;
        font-weight: 600;
        padding: 12px 28px;
        border-radius: 30px;
        transition: all 0.3s ease;
    }

    .btn-home:hover {
        background: linear-gradient(45deg, #ff416c, #79030efa);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    /* Animation for 404 code */
    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-20px);
        }

        60% {
            transform: translateY(-10px);
        }
    }
