/* ------------------------------
   Base / Desktop styles (your original)
   ------------------------------ */

/* Hero Slideshow */
.hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Slides background */
.slides img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  top: 0;
  left: 0;
}

.slides img.active {
  opacity: 1;
}

/* Overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Text content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 40px;
  animation: fadeIn 1.5s ease-in-out;
}

/* Stylish heading */
.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-content h1 span {
  color: #FF6F0A;
  text-shadow: 0 0 8px rgba(44, 44, 44, 0.8);
}

/* Paragraph styling */
.hero-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f1f1f1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #ffeb99, #fff5cc);
  color: #333;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 2px solid #ffd35c;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

/* Section Container */
.news-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Left Side: News List */
.news-list {
  flex: 1.2;
  background: #f5f5f2;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-list h2 {
  font-size: 32px;
  color: #ff6600;
  margin-bottom: 25px;
  border-bottom: 3px solid #ff6600;
  display: inline-block;
  padding-bottom: 5px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid #343232;
  padding-bottom: 15px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-content h3 {
  font-size: 20px;
  color: #050505;
  margin: 0 0 5px;
  font-weight: 600;
  transition: color 0.3s;
}

.news-content h3:hover {
  color: #111212;
}

.news-date {
  color: #ff6600;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}

.news-desc {
  font-size: 14px;
  color: #070707;
  line-height: 1.5;
}

/*Right Side: Slideshow Banner*/
.news-banner {
  flex: 0.9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  position: relative;
  height: 550px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.banner-controls button {
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s;
}

.banner-controls button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

/* ================= EVENTS SECTION ================= */
.section-title {
  font-size: 32px;
  color: #ff6600;
  font-weight: 700;
  margin-bottom: 25px;
  border-bottom: 3px solid #ff6600;
  display: inline-block;
  padding-bottom: 5px;
}

.events-section {
  padding: 20px;
  background: #fefefe;
  text-align: center;
  animation: fadeIn 1.2s ease-in;
}

/* ================= EVENTS GRID ================= */
.events-grid {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr; /* default 1 column on small screens */
}

/* Medium screens: two columns */
@media (min-width: 600px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= EVENT CARD ================= */
.event-card {
  background: #e9d895;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(3, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
}

.event-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(5, 4, 4, 0.2);
}

/* ================= EVENT HEADER ================= */
.event-header {
  background-color: #00376d;
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

/* ================= EVENT SLIDESHOW ================= */
.event-slideshow {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.event-slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.3);
  transition: opacity 1.2s ease-in-out, transform 1.5s ease;
}

.event-slideshow img.active {
  opacity: 1;
  transform: scale(1);
}

/* ================= EVENT DESCRIPTION ================= */
.event-desc {
  flex-grow: 1; /* equal height for all cards */
  padding: 16px 20px;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  text-align: justify;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .event-card {
    flex-direction: column;
  }

  .event-slideshow {
    height: 180px; /* smaller for phones */
  }

  .event-desc {
    padding: 14px;
    font-size: 14px;
  }

  .event-header {
    font-size: 16px;
    padding: 10px;
  }
}

/* Large and spacious event cards layout */
.single-photo-events {
  padding: 5px 30px;
  background: #fffaf5;
  font-family: "Poppins", sans-serif;
}

/* Bigger grid layout — wider columns */
.single-photo-events .events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); /* 2–3 per row */
  gap: 36px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Bigger, more elegant event cards */
.single-photo-events .event-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(13, 20, 30, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.single-photo-events .event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 45px rgba(13, 20, 30, 0.12);
}

/* Header — bigger & bold */
.single-photo-events .event-header {
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  border-left: 5px solid #d34710;
  padding-left: 14px;
  margin-bottom: 6px;
}

/* Image area — tall & full-width */
.single-photo-events .event-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f6f6, #ffffff);
  height: 340px; /* Bigger image height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-photo-events .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.single-photo-events .event-card:hover .event-image img {
  transform: scale(1.05);
}

/* Description — larger and more readable */
.single-photo-events .event-desc {
  margin: 0;
  color: #444;
  font-size: 16px;
  line-height: 1.75;
  text-align: justify;
}

/* ---------- Responsive styles ---------- */

/* Tablets */
@media (max-width: 1024px) {
  .single-photo-events .events-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
  }
  .single-photo-events .event-image {
    height: 280px;
  }
}

/* Mobile phones */
@media (max-width: 768px) {
  .single-photo-events {
    padding: 40px 16px;
  }
  .single-photo-events .events-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .single-photo-events .event-image {
    height: 240px;
  }
  .single-photo-events .event-header {
    font-size: 18px;
  }
  .single-photo-events .event-desc {
    font-size: 15px;
    line-height: 1.6;
  }
}



/* ------------------------------
   Responsive overrides (tablets & phones)
   ------------------------------ */

/* Large tablets / small desktops */
@media (max-width: 1024px) {
  .hero { height: 300px; }
  .hero-content { padding: 32px; }
  .hero-content h1 { font-size: 2.6rem; margin-bottom: 28px; }
  .news-section { gap: 28px; padding: 0 18px; }
  .news-list { padding: 24px; }
  .news-list h2 { font-size: 28px; }
  .news-banner { height: 480px; }
  .event-slideshow { height: 220px; }
}

/* Tablets and large phones */
@media (max-width: 768px) {
  /* General spacing */
  .hero { height: 260px; padding: 0 12px; }
  .hero-content { padding: 22px; max-width: 90%; }
  .hero-content h1 { font-size: 1.8rem; margin-bottom: 18px; }
  .hero-content p { font-size: 0.95rem; }

  .announcement-bar { font-size: 14px; padding: 8px 10px; }

  /* Stack news section vertically */
  .news-section {
    display: block;
    max-width: 980px;
    margin: 30px auto;
    padding: 0 16px;
  }

  .news-list {
    width: 100%;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
  }

  .news-banner {
    width: 100%;
    height: 320px;
    margin: 0 auto;
    border-radius: 10px;
  }

  .banner-controls {
    bottom: 14px;
    right: 14px;
    gap: 8px;
  }

  .banner-controls button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* News items adapt */
  .news-item { gap: 14px; }
  .news-content h3 { font-size: 18px; }
  .news-date { font-size: 14px; }
  .news-desc { font-size: 13px; }

  /* Events */
  .events-section { padding: 40px 12px; }
  .events-grid { gap: 22px; }
  .event-slideshow { height: 200px; }
  .event-header { font-size: 16px; padding: 10px; }
  .event-desc { padding: 12px 16px; font-size: 14px; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero { height: 200px; }
  .hero-content { padding: 16px; }
  .hero-content h1 { font-size: 1.2rem; margin-bottom: 12px; letter-spacing: 0.5px; }
  .hero-content p { font-size: 0.9rem; line-height: 1.4; }

  .announcement-bar { font-size: 13px; padding: 6px 8px; }

  .news-list { padding: 16px; border-radius: 8px; }
  .news-list h2 { font-size: 20px; border-bottom-width: 2px; }

  .news-item { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 12px; border-bottom-width: 1px; }
  .news-item img { width: 100%; height: auto; object-fit: cover; border-radius: 6px; }

  .news-content h3 { font-size: 16px; }
  .news-desc { font-size: 13px; }

  .news-banner { height: 240px; border-radius: 8px; }

  .banner-controls { bottom: 10px; right: 10px; }
  .banner-controls button { width: 34px; height: 34px; font-size: 15px; }

  .events-section { padding: 28px 10px; }
  .events-grid { grid-template-columns: 1fr; gap: 18px; }
  .event-slideshow { height: 180px; }
  .event-desc { font-size: 13px; padding: 10px 12px; }

  /* Make buttons and clickable elements easier to tap */
  .banner-controls button,
  .event-card,
  .news-item a,
  .read-more-btn {
    touch-action: manipulation;
  }
}

/* Accessibility & small improvements */
@media (prefers-reduced-motion: reduce) {
  .slides img,
  .banner-slide,
  .event-slideshow img {
    transition: none !important;
    animation: none !important;
  }
}

/* Utility: responsive images (if you show thumbnails inside .news-item) */
.news-item img,
.banner-slide img,
.event-slideshow img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Ensure text wraps nicely on tiny displays */
.hero-content h1,
.hero-content p,
.news-list h2,
.news-content h3,
.event-header {
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 768px) {

  /* Hero Section */
  .hero {
    height: auto;
    padding: 20px 15px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.9rem;
    text-align: center;
  }

  .stats {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  }
