/* ------------------------------
   GENERAL STYLES
--------------------------------*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* Header: logo centered (nav moved outside) */
header {
  position: relative;
  background: url("images/header.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  z-index: 1;
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(29, 53, 87, 0.8);
  z-index: -1;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header .logo {
  height: 200px;
  margin-bottom: 10px;
  z-index: 1;
}

header h1 {
  margin: 0;
  font-size: 1.6rem;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  z-index: 1;
}

/* ------------------------------
   SOCIAL MEDIA BUTTONS
--------------------------------*/
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
  z-index: 1;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}

.social-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.social-btn.youtube { background: #ff0000; }
.social-btn.tiktok { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.social-btn.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.social-btn.facebook { background: #1877f2; }

/* ------------------------------
   NAVIGATION (desktop baseline)
--------------------------------*/
nav {
  background: #355b90;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav ul li a {
  color: #f9f9f9;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #ff7f11;
  color: #fff;
}

/* ------------------------------
   MAIN CONTENT
--------------------------------*/
main {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  color: #1d3557;
  margin-bottom: 10px;
}

#featured h2,
#latest-blog h2 {
  text-align: center;
  margin: 20px 0;
  font-size: 1.5rem;
  color: #1d3557;
}

#featured-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

#featured-video iframe {
  width: 80%;
  max-width: 800px;
  height: 450px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-title {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #1d3557;
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-title:hover {
  color: #ff7f11;
}

.divider {
  display: block;
  width: 50%;
  max-width: 400px;
  height: auto;
  margin: 30px auto;
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
  background: #1d3557;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
}

/* ------------------------------
   VIDEO THUMBNAIL PLAY BUTTON
--------------------------------*/
.video-thumb {
  width: 100%;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-overlay::before {
  content: "";
  display: inline-block;
  margin-left: 3px;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.play-overlay:focus {
  outline: 3px solid rgba(255,0,0,0.6);
}

/* ------------------------------
   GALLERY
--------------------------------*/
#gallery {
  margin: 40px auto;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}

#gallery img {
  width: 100%;
  height: 200px;          /* fixed thumbnail height */
  object-fit: cover;      /* crops without distortion */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  cursor: pointer;
}

#gallery img:hover {
  transform: scale(1.05);
}

/* Gallery wrapper section */
#gallery-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  border: 3px solid #1d3557;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

#gallery-section h2 {
  margin-top: 0;
  color: #1d3557;
  font-size: 1.8rem;
}

.gallery-description {
  margin: 10px 0 25px;
  font-size: 1rem;
  color: #555;
}

.gallery-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.gallery-block img {
  flex: 0 0 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-block img:hover {
  transform: scale(1.05);
}

/* ------------------------------
   LIGHTBOX
--------------------------------*/
#lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}

#lightbox img {
  max-width: 90%;
  max-height: 70%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

#lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 1rem;
  max-width: 80%;
}

#lightbox .close {
  position: absolute;
  top: 20px; right: 40px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

#lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
}

#lightbox .prev { left: 20px; }
#lightbox .next { right: 20px; }

#lightbox .nav:hover,
#lightbox .close:hover {
  background: rgba(0,0,0,0.6);
}

/* ------------------------------
   BLOG POSTS
--------------------------------*/
.blog-post {
  background: #fff;
  margin: 20px auto;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e0f0ff;
  padding: 12px 16px;
  border-bottom: 1px solid #c0d8ee;
}

.blog-title {
  margin: 0;
  font-size: 1.4rem;
  color: #1d3557;
}

.blog-date {
  font-size: 0.9rem;
  color: #555;
  margin-right: 10px; /* lets you pull it slightly from the right edge */
}

.blog-content {
  padding: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

/* Blog preview clipping */
.blog-content.preview {
  max-height: 100px;   /* adjust this for equal preview size */
  overflow: hidden;
  position: relative;
}

.blog-content.preview::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #fff);
}

