/* Logo-matched school theme with sticky nav & admission form */
:root {
  --green: #0a7c3a;
  --green-dark: #064d24;
  --red: #d91c1c;
  --red-dark: #9e1212;
  --gold: #f5c400;
  --gold-dark: #b88b00;
  --ink: #1d2420;
  --muted: #5d6861;
  --soft: #f2f7f4;
  --surface: #ffffff;
  --border: #dce8e0;
}

body {
  background: linear-gradient(180deg, #f4f9f5 0, #eaf2ed 100%);
  color: var(--ink);
}

/* Sticky কাজ করার জন্য overflow: hidden এর বদলে overflow-x: clip */
.main_website {
  padding: 0 24px 26px;
  border-radius: 0 0 20px 20px;
  overflow-x: clip;
  box-shadow: 0 12px 45px #0a3b1e14;
}

.site-logo {
  max-height: 150px;
  
}

/* Sticky Main Navigation */
#mainnav,
.mainnav,
.navbar-default {
  position: sticky !important;
  top: 0;
  z-index: 1050;
  background: linear-gradient(100deg, var(--green-dark), var(--green) 65%, var(--red-dark) 100%);
  border: 0px solid #ffffff26;
  border-radius: 0px;
  box-shadow: 0 10px 24px #064d2438;
  
  transition: all 0.25s ease;
}

.navbar-default .navbar-nav > li > a {
  font-size: 15px;
  font-weight: 600;
  padding: 16px 17px;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  background: #ffffff1c;
  color: var(--gold);
}

.navbar-default .navbar-toggle {
  border-color: #ffffff88;
}

.navbar-default .navbar-toggle .icon-bar {
  background: #fff;
}

/* Admission Quick CTA Button inside MainNav */
.admission-nav-item > a.btn-admission-nav {
  background: linear-gradient(135deg, var(--gold), #e0a800) !important;
  color: #162019 !important;
  font-weight: 800;
  border-radius: 8px;
  margin: 8px 10px;
  padding: 8px 14px !important;
  box-shadow: 0 4px 12px #00000026;
}

.admission-nav-item > a.btn-admission-nav:hover,
.admission-nav-item > a.btn-admission-nav:focus {
  background: #fff2a6 !important;
  color: var(--green-dark) !important;
}

.hero-wrap {
  margin: 0 -24px;
}

.premium-hero {
  position: relative;
  overflow: hidden;
  background: #0d2918;
}

.slider-img {
  height: 440px !important;
  max-height: 440px !important;
  object-fit: cover;
  opacity: 0.92;
}

.hero-kicker,
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1.4px;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-fallback {
  padding: 95px 30px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 80% 20%, #169c4d, transparent 35%), linear-gradient(120deg, var(--green-dark), var(--green));
}

.hero-fallback span {
  color: var(--gold);
  letter-spacing: 3px;
}

.hero-fallback h1 {
  font-size: 42px;
  font-weight: 800;
}

.notice-ticker {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  margin: 18px 0 35px;
  box-shadow: 0 6px 24px #0a3b1e12;
  border: 1px solid var(--border);
}

.ticker-label {
  padding: 15px 20px;
  color: #fff;
  background: linear-gradient(110deg, var(--red), var(--red-dark));
  font-weight: 700;
  white-space: nowrap;
}

.ticker-content {
  padding: 12px 16px;
  flex: 1;
  min-width: 0;
}

.ticker-content a {
  margin: 0 25px;
  color: var(--ink);
  font-weight: 600;
}

.ticker-content a i {
  color: var(--green);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
  align-items: center;
  padding: 18px 0 45px;
}

.intro-copy h2,
.section-heading h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 8px 0 12px;
}

.accent-line {
  width: 62px;
  height: 4px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  margin: 14px 0 20px;
}

.accent-line.centered {
  margin: 14px auto 28px;
}

.history-text {
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
}

.history-photo-wrap {
  position: relative;
  background: var(--surface);
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 14px 40px #0a3b1e1a;
}

.history-photo-wrap > img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.photo-caption {
  padding: 13px 8px 3px;
  text-align: center;
  color: var(--green-dark);
  font-weight: 700;
}

.photo-caption i {
  color: var(--red);
  margin-right: 6px;
}

.image-placeholder {
  height: 300px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e5f3ea, #f9ecec);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--green);
}

.image-placeholder i {
  font-size: 58px;
  margin-bottom: 12px;
}

.image-placeholder span {
  font-size: 20px;
  font-weight: 700;
}

.image-placeholder small {
  margin-top: 6px;
  color: #666;
}

/* Admission Form Section */
.admission-section {
  padding: 40px 0 48px;
  scroll-margin-top: 85px;
}

.admission-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--green);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 36px #0a3b1e14;
}

.admission-side-card {
  height: 100%;
  background: linear-gradient(155deg, var(--green-dark), var(--green));
  color: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 12px 30px #064d242e;
}

.admission-side-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 10px 0 12px;
  color: #fff;
}

.admission-side-card p {
  color: #e6f5ec;
  line-height: 1.7;
  font-size: 14px;
}

.admission-highlights {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.admission-highlights li {
  padding: 8px 0;
  border-bottom: 1px dashed #ffffff33;
  font-size: 14px;
}

.admission-highlights li i {
  color: var(--gold);
  margin-right: 8px;
}

.admission-form .form-group label {
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.admission-form .form-control {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #cfe0d5;
  background: var(--soft);
  color: var(--ink);
  box-shadow: none;
}

.admission-form textarea.form-control {
  height: auto;
  min-height: 90px;
}

.admission-form .form-control:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px #0a7c3a1f;
}

.btn-admission-submit {
  background: linear-gradient(100deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 8px 20px #d91c1c33;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-admission-submit:hover,
.btn-admission-submit:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px #d91c1c45;
}

.message-section,
.teacher-preview,
.gallery-section {
  padding: 36px 0 48px;
}

.section-heading {
  text-align: center;
  margin-bottom: 12px;
}

.message-row {
  display: flex;
  flex-wrap: wrap;
}

.message-row > [class*="col-"] {
  display: flex;
}

.message-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  overflow: hidden;
  text-align: center;
  margin: 8px 0 18px;
  box-shadow: 0 10px 30px #0a3b1e12;
  transition: 0.25s;
}

.message-card:hover,
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px #0a3b1e20;
}

