/* ==========================================================================
   AMS ENGLISH MEDIUM SCHOOL - MODERN RESPONSIVE STYLES
   Maa Geeta Educational Trust (Regd.)
   Chanvai / Parnera, Valsad, Gujarat - 396020 / 396191
   Compatible with: Desktop PCs (1920px, 1440px), Laptops (1366px, 1280px),
   Tablets (1024px, 768px), and Mobile devices (480px, 360px).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ams-primary: #0f2b5c;
  --ams-primary-dark: #091b3a;
  --ams-primary-light: #1e427b;
  --ams-secondary: #d4af37;
  --ams-secondary-dark: #b58927;
  --ams-secondary-light: #e0be4a;
  --ams-gold: #d4af37;
  --ams-gold-hover: #b58927;
  --ams-gold-light: #fef9c3;
  --ams-gold-border: #fef08a;
  --ams-dark: #0f172a;
  --ams-dark-text: #1e293b;
  --ams-muted: #64748b;
  --ams-light-bg: #f8fafc;
  --ams-card-bg: #ffffff;
  --ams-border: #e2e8f0;
  --ams-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --ams-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --ams-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --ams-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --ams-radius-sm: 6px;
  --ams-radius-md: 12px;
  --ams-radius-lg: 18px;
  --ams-radius-xl: 24px;

  /* RN Aliases for full template compatibility */
  --rn-primary: var(--ams-primary);
  --rn-primary-dark: var(--ams-primary-dark);
  --rn-primary-light: var(--ams-primary-light);
  --rn-secondary: var(--ams-secondary);
  --rn-secondary-dark: var(--ams-secondary-dark);
  --rn-secondary-light: var(--ams-secondary-light);
  --rn-gold: var(--ams-gold);
  --rn-gold-hover: var(--ams-gold-hover);
  --rn-gold-light: var(--ams-gold-light);
  --rn-gold-border: var(--ams-gold-border);
  --rn-dark: var(--ams-dark);
  --rn-dark-text: var(--ams-dark-text);
  --rn-muted: var(--ams-muted);
  --rn-light-bg: var(--ams-light-bg);
  --rn-card-bg: var(--ams-card-bg);
  --rn-border: var(--ams-border);
  --rn-shadow-sm: var(--ams-shadow-sm);
  --rn-shadow-md: var(--ams-shadow-md);
  --rn-shadow-lg: var(--ams-shadow-lg);
  --rn-shadow-xl: var(--ams-shadow-xl);
  --rn-radius-sm: var(--ams-radius-sm);
  --rn-radius-md: var(--ams-radius-md);
  --rn-radius-lg: var(--ams-radius-lg);
  --rn-radius-xl: var(--ams-radius-xl);
}


*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  max-width: 100vw;
  overflow-x: clip !important;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ams-dark-text);
  background-color: #ffffff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

