* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--bg-black-olive);
}

/* Handle */
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--bg-white);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-primary);
}

:root {
  /* Background colors */
  --bg-primary: #00a99d;
  --bg-primary-dark: #007c00;
  --accent: #ceff68;
  --bg-white: #f8f9fa;

  /* white and black shades */
  --bg-black: #171717;
  --bg-black-olive: #262626;

  /* Text colors */
  --text-primary: #00a99d;
  --text-dark: #007c00;
  --text-light: #555;

  --font-heading: "Playfair Display", serif;
  --font-primary: "Open Sans", sans-serif;
}

body {
  font-family: var(--font-primary);
  scroll-behavior: smooth;
  background-color: var(--bg-white);
  transition: all 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

.container-fluid {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  height: auto;
}

.text-justify {
  text-align: justify;
}

@media (max-width: 991px) {
  .container-fluid {
    width: 100%;
  }
  .w-75 {
    width: 96% !important;
  }

  .wrapper {
    padding: 2rem 0 !important;
  }
}

.wrapper {
  padding: 6rem 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.heading {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.05rem;
  font-weight: 700;
  line-height: 3rem;
}

.font-heading {
  font-family: var(--font-heading);
}

/* CSS */
.main-btn {
  position: relative;
  align-items: center;
  background-color: var(--bg-primary-dark);
  border: none;
  border-radius: 50px;
  box-sizing: border-box;
  color: #ffffff;
  font-size: 0.9rem;
  text-wrap-mode: nowrap;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700 !important;
  justify-content: center;
  max-width: fit-content;
  min-width: 0px;
  overflow: hidden;
  z-index: 1;
  padding: 0px;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s,
    box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s,
    color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  text-wrap-mode: nowrap;
}

.main-btn::before {
  content: "";
  width: 0;
  height: 100%;
  border-radius: 30em;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--bg-primary-dark) 100%
  );
  transition: 0.5s ease;
  display: block;
  z-index: -1;
}

.main-btn:hover::before {
  width: 100%;
}

.main-btn:hover,
.main-btn:focus {
  background-color: var(--bg-black-olive) !important;
  text-decoration: none;
}

.main-btn:active {
  background: var(--bg-primary-dark);
  color: rgb(255, 255, 255, 0.7);
}

.main-btn:disabled {
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.3);
}

/* Top bar */
.top-bar {
  background-color: var(--bg-primary); /* Olive green like Zaytuna */
  color: #fff;
  font-size: 14px;
}

/* Navbar styling */
.main-navbar {
  background: var(--bg-black);
}

.main-navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 10px 15px;
  margin: auto 0.5rem;
  transition: clip-path 0.5s ease-in-out;
}

.main-navbar .nav-link:hover {
  color: #ceff68 !important; /* Gold hover */
  background-color: var(--bg-primary);
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .top-bar .contact-info {
    font-size: 12px;
  }
}

/* HERO SECTION */
.hero-section {
  position: relative;
  height: clamp(40vh, 30vh + 20vw, 90vh);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.25px;
  line-height: 1;
  text-shadow: 1px 1px 4px var(--bg-black-olive);
}

.hero-subtitle {
  font-size: 1rem;
  text-shadow: 1px 1px 2px #000;
  margin-top: 1.5rem;
  line-height: normal;
}

@media (max-width: 567px) {
  .hero-section {
    .hero-subtitle {
      font-size: 14px !important;
    }
  }
}

.element {
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  img {
    display: inline-block;
    width: 150px;
    height: auto;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 50%;
    z-index: 2;
    transform: translateY(-50px);
  }
}

.features-section {
  background: #f8f9fa; /* light gray background */
}

.feature-title {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 500;
  margin-bottom: 15px;
  color: #222;
}

.feature-text {
  font-size: clamp(14px, 1.5vw, 18px);
  color: #555;
  margin-bottom: 20px;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .features-section .border-top {
    border: none !important;
  }
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.about-card p {
  color: #444;
  line-height: 1.7;
}

.news-card {
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  background: var(--accent);
  border-radius: 1rem;
}

.news-list {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  max-height: 300px;
}
.news-card .news-list li {
  font-size: 0.95rem;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 8px;
}

.news-card .read-more {
  color: var(--bg-primary);
  font-weight: 500;
  margin-left: 5px;
  text-decoration: none;
}

.news-card .read-more:hover {
  text-decoration: underline;
}

.latest-badge {
  position: absolute;
  top: 12px;
  right: -25px;
  background: #ff4757;
  color: #fff;
  font-weight: bold;
  padding: 5px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  transform-origin: top center; /* makes it swing from the pin */
  animation: swing 3s ease-in-out infinite;
}

/* Pinned paper / shadow effect */
.latest-badge::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Pendulum Swing Animation */
@keyframes swing {
  0% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(10deg);
  }
}

.bento-docs {
  width: 100vw;
  padding: 3rem 2rem;
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.section-header p {
  color: #6b7280;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 500px;
  gap: 1.5rem;
}

/* Half width */
.bento-item.half {
  border-radius: 1rem;
  padding: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Full width (next row) */
.bento-item.full {
  grid-column: span 2;
  border-radius: 1rem;
  padding: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .bento-docs {
    padding: 1rem !important;
  }
  .bento-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
  }
  .bento-grid .full {
    grid-column: span 1; /* full spans only on desktop */
    .doc-frame {
      margin-bottom: 2rem;
    }
  }
  .bento-item.full,
  .bento-item.half {
    padding: 1rem;
  }
}

/* Light background variants */
.bg-blue {
  background: #7bfff64b;
} /* light sky */
.bg-green {
  background: #dcfce7;
} /* light green */
.bg-yellow {
  background: #fef9c3;
} /* light yellow */

.doc-title {
  font-size: 1rem;
  font-weight: 600;
  padding-bottom: 1rem;
}

.doc-frame {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}

.image-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 2rem;
}
.image-frame img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 1rem;
}

