/* =========================================================
   JPNSV - JAI PRAKASH NARAYAN SARVODAYA VIDYALAYA
   Main Website Stylesheet
   Bootstrap 5 Compatible
========================================================= */
/* =========================================================
   ROOT VARIABLES - NEW ROYAL PURPLE / GOLD THEME
========================================================= */

:root {

  /* Primary Theme */
  --primary: #5b3cc4;
  --primary-dark: #3f2691;
  --primary-light: #f0ecff;

  /* Secondary / Accent */
  --secondary: #e6a817;
  --secondary-dark: #bd8208;

  /* Text */
  --dark: #211a35;
  --dark-2: #342b4d;
  --text: #5b5668;
  --muted: #817b8e;

  /* Background */
  --light: #f8f7fc;
  --white: #ffffff;

  /* Border */
  --border: #e6e2ef;

  /* Status */
  --success: #198754;
  --danger: #dc3545;

  /* Shadows */
  --shadow-sm: 0 5px 20px rgba(91, 60, 196, 0.07);
  --shadow: 0 12px 35px rgba(91, 60, 196, 0.11);
  --shadow-lg: 0 20px 55px rgba(91, 60, 196, 0.16);

  /* Radius */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Transition */
  --transition: all 0.35s ease;
}

/* =========================================================
   GENERAL
========================================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  padding: 0;

  font-family: "DM Sans", sans-serif;

  color: var(--text);
  background: var(--white);

  line-height: 1.7;

  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

h2 em {
  color: var(--primary);
  font-style: normal;
}

p {
  margin-bottom: 1rem;
}

/* =========================================================
   SECTION
========================================================= */

.section {
  padding: 90px 0;
  position: relative;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 20px;
}

.section-heading p {
  color: var(--muted);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--primary);

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 1.8px;
  text-transform: uppercase;

  margin-bottom: 12px;
}

.section-label::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--secondary);
  display: inline-block;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
}

.btn-warning {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.btn-warning:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
}

/* =========================================================
   TOP BAR
========================================================= */

.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);

  font-size: 13px;

  padding: 8px 0;
}

.topbar .container {
  max-width: 1320px;
}

.topbar i {
  color: var(--secondary);
  margin-right: 5px;
}

.topbar .social-icons {
  display: flex;
  gap: 7px;
}

.topbar .social-icons a {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;

  color: #fff;

  font-size: 13px;
}

.topbar .social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* =========================================================
   MAIN HEADER
========================================================= */

.main-header {
  background: #fff;
  padding: 18px 0;

  position: relative;
  z-index: 1000;

  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 13px;

  color: var(--dark);
}

.logo:hover,
.footer-logo:hover {
  color: var(--primary);
}

.logo-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, var(--primary), var(--primary-dark));

  color: #fff;

  border-radius: 14px;

  font-size: 24px;

  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.22);
}

.logo strong,
.footer-logo strong {
  display: block;

  font-family: "Playfair Display", serif;

  font-size: 22px;
  line-height: 1;
}

.logo small,
.footer-logo small {
  display: block;

  color: var(--muted);

  font-size: 11px;

  margin-top: 5px;

  max-width: 310px;
}

/* =========================================================
   NAVIGATION
========================================================= */

.main-navbar {
  background: #fff;

  border-bottom: 1px solid var(--border);

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);

  z-index: 999;
}

.main-navbar .navbar-nav {
  gap: 3px;
}

