@import url('https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css');

/* Swiper custom styles for media cards */
.media-swiper {
  width: 100%;
  padding-bottom: 40px;
}
.media-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}
.media-swiper .media-card {
  color: #333;
  width: 307 !important;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  z-index: 4;
  border: 1px solid #CFCFCF;
  margin: 0 auto;
  display: flex;
  margin-right: 0 !important;
  flex-direction: column;
}
.media-swiper .card-image {
  position: relative;
  overflow: hidden;
}
.media-swiper .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-swiper .card-content {
  padding: 24px;
  text-align: center;
}
.media-swiper .readers-count {
  margin-bottom: 20px;
}
.media-swiper .readers-count .count {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #ff4626;
  line-height: 1;
  margin-bottom: 4px;
}
.media-swiper .readers-count .label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.media-swiper .brand-logo {
  margin-bottom: 24px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-swiper .brand-logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}
.media-swiper .view-btn {
  color: #333;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #CACACA;
}
.media-swiper .swiper-button-next,
.media-swiper .swiper-button-prev {
  color: #222;
  background: #fff;
  border: 1px solid #CACACA;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  /* Place buttons overlapping the card edge, not outside the white area */
}
.media-swiper .swiper-button-prev {
  left: 0;
  margin-left: 10px;
}
.media-swiper .swiper-button-next {
  right: 0;
  margin-right: 10px;
}
@media (max-width: 1024px) {
  .media-swiper .swiper-button-prev {
    left: 0;
    margin-left: 0;
  }
  .media-swiper .swiper-button-next {
    right: 0;
    margin-right: 0;
  }
}
.media-swiper .swiper-button-next:hover,
.media-swiper .swiper-button-prev:hover {
  background: #f5f5f5;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.media-swiper .swiper-button-next:after,
.media-swiper .swiper-button-prev:after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}
.media-swiper .swiper-button-prev:after {
  background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 18L9 12L15 6" stroke="%23222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.media-swiper .swiper-button-next:after {
  background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 6L15 12L9 18" stroke="%23222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.media-swiper .swiper-pagination-bullet {
  background: #222;
  opacity: 0.5;
}
.media-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* About Section Styles */
.about-media-evolution {
    padding: 80px 0;
}

.about-media-evolution .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-media-evolution .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-media-evolution .section-title {
    font-weight: 700;
    margin-bottom: 20px;
}

.about-media-evolution .section-description {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.about-media-evolution .media-carousel {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.about-media-evolution .carousel-item {
    text-align: center;
    display: none;
}

.about-media-evolution .carousel-item.active {
    display: block;
}

.about-media-evolution .newspaper-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px auto;
    display: block;
}

.about-media-evolution .carousel-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}


.about-media-evolution .carousel-nav:hover {
    background: #e0e0e0;
    transform: translateY(-50%) scale(1.1);
}

.about-media-evolution .carousel-nav.prev {
    left: 0;
}

.about-media-evolution .carousel-nav.next {
    right: 0;
}

.about-media-evolution .carousel-nav .arrow {
    font-size: 18px;
    color: #666666;
}

.about-media-evolution .carousel-info {
    display: flex;
    justify-content: center;
	flex-direction: column;
	text-align: center;
    gap: 20px;
}

.about-media-evolution .year {
    font-size: 36px;
    font-weight: 700;
}

.about-media-evolution .description {
    font-size: 18px;
}


.media-section {
    background: linear-gradient(135deg, #ff6b42 0%, #ff4626 100%);
    padding: 80px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .media-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  /* White rectangle section for cards */
  .media-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: #ffffff;
    border-radius: 0;
    z-index: 1;
  }
  
  .section-title {
    font-size: 32px;
    color: #ffffff;
    line-height: 1.4;
  }
  
  .media-cards-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 100px 120px;
    z-index: 3;
  }
  
  .media-cards {
    display: flex;
    gap: 30px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .media-card {
    background: #ffffff;
    color: #333;
    width: 320px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 4;
  }
  
  .card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
  }
  
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .card-content {
    padding: 24px;
    text-align: center;
  }
  
  .readers-count {
    margin-bottom: 20px;
  }
  
  .readers-count .count {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #ff4626;
    line-height: 1;
    margin-bottom: 4px;
  }
  
  .readers-count .label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .brand-logo {
    margin-bottom: 24px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .brand-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
  }
  
  .view-btn {
    color: #333;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #CACACA;
  }
  
  /* Media Cards Navigation */
  .media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    color: #333;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
  }
  
  .media-nav svg {
    width: 24px;
    height: 24px;
  }
  
  .media-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  }
  
  .media-nav:active {
    transform: translateY(-50%) scale(0.95);
  }
  
  .media-nav.prev {
    left: 30px;
  }
  
  .media-nav.next {
    right: 30px;
  }

  /* External Navigation Buttons for Media Cards */
  .media-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #CFCFCF;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #CFCFCF !important;
  }
  
  .media-nav-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.05);
  }
  
  .media-nav-btn .arrow {
    font-size: 24px;
    font-weight: bold;
    color: #222;
  }
  
  .media-nav-btn.media-nav-prev {
    left: 0;
    display: block !important;
  }
  
  .media-nav-btn.media-nav-next {
    right: 0;
    display: block !important;
  }