img, svg, video, iframe, canvas {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--ams-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   ASTRA THEME RESETS & FULL-WIDTH CONTAINER OVERRIDES
   -------------------------------------------------------------------------- */
.page .entry-header,
.page header.entry-header,
.page .ast-single-post-order,
.single-page .entry-header {
  display: none !important;
}

.page .site-content,
#content.site-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page #primary,
#primary.content-area {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.page .ast-container,
.ast-plain-container.ast-no-sidebar #primary {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page .entry-content,
.entry-content {
  margin: 0 !important;
  max-width: 100% !important;
}

.page article.ast-article-single,
article.ast-article-single {
  padding: 0 !important;
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   GLOBAL CONTAINER
   -------------------------------------------------------------------------- */
.ams-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   TOP ANNOUNCEMENT & CONTACT BAR
   -------------------------------------------------------------------------- */
.ams-topbar {
  background: var(--ams-primary-dark);
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ams-topbar .ams-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ams-topbar-left,
.ams-topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ams-topbar a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.ams-topbar a:hover {
  color: var(--ams-gold);
}

.ams-badge-admissions {
  background: linear-gradient(135deg, #ef4444, #e0be4a);
  color: #ffffff;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   MAIN HEADER & NAVIGATION (DESKTOP / LAPTOP)
   -------------------------------------------------------------------------- */
.ams-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s ease;
  width: 100%;
}

.ams-header .ams-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100% !important;
  width: 100%;
  padding: 10px 36px;
  box-sizing: border-box;
}

.ams-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.ams-nav-desktop {
  display: block;
  margin-left: auto;
}

.ams-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.ams-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: var(--ams-shadow-sm);
  background: #ffffff;
  flex-shrink: 0;
}

.ams-brand-text {
  display: flex;
  flex-direction: column;
}

.ams-brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ams-primary);
  margin: 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.ams-brand-text p {
  font-size: 10.5px;
  color: var(--ams-secondary);
  font-weight: 700;
  margin: 2px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Desktop Navigation List */
.ams-nav-desktop {
  display: block;
}

.ams-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: nowrap !important;
}

.ams-nav-item a {
  display: block;
  padding: 6px 9px;
  color: var(--ams-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--ams-radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap !important;
}

.ams-nav-item a:hover,
.ams-nav-item.active a {
  color: var(--ams-secondary);
  background: #f1f5f9;
}

.ams-header-cta {
  background: linear-gradient(135deg, var(--ams-gold), var(--ams-gold-hover));
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
  transition: transform 0.2s, box-shadow 0.2s !important;
  white-space: nowrap !important;
  font-size: 12.5px !important;
}

.ams-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(217, 119, 6, 0.4);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   CRITICAL FIX: ABSOLUTE SEPARATION OF DESKTOP AND MOBILE MENUS
   (Prevents mobile menu from rendering or conflicting on laptops/PCs)
   -------------------------------------------------------------------------- */

/* Default State for Desktop / Laptop (min-width: 1151px) */
.ams-mobile-toggle {
  display: none !important;
}

.ams-mobile-drawer {
  display: none !important;
}

.ams-backdrop {
  display: none !important;
}

/* Mobile & Tablet Mode (max-width: 1150px) */
@media screen and (max-width: 1150px) {
  .ams-nav-desktop {
    display: none !important;
  }

  .ams-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ams-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .ams-mobile-toggle:hover {
    background: #f1f5f9;
  }

  .ams-mobile-drawer {
    display: block !important;
    position: fixed !important;
    top: 0;
    right: -340px;
    width: min(320px, 85vw) !important;
    max-width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
    z-index: 999999 !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ams-mobile-drawer.open {
    right: 0 !important;
  }

  .ams-mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ams-border);
  }

  .ams-mobile-drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--ams-primary);
    padding: 4px;
  }

  .ams-mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .ams-mobile-nav li {
    margin-bottom: 6px;
  }

  .ams-mobile-nav a {
    display: block;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ams-primary);
    text-decoration: none;
    border-radius: var(--ams-radius-sm);
    transition: all 0.2s;
  }

  .ams-mobile-nav a:hover,
  .ams-mobile-nav a.active {
    background: #f1f5f9;
    color: var(--ams-secondary);
  }

  .ams-backdrop {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999998 !important;
    backdrop-filter: blur(2px);
  }

  .ams-backdrop.active {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   HERO SECTIONS (RESPONSIVE PC & LAPTOP)
   -------------------------------------------------------------------------- */
.ams-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.95), rgba(153, 27, 27, 0.88)),
              url('https://amsschool.in/wp-content/uploads/2026/09/christmas-stage-celebration.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 38px 0 42px 0;
  overflow: hidden;
  width: 100%;
}

.ams-hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.ams-hero-text h1 {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ams-hero-text h1 span {
  color: #fbbf24;
}

.ams-hero-tagline {
  font-size: 16px;
  color: #f1f5f9;
  margin-bottom: 26px;
  max-width: 580px;
  font-weight: 400;
  line-height: 1.65;
}

.ams-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ams-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}

.ams-btn-primary {
  background: linear-gradient(135deg, var(--ams-gold), var(--ams-gold-hover));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.ams-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.5);
  color: #ffffff;
}

.ams-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.ams-btn-secondary:hover {
  background: #ffffff;
  color: var(--ams-primary);
  border-color: #ffffff;
}

/* Hero Right Notice Card */
.ams-hero-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--ams-radius-lg);
  padding: 26px;
  color: var(--ams-dark);
  box-shadow: var(--ams-shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.ams-hero-card h3 {
  color: var(--ams-primary);
  font-size: 19px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ams-notice-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.ams-notice-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--ams-border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ams-notice-item:last-child {
  border-bottom: none;
}

.ams-notice-date {
  background: var(--ams-primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--ams-radius-sm);
  text-align: center;
  min-width: 44px;
  flex-shrink: 0;
}

.ams-notice-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ams-dark-text);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   STATISTICS STRIP (5-COLUMN DESKTOP GRID)
   -------------------------------------------------------------------------- */
.ams-stats-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--ams-border);
  padding: 28px 0;
  box-shadow: var(--ams-shadow-sm);
}

.ams-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}

.ams-stat-item {
  padding: 10px;
  border-right: 1px solid var(--ams-border);
  transition: transform 0.2s ease;
}

.ams-stat-item:last-child {
  border-right: none;
}

.ams-stat-item:hover {
  transform: translateY(-3px);
}

.ams-stat-number {
  font-size: 36px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--ams-secondary);
  line-height: 1;
  margin-bottom: 6px;
}

.ams-stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ams-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   SECTIONS & SECTION HEADERS
   -------------------------------------------------------------------------- */
