/* ==============================
    Mobile (base)
    ⬇️
    Tablet (768px)
    ⬇️
    Desktop (1024px)
    ⬇️
    Large desktop (1280px+)
============================== */

/* For cards, buttons, toast, forms */

/* NOTICE LIST */

.notice-card {
  cursor: pointer;
  background: #fff;
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;

  border-radius: 10px;
  border: 1px solid #f0f0f0;

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.notice-card:hover {
  background: linear-gradient(
    135deg,
    rgb(0 115 254 / 10%),
    rgb(67 160 71 / 6%)
  );

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.notice-card h3 {
  margin: 0 0 6px;

  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

.notice-date {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 0.8rem;
  color: #777;

  margin-bottom: 8px;
}

.notice-preview {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* why choose us */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.why-card p {
  opacity: 1;
  max-height: none;
  margin-top: 12px;
  transition: none;
}

.why-card i {
  font-size: 36px;
  color: #1e88e5;
  margin-bottom: 12px;
}

.why-card.has-desc:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.why-card.has-desc:hover p {
  opacity: 1;
  max-height: 200px;
  margin-top: 12px;
}

/* Newest why card */

.why-card {
  position: relative;
  background: linear-gradient(135deg, #ffe0e6, #fff6d5);
  /* background: linear-gradient(135deg, rgb(0 115 254 / 12%), rgb(67 160 71 / 8%)); */
  border-radius: 14px;
  padding: 24px;
  min-height: 150px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid #e0e0e0;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
  border-bottom: none;
}

.why-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* tablet */
@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-card p {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }

  .why-card.has-desc:hover p {
    opacity: 1;
    max-height: 200px;
    margin-top: 12px;
  }
}

/* desktop */
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* big desktop */
@media (min-width: 1280px) {
  .page {
    width: 70vw;
    max-width: 1200px;
  }
}

/* GALLERY GRID */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-folder {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-folder:hover {
  transition: 0.3s ease;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.gallery-folder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.folder-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}

.folder-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.folder-title {
  padding: 10px;
  text-align: center;
  font-weight: 600;
  background: #fff;
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  position: relative;
  background: #fff;
  max-width: 720px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  padding: 1.5rem;
  border-radius: 12px;
}


.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  line-height: 1;

  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;

  transition: background-color 0.2s ease, transform 0.15s ease;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-close:focus-visible {
  outline: none;
  background-color: rgba(0, 0, 0, 0.12);
}

.modal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111;

  margin-bottom: 0.4rem;
  padding-right: 3rem; /* space for close button */
}

.modal-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;

  font-size: 0.85rem;
  color: #666;

  margin-bottom: 1rem;
}

.modal-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
  margin-bottom: 1.5rem;
}

.modal-images {
  display: grid;
  gap: 1rem;
}

.modal-images img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .modal {
    padding: 1.25rem;
  }

  .modal h2 {
    font-size: 1.1rem;
  }
}


/* .modal-images img {
  width: 100%;
  margin-top: 12px;
  border-radius: 6px;
} */


/* new modal style end */


/* ===== CONTENT CAROUSEL ===== */

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s ease;
  cursor: grab;
}

.carousel-card {
  min-width: 250px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 15px;
}

.carousel-card .card-media {
  flex: 3; /* 75% */
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
}

.carousel-card .card-footer {
  flex: 1; /* 25% */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.carousel-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  overflow: visible;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 21px 0 45px 0;
}

.carousel-track.dragging {
  cursor: grabbing;
}

.card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-footer {
  margin-top: auto;
  padding: 12px;
  /* background: #fff; */
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
}

.card-footer strong {
  display: block;
  font-weight: 600;
}

.card-footer span {
  font-size: 0.85rem;
  opacity: 0.7;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  background: linear-gradient(135deg, #ffe0e6, #fff6d5);
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  padding: 10px 16.5px;
  border-radius: 50%;
}

.carousel-wrapper:hover .carousel-arrow {
  opacity: 1;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }

.text-thumb {
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* max 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-thumb {
  font-size: 3rem;
  color: white;
  background: rgba(0,0,0,0.5);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-carousel-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.carousel-gallery-modal-content {
  background: white;
  width: 90%;
  max-width: 900px;
  min-height: 400px;
  padding: 16px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.carousel-gallery-modal-content:focus {
  outline: none;
}

.content-carousel-modal-media img,
.content-carousel-modal-media iframe {
  width: 100%;
  height: auto;
}

/* .carousel-gallery-modal-content button {
  z-index: 2;
  position: relative;
} */

.carousel-gallery-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;   /* ← stays top-right */
  font-size: 1.8rem;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
}

/* Navigation arrows */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
}

.modal-nav.left {
  left: 16px;
}

.modal-nav.right {
  right: 16px;
}

.content-carousel-modal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  z-index: 1;
}

.content-carousel-modal-loader::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Backup from old */

.carousel-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}



