/* ==========================================================================
   R N ACADEMIC ENGLISH MEDIUM HIGH SCHOOL - MODERN RESPONSIVE STYLES
   Balitha, Vapi, Gujarat
   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 {
  --rn-primary: #0a2540;
  --rn-primary-dark: #07192c;
  --rn-primary-light: #163e69;
  --rn-secondary: #991b1b;
  --rn-secondary-dark: #7f1d1d;
  --rn-secondary-light: #b91c1c;
  --rn-gold: #d97706;
  --rn-gold-hover: #b45309;
  --rn-gold-light: #fef3c7;
  --rn-gold-border: #fcd34d;
  --rn-dark: #0f172a;
  --rn-dark-text: #1e293b;
  --rn-muted: #64748b;
  --rn-light-bg: #f8fafc;
  --rn-card-bg: #ffffff;
  --rn-border: #e2e8f0;
  --rn-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --rn-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --rn-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --rn-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --rn-radius-sm: 6px;
  --rn-radius-md: 12px;
  --rn-radius-lg: 18px;
  --rn-radius-xl: 24px;
}

*, *::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(--rn-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(--rn-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
   -------------------------------------------------------------------------- */
.rn-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   TOP ANNOUNCEMENT & CONTACT BAR
   -------------------------------------------------------------------------- */
.rn-topbar {
  background: var(--rn-primary-dark);
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rn-topbar .rn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.rn-topbar-left,
.rn-topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.rn-topbar a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.rn-topbar a:hover {
  color: var(--rn-gold);
}

.rn-badge-admissions {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  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)
   -------------------------------------------------------------------------- */
.rn-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%;
}

.rn-header .rn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100% !important;
  width: 100%;
  padding: 10px 36px;
  box-sizing: border-box;
}

.rn-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.rn-nav-desktop {
  display: block;
  margin-left: auto;
}

.rn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.rn-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: var(--rn-shadow-sm);
  background: #ffffff;
  flex-shrink: 0;
}

.rn-brand-text {
  display: flex;
  flex-direction: column;
}

.rn-brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--rn-primary);
  margin: 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.rn-brand-text p {
  font-size: 10.5px;
  color: var(--rn-secondary);
  font-weight: 700;
  margin: 2px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Desktop Navigation List */
.rn-nav-desktop {
  display: block;
}

.rn-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: nowrap !important;
}

.rn-nav-item a {
  display: block;
  padding: 6px 9px;
  color: var(--rn-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--rn-radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap !important;
}

.rn-nav-item a:hover,
.rn-nav-item.active a {
  color: var(--rn-secondary);
  background: #f1f5f9;
}

.rn-header-cta {
  background: linear-gradient(135deg, var(--rn-gold), var(--rn-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;
}

.rn-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) */
.rn-mobile-toggle {
  display: none !important;
}

.rn-mobile-drawer {
  display: none !important;
}

.rn-backdrop {
  display: none !important;
}

/* Mobile & Tablet Mode (max-width: 1150px) */
@media screen and (max-width: 1150px) {
  .rn-nav-desktop {
    display: none !important;
  }

  .rn-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--rn-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .rn-mobile-toggle:hover {
    background: #f1f5f9;
  }

  .rn-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;
  }

  .rn-mobile-drawer.open {
    right: 0 !important;
  }

  .rn-mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rn-border);
  }

  .rn-mobile-drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--rn-primary);
    padding: 4px;
  }

  .rn-mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .rn-mobile-nav li {
    margin-bottom: 6px;
  }

  .rn-mobile-nav a {
    display: block;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--rn-primary);
    text-decoration: none;
    border-radius: var(--rn-radius-sm);
    transition: all 0.2s;
  }

  .rn-mobile-nav a:hover,
  .rn-mobile-nav a.active {
    background: #f1f5f9;
    color: var(--rn-secondary);
  }

  .rn-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);
  }

  .rn-backdrop.active {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   HERO SECTIONS (RESPONSIVE PC & LAPTOP)
   -------------------------------------------------------------------------- */
.rn-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.95), rgba(153, 27, 27, 0.88)),
              url('https://rnschool.in/wp-content/uploads/2026/09/christmas-stage-celebration.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 60px 0 70px 0;
  overflow: hidden;
  width: 100%;
}