.ams-section {
  padding: 38px 0;
  width: 100%;
}

.ams-section-alt {
  background-color: var(--ams-light-bg);
}

.ams-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 22px auto;
}

.ams-badge-sub {
  display: inline-block;
  background: var(--ams-gold-light);
  color: var(--ams-gold-hover);
  border: 1px solid var(--ams-gold-border);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.8px;
}

.ams-section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ams-primary);
  margin-bottom: 12px;
}

.ams-section-header p {
  font-size: 15.5px;
  color: var(--ams-muted);
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CARDS GRID (ACADEMIC LEVELS, FACILITIES, ETC.)
   -------------------------------------------------------------------------- */
.ams-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.ams-card {
  background: #ffffff;
  border-radius: var(--ams-radius-md);
  padding: 20px 22px;
  box-shadow: var(--ams-shadow-md);
  border: 1px solid var(--ams-border);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ams-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ams-shadow-xl);
  border-color: var(--ams-gold);
}

.ams-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--ams-primary-light), var(--ams-primary));
  color: #ffffff;
  border-radius: var(--ams-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.ams-card-icon.accent-red {
  background: linear-gradient(135deg, var(--ams-secondary-light), var(--ams-secondary));
}

.ams-card-icon.accent-gold {
  background: linear-gradient(135deg, var(--ams-gold), var(--ams-gold-hover));
}

.ams-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.ams-card p {
  font-size: 14px;
  color: var(--ams-muted);
  margin-bottom: 16px;
  line-height: 1.6;
  flex-grow: 1;
}

.ams-card-link {
  color: var(--ams-secondary);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.ams-card-link:hover {
  color: var(--ams-primary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   DATA TABLES (FEE STRUCTURE, TIMETABLE, CALENDAR)
   -------------------------------------------------------------------------- */
.ams-table-wrapper {
  background: #ffffff;
  border-radius: var(--ams-radius-lg);
  box-shadow: var(--ams-shadow-md);
  border: 1px solid var(--ams-border);
  overflow: hidden;
  margin: 25px 0;
}

.ams-table-header-bar {
  background: linear-gradient(135deg, var(--ams-primary), var(--ams-primary-light));
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ams-table-header-bar h3 {
  color: #ffffff;
  margin: 0;
  font-size: 18px;
}

.ams-table-header-bar span {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ams-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.ams-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  min-width: 600px;
}

table.ams-table th {
  background: #f1f5f9;
  color: var(--ams-primary);
  font-weight: 700;
  padding: 13px 18px;
  border-bottom: 2px solid var(--ams-border);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

table.ams-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ams-border);
  color: var(--ams-dark-text);
}

table.ams-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

table.ams-table tbody tr:hover {
  background-color: #f1f5f9;
}

table.ams-table .highlight-fee {
  font-weight: 700;
  color: var(--ams-secondary);
}

table.ams-table .status-tag {
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   PHOTO GALLERY
   -------------------------------------------------------------------------- */
.ams-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ams-gallery-card {
  position: relative;
  border-radius: var(--ams-radius-md);
  overflow: hidden;
  box-shadow: var(--ams-shadow-md);
  background: #000;
  height: 240px;
  cursor: pointer;
}

.ams-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
  display: block;
}

.ams-gallery-card:hover img {
  transform: scale(1.07);
  opacity: 0.88;
}

.ams-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.95), transparent);
  color: #ffffff;
}

.ams-gallery-tag {
  background: var(--ams-gold);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 5px;
}

.ams-gallery-overlay h4 {
  color: #ffffff;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   PORTAL CARDS
   -------------------------------------------------------------------------- */
.ams-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ams-portal-box {
  background: #ffffff;
  border-radius: var(--ams-radius-lg);
  padding: 26px;
  box-shadow: var(--ams-shadow-md);
  border-top: 4px solid var(--ams-primary);
  transition: all 0.25s ease;
}

.ams-portal-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--ams-shadow-lg);
  border-top-color: var(--ams-secondary);
}

.ams-portal-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ams-portal-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.ams-portal-box li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ams-border);
  font-size: 13.5px;
}

.ams-portal-box li:last-child {
  border-bottom: none;
}

.ams-portal-box a {
  color: var(--ams-secondary);
  text-decoration: none;
  font-weight: 600;
}

.ams-portal-box a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   FORMS (ADMISSION INQUIRY & CONTACT)
   -------------------------------------------------------------------------- */
.ams-form-card {
  background: #ffffff;
  border-radius: var(--ams-radius-lg);
  padding: 32px;
  box-shadow: var(--ams-shadow-lg);
  border: 1px solid var(--ams-border);
}

.ams-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ams-form-group {
  margin-bottom: 14px;
}

.ams-form-group.full-width {
  grid-column: 1 / -1;
}

.ams-form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--ams-primary);
  margin-bottom: 5px;
}

