:root {
  --green-primary: #00B37E;
  --green-accent: #00E08B;
  --black: #111111;
  --white: #ffffff;
  --red-accent: #b3002a;   /* subtle red accent */
  --red-hover: #7a001d;    /* darker hover red */
}

/* BODY & HEADER */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--white);
  color: var(--black);
}




header {
  background-color: var(--white);
  border-bottom: 4px solid var(--green-primary);
  padding: 15px 0;
  position: relative;
  z-index: 1000;
}

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}


/* Overlay for green/red tint */
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 179, 126, 0.55); /* semi-transparent overlay */
  z-index: 1;
}

/* Ensure content stays above blur */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Make the link take full width and remove default styles */
.about-author-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Hover effect on H2 and strong */
.about-author-link:hover h2,
.about-author-link:hover strong {
  color: #b3002a !important;
  transition: color 0.3s ease;
}

/* Optional: cursor pointer for better UX */
.about-author-link:hover {
  cursor: pointer;
}


.header-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--black);
}

.logo-title {
  font-size: 2.8rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--red-accent);   /* subtle red for brand title */
}

.logo-subtitle {
  font-size: 14px;
  color: var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--black);
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--red-accent);   /* subtle red hover */
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-primary);
}

/* RESPONSIVE HEADER */
@media (max-width: 768px) {
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 10px;
    background-color: var(--white);
  }

  nav a {
    padding: 10px;
    border-top: 1px solid #eee;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 400px) {
  .logo-title {
    font-size: 35px;
  }

  .logo-subtitle {
    font-size: 0.65rem;
  } 

  nav a {
    font-size: 0.9rem;
  }
}


/* HERO BANNER SLIDER */
.hero-banner-slider {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0 auto 40px;
  overflow: hidden;
  background: #000;
  border-top: 4px solid #b3002a;
  border-bottom: 4px solid #b3002a;
  box-shadow: 
    0 -4px 12px rgba(179, 0, 42, 0.5),
    0 4px 12px rgba(179, 0, 42, 0.5);
}

/* SLIDE */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  /* IMPORTANT FIX */
background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;


  padding: 40px 20px;
  box-sizing: border-box;
  color: white;

  opacity: 0;
  transform: translateX(100%);
  transition: all 1s ease;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ACTIVE SLIDE */
.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

/* EXIT SLIDE */
.hero-slide.exit-left {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

/* REMOVE GREEN OVERLAY COMPLETELY */
.hero-slide .hero-overlay {
  display: none;
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #fff;
  text-align: center;

  /* subtle text readability without overlay */
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* BUTTON */
.hero-btn {
  padding: 12px 24px;
  background: linear-gradient(
    -45deg,
    var(--green-primary),
    var(--green-accent),
    var(--red-accent),
    var(--green-primary)
  );
  background-size: 300% 300%;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  border: none;
  cursor: pointer;

  box-shadow:
    0 0 12px rgba(0, 179, 126, 0.4),
    0 0 24px rgba(179, 0, 42, 0.3);

  animation: gradientMove 8s ease infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 16px rgba(0, 179, 126, 0.6),
    0 0 32px rgba(179, 0, 42, 0.4);
}

/* BUTTON ANIMATION */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-banner-slider {
    height: 350px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-banner-slider {
    height: 280px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
}

@media (min-width: 320px) and (max-width: 450px) {
  .mini-slideshow {
  max-width: 88% !important;
  margin: 0 auto;
  padding: 0;
  font-size: 11px;
}
}


.mini-slideshow {
  max-width: 60%;
  margin: 0 auto;
  padding: 0;
}

.mini-slideshow h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--green-primary);
  text-align: center;
}

/* Container height matches the tallest images */
.slideshow-container {
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 179, 126, 0.15);
  position: relative;
  height: auto; /* set to max height of images */
}

.slideshow-container {
  width: 100%;
}


.slide {
  min-width: 100%;
  transition: transform 1s ease;
}

.slide img {
  width: 100%;
  height: 100%; /* fill container */
  object-fit: contain; /* preserves full image, no cropping */
  display: block;
}

