:root {
  --primary: #0077b9;
  --primary-dark: #005f94;
  --accent: #eaf6fc;
  --text: #1b1b1b;
  --muted: #666;
  --white: #ffffff;
  --border: #e6e6e6;
  --shadow: 0 10px 30px rgba(0, 119, 185, 0.12);
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom, #f8fcff 0%, #ffffff 40%);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   NAVBAR
========================== */
.navbar {
  width: 100%;
  padding: 22px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 90px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}

.logo:hover .logo-image {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: #333;
  transition: 0.25s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-button {
  padding: 12px 22px;
  background: var(--primary);
  color: white !important;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.nav-button:hover {
  background: var(--primary-dark);
}

/* =========================
   MOBILE MENU
========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: 0.25s ease;
}

.hamburger:hover {
  background: rgba(0,119,185,0.08);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
  transition: 0.3s ease;
  margin: 0 auto;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.active {
  max-height: 500px;
}

.mobile-menu a {
  padding: 20px 7%;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 500;
  transition: 0.2s ease;
}

.mobile-menu a:hover {
  background: rgba(0,119,185,0.05);
  color: var(--primary);
}

.mobile-menu .mobile-apply {
  background: var(--primary);
  color: white;
  margin: 18px 7%;
  border-radius: 14px;
  text-align: center;
}

/* =========================
   HERO (BASE)
========================== */
.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 7%;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,119,185,0.12) 0%, rgba(0,119,185,0) 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1050px;
}

.hero-subtitle {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -3px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 60px;
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 16px 34px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: 0.25s ease;
  box-shadow: var(--shadow);
}

.hero-cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =========================================
   HERO CTA BUTTON
   ========================================= */
.hero-cta-wrapper {
  margin-top: 2rem;
  margin-bottom: 3.5rem; /* Creates perfect spacing between the button and the grid */
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #111827; 
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.875rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.hero-cta-button:hover {
  background-color: #374151;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.15);
}

.hero-cta-button:hover svg {
  transform: translateX(4px);
}

/* =========================
   HOME: CTA GRID
========================== */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}

.cta-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  padding: 42px 28px;
  transition: 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,119,185,0.05), rgba(0,119,185,0));
  opacity: 0;
  transition: 0.3s ease;
}

.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(0,119,185,0.15);
}

.cta-card:hover::before {
  opacity: 1;
}

.cta-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-description {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.cta-link span {
  transition: 0.25s ease;
}

.cta-card:hover .cta-link span {
  transform: translateX(5px);
}

/* =========================
   ABOUT PAGE
========================== */
.about-section {
  width: min(1200px, 92%);
  margin: 0 auto 120px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.reverse-grid {
  direction: rtl;
}

.reverse-grid > * {
  direction: ltr;
}

.about-content h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 26px;
}

.about-content p {
  color: #333;
  line-height: 2;
  margin-bottom: 22px;
  font-size: 1.06rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0,119,185,0.08);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 420px;
  box-shadow: var(--shadow);
}

.about-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.03);
}