.ams-form-control {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--ams-border);
  border-radius: var(--ams-radius-sm);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.ams-form-control:focus {
  outline: none;
  border-color: var(--ams-primary);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

textarea.ams-form-control {
  resize: vertical;
  min-height: 95px;
}

/* --------------------------------------------------------------------------
   MODERN FOOTER
   -------------------------------------------------------------------------- */
.ams-footer {
  background: #061524;
  color: #94a3b8;
  padding-top: 38px;
  font-size: 13.5px;
  border-top: 4px solid var(--ams-gold);
  width: 100%;
}

.ams-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
  gap: 36px;
  padding-bottom: 45px;
}

.ams-footer h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 9px;
}

.ams-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--ams-gold);
}

.ams-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ams-footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
}

.ams-footer-brand h3 {
  color: #ffffff;
  font-size: 16px;
  margin: 0;
}

.ams-footer p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 12px;
}

.ams-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ams-footer-links li {
  margin-bottom: 9px;
}

.ams-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.ams-footer-links a:hover {
  color: var(--ams-gold);
  transform: translateX(4px);
}

.ams-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.ams-footer-bottom {
  background: #030a12;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}

.ams-footer-bottom .ams-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (LAPTOPS, TABLETS, MOBILES) - 100% COMPLIANT
   ========================================================================== */

/* Laptop & Medium Desktop screens (1101px to 1366px) */
@media screen and (min-width: 1151px) and (max-width: 1366px) {
  .ams-header .ams-container {
    padding: 10px 24px;
  }
  .ams-brand-text h1 {
    font-size: 16px;
  }
  .ams-brand-text p {
    font-size: 9.5px;
  }
  .ams-nav-item a {
  display: block;
  padding: 6px 9px;
  color: var(--ams-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--ams-radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap !important;
}
  .ams-header-cta {
  background: linear-gradient(135deg, var(--ams-gold), var(--ams-gold-hover));
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
  transition: transform 0.2s, box-shadow 0.2s !important;
  white-space: nowrap !important;
  font-size: 12.5px !important;
}
  .ams-hero-text h1 {
    font-size: 34px;
  }
}

/* Tablet Landscape & Below (<= 1100px) */
@media screen and (max-width: 1150px) {
  .ams-header .ams-container {
    padding: 10px 20px;
  }
  .ams-hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ams-hero-text h1 {
    font-size: 32px;
  }
  .ams-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ams-stat-item:nth-child(3) {
    border-right: none;
  }
  .ams-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ams-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ams-portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ams-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet Portrait & Large Mobiles (<= 768px) */
@media screen and (max-width: 768px) {
  .ams-header .ams-container {
    padding: 8px 16px;
  }
  .ams-brand {
    max-width: calc(100% - 48px);
    gap: 10px;
  }
  .ams-brand-text h1 {
    font-size: 15px;
    white-space: normal !important;
    line-height: 1.2;
    word-break: break-word;
  }
  .ams-brand-text p {
    font-size: 8.5px;
    white-space: normal !important;
    line-height: 1.2;
    letter-spacing: 0.2px;
    word-break: break-word;
  }
  .ams-topbar-left {
    display: none !important;
  }
  .ams-topbar .ams-container {
    justify-content: center;
    padding: 4px 10px;
  }
  .ams-topbar-right {
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    width: 100%;
  }
  .ams-container {
    padding: 0 16px;
  }
  .ams-hero {
    padding: 40px 0 50px 0;
  }
  .ams-hero-text h1 {
    font-size: 26px;
  }
  .ams-hero-tagline {
    font-size: 14px;
  }
  .ams-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ams-stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--ams-border);
  }
  .ams-cards-grid {
    grid-template-columns: 1fr;
  }
  .ams-portal-grid {
    grid-template-columns: 1fr;
  }
  .ams-form-grid {
    grid-template-columns: 1fr;
  }
  .ams-footer-grid {
    grid-template-columns: 1fr;
  }
  .ams-section-header h2 {
    font-size: 24px;
  }
}

/* Small Mobile Devices (<= 480px) */
@media screen and (max-width: 480px) {
  .ams-header .ams-container {
    padding: 6px 12px;
  }
  .ams-logo {
    width: 38px;
    height: 38px;
  }
  .ams-brand {
    max-width: calc(100% - 44px);
    gap: 8px;
  }
  .ams-brand-text h1 {
    font-size: 13px;
    white-space: normal !important;
    line-height: 1.15;
  }
  .ams-brand-text p {
    font-size: 7.5px;
    white-space: normal !important;
    line-height: 1.15;
    letter-spacing: 0;
  }
  .ams-container {
    padding: 0 12px;
  }
  .ams-topbar-right {
    font-size: 10px;
    gap: 6px;
  }
  .ams-topbar-right a {
    font-size: 10px;
  }
  .ams-badge-admissions {
    font-size: 9px;
    padding: 1px 6px;
  }
  .ams-stats-grid {
    grid-template-columns: 1fr;
  }
  .ams-gallery-grid {
    grid-template-columns: 1fr;
  }
  .ams-hero-text h1 {
    font-size: 22px;
  }
  .ams-hero-tagline {
    font-size: 13px;
  }
  .ams-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Super Small Mobile (<= 360px) */
@media screen and (max-width: 360px) {
  .ams-header .ams-container {
    padding: 4px 8px;
  }
  .ams-logo {
    width: 32px;
    height: 32px;
  }
  .ams-brand-text h1 {
    font-size: 11.5px;
  }
  .ams-brand-text p {
    display: none;
  }
  .ams-container {
    padding: 0 8px;
  }
}

/* --------------------------------------------------------------------------
   EVENT ANNOUNCEMENT POPUP MODAL (2-SECOND DISMISS)
   -------------------------------------------------------------------------- */
.ams-popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 37, 64, 0.82);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.ams-popup-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--ams-gold);
  animation: rnPopupIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rnPopupIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.ams-popup-header {
  background: linear-gradient(135deg, var(--ams-primary), var(--ams-primary-light));
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ams-popup-header h3 {
  color: #ffffff;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ams-popup-close-btn {
  background: #d4af37;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ams-popup-close-btn:hover:not(.disabled) {
  background: #dc2626;
  transform: scale(1.05);
}

.ams-popup-close-btn.disabled {
  background: #64748b;
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

.ams-popup-body {
  padding: 16px;
  text-align: center;
}

.ams-popup-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto 14px auto;
}

.ams-popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ams-gold), var(--ams-gold-hover));
  color: #ffffff !important;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ams-popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.4);
}

