/* about.css */


.about-page {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.about-section {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  width: 100%;
}

.section-grid {
  display: grid;
  gap: 1.5rem;
}

.about-section.fullwidth .section-grid {
  grid-template-columns: 1fr;
}

.about-section.halfwidth .section-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-section.thirdwidth .section-grid {
  grid-template-columns: 1fr;
  padding: 1rem;
}

.text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Media Content Layout */
.media-content {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Make images and videos responsive and contained */
.media-content img,
.media-content video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Video wrapper for aspect ratio */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-button {
  margin-top: 1rem;
}


/* Responsive Layout Adjustments */
@media (min-width: 600px) {
  .about-section.halfwidth {
    width: 48%;
  }
  .about-section.thirdwidth {
    width: 30%;
  }
}

@media (min-width: 992px) {
  .about-page {
    gap: 2rem;
    padding: 2rem 3rem;
  }
  .about-section.halfwidth {
    width: 45%;
  }
  .about-section.thirdwidth {
    width: 28%;
  }
}

@media (max-width: 700px) {
  .about-section.halfwidth .section-grid {
    grid-template-columns: 1fr;
  }
}

.about-hero {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: #fff;
}

/* Overlay similar to home slider */
.about-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  z-index: 1;
}

/* Match home slider overlay */
.about-hero {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.about-hero.fade-in {
  opacity: 1;
  transform: translateY(0);
}


.about-hero .hero-text h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: #fff !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.about-hero .hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Reuse hero button style */
.about-hero .btn.primary {
  background-color: #ff9900;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 153, 0, 0.5);
}

.about-hero .btn.primary:hover,
.about-hero .btn.primary:focus {
  background-color: #e68200;
  outline: none;
  box-shadow: 0 6px 12px rgba(230, 130, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .about-hero {
    height: 220px;
  }

  .about-hero .hero-text h1 {
    font-size: 1.75rem;
  }

  .about-hero .hero-text p {
    font-size: 1rem;
  }
}

/* === About Section Styling === */
.about-section {
  max-width: 1200px;          /* Keeps content within main page width */
  margin: 0 auto;             /* Centers the section horizontally */
  padding: 80px 20px;         /* Comfortable spacing */
  box-sizing: border-box;
  overflow: hidden;           /* Prevents content spill */
  border:3px solid #000;
}

/* Container for each about block */
.about-container {
  display: flex;
  flex-wrap: wrap;            /* Responsive for small screens */
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
  border-bottom:1px solid #eee;
}

/* Image styling */
.about-image {
  flex: 1 1 45%;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Text content styling */
.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #222;
}

.about-text h4 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 30px;
}

/* Button styling */
.about-text .btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.about-text .btn:hover {
  background: #0056b3;
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
  .about-container {
      flex-direction: column;
      text-align: center;
  }

  .about-text, .about-image {
      flex: 1 1 100%;
  }

  .about-text h2 {
      font-size: 1.8rem;
  }
}


/* === Vision Section === */
.vision-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 2-column grid for desktop, single column for smaller screens */
.vision-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

/* Image styling */
.vision-image {
    text-align: center;
}

.vision-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Text content styling */
.vision-text {
    text-align: left;
}

.vision-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #222;
}

.vision-text h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 20px;
}

.vision-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
}

/* Button */
.vision-text .btn {
    display: inline-block;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.vision-text .btn:hover {
    background: #1e7e34;
}

/* === Responsive behavior === */
@media (max-width: 900px) {
    .vision-container {
        grid-template-columns: 1fr;  /* single column on small screens */
        text-align: center;
    }

    .vision-text {
        text-align: center;
    }

    .vision-text h2 {
        font-size: 1.8rem;
    }

    .vision-image img {
        max-width: 100%;
    }
}


/* === Vision Section === */
.vision-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: border-box;
}

/* Grid wrapper: 2 columns on desktop */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* Each record card */
.vision-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Image */
.vision-image img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Text */
.vision-text h2 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 10px;
}

.vision-text h4 {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 15px;
}

.vision-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Button */
.vision-text .btn {
  display: inline-block;
  background: #28a745;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.vision-text .btn:hover {
  background: #1e7e34;
}

/* Responsive behavior (already handled by auto-fit), 
 but you can fine-tune spacing on small screens */
@media (max-width: 600px) {
  .vision-section {
      padding: 40px 15px;
  }
  .vision-card {
      padding: 20px;
  }
}


/* === Regular Section Styling === */
.regular-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.content-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 40px;
  margin-bottom: 40px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
}

.content-section h3 {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 10px;
}

.content-section .content {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

/* Responsive image */
.content-section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 20px auto;
}

/* Button */
.content-section .btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.content-section .btn:hover {
  background: #0056b3;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .content-section {
    padding: 30px 20px;
  }

  .content-section h2 {
    font-size: 1.6rem;
  }
}