.rn-hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.rn-hero-text h1 {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.rn-hero-text h1 span {
  color: #fbbf24;
}

.rn-hero-tagline {
  font-size: 16px;
  color: #f1f5f9;
  margin-bottom: 26px;
  max-width: 580px;
  font-weight: 400;
  line-height: 1.65;
}

.rn-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.rn-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;
}

.rn-btn-primary {
  background: linear-gradient(135deg, var(--rn-gold), var(--rn-gold-hover));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.rn-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.5);
  color: #ffffff;
}

.rn-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.rn-btn-secondary:hover {
  background: #ffffff;
  color: var(--rn-primary);
  border-color: #ffffff;
}

/* Hero Right Notice Card */
.rn-hero-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--rn-radius-lg);
  padding: 26px;
  color: var(--rn-dark);
  box-shadow: var(--rn-shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.rn-hero-card h3 {
  color: var(--rn-primary);
  font-size: 19px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rn-notice-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.rn-notice-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--rn-border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rn-notice-item:last-child {
  border-bottom: none;
}

.rn-notice-date {
  background: var(--rn-primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--rn-radius-sm);
  text-align: center;
  min-width: 44px;
  flex-shrink: 0;
}

.rn-notice-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--rn-dark-text);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   STATISTICS STRIP (5-COLUMN DESKTOP GRID)
   -------------------------------------------------------------------------- */
.rn-stats-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--rn-border);
  padding: 28px 0;
  box-shadow: var(--rn-shadow-sm);
}

.rn-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}

.rn-stat-item {
  padding: 10px;
  border-right: 1px solid var(--rn-border);
  transition: transform 0.2s ease;
}

.rn-stat-item:last-child {
  border-right: none;
}

.rn-stat-item:hover {
  transform: translateY(-3px);
}

.rn-stat-number {
  font-size: 36px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--rn-secondary);
  line-height: 1;
  margin-bottom: 6px;
}

.rn-stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rn-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   SECTIONS & SECTION HEADERS
   -------------------------------------------------------------------------- */
.rn-section {
  padding: 65px 0;
  width: 100%;
}

.rn-section-alt {
  background-color: var(--rn-light-bg);
}

.rn-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px auto;
}

.rn-badge-sub {
  display: inline-block;
  background: var(--rn-gold-light);
  color: var(--rn-gold-hover);
  border: 1px solid var(--rn-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;
}

.rn-section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--rn-primary);
  margin-bottom: 12px;
}

.rn-section-header p {
  font-size: 15.5px;
  color: var(--rn-muted);
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CARDS GRID (ACADEMIC LEVELS, FACILITIES, ETC.)
   -------------------------------------------------------------------------- */
.rn-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.rn-card {
  background: #ffffff;
  border-radius: var(--rn-radius-md);
  padding: 26px;
  box-shadow: var(--rn-shadow-md);
  border: 1px solid var(--rn-border);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.rn-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--rn-shadow-xl);
  border-color: var(--rn-gold);
}

