.image-carousel {
    position: relative;
    width: 1400px; /* Fixed width */
    max-width: 100%; /* Prevent overflow on smaller screens */
    height: 450px; /* Fixed height */
    margin: 0 auto; /* Center the slider */
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    width: 300%; /* Three images, each taking 100% */
    height: 100%;
    animation: carousel-slide 12s infinite; /* 4s per image */
}

.carousel-item {
    flex: 0 0 33.33%; /* Each item takes 1/3 of the track */
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(30%); /* Low brightness */
    display: block; /* Ensure images render correctly */
}

.carousel-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    text-transform: capitalize;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

/* Animation for sliding */
@keyframes carousel-slide {
    0%, 25% { transform: translateX(0); } /* Show first image */
    33.33%, 58.33% { transform: translateX(-33.33%); } /* Show second image */
    66.66%, 91.66% { transform: translateX(-66.66%); } /* Show third image */
    100% { transform: translateX(0); } /* Loop back to first */
}

/* Responsive design */
@media (max-width: 1400px) {
    .image-carousel {
        width: 100%; /* Full width on smaller screens */
    }
}

@media (max-width: 768px) {
    .carousel-title {
        font-size: 2rem;
        padding: 0 20px;
    }
    .image-carousel {
        height: 350px; /* Adjusted for tablets */
    }
}

@media (max-width: 480px) {
    .carousel-title {
        font-size: 1.5rem;
        padding: 0 15px;
    }
    .image-carousel {
        height: 250px; /* Adjusted for mobiles */
    }
}

/* article  */

.main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Left Column */
.left-column {
    flex: 2;
    min-width: 300px;
}

.social-share {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.share-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.share-btn .fallback-text {
    display: none;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.share-x {
    background-color: #000000;
}

.share-x:hover {
    background-color: #333333;
}

.share-facebook {
    background-color: #3b5998;
}

.share-facebook:hover {
    background-color: #2a4373;
}

.share-bluesky {
    background-color: #0085ff;
}

.share-bluesky:hover {
    background-color: #0066cc;
}

.share-link {
    background-color: #666666;
}

.share-link:hover {
    background-color: #4d4d4d;
}

.article-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.article-content h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 15px;
}

/* Right Column */
.right-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-box {
    width: 300px;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.ad-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider */
.event-slider {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%; /* Fill slide */
    object-fit: cover;
}

.slide-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

/* Slider Buttons */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 10px;
    }

    .left-column, .right-column {
        flex: 1;
        width: 100%;
    }

    .social-share {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .share-btn {
        flex: 0 0 auto;
        min-width: 36px;
    }

    .ad-box, .event-slider {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    .slide-title {
        font-size: 12px; /* Smaller text on mobile */
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .article-content h1 {
        font-size: 20px;
    }

    .article-content p {
        font-size: 14px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
    }

    .share-btn img {
        width: 20px;
        height: 20px;
    }

    .share-btn .fallback-text {
        font-size: 11px;
    }
}




/* Disqus Comment Section */
.xyp_comment_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 1040px; /* Fixed width as requested */
    margin: 0 auto; /* Center the container */
    padding: 20px;
  }
  
  .xyp_comment_left {
    flex: 1;
    min-width: 0;
  }
  
  .xyp_ad_right {
    width: 300px;
    height: 300px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  @media (max-width: 1200px) {
    .xyp_comment_wrapper {
      width: 100%; /* Full width on screens smaller than 1200px */
      flex-direction: column; /* Stack vertically */
      align-items: center;
    }
  
    .xyp_comment_left,
    .xyp_ad_right {
      width: 100%;
      max-width: 100%;
    }
  
    .xyp_ad_right {
      height: 250px; /* Smaller ad on mobile */
    }
  }
  
  @media (min-width: 769px) and (max-width: 1200px) {
    .xyp_ad_right {
      width: 250px;
      height: 250px; /* Smaller ad for tablets */
    }
  }