/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f4f7f6;
  color: #333;
  margin: 0;
  padding-top: 80px; /* Adjust if header height changes */
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

:root {
  --dark-gray: #333;
}


/* Hero Section */
.about-hero {
  height: 40vh;
  background: url('../assets/images/basket\ \(1\).jpeg') no-repeat center center/cover;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  max-width: 95%;
  margin: 0px auto 1rem;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.295);
  overflow: hidden;

    position: relative;
    height: 40vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
  backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(51, 51, 51, 0.5);
    color: #fff;
    padding: 2rem 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 800px;
  border-radius: 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
}

/* Main Layout */
.about-main {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: #1a2a38;
    padding: 2rem 0;
    color: #fff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav .nav-link {
    padding: 1rem 1.5rem;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: background-color 0.3s, color 0.3s, border-left 0.3s;
}

.sidebar-nav .nav-link:hover {
    background-color: #2c3e50;
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background-color: #2c3e50;
    color: #3498db;
    border-left: 4px solid #3498db;
}

/* Content Area Styling */
.content-area {
    flex-grow: 1;
    padding: 2.5rem 3rem;
    background-color: #ffffff;
}

.content-section {
    display: none; /* Hidden by default */
}

.content-section.active {
    display: block; /* Show active section */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section h1 {
  text-align: right;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.content-section p, .content-section ul {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.content-section ul {
    list-style-position: inside;
    padding-left: 0;
}

.content-section li {
    margin-bottom: 0.75rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-main {
        flex-direction: column;
        margin: 1rem;
    }

    .sidebar {
        width: 100%;
        border-bottom: 2px solid #2c3e50;
    }

    .content-area {
        padding: 2rem 1.5rem;
    }

    .content-section h1 {
        font-size: 2rem;
    }
}

/* Mission, Vision, Approach Sections */
.mission-section, .vision-section, .approach-section {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mission-bg {
  width: 100%;
  height: 100%;
  padding: 14px;
  border-radius: 30px;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  filter: brightness(0.9);
}
.mission-overlay {
  left: 20%;
  position: relative;
  backdrop-filter: blur(10px);
  z-index: 2;
  background: #34658b4d;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 2rem 2rem;
  border-radius: 24px;
  max-width: 700px;
  margin: 13rem auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.mission-overlay a {
  text-decoration: none;
  list-style: none;
  transition: all 0.3s ease;
}

.vision-overlay a {
  text-decoration: none;
  list-style: none;
  transition: all 0.3s ease;
}

.approach-overlay a {
  text-decoration: none;
  list-style: none;
  transition: all 0.3s ease;
}

.vision-bg {
  padding: 14px;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  filter: brightness(0.9);
}
.vision-overlay {
  right: 20%;
  position: relative;
  backdrop-filter: blur(10px);
  z-index: 2;
  background: #34658b4d;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 2rem 2rem;
  border-radius: 24px;
  max-width: 700px;
  margin: 13rem auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.approach-bg {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  padding: 14px;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  filter: brightness(-1.5);
}
.approach-overlay {
  left: 20%;
  position: relative;
  backdrop-filter: blur(10px);
  z-index: 2;
  background: rgba(198, 218, 226, 0.184);
  border: 2px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 2rem 2rem;
  border-radius: 24px;
  max-width: 700px;
  margin: 13rem auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.mission-overlay h2, .vision-overlay h2, .approach-overlay h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #fff;
}

.mission-overlay a:hover {
  text-decoration: underline;
  background: #1a6d5b;
  padding: 1rem 1rem 1rem 1rem;
  border-radius: 12px;
  color: yellow;
}


.vision-overlay a:hover {
  text-decoration: underline;
  background: #1a6d5b;
  padding: 1rem 1rem 1rem 1rem;
  border-radius: 12px;
  color: yellow;
}

.approach-overlay a:hover {
  text-decoration: underline;
  background: #1a6d5b;
  padding: 1rem 1rem 1rem 1rem;
  border-radius: 12px;
  color: yellow;
}

.mission-overlay p {
  font-size: 1.1rem;
}
.vision-overlay ul, .approach-overlay ul {
  margin-left: 1.2rem;
  font-size: 1.1rem;
}
.vision-overlay ul li, .approach-overlay ul li {
  margin-bottom: 0.7rem;
}

/* Facilities Section */
.facilities-container {
    text-align: center;
    padding: 30px;
    margin: 0 auto;
    border-radius: 20px;
    width: 90%;
    height: 90%;
}

h1 {
    margin-bottom: 25px;
    font-size: 40px;
    font-weight: bold;
    color: #1a6d5b;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    grid-auto-rows: 250px;
}

.grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    color: white;
}

.grid-item img, .grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.grid-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-item {
    position: relative;
    cursor: pointer;
    grid-column: span 2;
    grid-row: span 2;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 30px;
    border-color: transparent transparent transparent white;
    margin-left: 5px;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .nav-container, .facilities-list {
    flex-direction: column;
    align-items: stretch;
  }
  .about-hero {
    padding: 1.5rem 0.5rem;
  }
  .mission-section, .vision-section, .approach-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mission-section img, .vision-section img, .approach-section img {
  width: 100%;
  height: 100%;
}
  .mission-overlay, .vision-overlay, .approach-overlay {
    padding: 1.2rem 0.7rem;
    position: relative;
    width: 80%;
  }
  .facilities-list {
    gap: 0.7rem;
  }

  .facilities-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
}
@media (max-width: 600px) {
  .container {
    width: 98%;
    padding: 0 0.5rem;
  }
  .about-hero {
    padding: 1rem 0.2rem;
    border-radius: 12px;
  }
  .mission-bg, .vision-bg, .approach-bg {
    height: 180px;
  }
  .mission-overlay, .vision-overlay, .approach-overlay {
    margin: 4rem auto;
    left: 10% !important;
    right: 10% !important;
  }

  .facility-card {
    width: 100%;
    min-width: unset;
    max-width: unset;
  }
  .facility-card img {
    height: 90px;
  }
}


/*  Responsive adjustments */
@media screen and (max-width: 768px) {
  .mission-overlay, .vision-overlay, .approach-overlay {
    margin: 3rem auto;
    left: 0 !important;
    right: 0 !important;
    padding: 1.5rem;
    text-align: center;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  .mission-overlay h2, .vision-overlay h2, .approach-overlay h2 {
    font-size: 1.6rem;
  }

  .mission-overlay p, .vision-overlay ul, .approach-overlay ul {
    font-size: 1rem;
  }
}

/* Dropdown Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .nav-link {
    display: flex;
    align-items: center;
}

.dropdown .nav-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 0;
    top: 100%;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #1a6d5b;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}