.main-navbar .nav-link {
  color: var(--dark);

  font-size: 14px;
  font-weight: 600;

  padding: 14px 15px !important;

  border-radius: 8px;

  position: relative;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.main-navbar .nav-link.active::after {
  content: "";

  position: absolute;

  left: 15px;
  right: 15px;
  bottom: 4px;

  height: 2px;

  background: var(--primary);

  border-radius: 5px;
}

.main-navbar .dropdown-menu {
  border: 0;

  border-radius: 12px;

  padding: 10px;

  box-shadow: var(--shadow);

  /* margin-top: 8px; */
}

.main-navbar .dropdown-item {
  padding: 10px 14px;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 500;

  color: var(--dark);
}

.main-navbar .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

/* =========================================================
   HERO
========================================================= */

.hero-slide {
  min-height: 650px;

  background-size: cover;
  background-position: center;

  position: relative;

  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(7, 19, 44, 0.9) 0%,
    rgba(7, 19, 44, 0.7) 45%,
    rgba(7, 19, 44, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 720px;

  color: #fff;

  padding: 80px 0;
}

.hero-label {
  display: inline-block;

  color: var(--secondary);

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 15px;
}

.hero-content h1 {
  color: #fff;

  font-size: clamp(2.5rem, 5vw, 4.8rem);

  margin-bottom: 20px;
}

.hero-content h1 strong {
  display: block;

  color: var(--secondary);
}

.hero-location {
  margin-top: 10px;
  margin-bottom: 18px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.hero-content p {
  max-width: 650px;

  color: rgba(255, 255, 255, 0.88);

  font-size: 18px;

  margin-bottom: 30px;
}

.hero-content .btn {
  padding: 12px 25px;
}

.hero-content .btn i {
  margin-left: 8px;
}

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
  width: 7%;
}

#heroSlider .carousel-control-prev-icon,
#heroSlider .carousel-control-next-icon {
  width: 42px;
  height: 42px;

  background-color: rgba(255, 255, 255, 0.15);

  border-radius: 50%;

  background-size: 45%;
}

#heroSlider .carousel-indicators {
  z-index: 5;
}

#heroSlider .carousel-indicators button {
  width: 30px;
  height: 4px;

  border: 0;

  border-radius: 10px;

  opacity: 0.5;
}

#heroSlider .carousel-indicators .active {
  opacity: 1;
}

/* =========================================================
   NEWS TICKER
========================================================= */

.news-ticker {
  background: var(--primary);
  color: #fff;

  overflow: hidden;
}

.ticker-title {
  height: 55px;

  display: flex;
  align-items: center;

  gap: 9px;

  background: var(--secondary);

  padding: 0 20px;

  font-weight: 700;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;

  padding: 0 20px;
}

.ticker-track {
  display: inline-flex;
  align-items: center;

  gap: 70px;

  animation: tickerMove 25s linear infinite;
}

.ticker-track span {
  display: inline-block;

  font-size: 14px;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   ABOUT
========================================================= */

.about-reference {
  background: #fff;
}

.about-image {
  position: relative;

  border-radius: var(--radius-lg);

  overflow: visible;
}

.about-image img {
  width: 100%;
  height: 520px;

  object-fit: cover;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-lg);
}

.experience-box {
  position: absolute;

  right: -20px;
  bottom: 30px;

  width: 155px;
  min-height: 145px;

  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: var(--primary);

  color: #fff;

  border-radius: 18px;

  box-shadow: var(--shadow);

  text-align: center;
}

.experience-box strong {
  font-family: "Playfair Display", serif;

  font-size: 42px;
  line-height: 1;

  display: block;
}

.experience-box span {
  font-size: 13px;

  margin-top: 7px;
}

.about-reference h2 {
  margin-bottom: 20px;
}

.about-reference .lead {
  font-size: 17px;
}

.feature-box {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 13px 15px;

  background: var(--light);

  border: 1px solid var(--border);

  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  color: var(--dark);

  transition: var(--transition);
}

.feature-box i {
  color: var(--success);
  font-size: 18px;
}

.feature-box:hover {
  transform: translateY(-3px);

  background: var(--primary-light);

  border-color: rgba(13, 110, 253, 0.18);

  box-shadow: var(--shadow-sm);
}

/* =========================================================
   PRINCIPAL
========================================================= */

#principal {
  background: var(--light) !important;
}

.principal-image {
  width: 280px;
  height: 330px;

  margin: auto;

  overflow: hidden;

  border-radius: 20px;

  background: #fff;

  box-shadow: var(--shadow);
}

.principal-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.quote-box {
  position: relative;

  background: #fff;

  border-left: 4px solid var(--primary);

  padding: 25px 30px;

  border-radius: 0 15px 15px 0;

  box-shadow: var(--shadow-sm);

  margin: 25px 0;
}

.quote-box > i {
  color: var(--primary);

  font-size: 45px;

  line-height: 1;

  opacity: 0.18;

  position: absolute;

  right: 20px;
  top: 15px;
}

.quote-box p {
  position: relative;

  font-size: 16px;
}

.quote-box p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   PERSON / DIGNITARIES
========================================================= */

.person-card {
  background: #fff;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

  height: 100%;
}

.person-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-lg);

  border-color: rgba(13, 110, 253, 0.2);
}

.person-image {
  height: 310px;

  overflow: hidden;

  background: #eef2f7;
}

.person-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.person-card:hover .person-image img {
  transform: scale(1.06);
}