.qoute-section {
  position: relative;
  .line {
    display: inline-block;
    height: 1px;
    background-color: #ddd;
  }
  .carousel .carousel-inner {
    min-height: 300px;

    .carousel-item {
      height: 100%;
      padding: 1rem 0;
    }
  }
}

.box-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: start;

  .logo-box1,
  .logo-box2 {
    width: 150px;
    height: 150px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2rem;
    background: var(--bg-white);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
      rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    border: 1px solid var(--bg-primary);
  }
  .logo-box1 {
    background: var(--bg-black-olive);
  }
  .logo-box2 {
    transform: translate(-40px, 100px);
  }
}

.logo-box {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 15px;
  margin: 10px;
}

.quote-text {
  width: 50%;
  text-align: start;
  padding: 20px;
}

.quote {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.author {
  font-style: italic;
  font-size: 1rem;
  text-align: end;
}

.carousel-item {
  text-align: center;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: #007c00;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  right: 20px;
  left: auto;
  top: -55px;
  width: 60px;
  height: 40px;
  background: #fff;
  border-radius: 25px;
  opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  i {
    color: #000;
  }
}
.carousel-control-prev {
  right: 90px;
}

@media (max-width: 768px) {
  .qoute-section .quote-text {
    width: 100%;
    margin-top: 4rem;
    text-align: center;
    .author {
      text-align: center;
    }
  }
}

.footer-section {
  color: #333;
  .heading {
    color: #1aa700;
  }
}

.footer-logo {
  max-width: 150px;
  height: auto;
}

.footer-contact {
  font-size: 1rem;
  color: #6c757d;
  margin: 0.5rem 0;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
  font-size: 0.95rem;
  color: #6c757d;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--text-darkk) !important;
  text-decoration: underline;
}

.footer-section ul {
  padding-left: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

hr.bg-light {
  border-color: #e0e0e0;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-title {
    font-size: 1.1rem;
  }
  .footer-section p,
  .footer-section a {
    font-size: 0.85rem;
  }
  .footer-contact {
    font-size: 0.9rem;
  }
  .footer-logo {
    max-width: 120px;
  }
}

.swiper {
  width: 70%;
  padding: 40px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Navigation arrows */
.swiper-button-next::after,
.swiper-button-prev::after {
  content: "" !important;
}

.swiper-button-prev,
.swiper-button-next i {
  color: var(--text-dark) !important;
  font-size: 30px;
}

/* Pagination dots */
.swiper-pagination {
  margin-top: 10px;
  transform: translateY(40px) !important;
}
.swiper-pagination-bullet {
  background: var(--bg-primary) !important;
  opacity: 1;
  transition: all 0.3s ease-in-out !important;
}
.swiper-pagination-bullet-active {
  background: var(--bg-primary-dark) !important;
  width: 30px !important;
  border-radius: 1rem !important;
}

@media (max-width: 991px) {
  .swiper {
    width: 80%;
  }
}

.about-section {
  background-color: #23e80011;
}

.managing-society {
  .trust-info {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
  }

  .trust-info .highlight {
    font-weight: 700;
    color: #222;
  }

  .sub-title {
    font-size: 20px;
    color: var(--text-dark);
    margin: 20px 0;
    font-weight: 600;
  }
}

.table-wrapper {
  overflow-x: auto;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.styled-table th,
.styled-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 15px;
}

.styled-table th {
  background: var(--bg-primary-dark);
  color: #fff;
  font-weight: 600;
}

.styled-table tbody tr:nth-child(even) {
  background: #f0fff4;
}

.styled-table tbody tr:hover {
  background: #e6f7ee;
  transition: 0.3s ease-in-out;
}

.styled-table a {
  color: #00b341;
  text-decoration: none;
  font-weight: 600;
}

.styled-table a:hover {
  text-decoration: underline;
}

.contact-section {
  .section-title p {
    color: #555;
    margin-bottom: 40px;
  }

  .contact-details {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
  }

  .contact-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
  }

  .contact-details p {
    color: #444;
    margin-bottom: 10px;
    line-height: 1.6;
  }

  .contact-details i {
    margin-right: 8px;
    color: var(--text-dark);
  }

  .contact-details a {
    color: #fb4f28;
    font-weight: 600;
    text-decoration: none;
    &:hover {
      text-decoration: underline;
    }
  }

  .contact-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
  }

  .contact-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
  }
}

.form-control {
  width: 100%;
  margin-bottom: 15px;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
  transition: 0.3s;
}

.form-control:focus {
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0px 0px 6px rgba(0, 191, 166, 0.3);
}

.gallery {
  
  .main {
    display: flex;
    flex-wrap: wrap;
    padding: 0 15px;
    
  }

  .column {
    flex: 25%;
    max-width: 25%;
    padding: 0 4px;
  }

  .column img {
    margin-top: 8px;
    width: 100%;
    vertical-align: middle;
    border-radius: 0.5rem;
    opacity: 0.9;
    transition: transform 0.2s, opacity 0.2s;
  }

  .column img:hover {
    transform: scale(1.05);
    opacity: 1;
  }

  @media screen and (max-width: 800px) {
    .column {
      flex: 50%;
      max-width: 50%;
    }
  }

  @media screen and (max-width: 600px) {
    .column {
      flex: 100%;
      max-width: 100%;
    }
  }
}