/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    #eee 25%,
    #f5f5f5 37%,
    #eee 63%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* Folder skeleton */
.skeleton-folder {
  height: 120px;
}

/* Image skeleton */
.skeleton-image {
  width: 80vw;
  max-width: 800px;
  height: 60vh;
}

/* About page */
.page {
  width: 90vw;
  margin: auto;
  padding: 2rem 1rem;
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

section.page-section {
  margin-top: 50px;
  min-height: 380px;
}

.about-sections {
  display: grid;
  gap: 2rem;
}

.about-block {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
}

.about-block h2 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.about-block p {
  line-height: 1.8;
  padding-bottom: 10px;
}

.principal-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: white;
  padding: 1.5rem;
  padding-top: 0;
  border-radius: 12px;
}

.principal-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.facility-card {
  background: white;
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
}

.facility-card i {
  font-size: 2rem;
  color: var(--color-primary);
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
}

.testimonial {
  min-width: 250px;
  background: white;
  padding: 1.2rem;
  border-radius: 10px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.map-section iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
  margin-top: 2rem;
}

.contact-form-section {
  margin-top: 3rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.contact-form button {
  background: var(--color-primary);
  color: white;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* toast */

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #2e7d32;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */

footer {
  /* background: #2f2f2f; */
  /* color: white; */
  /* padding: 2rem 0 2rem 10vw; */
  padding: 2rem 10vw;
  /* padding: 2rem 1rem; */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-list {
  list-style: none;
  padding: 0;
}

.social-icons i {
  font-size: 1.4rem;
  margin-right: 0.6rem;
  cursor: pointer;
}

/* Slider */

.slider-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
}

.slide {
  min-width: 280px;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* .notice-wrapper {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
} */

/* @media (min-width: 768px) {
  .notice-wrapper {
    grid-template-columns: 3fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .notice-wrapper {
    gap: 1.5rem;
  }
} */

.notice-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .notice-wrapper {
    grid-template-columns: 3fr 1fr;
  }
}


/* Hero css */

.hero {
  position: relative;
  width: 100%;
  height: 40vh;              /* Full hero height */
  min-height: 420px;
  overflow: hidden;
}

/* One slide covers entire hero */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;    /* 🔥 THIS MAKES IMAGE FULL WIDTH */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #0069f8c4;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Text sizing */
.hero-overlay h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
  text-align: center;
}

.hero-overlay p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.5;
  text-align: center;
}

/* Back to top */

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #1e88e5;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.show {
  display: flex;
  pointer-events: auto;
}

#backToTop:hover {
  transform: translateY(-3px);
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    #eee 25%,
    #f5f5f5 37%,
    #eee 63%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.skeleton-thumb {
  width: 100%;
  height: 160px;
}

.skeleton-title {
  height: 14px;
  margin-top: 8px;
}

/* Tablet */

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Latest gallery modal */