.person-content {
  padding: 22px;

  text-align: center;
}

.person-content h4 {
  font-size: 19px;

  margin-bottom: 5px;
}

.person-content p {
  color: var(--muted);

  font-size: 14px;

  margin-bottom: 0;
}

/* =========================================================
   NOTICE BOARD
========================================================= */

.notice-board {
  background: #fff;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow-sm);
}

.notice-item {
  display: flex;

  gap: 20px;

  padding: 23px;

  border-bottom: 1px solid var(--border);

  transition: var(--transition);
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item:hover {
  background: #fbfcff;

  padding-left: 28px;
}

.notice-date {
  flex: 0 0 70px;

  width: 70px;
  height: 75px;

  background: var(--primary-light);

  color: var(--primary);

  border-radius: 12px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;
}

.notice-date strong {
  font-family: "Playfair Display", serif;

  font-size: 28px;

  line-height: 1;
}

.notice-date small {
  font-size: 11px;

  font-weight: 700;

  margin-top: 4px;
}

.notice-tag {
  display: inline-block;

  background: #fff3cd;
  color: #946200;

  padding: 3px 9px;

  border-radius: 20px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.7px;

  margin-bottom: 7px;
}

.notice-item h5 {
  font-size: 16px;

  margin-bottom: 7px;
}

.notice-item a {
  color: var(--primary);

  font-size: 13px;

  font-weight: 600;
}

.notice-item a i {
  margin-left: 5px;
}

.notice-side-card {
  height: 100%;

  min-height: 320px;

  background: linear-gradient(145deg, var(--primary), var(--primary-dark));

  color: #fff;

  border-radius: var(--radius-lg);

  padding: 40px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  position: relative;

  overflow: hidden;

  box-shadow: var(--shadow-lg);
}

.notice-side-card::after {
  content: "";

  width: 220px;
  height: 220px;

  position: absolute;

  right: -80px;
  top: -80px;

  border-radius: 50%;

  border: 35px solid rgba(255, 255, 255, 0.08);
}

.notice-side-icon {
  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.14);

  border-radius: 16px;

  font-size: 25px;

  margin-bottom: 20px;
}

.notice-side-card h3 {
  color: #fff;

  position: relative;
  z-index: 1;
}

.notice-side-card p {
  color: rgba(255, 255, 255, 0.82);

  position: relative;
  z-index: 1;
}

.notice-side-card .btn {
  align-self: flex-start;

  position: relative;
  z-index: 2;
}

/* =========================================================
   OFFICIALS
========================================================= */

.official-card {
  height: 100%;

  padding: 30px 20px;

  background: #fff;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  text-align: center;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.official-card:hover {
  transform: translateY(-7px);

  box-shadow: var(--shadow);

  border-color: rgba(13, 110, 253, 0.2);
}

.official-avatar {
  width: 80px;
  height: 80px;

  margin: 0 auto 18px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-light);

  color: var(--primary);

  font-size: 35px;

  transition: var(--transition);
}

.official-card:hover .official-avatar {
  background: var(--primary);
  color: #fff;

  transform: scale(1.06);
}

.official-card h5 {
  font-size: 17px;

  margin-bottom: 5px;
}

.official-card p {
  color: var(--muted);

  font-size: 13px;

  margin-bottom: 0;
}

/* =========================================================
   ACTIVITIES / COURSES
========================================================= */

#courses {
  background: var(--light) !important;
}

.activity-card {
  height: 100%;

  background: #fff;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  padding: 32px 28px;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

  position: relative;

  overflow: hidden;
}

.activity-card::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 4px;

  background: linear-gradient(90deg, var(--primary), var(--secondary));

  transform: scaleX(0);

  transform-origin: left;

  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-lg);
}

.activity-card:hover::before {
  transform: scaleX(1);
}

.activity-icon {
  width: 65px;
  height: 65px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: var(--primary-light);

  color: var(--primary);

  font-size: 27px;

  margin-bottom: 20px;

  transition: var(--transition);
}

.activity-card:hover .activity-icon {
  background: var(--primary);
  color: #fff;

  transform: rotate(-5deg);
}

.activity-card h4 {
  font-size: 19px;

  margin-bottom: 10px;
}

.activity-card p {
  color: var(--muted);

  font-size: 14px;
}

.activity-card a {
  color: var(--primary);

  font-size: 13px;

  font-weight: 700;
}

.activity-card a i {
  margin-left: 5px;
}

/* =========================================================
   FACILITIES
========================================================= */