/* --------------------------------------------------------------------------
   FORM VALIDATIONS, LOGIN ALERTS & TOOLTIPS
   -------------------------------------------------------------------------- */
.ams-alert-error {
  background: #fef2f2;
  color: #d4af37;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.ams-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.ams-login-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 22px;
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ams-field-error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.ams-input-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

/* --------------------------------------------------------------------------
   STRICT ASTRA FOOTER & DUPLICATE COPYRIGHT REMOVAL
   -------------------------------------------------------------------------- */
#colophon,
.site-footer,
.ast-footer-copyright,
.site-below-footer-wrap,
.ast-below-footer-wrap,
.ast-small-footer,
.ast-footer-builder-bar,
[data-section="section-footer-builder"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Ensure our official school footer stays visible */
footer.ams-footer {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
}


/* ==========================================================================
   DIRECTOR'S DESK / LEADERSHIP SECTION RESPONSIVE STYLES
   ========================================================================== */
.ams-director-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
    background: #ffffff;
    border-radius: var(--ams-radius-lg);
    padding: 40px;
    box-shadow: var(--ams-shadow-lg);
    border: 1px solid var(--ams-border);
}
@media screen and (max-width: 900px) {
    .ams-director-card {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 24px 20px !important;
        text-align: center;
    }
    .ams-director-card blockquote {
        text-align: left;
    }
}


/* ==========================================================================
   ENHANCED RESPONSIVE GRID & MOBILE COMPATIBILITY SYSTEM
   ========================================================================== */
.ams-welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.ams-feature-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

.ams-director-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border-radius: var(--ams-radius-lg);
  padding: 36px;
  box-shadow: var(--ams-shadow-lg);
  border: 1px solid var(--ams-border);
}

.ams-director-card img {
  width: 100%;
  max-width: 270px;
  height: auto;
  display: block;
  object-fit: cover;
}

.ams-director-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.ams-inquiry-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: flex-start;
}

.ams-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media screen and (max-width: 900px) {
  .ams-welcome-grid,
  .ams-director-card,
  .ams-inquiry-split,
  .ams-split-grid,
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns:1fr 1.1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1.1fr 0.9fr"],
  [style*="grid-template-columns:1.1fr 0.9fr"],
  [style*="grid-template-columns: 320px 1fr"],
  [style*="grid-template-columns:320px 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ams-director-card {
    padding: 24px 16px !important;
    text-align: center !important;
  }

  .ams-director-card img {
    max-width: 220px !important;
    margin: 0 auto !important;
  }

  .ams-director-highlights {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .ams-feature-bullets {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  .ams-hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .ams-hero-actions .ams-btn,
  .ams-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
  }
  .ams-director-card {
    padding: 18px 12px !important;
  }
  .ams-director-card h2 {
    font-size: 22px !important;
  }
  .ams-director-card h3 {
    font-size: 19px !important;
  }
  .ams-table-wrapper,
  .ams-table-responsive {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }
}

/* ZERO MOBILE BLOWOUT & RESPONSIVE STANDARDS */
html, body {
  overflow-x: clip !important;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.ams-table-responsive, .rn-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: var(--ams-radius-md);
  box-shadow: var(--ams-shadow-sm);
}

.ams-table-responsive table, .rn-table-responsive table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

/* Single-line desktop header menu */
@media (min-width: 1151px) {
  .ams-nav-desktop, .rn-nav-desktop {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }
  .ams-nav-list, .rn-nav-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 4px !important;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }
}