/* ================= MODAL BASE ================= */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.gallery-modal-container {
  position: relative;
  background: #fff;
  width: 90vw;
  max-width: 1100px;
  height: 90vh;
  margin: auto;
  top: 5vh;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.gallery-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.gallery-modal-close {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= BODY ================= */
.gallery-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-media {
  max-width: 100%;
  max-height: 100%;
}

.gallery-media img {
  max-width: 100%;
  max-height: 80vh;
}

/* ================= ARROWS ================= */
.gallery-nav {
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }

/* ================= SKELETON ================= */
.modal-skeleton-image {
  width: 70vw;
  height: 60vh;
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ================= PAGE HERO ================= */

.page-hero {
  background: linear-gradient(135deg, #1e88e5, #0d47a1);
  color: white;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  text-align: center;
}

.page-hero-inner {
  max-width: 1100px;
  margin: auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.95;
}

/* Mobile spacing fix */
@media (max-width: 768px) {
  .page-hero {
    padding: 2.5rem 1rem;
  }
}

/* Contact map container */
.map-section {
  position: relative;
  width: 100%;
  height: 420px; /* REQUIRED */
  border-radius: 12px;
  overflow: hidden;
}

/* Google Map iframe */
.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* New style of contact page */

/* ==============================
   CONTACT PAGE – MAIN LAYOUT
============================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

/* Desktop layout */
/* @media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.1fr 1.4fr;
    gap: 64px;
  }
} */

/* left section */

.contact-left {
  max-width: 520px;
}

.contact-form-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-form-section p {
  color: #666;
  margin-bottom: 24px;
}

/* form styling */

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.contact-form button {
  margin-top: 8px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #6d28d9;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: #5b21b6;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.contact-form button {
  margin-top: 8px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #6d28d9;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* right section */
.contact-form button:hover {
  background: #5b21b6;
}

/* Contact info card top right */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* .contact-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
} */

/* .contact-card i {
  font-size: 20px;
  color: #16a34a;
  margin-bottom: 8px;
} */

/* map section full height no gaps */

.map-section {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

@media (min-width: 1024px) {
  .map-section {
    height: 100%;
    min-height: 520px;
  }
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* new update with mobile layout */
/* ==============================
   CONTACT – MOBILE FIRST
============================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 16px 0;
}

/* LEFT CONTENT */
.contact-left {
  max-width: 100%;
}

.contact-form-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-section p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

/* FORM */
.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label span {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: #16a34a;
  color: white;
  border: none;
}

/* CONTACT INFO CARDS – MOBILE */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* .contact-card i {
  font-size: 20px;
  color: #16a34a;
} */

.contact-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* CONTACT INFO CARDS – MOBILE */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-card {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.contact-card i {
  font-size: 20px;
  color: #16a34a;
}

.contact-card i:hover {
  
}

.contact-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ==============================
   CONTACT INFO – TOP SECTION
============================== */

.contact-info-top {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

/* Card style */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  font-size: 15px;
}

.contact-info-card i {
  color: #22c55e;
  font-size: 20px;
}

/* Desktop layout */

@media (min-width: 768px) {
  .contact-info-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==============================
   TABLET
============================== */

@media (min-width: 768px) {
  .contact-layout {
    gap: 48px;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .map-section {
    height: 360px;
  }
}

/* ==============================
   CONTACT – DESKTOP MAP FIX
============================== */

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.1fr 1.4fr;
    gap: 64px;
  }
  .contact-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
  }

  /* Contact cards stay natural height */
  .contact-grid {
    flex-shrink: 0;
  }

  /* Map fills remaining vertical space */
  .map-section {
    flex: 1;
    min-height: 420px; /* safety */
  }

  .map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    margin-top: 0;
  }
}

/* Why choose us - section title */

#whyChoose,
#alumniStories {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #fafafa;
  scroll-margin-top: 80px; /* helpful for anchor navigation */
}

/* Section title – strong visual separator */
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
  color: #1a1a1a;
}

/* Decorative divider under title */
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, #0073fe, #ffd0d3);
  border-radius: 999px;
}

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

.section-title {
  animation: fadeUp 0.6s ease-out both;
}

.why-card {
  animation: fadeUp 0.6s ease-out both;
  animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .section-title,
  .why-card {
    animation: none;
  }
}

/* ✅ Correct place for grid */
.notice-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .notice-wrapper {
    grid-template-columns: 3fr 1fr;
    align-items: start;
  }
}

.notice-section {
  width: 100%;
}

/* 404 error style */

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
}

/* ===============================
   404 ANIMATION
=============================== */

.error-illustration {
  position: relative;
  height: 120px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.cloud {
  position: absolute;
  top: 40%;
  width: 60px;
  height: 30px;
  background: #e5e7eb;
  border-radius: 50px;
  animation: float 8s linear infinite;
  opacity: 0.8;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  top: -15px;
}

.cloud::before {
  left: 8px;
}

.cloud::after {
  right: 8px;
}

.cloud-1 {
  left: -80px;
  animation-duration: 12s;
}

.cloud-2 {
  left: -120px;
  top: 55%;
  animation-duration: 16s;
}

.cloud-3 {
  left: -100px;
  top: 25%;
  animation-duration: 20s;
}

@keyframes float {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(120vw);
  }
}