:root{
    --brand-900:#3b0909;
    --brand-800:#531e19;
    --brand-700:#6e5622;
    --brand-100:#f6f3ee;
    --text:#1b1b1b;
}
html,body{height:100%;}
body{
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color:var(--text);
    background:#fff;
    scroll-behavior:smooth;
}
h1,h2,h3,h4,.display-1,.display-2,.display-3{
    font-family: Merriweather, Georgia, "Times New Roman", serif;
    letter-spacing:.2px;
}

.navbar{ transition: all .2s ease; border-bottom: 1px solid rgba(0,0,0,.06); background:#fff; }
.navbar-brand{ font-weight:700; letter-spacing:.5px; color:var(--brand-800)!important; }
.nav-link{ font-weight:500; color:#333; }
.nav-link:hover,.nav-link:focus{ color:var(--brand-800); }
.navbar.is-scrolled{ box-shadow:0 10px 30px rgba(0,0,0,.06); }

.hero{
    position:relative;
    background:
    radial-gradient(1200px 600px at 85% -100%, rgba(110,86,34,.18), transparent 60%),
    linear-gradient(180deg, var(--brand-100), #fff 40%);
    overflow:hidden;
}
.hero-badge{
    display:inline-flex; gap:.5rem; align-items:center;
    background:#fff; border:1px solid rgba(0,0,0,.08);
    padding:.35rem .6rem; border-radius:999px; font-size:.875rem;
}
.hero .lead{ max-width:56ch; }

.btn-brand{
    --bs-btn-color:#fff; --bs-btn-bg:var(--brand-800); --bs-btn-border-color:var(--brand-800);
    --bs-btn-hover-bg:var(--brand-900); --bs-btn-hover-border-color:var(--brand-900);
    --bs-btn-focus-shadow-rgb:83,30,25;
}
.btn-ghost{
    --bs-btn-color:var(--brand-800); --bs-btn-bg:#fff; --bs-btn-border-color:rgba(0,0,0,.12);
    --bs-btn-hover-bg:var(--brand-100); --bs-btn-hover-border-color:rgba(0,0,0,.18);
}

.stat{ border-left:3px solid var(--brand-700); padding-left:1rem; }

.section-title{ display:flex; align-items:center; gap:.6rem; margin-bottom:1.25rem; }
.section-title .line{ width:40px; height:3px; background:var(--brand-700); border-radius:3px; }

.card{ border:1px solid rgba(0,0,0,.08); border-radius:1rem; }
.card .icon{
    width:48px; height:48px; display:grid; place-items:center; border-radius:.75rem;
    background:var(--brand-100); color:var(--brand-800); font-size:1.25rem;
}
.card a.stretched-link{ text-underline-offset:4px; }

.program-badge{ background:var(--brand-100); color:var(--brand-800); border:1px solid rgba(0,0,0,.06); }

.cta{
    background: linear-gradient(135deg, rgba(83,30,25,.88), rgba(59,9,9,.92));
    color:#fff; border-radius:1.25rem;
}
footer{ background:#0f0f0f; color:#cfcfcf; }
footer a{ color:#e6e6e6; text-decoration:none; } footer a:hover{ text-decoration:underline; }

.focus-ring:focus{ outline:3px solid rgba(110,86,34,.65); outline-offset:2px; }

/* NEW: About blocks */
.about-block{
    border-left:4px solid var(--brand-800);
    background: #fff;
    border-radius:.75rem;
    padding:1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.about-block h3{ color:var(--brand-800); }

/* NEW: Team */
.team-card .avatar{
    width:90px; height:90px; object-fit:cover; border-radius:999px; border:3px solid var(--brand-100);
    box-shadow:0 6px 20px rgba(0,0,0,.07);
}
.team-card small.role{
    display:inline-block; padding:.15rem .5rem; border-radius:.5rem;
    background:var(--brand-100); color:var(--brand-800); border:1px solid rgba(0,0,0,.06);
}

/* dropdown colors to match brand */
.navbar .dropdown-menu{
border:1px solid rgba(83,30,25,.08);
min-width: 14rem;
}
.navbar .dropdown-item:active,
.navbar .dropdown-item:focus,
.navbar .dropdown-item:hover{
background: rgba(83,30,25,.08);
color: #3b0909;
}

.news-events-img-homepage {
      height: 280px;
    object-fit: cover;
}
/* show dropdown on hover for desktop */
@media (min-width: 992px){
.navbar .dropdown:hover > .dropdown-menu{
    display: block;
    margin-top:0;
}
  }


/* === ALI HERO SLIDER === */
.ali-hero-slider { position: relative; isolation: isolate; }
.ali-hero-slider .swiper { width: 100%; height: clamp(56vh, 72vh, 78vh); }

.ali-slide-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: saturate(1.02);
}

.ali-slide-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  text-align: center; padding: 0 1.25rem;
  /* dark gradient for legibility */
  background: linear-gradient(180deg, rgba(22,36,61,0.55) 0%, rgba(22,36,61,0.35) 35%, rgba(22,36,61,0.55) 100%);
  color: #fff;
}

.ali-slide-title {
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2.8vw + 1rem, 3rem);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  margin-bottom: .5rem;
}

.ali-slide-sub {
  font-size: clamp(1rem, .6vw + .9rem, 1.25rem);
  opacity: .95;
  margin: 0 0 1.25rem;
}

.ali-slide-cta .btn { margin: .25rem .35rem; }
.ali-slide-cta .btn-primary {
  background: var(--bs-primary, #015fc9); border-color: var(--bs-primary, #015fc9);
}
.ali-slide-cta .btn-outline-light {
  color: #fff; border-color: rgba(255,255,255,.85);
}
.ali-slide-cta .btn-outline-light:hover {
  background: rgba(255,255,255,.12);
}

.ali-hero-slider .swiper-pagination-bullet {
  background: rgba(255,255,255,.7); opacity: 1;
}
.ali-hero-slider .swiper-pagination-bullet-active {
  background: var(--bs-secondary, #0be1ff);
  box-shadow: 0 0 0 3px rgba(11,225,255,.2);
}

.ali-hero-slider .swiper-button-next,
.ali-hero-slider .swiper-button-prev {
  color: #fff; width: 46px; height: 46px;
  background: rgba(0,0,0,.25);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.ali-hero-slider .swiper-button-next:hover,
.ali-hero-slider .swiper-button-prev:hover {
  background: rgba(0,0,0,.38);
}

/* Reduce height on small screens */
@media (max-width: 576px) {
  .ali-hero-slider .swiper { height: 56vh; }
  .ali-slide-sub { display: none; } /* tighter copy on mobile */
}


/* history and other internal pages css starts */

.ali-hero-history {
  background: linear-gradient(135deg, #531e19 0%, #3b0909 40%, #6e5622 100%);
  color: #fff;
  padding: 4.5rem 0 3rem;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.ali-hero-history .ali-breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.ali-hero-history .ali-breadcrumb a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}
.ali-hero-history .ali-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.ali-hero-history .ali-page-subtitle {
  max-width: 650px;
  opacity: .9;
}

.ali-history-wrap {
  padding: 3.5rem 0 4rem;
}

.ali-history-tag {
  display: inline-block;
  background: rgba(83, 30, 25, 0.12);
  color: #531e19;
  border: 1px solid rgba(83,30,25,.15);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1.2rem;
}

.ali-history-heading {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  color: #212529;
}

.ali-history-wrap p {
  line-height: 1.7;
  color: #4b4b4b;
}

.ali-history-card {
  background: #fff;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.04);
}
.ali-history-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ali-history-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ali-history-card-body {
  padding: 1.4rem 1.4rem 1.1rem;
}
.ali-history-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: .2rem;
}
.ali-history-card-body p {
  margin-bottom: .4rem;
}
.ali-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ali-meta li {
  font-size: 0.85rem;
  margin-bottom: .25rem;
}
.ali-meta li span {
  font-weight: 600;
  color: #212529;
}

/* timeline */
.ali-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.ali-timeline {
  border-left: 3px solid rgba(83,30,25,.12);
  padding-left: 1.5rem;
}
.ali-timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.ali-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: .4rem;
  width: .85rem;
  height: .85rem;
  background: #531e19;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(83,30,25,.08);
}
.ali-timeline-date {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #531e19;
  margin-bottom: .35rem;
}
.ali-timeline-content {
  color: #4b4b4b;
}
.ali-timeline-item--muted::before {
  background: #ccc;
}
.ali-timeline-item--muted .ali-timeline-date {
  color: #999;
}

.ali-history-block {
  background: #fff;
  border: 1px solid rgba(0,0,0,.03);
  border-radius: 1.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.02);
}
.ali-history-block + .ali-history-block {
  margin-top: 1.5rem;
}
.ali-history-block p:last-child {
  margin-bottom: 0;
}

.ali-history-card--flat {
  padding: 0;
  box-shadow: 0 12px 25px rgba(0,0,0,.02);
}
.ali-history-card--flat .ali-history-image {
  aspect-ratio: 16 / 9;
}
.ali-history-main-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #3b0909; /* Aror deep maroon */
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.4px;
}

@media (max-width: 991.98px) {
  .ali-hero-history {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }
  .ali-history-heading {
    font-size: 1.35rem;
  }
  .ali-history-card {
    margin-top: 1rem;
  }
  .ali-history-main-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 700px) {
  .ali-hero-history {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }
}


/* history and other internal pages css ends */


/* images modal start */

/* Fullscreen Image Viewer */
.fullscreen-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.9);
}

.fullscreen-modal.active {
  display: flex;
}

.fullscreen-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
}

.fullscreen-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.fullscreen-modal .close-btn:hover {
  color: #ccc;
}

.fullscreenable {
  cursor: pointer;
  transition: transform 0.2s;
}

.fullscreenable:hover {
  transform: scale(1.02);
}

/* images modal end */


/* Make 'Aror Learning Institute' more prominent */
.hero-badge {
  font-size: 1.5rem !important; /* larger text */
  font-weight: 700 !important;
  color: var(--brand-800);
  background: none !important;
  /* padding: 0 !important; */
  padding: .65rem 1rem !important;
}

/* Make the heading slightly smaller for better hierarchy */
.hero h1 {
  font-size: 2.2rem !important;
  line-height: 1.3;
}

/* Make paragraph text smaller */
.hero p.lead {
  font-size: 1rem !important;
  color: #555 !important;
}