.facility-card {
  height: 100%;

  background: #fff;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.facility-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-lg);
}

.facility-image {
  height: 240px;

  position: relative;

  overflow: hidden;
}

.facility-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.facility-card:hover .facility-image img {
  transform: scale(1.08);
}

.facility-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(to top, rgba(10, 20, 40, 0.5), transparent 60%);
}

.facility-image > i {
  position: absolute;

  left: 20px;
  bottom: 18px;

  z-index: 2;

  width: 50px;
  height: 50px;

  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  color: var(--primary);

  font-size: 22px;

  box-shadow: var(--shadow-sm);
}

.facility-content {
  padding: 24px;
}

.facility-content h4 {
  font-size: 19px;

  margin-bottom: 8px;
}

.facility-content p {
  color: var(--muted);

  font-size: 14px;

  margin-bottom: 0;
}

/* =========================================================
   ADMISSION
========================================================= */

.admission-section {
  padding: 70px 0;

  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.admission-box {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 45px 50px;

  border-radius: var(--radius-lg);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );

  border: 1px solid rgba(255, 255, 255, 0.14);

  color: #fff;
}

.admission-box small {
  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1.5px;

  color: var(--secondary);
}

.admission-box h2 {
  color: #fff;

  margin-top: 8px;
  margin-bottom: 10px;
}

.admission-box p {
  color: rgba(255, 255, 255, 0.78);

  margin-bottom: 0;
}

.admission-box .btn {
  flex-shrink: 0;
}

/* =========================================================
   CBSE DOCUMENTS
========================================================= */

.document-card {
  min-height: 90px;

  display: flex;
  align-items: center;

  gap: 15px;

  text-align: left;

  padding: 17px 20px;

  background: #fff;

  border: 1px solid var(--border);

  border-radius: 14px;

  color: var(--dark);

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.document-card:hover {
  transform: translateY(-5px);

  border-color: var(--primary);

  box-shadow: var(--shadow);

  color: var(--primary);
}

.document-card > i:first-child {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 11px;

  background: #fff0f0;

  color: #dc3545;

  font-size: 23px;
}

.document-card span {
  display: flex;
  flex-direction: column;

  flex: 1;
}

.document-card strong {
  font-size: 14px;
}

.document-card small {
  color: var(--muted);

  font-size: 11px;

  margin-top: 2px;
}

.document-card > i:last-child {
  color: var(--primary);
}

.document-icon {
  font-size: 70px;
  color: #dc3545;
}

/* =========================================================
   IMPORTANT LINKS
========================================================= */

.important-link-card {
  min-height: 105px;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 20px;

  background: #fff;

  border: 1px solid var(--border);

  border-radius: 14px;

  color: var(--dark);

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.important-link-card:hover {
  transform: translateY(-6px);

  color: var(--primary);

  border-color: rgba(13, 110, 253, 0.25);

  box-shadow: var(--shadow);
}

.important-link-card > i:first-child {
  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: var(--primary-light);

  color: var(--primary);

  border-radius: 10px;

  font-size: 20px;
}

.important-link-card span {
  flex: 1;

  font-size: 13px;
  font-weight: 600;
}

.important-link-card > i:last-child {
  font-size: 14px;

  color: var(--muted);
}

/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonial-section {
  background: var(--light) !important;
}

.testimonial-card {
  max-width: 850px;

  margin: auto;

  padding: 45px 80px;

  background: #fff;

  border-radius: var(--radius-lg);

  border: 1px solid var(--border);

  box-shadow: var(--shadow);

  position: relative;
}

.testimonial-avatar {
  width: 65px;
  height: 65px;

  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--primary-light);

  color: var(--primary);

  font-size: 28px;
}

.testimonial-quote {
  display: block;

  color: var(--secondary);

  font-size: 30px;

  margin-bottom: 8px;
}

.testimonial-card p {
  color: var(--text);

  font-size: 17px;

  max-width: 650px;

  margin: 0 auto 20px;
}

.testimonial-card h5 {
  margin-bottom: 3px;
}

.testimonial-card small {
  color: var(--muted);
}

#testimonialSlider .carousel-control-prev,
#testimonialSlider .carousel-control-next {
  width: 50px;

  opacity: 1;
}

#testimonialSlider .carousel-control-prev-icon,
#testimonialSlider .carousel-control-next-icon {
  background-color: var(--primary);

  border-radius: 50%;

  width: 40px;
  height: 40px;

  background-size: 45%;
}