/* Mobile drawer specs */
.ams-mobile-drawer, .rn-mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: min(320px, 85vw) !important;
  height: 100vh;
  background: #ffffff;
  z-index: 999999 !important;
  box-shadow: -5px 0 25px rgba(0,0,0,0.25);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ams-mobile-drawer.active, .rn-mobile-drawer.active {
  right: 0 !important;
}

.ams-backdrop, .rn-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999998 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ams-backdrop.active, .rn-backdrop.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Mobile Action Buttons Full Width on <= 480px */
@media (max-width: 480px) {
  .ams-btn, .rn-btn, .ams-hero-actions a, .rn-hero-actions a {
    width: 100% !important;
    text-align: center;
    justify-content: center;
  }
}

/* Responsive Grids Collapse on <= 900px */
@media (max-width: 900px) {
  .ams-split-grid, .rn-split-grid,
  .ams-welcome-grid, .rn-welcome-grid,
  .ams-inquiry-split, .rn-inquiry-split,
  .ams-card-grid, .rn-card-grid,
  .ams-features-grid, .rn-features-grid {
    grid-template-columns: 1fr !important;
  }
}

/* School Management Committee (SMC) Section Styling */
.ams-smc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--ams-radius-md);
  overflow: hidden;
  box-shadow: var(--ams-shadow-md);
}

.ams-smc-table th {
  background: linear-gradient(135deg, var(--ams-primary), var(--ams-primary-light));
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 2px solid var(--ams-secondary);
}

.ams-smc-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ams-border);
  font-size: 14px;
  color: var(--ams-dark-text);
  vertical-align: middle;
}

.ams-smc-table tr:nth-child(even) td {
  background: var(--ams-light-bg);
}

.ams-smc-table tr:hover td {
  background: #f1f5f9;
}

.ams-smc-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 43, 92, 0.08);
  color: var(--ams-primary);
}

.ams-smc-badge.primary-badge {
  background: rgba(212, 175, 55, 0.2);
  color: #8c6a0b;
}

/* Lightbox Modal */
.ams-lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.92);
  z-index: 1000000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.ams-lightbox-modal.active {
  display: flex !important;
}

.ams-lightbox-modal img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.ams-lightbox-caption {
  color: #fff;
  font-size: 16px;
  margin-top: 15px;
  text-align: center;
  font-weight: 600;
}

.ams-lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* Gallery Filter Tabs */
.ams-gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.ams-gallery-tab {
  background: #fff;
  border: 1px solid var(--ams-border);
  color: var(--ams-primary);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ams-gallery-tab.active, .ams-gallery-tab:hover {
  background: var(--ams-primary);
  color: #fff;
  border-color: var(--ams-primary);
  box-shadow: var(--ams-shadow-md);
}

/* Class Aliases: .rn-* -> .ams-* */


/* Lightbox Modal with Fixed Vertical Column & Rich Glass Caption */
.ams-lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 13, 24, 0.94);
  z-index: 1000000;
  justify-content: center;
  align-items: center;
  flex-direction: column !important;
  padding: 20px;
  box-sizing: border-box;
}

.ams-lightbox-modal.active {
  display: flex !important;
}

.ams-lightbox-modal img {
  max-width: min(92vw, 980px);
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
  object-fit: contain;
  background: #000;
}

.ams-lightbox-caption {
  color: #ffffff;
  font-size: 14.5px;
  margin-top: 14px;
  text-align: center;
  max-width: min(92vw, 780px);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 22px;
  line-height: 1.5;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.ams-lightbox-caption strong {
  display: block;
  font-size: 16.5px;
  color: var(--ams-gold);
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.ams-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1000001;
}

.ams-lightbox-close:hover {
  background: var(--ams-secondary);
  transform: rotate(90deg);
}

/* Gallery Rich Card Styling */
.ams-gallery-card {
  background: #ffffff;
  border-radius: var(--ams-radius-md);
  overflow: hidden;
  box-shadow: var(--ams-shadow-sm);
  border: 1px solid var(--ams-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.ams-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ams-shadow-lg);
  border-color: var(--ams-gold);
}

.ams-gallery-thumb-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: #0f172a;
}

.ams-gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ams-gallery-card:hover .ams-gallery-thumb-wrap img {
  transform: scale(1.05);
}