.media-evolution-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0; /* Remove all extra space between button and card */
  padding: 0; /* Ensure no padding */
}

.media-evolution-nav {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #CFCFCF;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin: 0 4px; /* Tiny space for visual separation */
}

.about-media-evolution-swiper {
  width: auto;         /* Let it shrink to fit the slide */
  max-width: 400px;    /* Or your preferred max width */
  margin: 0;
}

.about-media-evolution-swiper .swiper-wrapper .swiper-slide {
	box-shadow: unset !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-media-evolution .carousel-nav {
        width: 35px;
        height: 35px;
        top: 35%;
    }
    
    .about-media-evolution .carousel-nav.prev {
        left: -45px;
    }
    
    .about-media-evolution .carousel-nav.next {
        right: -45px;
    }
    
    .about-media-evolution .carousel-info {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }
    
    .about-media-evolution .description {
        max-width: 100%;
        margin-top: 10px;
    }
    
    /* Media Section Responsive */
    .section-title {
        font-size: 26px;
        padding: 0 20px;
    }
    
    .media-cards-container {
        padding: 60px 80px 100px;
    }

    .media-section::after {
        height: 60%;
    }
    
    .media-card {
        width: 280px;
    }
    
    .media-nav {
        width: 50px;
        height: 50px;
    }
    
    .media-nav svg {
        width: 20px;
        height: 20px;
    }
    .media-swiper .swiper-button-next,
    .media-swiper .swiper-button-prev {
      width: 38px;
      height: 38px;
    }
    .media-swiper .swiper-button-next:after,
    .media-swiper .swiper-button-prev:after {
      width: 18px;
      height: 18px;
      background-size: 18px 18px;
    }
    
    /* External Navigation Buttons Responsive */
    .media-nav-btn {
      width: 40px;
      height: 40px;
    }
    
    .media-nav-btn .arrow {
      font-size: 20px;
    }
    
    .media-nav-btn.media-nav-prev {
      left: -50px;
    }
    
    .media-nav-btn.media-nav-next {
      right: -50px;
    }
}

@media (max-width: 480px) {
    .about-media-evolution .carousel-nav {
        display: none;
    }

    .about-media-evolution-swiper .swiper-slide {
      width: 100% !important;
    }

    .media-swiper .media-card {
      width: 100% !important;
    }
    
    .section-title {
        font-size: 22px;
        padding: 0 15px;
        margin-bottom: 40px;
    }
    
    .media-cards-container {
        padding: 40px 20px 80px;
    }

    .media-evolution-nav.prev {
      display: none;
    }
    .media-evolution-nav.next {
      display: none;
    }
    

    .media-section::after {
        height: 70%;
    }
    
    .media-cards {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .media-card {
        width: 278px !important;
        min-width: 260px;
        scroll-snap-align: start;
    }
    
    .media-nav {
        display: none;
    }
    
    .media-nav-btn {
        display: none;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .readers-count .count {
        font-size: 28px;
    }
}