/* =========================================================
   GALLERY
========================================================= */

.gallery-grid {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr;

  grid-template-rows: 230px 230px;

  gap: 15px;
}

.gallery-item {
  border: 0;

  padding: 0;

  background: #ddd;

  position: relative;

  overflow: hidden;

  border-radius: 15px;

  cursor: pointer;
}

.gallery-large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.gallery-item::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);

  opacity: 0;

  transition: var(--transition);
}

.gallery-item span {
  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%) scale(0.7);

  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #fff;

  color: var(--primary);

  z-index: 3;

  opacity: 0;

  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after,
.gallery-item:hover span {
  opacity: 1;
}

.gallery-item:hover span {
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item:focus {
  outline: 3px solid rgba(13, 110, 253, 0.3);
  outline-offset: 3px;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section {
  padding: 90px 0;

  background: linear-gradient(135deg, #111c32, #1c2b48);
}

.contact-section .section-label {
  color: var(--secondary);
}

.contact-section h2 {
  color: #fff;
}

.contact-section h2 em {
  color: var(--secondary);
}

.contact-section > .container > .row > .col-lg-5 > p {
  color: rgba(255, 255, 255, 0.75);

  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;

  gap: 15px;

  color: rgba(255, 255, 255, 0.85);

  margin-bottom: 18px;
}

.contact-detail > i {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: rgba(255, 255, 255, 0.1);

  border-radius: 10px;

  color: var(--secondary);
}

.contact-form {
  background: #fff;

  padding: 35px;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-lg);
}

.contact-form label {
  display: block;

  color: var(--dark);

  font-size: 13px;

  font-weight: 600;

  margin-bottom: 7px;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border);

  min-height: 48px;

  border-radius: 9px;

  padding: 10px 14px;

  box-shadow: none;
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* =========================================================
   MAP
========================================================= */

.map-section {
  background: #eee;
}

.map-wrapper {
  width: 100%;
  height: 400px;

  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;

  display: block;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  background: #0c1425;
  color: rgba(255, 255, 255, 0.65);
}

footer .container {
  position: relative;
}

.footer-logo {
  color: #fff;

  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  width: 48px;
  height: 48px;

  font-size: 21px;
}

.footer-logo small {
  color: rgba(255, 255, 255, 0.55);
}

footer p {
  max-width: 420px;

  color: rgba(255, 255, 255, 0.6);

  font-size: 14px;
}

footer h6 {
  color: #fff;

  font-size: 15px;

  margin-bottom: 18px;
}

footer .col-6 a,
footer .col-lg-2 a {
  display: block;

  color: rgba(255, 255, 255, 0.58);

  font-size: 13px;

  margin-bottom: 9px;
}

footer .col-6 a:hover,
footer .col-lg-2 a:hover {
  color: var(--secondary);

  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 9px;
}

.footer-social a {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.08);

  color: #fff;

  border-radius: 50%;

  font-size: 16px;
}

.footer-social a:hover {
  background: var(--primary);

  color: #fff;

  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  margin-top: 35px;
  padding-top: 20px;

  text-align: center;

  color: rgba(255, 255, 255, 0.45);

  font-size: 12px;
}

/* =========================================================
   MODALS
========================================================= */

.modal-content {
  border: 0;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px;

  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-weight: 700;
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  border-top: 1px solid var(--border);

  padding: 15px 25px;
}

.modal-body label {
  display: block;

  font-size: 13px;

  font-weight: 600;

  color: var(--dark);

  margin-bottom: 6px;
}

.modal-body .form-control,
.modal-body .form-select {
  min-height: 46px;

  border-radius: 9px;

  border-color: var(--border);
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* =========================================================
   NOTICE MODAL
========================================================= */

.notice-modal-item {
  display: flex;

  gap: 15px;

  padding: 18px;

  border: 1px solid var(--border);

  border-radius: 12px;

  margin-bottom: 12px;

  transition: var(--transition);
}

.notice-modal-item:last-child {
  margin-bottom: 0;
}

.notice-modal-item:hover {
  background: var(--primary-light);

  border-color: rgba(13, 110, 253, 0.15);
}

.notice-modal-item > i {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #fff3cd;

  color: #946200;
}

.notice-modal-item h6 {
  margin-bottom: 3px;
}

.notice-modal-item small {
  color: var(--muted);
}

/* =========================================================
   GALLERY MODAL
========================================================= */

#galleryModal .modal-content {
  background: #111 !important;
}

#galleryModal .modal-body {
  background: #111;
}