.rn-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--rn-primary-light), var(--rn-primary));
  color: #ffffff;
  border-radius: var(--rn-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.rn-card-icon.accent-red {
  background: linear-gradient(135deg, var(--rn-secondary-light), var(--rn-secondary));
}

.rn-card-icon.accent-gold {
  background: linear-gradient(135deg, var(--rn-gold), var(--rn-gold-hover));
}

.rn-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.rn-card p {
  font-size: 14px;
  color: var(--rn-muted);
  margin-bottom: 16px;
  line-height: 1.6;
  flex-grow: 1;
}

.rn-card-link {
  color: var(--rn-secondary);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.rn-card-link:hover {
  color: var(--rn-primary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   DATA TABLES (FEE STRUCTURE, TIMETABLE, CALENDAR)
   -------------------------------------------------------------------------- */
.rn-table-wrapper {
  background: #ffffff;
  border-radius: var(--rn-radius-lg);
  box-shadow: var(--rn-shadow-md);
  border: 1px solid var(--rn-border);
  overflow: hidden;
  margin: 25px 0;
}

.rn-table-header-bar {
  background: linear-gradient(135deg, var(--rn-primary), var(--rn-primary-light));
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rn-table-header-bar h3 {
  color: #ffffff;
  margin: 0;
  font-size: 18px;
}

.rn-table-header-bar span {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.rn-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.rn-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  min-width: 600px;
}

table.rn-table th {
  background: #f1f5f9;
  color: var(--rn-primary);
  font-weight: 700;
  padding: 13px 18px;
  border-bottom: 2px solid var(--rn-border);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

table.rn-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rn-border);
  color: var(--rn-dark-text);
}

table.rn-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

table.rn-table tbody tr:hover {
  background-color: #f1f5f9;
}

table.rn-table .highlight-fee {
  font-weight: 700;
  color: var(--rn-secondary);
}

table.rn-table .status-tag {
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   PHOTO GALLERY
   -------------------------------------------------------------------------- */
.rn-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rn-gallery-card {
  position: relative;
  border-radius: var(--rn-radius-md);
  overflow: hidden;
  box-shadow: var(--rn-shadow-md);
  background: #000;
  height: 240px;
  cursor: pointer;
}

.rn-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
  display: block;
}

.rn-gallery-card:hover img {
  transform: scale(1.07);
  opacity: 0.88;
}

.rn-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;
}

.rn-gallery-tag {
  background: var(--rn-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;
}

.rn-gallery-overlay h4 {
  color: #ffffff;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   PORTAL CARDS
   -------------------------------------------------------------------------- */
.rn-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rn-portal-box {
  background: #ffffff;
  border-radius: var(--rn-radius-lg);
  padding: 26px;
  box-shadow: var(--rn-shadow-md);
  border-top: 4px solid var(--rn-primary);
  transition: all 0.25s ease;
}

.rn-portal-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--rn-shadow-lg);
  border-top-color: var(--rn-secondary);
}

.rn-portal-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rn-portal-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.rn-portal-box li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rn-border);
  font-size: 13.5px;
}

.rn-portal-box li:last-child {
  border-bottom: none;
}

.rn-portal-box a {
  color: var(--rn-secondary);
  text-decoration: none;
  font-weight: 600;
}

.rn-portal-box a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   FORMS (ADMISSION INQUIRY & CONTACT)
   -------------------------------------------------------------------------- */
.rn-form-card {
  background: #ffffff;
  border-radius: var(--rn-radius-lg);
  padding: 32px;
  box-shadow: var(--rn-shadow-lg);
  border: 1px solid var(--rn-border);
}

.rn-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rn-form-group {
  margin-bottom: 14px;
}

.rn-form-group.full-width {
  grid-column: 1 / -1;
}

.rn-form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--rn-primary);
  margin-bottom: 5px;
}

.rn-form-control {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--rn-border);
  border-radius: var(--rn-radius-sm);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.rn-form-control:focus {
  outline: none;
  border-color: var(--rn-primary);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

textarea.rn-form-control {
  resize: vertical;
  min-height: 95px;
}

/* --------------------------------------------------------------------------
   MODERN FOOTER
   -------------------------------------------------------------------------- */
.rn-footer {
  background: #061524;
  color: #94a3b8;
  padding-top: 55px;
  font-size: 13.5px;
  border-top: 4px solid var(--rn-gold);
  width: 100%;
}

.rn-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
  gap: 36px;
  padding-bottom: 45px;
}