.image-placeholder {
  min-height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,119,185,0.08), rgba(0,119,185,0.02));
  border: 2px dashed rgba(0,119,185,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.placeholder-content {
  text-align: center;
  color: var(--primary);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.placeholder-content span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* =========================
   ACADEMICS PAGE (GRID LAYOUT)
========================== */
.academics-section {
  width: min(1050px, 92%);
  margin: 40px auto 100px;
}

.academics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.academic-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.academic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.featured-card {
  grid-column: span 2;
  border-top: 4px solid var(--primary);
  background: linear-gradient(to bottom right, #ffffff, #f8fcff);
}

.academic-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.academic-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 119, 185, 0.08);
  color: var(--primary);
  border-radius: 12px;
  padding: 8px;
}

.academic-icon svg {
  width: 100%;
  height: 100%;
}

.academic-header h2 {
  font-size: 1.6rem;
  color: #111827;
  font-weight: 700;
  margin: 0;
}

.featured-card .academic-header h2 {
  font-size: 2rem;
}

.academic-body p {
  color: #4b5563;
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.academic-body p:last-child {
  margin-bottom: 0;
}

/* Mobile Responsiveness for Academics Grid */
@media (max-width: 768px) {
  .academics-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .featured-card {
    grid-column: span 1;
  }
  
  .academic-card {
    padding: 30px 24px;
  }

  .featured-card .academic-header h2,
  .academic-header h2 {
    font-size: 1.45rem;
  }
}

/* =========================
   ADMISSIONS & CONTACT FORMS
========================== */
.admissions-form-section,
.contact-section {
  width: min(1150px, 92%);
  margin: 40px auto 120px;
}

.contact-section {
  width: min(1000px, 92%);
}

.form-container,
.contact-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-card {
  padding: 50px;
}

.admissions-form {
  padding: 50px;
}

.contact-intro {
  margin-bottom: 40px;
}

.contact-intro h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-intro p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.05rem;
  max-width: 720px;
}

.form-section {
  margin-bottom: 60px;
}

.form-section h2 {
  font-size: 2rem;
  margin-bottom: 28px;
  color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid #d9d9d9;
  font-size: 1rem;
  font-family: inherit;
  transition: 0.25s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,119,185,0.08);
}

.form-group textarea {
  resize: vertical;
}

.submit-wrapper {
  text-align: center;
}

.submit-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 18px 42px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: var(--shadow);
}

.submit-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =========================
   NONDISCRIMINATION POLICY
========================== */
.nondiscrimination-policy {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  text-align: center;
  /* This prevents the sticky header from covering the text when users jump to this section */
  scroll-margin-top: 120px; 
}

.nondiscrimination-policy p {
  font-size: 0.8rem; /* Keeps it legally present but visually minimized */
  color: #6b7280; /* Muted gray so it doesn't distract from the Submit button */
  line-height: 1.6;
}

/* =========================
   TECHNOLOGY PAGE BASE
========================== */
.tech-section {
  width: min(1000px, 92%);
  margin: 40px auto 120px;
}

.tech-card {
  background: white;
  border-radius: var(--radius);
  padding: 50px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,119,185,0.04), rgba(0,119,185,0));
  pointer-events: none;
}