.photo-gallery {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.photo-gallery h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--green-primary);
}

/* Responsive Portrait Grid */
.gallery-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 179, 126, 0.1);
  
  /* fixed portrait aspect ratio */
  aspect-ratio: 3 / 4; /* width : height = 3:4 */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ensures full image fits inside portrait frame */
  display: block;
  transition: transform 0.3s ease;
  background-color: #f9f9f9; /* optional: subtle background for empty space */
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover {
  box-shadow: 0 6px 18px rgba(0, 179, 126, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}



/* ===========================
   FEATURED BOOK SECTION
=========================== */
.book-showcase {
  padding: 15px 20px;
  background: rgba(0, 179, 126, 0.05); /* subtle green shade to match theme */
  text-align: center;
  max-width: 1200px;
  border-radius: 12px;
}

.book-showcase h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--green-primary);
}

.book-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.book-image img {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 179, 126, 0.2);
}

.book-info {
  max-width: 600px;
  text-align: left;
}

.book-info h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
  color: var(--black);
}

.book-info small {
  display: block;
  font-size: 0.9em;
  color: var(--green-accent);
  margin-top: 5px;
}

.book-info p {
  margin-bottom: 15px;
  color: #444;
  line-height: 1.6;
}

.book-showcase .read-more-btn {
  background: linear-gradient(-45deg, var(--green-primary), var(--green-accent), var(--red-accent), var(--green-primary));
  background-size: 300% 300%;
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  padding: 12px 25px;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 179, 126, 0.4), 0 0 24px rgba(179, 0, 42, 0.3);
  animation: gradientMove 8s ease infinite;
}

.book-showcase .read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 179, 126, 0.6), 0 0 32px rgba(179, 0, 42, 0.4);
}

@media (max-width: 768px) {
  .book-container {
    flex-direction: column;
    align-items: center;
  }
  .book-info {
    text-align: center;
  }
}

/* ===========================
   PHOTO GALLERY SECTION
=========================== */
.photo-gallery {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
  text-align: center;
}

.photo-gallery h2 {
  font-size: 2em;
  color: var(--green-primary);
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 179, 126, 0.1);
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 179, 126, 0.25);
}

/* ===========================
   BOARD OF DIRECTORS SECTION
=========================== */

.board-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.board-section h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: var(--green-primary);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.board-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 179, 126, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 179, 126, 0.2);
}

.board-img-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.board-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.board-text-wrap {
  padding: 20px;
  text-align: center;
}

.board-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--green-primary);
}

.board-role {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #333;
}

.profile-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(-45deg, var(--green-primary), var(--green-accent), var(--red-accent), var(--green-primary));
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0, 179, 126, 0.4), 0 0 24px rgba(179, 0, 42, 0.3);
}

@media (max-width: 768px) {
  .board-card {
    flex-direction: column;
  }

  .board-img-wrap {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .board-img-wrap {
    height: 300px;
  }
}



/* POSTS SECTION */
.latest-posts {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.posts-grid article {
  background: linear-gradient(135deg, #f9f9f9, #eafff5);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 179, 126, 0.15);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-image {
  width: 100%;
  height: 300px;
  background-color: #000;
  border-radius: 8px;
  margin-bottom: 15px;
  background-size: cover;       /* fill container */
  background-repeat: no-repeat;
  background-position: center;
}


.visit-blog {
  margin-top: 40px;
  text-align: center;
}

.blog-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-accent));
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.blog-btn:hover {
  background: linear-gradient(135deg, var(--green-accent), var(--green-primary));
}

@media (max-width: 768px) {
  .post-image {
    height: 180px;
  }

  .posts-grid {
    gap: 20px;
  }

  .blog-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .post-image {
    height: 180px;
  }

  .posts-grid article h3 {
    font-size: 1.1rem;
  }

  .posts-grid article p {
    font-size: 0.95rem;
  }
}

.posts-grid article {
  color: #000;
}

.posts-grid a {
  display: inline-block;
  align-self: center;
  margin-top: 20px;
  padding: 10px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--green-primary), var(--green-accent));
  box-shadow: 0 4px 10px rgba(0, 179, 126, 0.2);
  transition: all 0.3s ease;
}