.rn-footer h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 9px;
}

.rn-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--rn-gold);
}

.rn-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rn-footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
}

.rn-footer-brand h3 {
  color: #ffffff;
  font-size: 16px;
  margin: 0;
}

.rn-footer p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 12px;
}

.rn-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rn-footer-links li {
  margin-bottom: 9px;
}

.rn-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.rn-footer-links a:hover {
  color: var(--rn-gold);
  transform: translateX(4px);
}

.rn-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.rn-footer-bottom {
  background: #030a12;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}

.rn-footer-bottom .rn-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) {
  .rn-header .rn-container {
    padding: 10px 24px;
  }
  .rn-brand-text h1 {
    font-size: 16px;
  }
  .rn-brand-text p {
    font-size: 9.5px;
  }
  .rn-nav-item a {
  display: block;
  padding: 6px 9px;
  color: var(--rn-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--rn-radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap !important;
}
  .rn-header-cta {
  background: linear-gradient(135deg, var(--rn-gold), var(--rn-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;
}
  .rn-hero-text h1 {
    font-size: 34px;
  }
}

/* Tablet Landscape & Below (<= 1100px) */
@media screen and (max-width: 1150px) {
  .rn-header .rn-container {
    padding: 10px 20px;
  }
  .rn-hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .rn-hero-text h1 {
    font-size: 32px;
  }
  .rn-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .rn-stat-item:nth-child(3) {
    border-right: none;
  }
  .rn-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rn-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rn-portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rn-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet Portrait & Large Mobiles (<= 768px) */
@media screen and (max-width: 768px) {
  .rn-header .rn-container {
    padding: 8px 16px;
  }
  .rn-brand {
    max-width: calc(100% - 48px);
    gap: 10px;
  }
  .rn-brand-text h1 {
    font-size: 15px;
    white-space: normal !important;
    line-height: 1.2;
    word-break: break-word;
  }
  .rn-brand-text p {
    font-size: 8.5px;
    white-space: normal !important;
    line-height: 1.2;
    letter-spacing: 0.2px;
    word-break: break-word;
  }
  .rn-topbar-left {
    display: none !important;
  }
  .rn-topbar .rn-container {
    justify-content: center;
    padding: 4px 10px;
  }
  .rn-topbar-right {
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    width: 100%;
  }
  .rn-container {
    padding: 0 16px;
  }
  .rn-hero {
    padding: 40px 0 50px 0;
  }
  .rn-hero-text h1 {
    font-size: 26px;
  }
  .rn-hero-tagline {
    font-size: 14px;
  }
  .rn-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rn-stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--rn-border);
  }
  .rn-cards-grid {
    grid-template-columns: 1fr;
  }
  .rn-portal-grid {
    grid-template-columns: 1fr;
  }
  .rn-form-grid {
    grid-template-columns: 1fr;
  }
  .rn-footer-grid {
    grid-template-columns: 1fr;
  }
  .rn-section-header h2 {
    font-size: 24px;
  }
}

/* Small Mobile Devices (<= 480px) */
@media screen and (max-width: 480px) {
  .rn-header .rn-container {
    padding: 6px 12px;
  }
  .rn-logo {
    width: 38px;
    height: 38px;
  }
  .rn-brand {
    max-width: calc(100% - 44px);
    gap: 8px;
  }
  .rn-brand-text h1 {
    font-size: 13px;
    white-space: normal !important;
    line-height: 1.15;
  }
  .rn-brand-text p {
    font-size: 7.5px;
    white-space: normal !important;
    line-height: 1.15;
    letter-spacing: 0;
  }
  .rn-container {
    padding: 0 12px;
  }
  .rn-topbar-right {
    font-size: 10px;
    gap: 6px;
  }
  .rn-topbar-right a {
    font-size: 10px;
  }
  .rn-badge-admissions {
    font-size: 9px;
    padding: 1px 6px;
  }
  .rn-stats-grid {
    grid-template-columns: 1fr;
  }
  .rn-gallery-grid {
    grid-template-columns: 1fr;
  }
  .rn-hero-text h1 {
    font-size: 22px;
  }
  .rn-hero-tagline {
    font-size: 13px;
  }
  .rn-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Super Small Mobile (<= 360px) */
@media screen and (max-width: 360px) {
  .rn-header .rn-container {
    padding: 4px 8px;
  }
  .rn-logo {
    width: 32px;
    height: 32px;
  }
  .rn-brand-text h1 {
    font-size: 11.5px;
  }
  .rn-brand-text p {
    display: none;
  }
  .rn-container {
    padding: 0 8px;
  }
}

/* --------------------------------------------------------------------------
   EVENT ANNOUNCEMENT POPUP MODAL (2-SECOND DISMISS)
   -------------------------------------------------------------------------- */
.rn-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;
}

.rn-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(--rn-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); }
}