.tech-card p {
  font-size: 1.08rem;
  line-height: 2;
  color: #333;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}

/* =========================
   TECH PAGE SPECIFIC FEATURES
========================== */
.tech-hero {
  background: linear-gradient(rgba(0, 50, 80, 0.75), rgba(0, 30, 50, 0.85)), url('../images/technologylaptop.jpeg') center/cover no-repeat;
  min-height: 60vh;
}

/* =========================
   HOME PAGE SPECIFIC FEATURES
========================== */
.home-hero {
  background: linear-gradient(rgba(0, 50, 80, 0.75), rgba(0, 30, 50, 0.85)), url('../images/landing.png') center/cover no-repeat;
}

.home-hero::before {
  display: none;
}

.home-hero h1,
.home-hero p {
  color: var(--white);
}

.home-hero .hero-subtitle {
  color: #8ed1f5;
}

.tech-hero::before {
  display: none;
}

.tech-hero h1,
.tech-hero p {
  color: var(--white);
}

.tech-hero .hero-subtitle {
  color: #8ed1f5;
}

/* =========================
   ACADEMICS PAGE SPECIFIC FEATURES
========================== */
.academics-hero {
  background: linear-gradient(rgba(0, 50, 80, 0.75), rgba(0, 30, 50, 0.85)), url('../images/academics.png') center/cover no-repeat;
}

.academics-hero::before {
  display: none;
}

.academics-hero h1,
.academics-hero p {
  color: var(--white);
}

.academics-hero .hero-subtitle {
  color: #8ed1f5;
}

/* =========================
   ADMISSIONS PAGE SPECIFIC FEATURES
========================== */
.admissions-hero {
  background: linear-gradient(rgba(0, 50, 80, 0.75), rgba(0, 30, 50, 0.85)), url('../images/admissions.png') center/cover no-repeat;
}

.admissions-hero::before {
  display: none;
}

.admissions-hero h1,
.admissions-hero p {
  color: var(--white);
}

.admissions-hero .hero-subtitle {
  color: #8ed1f5;
}

/* Stats Counters */
.stats-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: min(1000px, 92%);
  margin: -60px auto 60px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.stat-box {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Highlight Banner Card */
.highlight-banner {
  width: min(1000px, 92%);
  margin: 0 auto 80px;
}

.highlight-card {
  display: flex;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.highlight-image {
  width: 45%;
  background: url('../images/technologylaptop.jpeg') center/cover no-repeat;
  min-height: 100%;
}

.highlight-text {
  width: 55%;
  padding: 50px;
  display: flex;
  align-items: center;
}

.highlight-text h2 {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

.slide-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SECURITY PAGE SPECIFIC FEATURES
========================== */
.security-hero {
  /* Uses the exact dark blue overlay colors, but solid without the image */
  background: linear-gradient(rgba(0, 50, 80, 1), rgba(0, 30, 50, 1));
  min-height: 60vh;
}

.security-hero::before {
  display: none;
}

.security-hero h1,
.security-hero p {
  color: var(--white);
}

.security-hero .hero-subtitle {
  color: #8ed1f5;
}

/* =========================
   MOBILE RESPONSIVENESS
========================== */
@media (max-width: 950px) {
  .admissions-grid { grid-template-columns: 1fr; }
  .admissions-card { padding: 30px 24px; }
  .admissions-card h2 { font-size: 1.7rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar { position: relative; }
  
  .hero { padding-top: 40px; }
  .hero h1 { line-height: 1.05; font-size: 3.4rem; }
  .hero p { font-size: 1rem; }
  
  .cta-grid { grid-template-columns: 1fr; }
  .cta-title { font-size: 2rem; }
  
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .reverse-grid { direction: ltr; }
  .about-content h2, .contact-intro h2 { font-size: 2.2rem; }
  .about-image-wrapper, .about-image { min-height: 280px; }
  .image-placeholder { min-height: 280px; }
  
  .accordion-header { padding: 24px; font-size: 1.2rem; }
  .accordion-inner { padding: 0 24px 28px; }
  
  .admissions-form, .contact-card { padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .form-section h2 { font-size: 1.5rem; }
  
  .tech-card { padding: 32px 26px; }
  .tech-card p { font-size: 1rem; line-height: 1.9; }
  
  .highlight-card { flex-direction: column; }
  .highlight-image { width: 100%; min-height: 300px; }
  .highlight-text { width: 100%; padding: 35px 26px; }
  .highlight-text h2 { font-size: 1.35rem; }
  .logo-image {  height: 90px; }
}

@media (max-width: 768px) {
  .stats-section {
    flex-direction: column;
    gap: 40px;
    margin: -30px auto 50px;
    padding: 40px 20px;
  }
}

/* =========================================
   UNIVERSAL FOOTER
   ========================================= */
.site-footer {
  background-color: #f3f4f6; /* Soft gray to anchor the bottom of the page */
  border-top: 1px solid var(--border);
  padding: 60px 7% 20px;
  margin-top: 60px;
  color: #4b5563;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 15px;
  /* Adds a subtle grayscale to the logo in the footer so it's not overpowering */
  filter: grayscale(100%) opacity(0.8); 
  transition: filter 0.3s ease;
}

.footer-logo:hover {
  filter: grayscale(0%) opacity(1);
}

.site-footer h4 {
  color: #111827;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.site-footer p {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-logo {
    margin: 0 auto 15px;
  }
}

/* =========================================
   MOBILE MENU PHONE LINK
   ========================================= */
.mobile-menu .mobile-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4b5563;
  font-weight: 600;
  border-bottom: none;
  padding-top: 5px;
  padding-bottom: 25px;
  background: transparent !important;
}

.mobile-menu .mobile-phone-link svg {
  color: #0077b9; /* Uses your primary brand blue for the icon */
}