.posts-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 179, 126, 0.3);
}

/* ABOUT AUTHOR */
.about-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 30px;
  font-family: Arial, sans-serif;
}

.author-text {
  flex: 1;
  min-width: 260px;
}

.author-text p {
  line-height: 1.6;
  color: #333;
}

.author-text strong {
  font-size: 1.2em;
  color: #000;
}

.author-text em {
  font-style: italic;
  color: #555;
}

.author-img {
  flex: 1;
  text-align: center;
}

.author-img img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #eafff5;
  box-shadow: 0 4px 12px rgba(0, 179, 126, 0.2);
  display: block;
  margin: 0 auto;
}

/* Make the link take full width and remove default styles */
.about-author-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Style the section with border-radius and subtle green background */
.about-author {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  background-color: rgba(0, 179, 126, 0.05); /* subtle green shade */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: slight lift on hover */
.about-author-link:hover .about-author {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 179, 126, 0.2);
}

/* Hover effect on H2 and strong */
.about-author-link:hover h2,
.about-author-link:hover strong {
  color: red;
  transition: color 0.3s ease;
}

/* Author image styling */
.author-img img {
  width: 250px;
  border-radius: 50%;
  object-fit: cover;
}

/* Read More button styling */
.read-more-btn {
  padding: 12px 24px;
  background: linear-gradient(-45deg, var(--green-primary), var(--green-accent), var(--red-accent), var(--green-primary));
  background-size: 300% 300%;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  text-align: center;
  border: none;
  cursor: pointer;
  
  /* Soft glow */
  box-shadow: 0 0 12px rgba(0, 179, 126, 0.4), 
              0 0 24px rgba(179, 0, 42, 0.3);

  /* Animation */
  animation: gradientMove 8s ease infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Button hover effect */
.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 179, 126, 0.6), 
              0 0 32px rgba(179, 0, 42, 0.4);
}

/* Gradient animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


@media (max-width: 768px) {
  .about-author {
    flex-direction: column;
    text-align: center;
  }

  .author-text {
    order: 2;
  }

  .author-img {
    order: 1;
    margin-bottom: 20px;
  }
}

/* VISUAL SHOWCASE */
.visual-showcase {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.showcase-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 30px;
}

.card {
  background: linear-gradient(135deg, #f8f8f8, #eafff5);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 179, 126, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #e0e0e0;
}

.card h3 {
  margin: 20px 0 10px;
  color: var(--green-primary);
}

.card p {
  padding: 0 15px;
  font-size: 0.95rem;
}
/* FOOTER */
footer {
  background: linear-gradient(
    to bottom,
    var(--green-primary) 0%,     /* deep green top */
    var(--green-accent) 50%,     /* smooth mid-green */
    var(--green-accent) 75%,     /* hold green longer */
    var(--red-accent) 100%       /* fade to red bottom */
  );
  color: #fff;
  padding: 50px 20px 25px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column h4 {
  margin-bottom: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  padding-bottom: 6px;
}

.footer-column p,
.footer-column a {
  color: #eafff5;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.3s, text-shadow 0.3s;
}

.footer-column a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(179, 0, 42, 0.6); /* subtle red glow */
}

.social-links a {
  margin-right: 14px;
  font-size: 1.4rem;
  color: #eafff5;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: var(--red-accent);
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 18px;
  font-size: 0.85rem;
  color: #eafff5;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .social-links a {
    margin: 0 10px;
  }
}


/* CAROUSEL */
.carousel {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  animation: scrollSlides 12s infinite linear;
  width: calc(100% * 3);
}

.carousel-slide {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  height: 300px;
}

@media (max-width: 768px) {
  .carousel-slide {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    height: 180px;
  }
}

@keyframes scrollSlides {
  0% { transform: translateX(0%); }
  33.33% { transform: translateX(-100%); }
  66.66% { transform: translateX(-200%); }
  100% { transform: translateX(0%); }
}