.ams-gallery-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 43, 92, 0.85);
  color: #fef08a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.ams-gallery-card-zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.ams-gallery-card:hover .ams-gallery-card-zoom-icon {
  background: var(--ams-secondary);
}

.ams-gallery-info {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ams-gallery-info h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ams-primary);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.ams-gallery-info p {
  font-size: 13px;
  color: var(--ams-muted);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}
/* Responsive Spacing Optimization */
@media screen and (max-width: 900px) {
  .ams-section {
    padding: 28px 0 !important;
  }
  .ams-hero {
    padding: 30px 0 34px 0 !important;
  }
  .ams-section-header {
    margin-bottom: 20px !important;
  }
}
@media screen and (max-width: 480px) {
  .ams-section {
    padding: 22px 0 !important;
  }
  .ams-hero {
    padding: 24px 0 28px 0 !important;
  }
  .ams-card {
    padding: 18px 16px !important;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE SAFE SPACING & SOCIAL MEDIA 3-COLUMN DESKTOP ROW (OCT 2026)
   -------------------------------------------------------------------------- */
.ams-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px !important;
  box-sizing: border-box;
}

@media screen and (max-width: 991px) {
  .ams-container {
    padding: 0 20px !important;
  }
}

@media screen and (max-width: 480px) {
  .ams-container {
    padding: 0 16px !important;
  }
}

.ams-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 991px) {
  .ams-social-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ams-social-col {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--ams-border);
  box-shadow: var(--ams-shadow-md);
  display: flex;
  flex-direction: column;
  height: 520px;
  max-height: 520px;
  overflow: hidden;
  box-sizing: border-box;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ams-social-col:hover {
  box-shadow: var(--ams-shadow-xl);
  transform: translateY(-3px);
}

.ams-social-col-header {
  padding: 12px 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ams-social-col-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ams-social-col-brand strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

.ams-social-col-brand span {
  font-size: 11.5px;
  opacity: 0.9;
  display: block;
}

.ams-social-live-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

.ams-social-feed-scrollable {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative !important;
  background: #f8fafc !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--ams-secondary) #f1f5f9 !important;
  -webkit-overflow-scrolling: touch !important;
}

.ams-social-feed-scrollable::-webkit-scrollbar {
  width: 7px !important;
}

.ams-social-feed-scrollable::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 4px !important;
}

.ams-social-feed-scrollable::-webkit-scrollbar-thumb {
  background: var(--ams-secondary) !important;
  border-radius: 4px !important;
}

.ams-social-feed-scrollable::-webkit-scrollbar-thumb:hover {
  background: #b8860b !important;
}

.ams-social-col-footer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--ams-border);
  flex-shrink: 0;
  box-sizing: border-box;
}

.ams-btn-facebook {
  background: #1877F2 !important;
  color: #ffffff !important;
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-weight: 700 !important;
}

.ams-btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !important;
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-weight: 700 !important;
}

.ams-btn-youtube {
  background: #FF0000 !important;
  color: #ffffff !important;
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-weight: 700 !important;
}

.ams-yt-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid var(--ams-border);
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.ams-yt-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.ams-yt-thumb {
  width: 90px;
  height: 52px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.ams-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ams-yt-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.ams-yt-meta {
  flex: 1;
  min-width: 0;
}

.ams-yt-meta strong {
  display: block;
  font-size: 12px;
  color: var(--ams-primary);
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ams-yt-meta span {
  font-size: 11px;
  color: var(--ams-muted);
}

.ams-insta-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--ams-border);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ams-insta-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.ams-insta-card-body {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ams-dark-text);
  line-height: 1.4;
}

.ams-insta-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ams-muted);
}

.ams-gallery-download-btn {
  background: #f1f5f9;
  color: var(--ams-primary);
  border: 1px solid var(--ams-border);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ams-gallery-download-btn:hover {
  background: var(--ams-primary);
  color: #ffffff;
  border-color: var(--ams-primary);
}

.ams-gallery-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}


/* TIGHT COMPACT SECTION SPACING & ROGUE P SUPPRESSION */
.ams-section {
  padding: 32px 0 !important;
  width: 100%;
}

.ams-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 18px auto !important;
}

.ams-hero-content > p,
.ams-social-grid > p,
.ams-facilities-grid > p,
.ams-card-grid > p,
.ams-welcome-grid > p,
.ams-inquiry-split > p,
.ams-stats-grid > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

/* 4-COLUMN SINGLE ROW FACILITIES GRID ON DESKTOP */
.ams-facilities-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 1024px) {
  .ams-facilities-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 600px) {
  .ams-facilities-grid {
    grid-template-columns: 1fr !important;
  }
}

/* STRICT 3-EQUAL-WIDTH COLUMNS SOCIAL GRID */
.ams-social-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 991px) {
  .ams-social-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}