.message-photo {
  height: 150px;
  background: linear-gradient(135deg, #e7f4ec, #fdf0ef);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 15px;
}

.message-photo img {
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 5px 20px #0a3b1e26;
}

.avatar-placeholder {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  border: 5px solid #fff;
}

.message-body {
  padding: 20px 22px 25px;
}

.message-role {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.message-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 8px 0 12px;
}

.message-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-height: 140px;
  overflow: auto;
}

.principal-card {
  border-top: 4px solid var(--green);
}

.message-card:not(.principal-card) {
  border-top: 4px solid var(--red);
}

.quick-panels {
  padding: 15px 0 35px;
}

.info-panel {
  height: 100%;
  min-height: 270px;
  padding: 22px;
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 8px 28px #0a3b1e12;
  border-top: 4px solid var(--green);
  margin-bottom: 18px;
}

.info-panel h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 0 0 16px;
}

.info-panel h3 i {
  color: var(--red);
  margin-right: 7px;
}

.result-panel {
  border-top-color: var(--red);
}

.routine-panel {
  border-top-color: var(--gold-dark);
}

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

.list-clean li {
  padding: 10px 2px;
  border-bottom: 1px dashed #e2eae5;
  line-height: 1.5;
}

.list-clean li a {
  color: var(--ink);
  font-weight: 600;
}

.list-clean li small {
  display: block;
  color: #888;
  font-size: 11px;
}

.more-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
  font-weight: 700;
}

.teacher-mini {
  text-align: center;
  background: var(--surface);
  border-radius: 14px;
  padding: 15px 10px;
  margin-bottom: 18px;
  box-shadow: 0 6px 22px #0a3b1e12;
}

.teacher-mini img {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e3f2e8;
}

.teacher-mini h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 12px 0 4px;
}

.teacher-mini p {
  color: var(--red);
  font-size: 13px;
}

.premium-button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 30px;
  background: linear-gradient(100deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 7px 20px #0a5c2b33;
}

.premium-button:hover {
  color: var(--gold);
  text-decoration: none;
  transform: translateY(-2px);
}

.gallery-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 7px 20px #0a3b1e1a;
}

.gallery-tile img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.gallery-tile span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 12px 10px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(transparent, #082413e0);
}

.page-banner {
  margin: 0 -24px 35px;
  padding: 55px 20px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 80% 20%, #169c4d, transparent 30%), linear-gradient(110deg, var(--green-dark), var(--green));
}

.page-banner span {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 12px;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 10px;
}

.page-banner p {
  color: #e6f5ec;
  font-size: 16px;
}

.teachers-page {
  padding: 0 0 40px;
}

.teacher-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 8px 28px #0a3b1e12;
  transition: 0.25s;
  height: calc(100% - 25px);
}

.teacher-card-photo {
  height: 225px;
  background: linear-gradient(135deg, #e7f4ec, #fdf0ef);
  text-align: center;
  padding: 14px;
}

.teacher-card-photo img {
  height: 100%;
  max-width: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.teacher-card-info {
  padding: 18px 20px 22px;
}

.teacher-card-info h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 0 0 7px;
}

.teacher-designation {
  display: inline-block;
  color: #fff;
  background: var(--green);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 12px;
}

.teacher-card-info p {
  color: var(--muted);
  line-height: 1.6;
  margin: 7px 0;
  font-size: 13px;
}

.teacher-card-info p i {
  width: 18px;
  color: var(--red);
}

.empty-state {
  text-align: center;
  padding: 55px;
  background: var(--surface);
  border-radius: 15px;
  color: #777;
}

.site-footer {
  background: linear-gradient(110deg, var(--green-dark), #073319);
  border-radius: 16px;
  color: #eee;
  padding: 30px;
  margin: 20px 0 0;
}

.site-footer h4 {
  font-weight: 800;
  color: #fff;
}

.site-footer small {
  color: #c8e3d2;
}

@media (max-width: 767px) {
  .main_website {
    padding: 0 12px 18px;
  }

  .hero-wrap,
  .page-banner {
    margin-left: -12px;
    margin-right: -12px;
  }

  .slider-img {
    height: 270px !important;
    max-height: 270px !important;
  }

  .hero-fallback {
    padding: 65px 15px;
  }

  .hero-fallback h1 {
    font-size: 28px;
  }

  .notice-ticker {
    display: block;
  }

  .ticker-label {
    text-align: center;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 25px;
  }

  .intro-copy h2,
  .section-heading h2 {
    font-size: 25px;
  }

  .history-photo-wrap > img,
  .image-placeholder {
    height: 230px;
  }

  .admission-box,
  .admission-side-card {
    padding: 20px;
    margin-bottom: 18px;
  }

  .message-section,
  .teacher-preview,
  .gallery-section {
    padding: 25px 0;
  }

  .message-row > [class*="col-"] {
    display: block;
  }

  .page-banner {
    padding: 40px 12px;
  }

  .page-banner h1 {
    font-size: 29px;
  }

  .teacher-card-photo {
    height: 190px;
  }

  .teacher-card-info {
    padding: 15px;
  }
}