#galleryModal img {
  width: 100%;

  max-height: 450px;

  object-fit: cover;

  border-radius: 12px;
}

/* =========================================================
   BACK TO TOP
========================================================= */

.back-top {
  position: fixed;

  right: 25px;
  bottom: 25px;

  width: 48px;
  height: 48px;

  border: 0;

  border-radius: 50%;

  background: var(--primary);

  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;

  box-shadow: var(--shadow);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(15px);

  transition: var(--transition);

  z-index: 1050;
}

.back-top.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.back-top:hover {
  background: var(--primary-dark);

  transform: translateY(-3px);
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   SMOOTH IMAGE LOADING
========================================================= */

img {
  transition: opacity 0.3s ease;
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #b8c1d1;

  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {
  .section {
    padding: 70px 0;
  }

  .main-navbar .navbar-nav {
    padding: 12px 0;
  }

  .main-navbar .nav-link {
    padding: 11px 14px !important;
  }

  .main-navbar .nav-link.active::after {
    display: none;
  }

  .hero-slide {
    min-height: 580px;
  }

  .hero-content {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: clamp(2.3rem, 6vw, 4rem);
  }

  .about-image {
    margin-bottom: 25px;
  }

  .about-image img {
    height: 430px;
  }

  .experience-box {
    right: 20px;
  }

  .admission-box {
    padding: 35px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;

    grid-template-rows: 250px 200px 200px;
  }

  .gallery-large {
    grid-row: span 1;
    grid-column: span 2;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {
  .section {
    padding: 60px 0;
  }

  .topbar {
    font-size: 11px;
  }

  .topbar .d-flex {
    gap: 8px;
  }

  .topbar .social-icons {
    display: none;
  }

  .topbar .me-3 {
    margin-right: 8px !important;
  }

  .main-header {
    padding: 14px 0;
  }

  .logo-icon {
    width: 45px;
    height: 45px;

    font-size: 20px;
  }

  .logo strong {
    font-size: 18px;
  }

  .logo small {
    max-width: 220px;

    font-size: 9px;
  }

  .hero-slide {
    min-height: 560px;
  }

  .hero-content {
    padding: 50px 15px;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-content .btn {
    font-size: 14px;

    padding: 11px 20px;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(7, 19, 44, 0.92),
      rgba(7, 19, 44, 0.65)
    );
  }

  .ticker-title {
    height: 45px;

    justify-content: center;

    font-size: 13px;
  }

  .ticker-content {
    padding: 10px 15px;
  }

  .ticker-track span {
    font-size: 12px;
  }

  .about-image img {
    height: 350px;
  }

  .experience-box {
    right: 10px;

    bottom: 20px;

    width: 130px;

    min-height: 120px;

    padding: 15px;
  }

  .experience-box strong {
    font-size: 34px;
  }

  .experience-box span {
    font-size: 11px;
  }

  .feature-box {
    font-size: 13px;

    padding: 11px;
  }

  .principal-image {
    width: 230px;
    height: 280px;
  }

  .quote-box {
    padding: 22px 20px;
  }

  .person-image {
    height: 280px;
  }

  .notice-item {
    gap: 13px;

    padding: 18px;
  }

  .notice-date {
    flex-basis: 58px;

    width: 58px;
    height: 65px;
  }

  .notice-date strong {
    font-size: 24px;
  }

  .notice-item h5 {
    font-size: 14px;
  }

  .notice-side-card {
    min-height: 280px;

    padding: 30px;
  }

  .activity-card {
    padding: 25px 22px;
  }

  .facility-image {
    height: 220px;
  }

  .admission-section {
    padding: 50px 0;
  }

  .admission-box {
    flex-direction: column;

    align-items: flex-start;

    padding: 30px 25px;
  }

  .admission-box h2 {
    font-size: 1.8rem;
  }

  .document-card {
    min-height: 82px;
  }

  .important-link-card {
    min-height: 85px;
  }

  .testimonial-card {
    padding: 35px 30px;
  }

  .testimonial-card p {
    font-size: 15px;
  }

  #testimonialSlider .carousel-control-prev,
  #testimonialSlider .carousel-control-next {
    display: none;
  }

  .gallery-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    grid-template-rows:
      210px
      170px
      170px;
  }

  .gallery-large {
    grid-column: span 2;

    grid-row: span 1;
  }

  .contact-section {
    padding: 65px 0;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .map-wrapper {
    height: 320px;
  }

  footer .col-lg-5 {
    margin-bottom: 10px;
  }

  .back-top {
    width: 43px;
    height: 43px;

    right: 15px;
    bottom: 15px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {
  .topbar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar .d-flex > div:first-child {
    width: 100%;

    display: flex;

    justify-content: center;
  }

  .hero-slide {
    min-height: 530px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 14px;
  }

  .section-heading {
    padding: 0 10px;
  }

  h2 {
    font-size: 2rem;
  }

  .notice-item {
    align-items: flex-start;
  }

  .notice-date {
    flex-basis: 52px;

    width: 52px;
    height: 60px;
  }

  .notice-date strong {
    font-size: 21px;
  }

  .notice-date small {
    font-size: 9px;
  }

  .notice-tag {
    font-size: 9px;
  }

  .notice-item h5 {
    font-size: 13px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;

    grid-template-rows:
      220px
      180px
      180px
      180px
      180px;
  }

  .gallery-large {
    grid-column: span 1;
  }

  .gallery-item {
    width: 100%;
  }

  .contact-detail {
    font-size: 13px;
  }

  .contact-form {
    padding: 22px 16px;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);

  outline-offset: 2px;
}

/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.breadcrumb-wrapper {
  width: 100%;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  padding: 12px 0;
}

.breadcrumb-wrapper .breadcrumb {
  margin: 0;
}

.breadcrumb-item a {
  color: #0d6efd;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Breadcrumb */
.breadcrumb-wrapper {
  margin-bottom: 20px;
}

.breadcrumb {
  margin-bottom: 0;
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: #0d6efd;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Document Card */
.document-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.document-card-header {
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fa;
}

.document-card-header h5 {
  margin: 0;
  font-weight: 600;
  color: #343a40;
}

.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  white-space: nowrap;
  background-color: #f8f9fa;
}

.table td {
  vertical-align: middle;
}

.view-btn {
  min-width: 85px;
}


/* =========================================================
   LATEST NEWS - INTERACTIVE PANEL
========================================================= */

.latest-news-panel {
    background: var(--light);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    padding: 22px;

    box-shadow: var(--shadow);

    position: relative;

    overflow: hidden;
}


/* =========================================================
   NEWS HEADER
========================================================= */

.latest-news-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}


.latest-news-title {
    display: flex;

    align-items: center;

    gap: 13px;
}


.latest-news-title h4 {
    font-size: 23px;
}


.latest-news-title h4 em {
    color: var(--primary);

    font-style: normal;
}


.latest-news-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--primary);

    color: #fff;

    border-radius: 13px;

    font-size: 19px;

    box-shadow:
        0 8px 20px rgba(13, 110, 253, 0.20);
}


/* =========================================================
   LIVE UPDATE BAR
========================================================= */

.news-live-bar {
    display: flex;

    align-items: center;

    gap: 8px;

    margin: 15px 0;

    padding: 9px 13px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 9px;

    color: var(--muted);

    font-size: 12px;

    font-weight: 600;
}


.news-live-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    background: var(--success);

    border-radius: 50%;

    animation: newsPulse 1.6s infinite;
}


@keyframes newsPulse {

    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.35);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(25, 135, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }

}


/* =========================================================
   NEWS SCROLL AREA
========================================================= */

.latest-news-panel .news-list {

    height: 330px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 4px 8px 4px 4px;

    scroll-behavior: smooth;

    scrollbar-width: thin;

    scrollbar-color:
        var(--primary)
        transparent;
}


/* =========================================================
   NEWS SCROLLBAR
========================================================= */

.latest-news-panel .news-list::-webkit-scrollbar {
    width: 5px;
}

.latest-news-panel .news-list::-webkit-scrollbar-track {
    background: transparent;
}

.latest-news-panel .news-list::-webkit-scrollbar-thumb {
    background: #b8c1d1;

    border-radius: 20px;
}

.latest-news-panel .news-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* =========================================================
   NEWS CARD
========================================================= */

.latest-news-panel .news-card {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin: 0 0 12px 0 !important;

    padding: 14px;

    background: #fff;

    border: 1px solid var(--border);

    border-left: 4px solid var(--primary);

    border-radius: 12px;

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    position: relative;
}


.latest-news-panel .news-card:last-child {
    margin-bottom: 0 !important;
}


/* =========================================================
   NEWS HOVER
========================================================= */

.latest-news-panel .news-card:hover {

    transform: translateX(-4px);

    box-shadow: var(--shadow);

    border-top-color: rgba(13, 110, 253, 0.20);

    border-right-color: rgba(13, 110, 253, 0.20);

    border-bottom-color: rgba(13, 110, 253, 0.20);
}


/* =========================================================
   DATE BOX
========================================================= */

.latest-news-panel .news-card-date {

    width: 58px;
    height: 62px;

    flex: 0 0 58px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    color: var(--primary);

    border-radius: 10px;

    transition: var(--transition);
}


.latest-news-panel .news-card:hover .news-card-date {
    transform: scale(1.06);
}


.latest-news-panel .news-card-date strong {

    font-family: "Playfair Display", serif;

    font-size: 24px;

    line-height: 1;
}


.latest-news-panel .news-card-date span {

    margin-top: 4px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


/* =========================================================
   NEWS CONTENT
========================================================= */

.latest-news-panel .news-card-content {

    flex: 1;

    min-width: 0;
}


.latest-news-panel .news-card-content h5 {

    font-size: 15px;

    line-height: 1.4;

    margin-bottom: 5px;

    color: var(--dark);

    transition: color 0.3s ease;
}


.latest-news-panel .news-card:hover h5 {
    color: var(--primary);
}


.latest-news-panel .news-card-content p {

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;

    margin-bottom: 7px;
}


/* =========================================================
   NEWS TAG
========================================================= */

.latest-news-panel .news-tag {

    display: inline-flex;

    align-items: center;

    margin-bottom: 6px;

    padding: 3px 8px;

    border-radius: 50px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.5px;
}


/* =========================================================
   READ MORE
========================================================= */

.latest-news-panel .news-card-content a {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;
}


.latest-news-panel .news-card-content a i {

    transition: transform 0.3s ease;
}


.latest-news-panel .news-card:hover .news-card-content a i {

    transform: translateX(4px);
}


/* =========================================================
   DIFFERENTIATE NEWS TYPES
========================================================= */


/* NOTICE */

.latest-news-panel .news-notice {
    border-left-color: var(--primary);
}

.latest-news-panel .news-notice .news-card-date {
    background: var(--primary-light);
    color: var(--primary);
}

.latest-news-panel .news-notice .news-tag {
    background: var(--primary-light);
    color: var(--primary);
}


/* INFORMATION */

.latest-news-panel .news-information {
    border-left-color: var(--secondary);
}

.latest-news-panel .news-information .news-card-date {
    background: #fff7e6;
    color: var(--secondary-dark);
}

.latest-news-panel .news-information .news-tag {
    background: #fff7e6;
    color: var(--secondary-dark);
}


/* EVENT */

.latest-news-panel .news-event {
    border-left-color: var(--success);
}

.latest-news-panel .news-event .news-card-date {
    background: #eaf7ef;
    color: var(--success);
}

.latest-news-panel .news-event .news-tag {
    background: #eaf7ef;
    color: var(--success);
}


/* IMPORTANT */

.latest-news-panel .news-important {
    border-left-color: var(--danger);
}

.latest-news-panel .news-important .news-card-date {
    background: #fff0f0;
    color: var(--danger);
}

.latest-news-panel .news-important .news-tag {
    background: #fff0f0;
    color: var(--danger);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .latest-news-panel {
        padding: 16px;
    }

    .latest-news-header {
        align-items: flex-start;
    }

    .latest-news-title {
        gap: 9px;
    }

    .latest-news-icon {
        width: 42px;
        height: 42px;

        font-size: 17px;
    }

    .latest-news-title h4 {
        font-size: 19px;
    }

    .latest-news-panel .news-list {
        height: 320px;

        padding-left: 3px;
        padding-right: 5px;
    }

    .latest-news-panel .news-card {
        gap: 10px;

        padding: 12px;
    }

    .latest-news-panel .news-card-date {
        width: 52px;
        height: 58px;

        flex-basis: 52px;
    }

    .latest-news-panel .news-card-date strong {
        font-size: 21px;
    }

    .latest-news-panel .news-card-content h5 {
        font-size: 13px;
    }

    .latest-news-panel .news-card-content p {
        font-size: 11px;
    }

    .latest-news-panel .news-tag {
        font-size: 8px;
    }

}


@media (max-width: 575.98px) {

    .latest-news-header {
        flex-direction: column;
    }

    .latest-news-header .btn {
        align-self: flex-end;
    }

}
