/* ===== CSS VARIABLES - Colors from Logo ===== */
:root {
  --primary: #06bff7;
  --primary-dark: #3ea3c2;
  --accent: #e8a020;
  --accent2: hwb(38 5% 7%);
  --green: #1a6b3a;
  --white: #ffffff;
  --light-bg: #f4f6f9;
  --border: #dde1e8;
  --text: #222;
  --text-muted: #555;
  --notice-bg: linear-gradient(
    to bottom,
    rgb(0, 162, 202) 0%,
    rgb(13, 19, 20) 100%
  );
  --notice-link: #f8d568;
  --ticker-hover: #e8a020;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f0f2f5;
  color: var(--text);
  font-size: 14px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: linear-gradient(
    to bottom,
    rgb(4, 158, 197) 0%,
    rgb(43, 92, 107) 100%
  );
  color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* justify-content: center;
  gap: 20px; */
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.top-bar-school {
  background: linear-gradient(
    to bottom,
    rgb(204, 138, 148) 0%,
    rgb(204, 138, 148) 50%,
    /* Navy Blue */ rgb(204, 138, 148) 100%
  );
  color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* justify-content: center;
  gap: 20px; */
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

@media screen and (max-width: 768px) {
  .top-bar {
    font-size: 12px;
  }
  .top-bar-school {
    font-size: 12px;
  }
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(
    to bottom,
    rgb(0, 162, 202) 0%,
    rgb(13, 19, 20) 100%
  );
  /* background: linear-gradient(135deg, #1a2a44 0%, #0d1e35 100%); */
  /* border-bottom: 3px solid var(--accent); */
  padding: 10px 0;
}
.site-header-school {
  background: linear-gradient(
    to bottom,
    #05b7e4 0%,
    #26a1ca 50%,
    /* Deep Dark Sky Blue */ #039cca 100%
  );
  padding: 10px 0;
}
.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-decoration: none;
}
.header-btn a {
  text-decoration: none;
}

.header-btn p {
  font-size: 20px;
  /* background: linear-gradient(135deg, #00B9F2, #0e56c2); */
  padding: 15px;
  color: #000;
  font-weight: 500;
  border-radius: 50px;
  background-color: white;
}
.header-inner {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-img {
  width: 250px;
  height: 200px;
  object-fit: contain;
  /* border-radius: 50%; */
  /* border: 2px solid var(--accent); */
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #fff)
    drop-shadow(0 0 15px #fff);
}
.logo-text h1 {
  font-size: 50px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #fff;
}

.logo-text p {
  font-size: 45px;
  color: var(--text-muted);
  margin-top: 3px;
  color: #fff;
  text-align: center;
}

.logo-text .p1 {
  font-size: 20px;
}
.logo-text .p2 {
  font-size: 28px;
}
.logo-text .p3 {
  font-size: 20px;
}

/* Logo Text Paragraph */
.logo-text .p4 {
  font-size: 18px;
  margin-bottom: 5px;
  line-height: 1.6;
}

/* All links */
.logo-text .p4 a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-text .p4 a.fb:hover {
  text-decoration: underline;
}

.logo-text .p4 .separator {
  margin: 0 12px;
  color: #666;
  font-weight: 300;
}

@media (max-width: 768px) {
  .logo-text .p4 .separator {
    margin: 0 8px;
  }
}

/* .logo-text .p4  {
    font-size: 18px;
    margin-bottom: 5px;
  }

.logo-text .p4 a,
.logo-text .p4 a:hover,
.logo-text .p4 a:focus,
.logo-text .p4 a:visited {
    text-decoration: none;
    color: inherit;
} */
.logo-text .p5 {
  font-size: 15px;
}
.school-btn {
  background: #1a3a6b;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.school-btn:hover {
  background: #0263eb;
}

/* ===== NAVIGATION ===== */
.main-nav {
  /* background: var(--primary); */
  background: linear-gradient(to bottom, #00b9f2 0%, #072530 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 16px;
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.nav-list > li > a {
  display: block;
  color: #e8edf5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  padding: 12px 13px;
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.has-dropdown:hover > a {
  background: var(--accent);
  color: #fff;
  border-radius: 5px;
}
.nav-login-btn {
  background: rgb(240, 234, 234) !important;
  color: black !important;
  border-radius: 50px;
  padding: 10px 16px !important;
  font-weight: 800 !important;
}
.nav-login-btn:hover {
  background: linear-gradient(135deg, #00b9f2, #0e56c2) !important;
  color: white !important;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0288a9;
  min-width: 190px;
  border: 1px solid #ddd;
  border-top: 3px solid var(--accent);
  z-index: 2000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
  list-style: none;

  /* Desktop smooth dropdown (slide-up) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px) scale(0.95);
  transition:
    opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 500ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 500ms;

  will-change: opacity, transform;
}
.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 400ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0ms;
}
.dropdown li a {
  display: block;
  padding: 9px 16px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  /* border-bottom: 1px solid #f0f0f0; */
  transition:
    background 0.15s,
    color 0.15s;
}
.dropdown li a:hover {
  background: var(--primary);
  color: #fff;
}

/* Sub-dropdown */
.sub-dropdown {
  top: 0;
  left: 100%;
  border-top: 3px solid var(--accent2);
}
.level3 {
  top: 0;
  left: 100%;
  border-top: 3px solid var(--green);
}
.dropdown li.has-dropdown > a::after {
  content: " ›";
  float: right;
}

/* ==========================================
   MOBILE DRAWER MENU
========================================== */

/* =====================================
   MOBILE DRAWER MENU
===================================== */

.mobile-nav-header {
  display: none;
}

.hamburger {
  display: none;
  width: 45px;
  height: 45px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  border-radius: 50px;
  background: #fff;
  transition: 0.3s;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991px) {
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
  }

  .mobile-logo img {
    max-height: 45px;
    width: auto;
    display: block;
  }

  .hamburger {
    display: flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  /* Mobile drawer menu */
  .nav-list {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -340px;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: linear-gradient(to bottom, #00b9f2 0%, #072530 100%);
    z-index: 1001;
    padding: 60px 0 calc(95px + env(safe-area-inset-bottom, 0px));
    transition: 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    flex-direction: column !important;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .nav-list.open {
    right: 0;
  }

  .nav-list > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    width: 100%;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
  }

  .nav-list > li > a:hover {
    background: rgba(232, 160, 32, 0.2);
  }

  /* Mobile: drawer stacking + deterministic dropdown visibility */
  .dropdown,
  .dropdown .dropdown,
  .dropdown .dropdown .dropdown,
  .dropdown .dropdown .dropdown .dropdown {
    display: none;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    min-width: 0;
    background: rgba(0, 0, 0, 0.12);
  }

  /* Any active parent shows its direct dropdown */
  .has-dropdown.active > .dropdown {
    display: block;
  }

  /* If submenu inside submenu is active, its own dropdown should show too */
  .has-dropdown.active > .dropdown .has-dropdown.active > .dropdown {
    display: block;
  }

  .has-dropdown.active
    > .dropdown
    .has-dropdown.active
    > .dropdown
    .has-dropdown.active
    > .dropdown {
    display: block;
  }

  .dropdown li > a {
    display: block;
    padding: 10px 16px 10px 35px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .dropdown li > a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
  }

  /* Level 2 - more indent */
  .dropdown .dropdown li > a {
    padding-left: 55px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.1);
  }

  /* Level 3 - even more indent */
  .dropdown .dropdown .dropdown li > a {
    padding-left: 75px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.08);
  }

  /* Arrow rotation */
  .has-dropdown > a i {
    margin-left: auto;
    transition: 0.3s;
    font-size: 12px;
  }

  .has-dropdown.active > a i {
    transform: rotate(180deg);
  }
}

/* ===== NOTICE TICKER ===== */
.notice-ticker {
  background: var(--notice-bg);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
  margin: 20px 0;
}
.ticker-label {
  background: linear-gradient(135deg, #012530, #0e56c2);
  color: white;
  font-weight: 700;
  font-size: 20px;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}
.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-item {
  color: var(--notice-link);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.ticker-item:hover {
  color: #fff;
  text-decoration: none;
}
.ticker-item::before {
  content: "◆ ";
  font-size: 9px;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .notice-ticker {
    flex-direction: column;
    gap: 20px;
    height: auto;
    padding: 6px 0;
    margin: 15px 5px;
    border-radius: 7px;
  }
  .ticker-label {
    background: #6ac7f1;
    color: black;
    font-weight: 500;
    font-size: 15px;
    padding: 5px 14px;
    height: 100%;
    border-radius: 4px;
  }

  .ticker-wrapper {
    margin-bottom: 10px;
  }
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
  /* NOTE: achievements page uses its own css file */

  /* max-width: 1200px; */
  margin: 18px auto;
  display: flex;
  gap: 18px;
  padding: 60px;
}
.content-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== IMAGE SLIDER ===== */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  aspect-ratio: 16/7;
}
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 58, 107, 0.82);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 58, 107, 0.72);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: var(--accent);
}
.slider-btn.prev {
  left: 10px;
}
.slider-btn.next {
  right: 10px;
}
.slider-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.slider-dot.active {
  background: var(--accent);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.welcome-section h2 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}
.welcome-section p {
  line-height: 1.75;
  color: #444;

  font-size: 13.5px;
}

.welcome-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/8;
}
.c-img {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center; /* vertical center */
}

.c-img img {
  max-width: 30%;
  height: auto;
  display: block;
}
@media (max-width: 576px) {
  .c-img img {
    max-width: 95%;
  }
}
.chairman-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chairman-section h2 {
  font-size: 25px;
 border-radius: 10px;
  padding: 5px;
  background-color: white;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: center;
}
.c-section p {
  line-height: 1.75;
  color: #444;
  font-size: 15px;
}
.c-section .margin {
 margin-top: 30px;
}
.c-section .c-name {
font-size: 18px;

  font-weight: 700;
 
}
.c-section {
  line-height: 1.75;
  color: #444;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13.5px;
  padding: 20px;
  border-radius: 4px;
  
}

/* Why Study at PKFSC list */

.step-list {
  padding-left: 20px;
  margin: 0;
}

.step-list li {
  margin-bottom: 12px;
  padding: 12px 15px;

  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  transition: all 0.3s ease;
}

/* mission vission list */

.mission-content {
  padding: 20px;

  border-radius: 10px;
  line-height: 1.8;
  color: #333;
}

.mission-content h3 {
  font-size: 24px;

  margin-bottom: 15px;
}

.mission-content h4 {
  font-size: 20px;
  color: #222;
  margin-top: 25px;
  margin-bottom: 12px;
  padding-left: 10px;
}

.mission-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.mission-content ul {
  padding-left: 25px;
  margin-bottom: 20px;
}

.mission-content ol li {
  margin-bottom: 8px;
}

/* ===== SECTION BLOCKS ===== */
.section-block {
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 4px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}
.section-header h3 {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}
.view-all {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
.view-all:hover {
  color: var(--primary);
  text-decoration: underline;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card img {
  width: 100%;
  /* height: 300px; */
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.card p {
  font-size: 12.5px;
  color: #333;
  line-height: 1.5;
}
.read-more {
  color: var(--primary);
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
.read-more:hover {
  color: var(--accent2);
  text-decoration: underline;
}

/* ===== GALLERY GRID ===== */

/* ===== GALLERY GRID ===== */



/* ===== YOUTUBE BANNER ===== */
.yt-banner {
  background: linear-gradient(to bottom, #02b6ec 0%, #031c24 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 18px;
  color: #fff;
}
.yt-logo-circle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yt-logo-circle img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #fff;
}
.yt-logo-circle p {
  font-size: 12.5px;
  color: #cdd5e0;
}
.yt-center {
  text-align: center;
}
.yt-play-btn {
  font-size: 42px;
  color: #ff0000;
  cursor: pointer;
}
.yt-center p {
  font-size: 12px;
  color: #aab;
  margin-top: 4px;
}
.yt-icons-row {
  display: flex;
  gap: 14px;
  font-size: 18px;
  color: #7b8ca0;
}
.yt-icons-row i:hover {
  color: var(--accent);
  cursor: pointer;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* position: sticky;
  top: 0;
  align-self: flex-start; */
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.sidebar-card-header {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  letter-spacing: 0.3px;
}
.chairman-link {
  text-decoration: none;
}
.sidebar-card-body {
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.person-photo {
  width: 150px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-card-body p {
  font-size: 12px;
  color: #333;
  line-height: 1.5;
}
.why-study-body {
  align-items: center;
  gap: 10px;
}
.why-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid var(--border);
}
.why-study-body span {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
}

/* ===== NOTICES SCROLL ===== */
.notices-scroll-wrap {
  overflow: hidden;
  height: 200px;
  position: relative;
}
.notices-scroll-track {
  display: flex;
  flex-direction: column;
  animation: notices-up 18s linear infinite;
}
.notices-scroll-wrap:hover .notices-scroll-track {
  animation-play-state: paused;
}
@keyframes notices-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
.notice-item {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}
.notice-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 3px;
  padding: 3px 7px;
  min-width: 38px;
  flex-shrink: 0;
}
.nd {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.nm {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}
.notice-content {
  flex: 1;
}
.notice-content a {
  display: block;
  color: #333;
  font-size: 12px;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 4px;
}
.notice-content a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.find-more {
  color: var(--accent) !important;
  font-size: 11px !important;
  font-weight: 700;
}
.find-more:hover {
  color: var(--accent2) !important;
}
.view-all-link {
  display: block;
  text-align: right;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  text-decoration: none;
  border-top: 1px solid #eee;
}
.view-all-link:hover {
  color: var(--primary);
}

/* Facebook Card */
.fb-body {
  flex-direction: column;
  gap: 10px;
}
.fb-page-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.fb-icon {
  font-size: 28px;
  color: #1877f2;
}
.small-fb {
  font-size: 20px;
}
.fb-follow-btn {
  display: inline-block;
  background: #1877f2;
  color: #fff;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.fb-follow-btn:hover {
  background: #155fc0;
}

/* Visitor Table */
.visitor-body {
  display: block;
  padding: 0;
}
.visitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.visitor-table tr {
  border-bottom: 1px solid #eee;
}
.visitor-table tr:last-child {
  border-bottom: none;
}
.visitor-table td {
  padding: 8px 14px;
  color: #333;
}
.visitor-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
}

/* video table */
/* video table */

.video-body {
  padding: 10px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.video-item {
  border-radius: 6px;
  overflow: hidden;
}

.video-item iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}
@media (max-width: 576px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(to bottom, #01181f 0%, #007da8 100%);
  color: #c8d4e4;
  margin-top: 24px;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col {
  flex: 1;
  min-width: 220px;
}
.footer-col h4 {
  color: var(--accent);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d8d9db;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--accent);
}
.footer-col p {
  font-size: 12.5px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-col p i {
  color: var(--accent);
  margin-right: 6px;
}
.footer-col p strong {
  color: #fff;
}
.footer-bottom {
  background: linear-gradient(to bottom, #0d95be 0%, #007da8 100%);

  max-width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: white;
  flex-wrap: wrap;
  gap: 8px;
}

.cl {
  color: white;
  text-decoration: none;
}
.cl:hover {
  color: black;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
    padding: 10px;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-card {
    flex: 1 1 280px;
  }
  .notices-scroll-wrap {
    height: 160px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .logo-text h1 {
    font-size: 20px;
    text-align: center;
  }
  .logo-text {
    margin-left: 0;
  }
  .logo-text p {
    font-size: 20px;
    margin-top: 6px;
    margin-bottom: 5px;
    text-align: center;
  }
  .logo-text .p1 {
    font-size: 10px;
    margin-top: 6px;
    margin-bottom: 5px;
    text-align: center;
  }
  .logo-text .p2 {
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 5px;
    text-align: center;
  }
  .logo-text .p3 {
    font-size: 10px;
    margin-top: 6px;
    margin-bottom: 5px;
    text-align: center;
  }
  .logo-text .p4 {
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 5px;
    text-align: center;
  }
  .logo-img {
    display: none;
  }

  .header-btn {
    gap: 10px;
    margin-bottom: 15px;
  }
  .header-btn p {
    font-size: 10px;
    padding: 10px;
  }
  .switcher-container {
    margin: 15px 0;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hamburger {
    display: flex !important;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .slider-container {
    aspect-ratio: 4/3;
  }
}
@media (min-width: 992px) and (max-width: 1399px) {
  .header-inner {
    padding: 0 50px;
  }

  .logo-text h1 {
    font-size: 45px;
  }
  .logo-text p {
    font-size: 40px;
  }
  .logo-text .p1 {
    font-size: 18px;
  }
  .logo-text .p2 {
    font-size: 25px;
  }
  .logo-text .p3 {
    font-size: 18px;
  }

  .logo-img {
    width: 150px;
  }

  .sidebar {
    width: 400px;
  }
}
@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .school-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* school college switcher */

.switcher-container {
  display: flex;
  background: white;
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.switch-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: black;
  background: transparent;
}

.switch-btn .icon {
  font-size: 18px;
  transition: transform 0.4s;
}

.switch-btn.active {
  background: linear-gradient(135deg, #00b9f2, #0e56c2);
  color: white;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.switch-btn.active .icon {
  transform: scale(1.2);
}

.switch-btn:hover:not(.active) {
  color: #444;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .switch-btn {
    padding: 8px 20px;
    font-weight: 700;
    font-size: 10px;
  }
}

/* loader css */

.custom-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  animation: pulse 2s infinite ease-in-out;
  z-index: 2;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 6px solid #f0f0f0;
  border-top: 6px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.custom-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .loader-logo {
    width: 100px;
    height: 100px;
  }
}

/* Important Links */
.links-body {
  padding: 0;
}

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links-list li {
  border-bottom: 1px solid #eee;
}

.links-list li:last-child {
  border-bottom: none;
}

.links-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.links-list li a i {
  color: var(--primary);
  font-size: 12px;
}

.links-list li a:hover {
  background: #f5f9ff;
  color: var(--primary);
  padding-left: 20px;
}

/* Achievements page - two column responsive layout */

.achievements-main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 60px 16px;
}

.achievement-two-column {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
}

.achievement-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.achievement-image {
  width: 65%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  /* aspect-ratio: 16/10; */
}

.acc-text {
  text-align: center;
  margin-top: 30px;
}

.achievement-details h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.achievement-details p {
  line-height: 1.9;
  color: #333;
  font-size: 15px;
  margin-bottom: 18px;
}

.achievement-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #00b9f2, #0e56c2);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px rgba(0, 185, 242, 0.18);
}

.achievement-readmore:hover {
  background: linear-gradient(135deg, #0e56c2, #00b9f2);
  transform: translateY(-1px);
}

/* Responsive rules */
@media (max-width: 1024px) {
  .achievement-two-column {
    grid-template-columns: 50% 50%;
  }
  .achievement-details h2 {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .achievements-main {
    padding: 30px 14px;
  }

  .achievement-two-column {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .achievement-image {
    width: 100%;
  }

  .achievement-details h2 {
    font-size: 22px;
  }
}

/* ===========================
   Governing Body Premium Style
=========================== */

.governing-body-section {
  max-width: 1800px;
  margin: 0 auto;
  padding: 60px 16px;
}

.governing-body-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Table */

.governing-body-table {
  width: 100%;
  border-collapse: collapse;
}

.governing-body-table thead {
  background: linear-gradient(135deg, #0d6efd, #4f46e5);
}

.governing-body-table th {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 18px;
  text-align: left;
}

.governing-body-table td {
  padding: 18px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

.governing-body-table tbody tr {
  transition: 0.35s;
}

.governing-body-table tbody tr:hover {
  background: #f8faff;
}

/* Serial */

.governing-body-serial {
  font-weight: 700;
  color: #0d6efd;
  text-align: center;
  font-size: 18px;
  
}

/* Name */

.member-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e293b;
  line-height: 1.5;
}
.member-info {
  font-size: 15px;
  font-weight: 600;
  margin-top: 10px;
  
}

/* Badges */

.governing-body-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: #eef4ff;
  color: #0d6efd;

  padding: 8px 14px;

  border-radius: 50px;

  font-size: 13px;
  font-weight: 600;
}

.gb-badge i {
  font-size: 12px;
}

/* Image */

.governing-body-image {
  text-align: center;
}

.governing-body-image img {
  width: 150px;
  height: 150px;
  border-radius: 20px;
  object-fit: cover;

  border: 4px solid #fff;

  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.18);

  transition: 0.4s;
}

.governing-body-table tr:hover img {
  transform: scale(1.08);
}

/* ===========================
   Mobile Cards
=========================== */

.governing-body-cards {
  display: none;
}

@media (max-width: 991px) {
  .governing-body-table-wrap {
    display: none;
  }

  .governing-body-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }

  .governing-body-card-item {
    background: #fff;

    border-radius: 24px;

    padding: 25px;

    text-align: center;

    border: 1px solid #eef2f7;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    transition: 0.35s;
  }

  .governing-body-card-item:hover {
    transform: translateY(-5px);
  }

  .governing-body-card-photo img {
    width: 130px;
    height: 130px;

    border-radius: 50%;

    object-fit: cover;

    border: 5px solid #fff;

    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2);

    margin-bottom: 15px;
  }

  .governing-body-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  .governing-body-card-info {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
    margin-top: 10px;
  }

  .governing-body-card-designations {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .governing-body-card-photo img {
    width: 115px;
    height: 115px;
  }

  .governing-body-card-name {
    font-size: 18px;
  }

  .gb-badge {
    font-size: 12px;
    padding: 7px 12px;
  }
}

/* accivement details */

.achievement-section {
  padding: 70px 20px;
  background: url("pattern.png");
}

.container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 700;
  color: #111;
}

.section-title span {
  width: 80px;
  height: 4px;
  background: #00bcd4;
  display: block;
  margin: 15px auto 0;
  border-radius: 50px;
}

.achievement-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.4s;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.gallery img:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.achievement-content p {
  font-size: 17px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 25px;
}

.achievement-content h3 {
  margin-bottom: 25px;
  font-size: 28px;
}

.achievement-content h4 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #111;
}

/* Modal */

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-modal.active {
  display: flex;
}

#modalImage {
  max-width: 85%;
  max-height: 85%;
  border-radius: 10px;
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #fff;
  font-size: 45px;
  cursor: pointer;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
  background: #00bcd4;
}

.prev-btn {
  left: 40px;
}

.next-btn {
  right: 40px;
}

/* Responsive */

@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 28px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .achievement-content h4 {
    font-size: 18px;
  }

  .prev-btn,
  .next-btn {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
}
