/* ============================================
   A.B.C. Alma Mater — Modern Minimal Theme
   Primary: Deep Blue | Accent: Soft Gold/Teal
   Fonts: Poppins, Inter
   ============================================ */

:root {
  --primary: #0d3b66;
  --primary-dark: #082947;
  --accent: #e8b923;
  --accent-teal: #17a2b8;
  --bg-light: #f5f7fa;
  --text-muted: #6c757d;
  --shadow: 0 4px 20px rgba(13, 59, 102, 0.08);
  --shadow-hover: 0 12px 32px rgba(13, 59, 102, 0.14);
  --transition: 0.3s ease;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
}

* {
  scroll-behavior: smooth;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: #212529;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* ----- Header / Navbar ----- */
/* Navbar: always dark blue — never white */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--primary) !important;
  transition: box-shadow 0.35s ease, padding 0.35s ease;
  overflow: visible;
}

.site-header .navbar,
.site-header .navbar-collapse,
.site-header .navbar-nav {
  overflow: visible;
}

.site-header.scrolled {
  background: var(--primary-dark) !important;
  box-shadow: var(--shadow);
}

.site-header .navbar {
  padding: 0.75rem 0;
  background: transparent !important;
  transition: padding 0.35s ease;
}

.site-header.scrolled .navbar {
  padding: 0.5rem 0;
}

.site-header .navbar-nav .nav-link,
.site-header .navbar .navbar-brand {
  color: rgba(255, 255, 255, 0.95) !important;
}

.site-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.site-header .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 0.75rem !important;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

.nav-link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
  left: 10%;
}

/* Dropdown: ensure nested ul is visible and not clipped */
.site-header .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius);
  padding: 0.5rem;
  z-index: 1055;
  background: #fff;
  margin-top: 0.25rem;
}

.site-header .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: #212529;
}

.site-header .dropdown-item:hover {
  background: rgba(13, 59, 102, 0.08);
  color: var(--primary);
}

/* Hide underline on dropdown toggles when open so it doesn’t clash */
.site-header .dropdown-toggle.nav-link::after {
  margin-left: 0.35em;
  vertical-align: 0.2em;
}

.btn-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.4);
  color: #fff !important;
}

/* ----- Hero ----- */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/www.abcalmamater.com/slider/img1.jpg') center/cover no-repeat;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.72) 0%, rgba(8, 41, 71, 0.78) 100%);
}

/* Fallback hero image (inline img) so image shows when path is valid */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.btn-hero-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.45);
  color: #fff !important;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down {
  display: inline-block;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  position: relative;
}

.scroll-down span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: #fff;
  border-radius: 50%;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(12px); }
}

/* ----- Main content ----- */
.main-content {
  padding-top: 0;
}

.section-padding {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-padding { padding: 5rem 0; }
}

.section-title {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.page-hero {
  padding: 3rem 0;
  margin-top: 76px;
}

/* ----- Cards ----- */
.card-hover {
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Student-friendly: softer focus, bigger tap targets */
.btn-lg, .btn-cta, .btn-hero-cta {
  min-height: 44px;
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
}

/* ----- Content body (HTML from JSON) ----- */
.content-body p {
  margin-bottom: 1rem;
}

.content-body p:last-child {
  margin-bottom: 0;
}

.content-body ul,
.content-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* ----- Buttons ----- */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 59, 102, 0.35);
}

/* ----- Gallery ----- */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item .gallery-img {
  transition: transform 0.4s ease;
  object-fit: cover;
  min-height: 180px;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 59, 102, 0.4), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--primary);
  color: #fff;
  margin-top: auto;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.social-link {
  display: inline-block;
  margin-right: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
}

.footer-map iframe {
  border: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ----- Scroll to top ----- */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 1020;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff;
}

/* ----- AOS delay utilities ----- */
[data-aos] {
  pointer-events: auto;
}

/* ----- Form ----- */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 59, 102, 0.15);
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    padding: 1rem 0;
  }

  .nav-link-underline::after {
    display: none;
  }

  .page-hero {
    margin-top: 66px;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}