/* Read More button */
.read-more {
  display: block;
  width: 100%;
  border: none;
  background: #e0f0ff;
  color: #1d3557;
  font-weight: bold;
  padding: 10px;
  border-radius: 0 0 12px 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: #a8d4ff; /* slightly darker than #e0f0ff */
}

/* ------------------------------
   BLOG POPUP
--------------------------------*/
.blog-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  margin-right: 35px;
}

.blog-popup.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.blog-popup-content {
  background: #fff;
  max-width: 800px;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
  max-height: 90%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  animation: slideUp 0.3s ease;
}

.blog-popup .close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  z-index: 20;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ------------------------------
   RESPONSIVE STYLES
--------------------------------*/

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  #featured-video iframe { width: 90%; height: 350px; }
}

/* Large phones (≤768px)
   NOTE: no nav ul rules here to avoid conflicts with hamburger block below */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header .logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
  }

  header h1 { font-size: 1.2rem; }

  #featured-video iframe { width: 100%; height: 220px; }
  #video-grid { grid-template-columns: 1fr; gap: 15px; }
  .divider { width: 80%; max-width: 300px; }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  .blog-title { font-size: 1.2rem; }
  .blog-date { font-size: 0.8rem; }
  .blog-content { font-size: 1rem; padding: 16px; }
  .blog-popup-content { width: 95%; max-height: 85%; }
}

/* ------------------------------
   MOBILE HAMBURGER MENU (KEEP AT BOTTOM)
   This is the only place that controls mobile nav visibility
--------------------------------*/

/* Hide the hamburger button on desktop */
.menu-toggle {
  display: none;
  background: #1d3557;
  color: #fff;
  font-size: 1.2rem;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 6px;
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  /* Show the menu button */
  .menu-toggle {
    display: block;
    margin: 10px auto;
  }

  /* Hide nav links by default on mobile */
  nav ul.nav-links {
    display: none !important;
    flex-direction: column;
    background: #355b90;
    padding: 10px;
    margin: 0;
    border-radius: 8px;
    gap: 6px;
  }

  /* Show when toggled open */
  nav ul.nav-links.active {
    display: flex !important;
  }

  nav ul.nav-links li {
    margin: 0;
  }

  nav ul.nav-links a {
    display: block;
    padding: 10px 12px;
    color: #fff;
    text-align: center;
    border-radius: 999px;
  }
}

#intro-section {
  background: #fff;            /* white background like a box */
  border: 2px solid #ddd;      /* subtle border */
  border-radius: 10px;         /* rounded corners */
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;            /* keeps it centered and neat */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* soft shadow */
}

#intro-section h2 {
  margin-top: 0;
  color: #1d3557;              /* matches your site’s theme */
}

/* About Us box styling */
.about-box {
  max-width: 800px;   /* keeps it same width as blog posts */
  margin: 30px auto;  /* centers it */
}

.about-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px; /* centers image, adds spacing below */
  border-radius: 10px; /* matches your theme’s rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* === Contact form styled like blog posts === */
.contact-container {
  background: #fff;
  margin: 20px auto;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header bar same as blogs */
.contact-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e0f0ff;
  padding: 12px 16px;
  border-bottom: 1px solid #c0d8ee;
}

.contact-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #1d3557;
}

/* Contact form content area */
.contact-content {
  padding: 20px;
}

.contact-content label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #1d3557;
}

.contact-content input,
.contact-content textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Submit button styled like Read More */
.contact-content button {
  display: block;
  width: 100%;
  border: none;
  background: #e0f0ff;
  color: #1d3557;
  font-weight: bold;
  padding: 12px;
  border-radius: 0 0 12px 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-content button:hover {
  background: #a8d4ff; /* slightly darker than header */
}

/* Thank you message */
.thankyou-msg {
  display: none;
  margin: 0;
  padding: 15px;
  background: #e0f5e9;
  color: #2e7d32;
  font-weight: bold;
  text-align: center;
  border-top: 1px solid #c8e6c9;
  border-radius: 0 0 12px 12px;
}