.rn-popup-header {
  background: linear-gradient(135deg, var(--rn-primary), var(--rn-primary-light));
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rn-popup-header h3 {
  color: #ffffff;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rn-popup-close-btn {
  background: #991b1b;
  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;
}

.rn-popup-close-btn:hover:not(.disabled) {
  background: #dc2626;
  transform: scale(1.05);
}

.rn-popup-close-btn.disabled {
  background: #64748b;
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

.rn-popup-body {
  padding: 16px;
  text-align: center;
}

.rn-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;
}

.rn-popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--rn-gold), var(--rn-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;
}

.rn-popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.4);
}

/* --------------------------------------------------------------------------
   FORM VALIDATIONS, LOGIN ALERTS & TOOLTIPS
   -------------------------------------------------------------------------- */
.rn-alert-error {
  background: #fef2f2;
  color: #991b1b;
  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;
}

.rn-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;
}

.rn-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;
}

.rn-field-error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.rn-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.rn-footer {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
}


/* ==========================================================================
   DIRECTOR'S DESK / LEADERSHIP SECTION RESPONSIVE STYLES
   ========================================================================== */
.rn-director-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
    background: #ffffff;
    border-radius: var(--rn-radius-lg);
    padding: 40px;
    box-shadow: var(--rn-shadow-lg);
    border: 1px solid var(--rn-border);
}
@media screen and (max-width: 900px) {
    .rn-director-card {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 24px 20px !important;
        text-align: center;
    }
    .rn-director-card blockquote {
        text-align: left;
    }
}


/* ==========================================================================
   ENHANCED RESPONSIVE GRID & MOBILE COMPATIBILITY SYSTEM
   ========================================================================== */
.rn-welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.rn-feature-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

.rn-director-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border-radius: var(--rn-radius-lg);
  padding: 36px;
  box-shadow: var(--rn-shadow-lg);
  border: 1px solid var(--rn-border);
}

.rn-director-card img {
  width: 100%;
  max-width: 270px;
  height: auto;
  display: block;
  object-fit: cover;
}

.rn-director-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.rn-inquiry-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: flex-start;
}

.rn-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media screen and (max-width: 900px) {
  .rn-welcome-grid,
  .rn-director-card,
  .rn-inquiry-split,
  .rn-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;
  }

  .rn-director-card {
    padding: 24px 16px !important;
    text-align: center !important;
  }

  .rn-director-card img {
    max-width: 220px !important;
    margin: 0 auto !important;
  }

  .rn-director-highlights {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .rn-feature-bullets {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  .rn-hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .rn-hero-actions .rn-btn,
  .rn-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;
  }
  .rn-director-card {
    padding: 18px 12px !important;
  }
  .rn-director-card h2 {
    font-size: 22px !important;
  }
  .rn-director-card h3 {
    font-size: 19px !important;
  }
  .rn-table-wrapper,
  .rn-table-responsive {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }
}