.ams-social-col {
  height: 560px !important;
  max-height: 560px !important;
}


/* ==========================================================================
   PHOTO GALLERY 3-TO-4 COLUMN RESPONSIVE GRID (ZERO FULL-WIDTH BLOWOUT)
   ========================================================================== */
.ams-gallery-grid,
#amsGalleryGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 1100px) {
  .ams-gallery-grid,
  #amsGalleryGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media screen and (max-width: 640px) {
  .ams-gallery-grid,
  #amsGalleryGrid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

.ams-gallery-grid > p,
#amsGalleryGrid > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* GALLERY CARD & NATURAL IMAGE FRAMING */
.ams-gallery-card {
  background: #ffffff !important;
  border-radius: var(--ams-radius-md) !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(15, 43, 92, 0.08) !important;
  border: 1px solid var(--ams-border) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  cursor: pointer;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ams-gallery-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 30px rgba(15, 43, 92, 0.16) !important;
  border-color: var(--ams-secondary) !important;
}

.ams-gallery-thumb-wrap {
  position: relative !important;
  overflow: hidden !important;
  height: 220px !important;
  width: 100% !important;
  background: #0f172a !important;
}

.ams-gallery-thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 25% !important;
  transition: transform 0.35s ease !important;
  display: block !important;
}

.ams-gallery-card:hover .ams-gallery-thumb-wrap img {
  transform: scale(1.06) !important;
}

.ams-gallery-card-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: rgba(15, 43, 92, 0.88) !important;
  color: #fef08a !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 50px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(254, 240, 138, 0.3) !important;
  z-index: 2 !important;
}

.ams-gallery-card-zoom-icon {
  position: absolute !important;
  bottom: 10px !important;
  right: 10px !important;
  background: rgba(0, 0, 0, 0.7) !important;
  color: #ffffff !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  backdrop-filter: blur(4px) !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  z-index: 2 !important;
}

.ams-gallery-card:hover .ams-gallery-card-zoom-icon {
  background: var(--ams-secondary) !important;
  transform: scale(1.1) !important;
}

/* RICH ON-CARD CAPTIONS */
.ams-gallery-info {
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
  background: #ffffff !important;
}

.ams-gallery-info h4 {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--ams-primary) !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.35 !important;
}

.ams-gallery-info p {
  font-size: 13px !important;
  color: #475569 !important;
  margin: 0 0 14px 0 !important;
  line-height: 1.5 !important;
  flex-grow: 1 !important;
}

.ams-gallery-footer-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 10px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.ams-gallery-download-btn {
  background: #f8fafc !important;
  color: var(--ams-primary) !important;
  border: 1px solid var(--ams-border) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.ams-gallery-download-btn:hover {
  background: var(--ams-primary) !important;
  color: #ffffff !important;
  border-color: var(--ams-primary) !important;
}


/* ==========================================================================
   ENHANCED GALLERY ARCHITECTURE: TALL THUMBNAILS, CLICK-TO-VIEW & PREV/NEXT
   ========================================================================== */
.ams-gallery-thumb-wrap {
  position: relative !important;
  overflow: hidden !important;
  height: 260px !important; /* Taller thumbnail showing much more of the photo */
  width: 100% !important;
  background: #0a192f !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ams-gallery-thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  transition: transform 0.35s ease !important;
  display: block !important;
}

.ams-gallery-card:hover .ams-gallery-thumb-wrap img {
  transform: scale(1.05) !important;
}

.ams-gallery-view-hint {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.85) !important;
  background: rgba(15, 43, 92, 0.9) !important;
  backdrop-filter: blur(6px) !important;
  color: #fef08a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  border: 1px solid rgba(254, 240, 138, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  z-index: 3 !important;
}

.ams-gallery-card:hover .ams-gallery-view-hint {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.ams-gallery-view-btn {
  background: #ffffff !important;
  color: var(--ams-primary) !important;
  border: 1px solid var(--ams-primary) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border-radius: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.ams-gallery-view-btn:hover {
  background: var(--ams-primary) !important;
  color: #ffffff !important;
}

/* LIGHTBOX PREV / NEXT NAVIGATION ARROWS */
.ams-lightbox-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  font-size: 26px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 1000002 !important;
  backdrop-filter: blur(6px) !important;
}

.ams-lightbox-nav:hover {
  background: var(--ams-secondary) !important;
  color: #0f172a !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.ams-lightbox-prev {
  left: 24px !important;
}

.ams-lightbox-next {
  right: 24px !important;
}

@media screen and (max-width: 600px) {
  .ams-lightbox-nav {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
  .ams-lightbox-prev {
    left: 8px !important;
  }
  .ams-lightbox-next {
    right: 8px !important;
  }
  .ams-gallery-thumb-wrap {
    height: 220px !important;
  }
}
