/*
Theme Name:   amanainstitute Child
Template:     twentytwentyfive
Version:      1.0
*/

:root {
  --background: #ffffff;
  --foreground: #333333;
  --card: #f9f9f9;
  --card-foreground: #333333;
  --primary: #6b5b99;
  --primary-foreground: #ffffff;
  --secondary: #d4af37;
  --secondary-foreground: #333333;
  --muted: #f5f5f5;
  --muted-foreground: #6b5b99;
  --accent: #d4af37;
  --accent-foreground: #333333;
  --border: #e0e0e0;
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  position: relative;
}

.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  z-index: -1;
  width: 400px;
  height: 400px;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 60px;
  height: 60px;
  filter: contrast(1.25);
}

.institute-title {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Keep header in one row on desktop and push nav to the right */
@media (min-width: 900px) {
  .header-content { flex-wrap: nowrap; }
  .site-nav { margin-left: auto; } /* pushes nav to the right */
}

/* === Top-level nav (layout + colors, site-wide) === */
.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .site-nav .nav-list { gap: 1rem; }        /* a bit tighter on desktop */
  .institute-title { max-width: 40vw; }     /* prevents title from forcing a wrap */
}

.site-nav .nav-list > li > a {
  color: var(--primary-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color .25s ease;
}
.site-nav .nav-list > li > a:hover {
  color: var(--accent);
}

/* === Unified Dropdown Menu Styling (site-wide) === */

/* Ensure submenu positions relative to its parent li */
.site-nav .nav-item.has-submenu { position: relative; }

/* Submenu container */
.site-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border-top: 3px solid var(--accent); /* gold accent line */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

/* Show submenu on hover/focus */
.site-nav .nav-item.has-submenu:hover > .submenu,
.site-nav .nav-item.has-submenu:focus-within > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown links (purple by default) */
.site-nav .submenu li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--primary); /* purple default */
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  text-align: left;
  transition: color 0.25s ease, background 0.25s ease;
}

/* Hover/focus: subtle gold wash + gold text (no white text) */
.site-nav .submenu li a:hover,
.site-nav .submenu li a:focus {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #8b7bb8 100%);
  color: var(--primary-foreground);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Content Sections */
.content-section {
  padding: 3rem 0;
}

.content-section:nth-child(even) {
  background-color: var(--muted);
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.application-form {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--background);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.submit-button {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-button:hover { background-color: #5a4a89; }

.info-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}

.info-card h3 { color: var(--primary); margin-bottom: 1rem; }

.info-card ul { list-style: none; padding-left: 0; }

.info-card li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.info-card li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 { margin-bottom: 1rem; color: var(--accent); }

.footer-section p, .footer-section a {
  color: var(--primary-foreground);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-section a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  opacity: 0.8;
}

/*
Theme Name:   amanainstitute Child
Template:     twentytwentyfive
Version:      1.0
*/

:root {
  --background: #ffffff;
  --foreground: #333333;
  --card: #f9f9f9;
  --card-foreground: #333333;
  --primary: #6b5b99;
  --primary-foreground: #ffffff;
  --secondary: #d4af37;
  --secondary-foreground: #333333;
  --muted: #f5f5f5;
  --muted-foreground: #6b5b99;
  --accent: #d4af37;
  --accent-foreground: #333333;
  --border: #e0e0e0;
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  position: relative;
}

.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  z-index: -1;
  width: 400px;
  height: 400px;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 60px;
  height: 60px;
  filter: contrast(1.25);
}

.institute-title {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Keep header in one row on desktop and push nav to the right */
@media (min-width: 900px) {
  .header-content { flex-wrap: nowrap; }
  .site-nav { margin-left: auto; } /* pushes nav to the right */
}

/* === Top-level nav (layout + colors, site-wide) === */
.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .site-nav .nav-list { gap: 1rem; }        /* a bit tighter on desktop */
  .institute-title { max-width: 40vw; }     /* prevents title from forcing a wrap */
}

.site-nav .nav-list > li > a {
  color: var(--primary-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color .25s ease;
}
.site-nav .nav-list > li > a:hover {
  color: var(--accent);
}

/* === Unified Dropdown Menu Styling (site-wide) === */

/* Ensure submenu positions relative to its parent li */
.site-nav .nav-item.has-submenu { position: relative; }

/* Submenu container */
.site-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border-top: 3px solid var(--accent); /* gold accent line */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

/* Show submenu on hover/focus */
.site-nav .nav-item.has-submenu:hover > .submenu,
.site-nav .nav-item.has-submenu:focus-within > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown links (purple by default) */
.site-nav .submenu li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--primary); /* purple default */
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  text-align: left;
  transition: color 0.25s ease, background 0.25s ease;
}

/* Hover/focus: subtle gold wash + gold text (no white text) */
.site-nav .submenu li a:hover,
.site-nav .submenu li a:focus {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #8b7bb8 100%);
  color: var(--primary-foreground);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Content Sections */
.content-section {
  padding: 3rem 0;
}

.content-section:nth-child(even) {
  background-color: var(--muted);
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.application-form {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--background);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.submit-button {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-button:hover { background-color: #5a4a89; }

.info-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}

.info-card h3 { color: var(--primary); margin-bottom: 1rem; }

.info-card ul { list-style: none; padding-left: 0; }

.info-card li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.info-card li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 { margin-bottom: 1rem; color: var(--accent); }

.footer-section p, .footer-section a {
  color: var(--primary-foreground);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-section a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  opacity: 0.8;
}

  /* Center + keep brand larger like Apply/Youth */
  .logo-section { justify-content: center; }
  .logo { width: 60px; height: 60px; }
  .institute-title { font-size: 1.5rem; margin: 0 auto; line-height: 1.2; }

  /* Page header text scale */
  .page-header h1 { font-size: 2rem; }
  .page-header p { font-size: 1rem; }

  /* Navigation rows match Apply/Youth */
  .site-nav > .nav-list { justify-content: center; gap: 1rem 1rem; }

  /* Form responsiveness */
  .form-row { grid-template-columns: 1fr; }

/* Responsive */
@media (max-width: 768px) {
  .header-content { flex-direction: column; text-align: center; }

  /* keep the top bar centered on mobile */
  .logo-section { justify-content: center; }
  .institute-title { font-size: 1.2rem; line-height: 1.2; margin: 0 auto; }

  /* mobile nav: same row spacing and link padding as Youth/Apply */
  .site-nav > .nav-list { justify-content: center; row-gap: .8rem; }
  .site-nav .nav-list > li > a { padding: .5rem .25rem; }
}

/* Optional tiny-phones tweak (keep consistent) */
/* If you really want this block, keep 1.2rem so it matches everywhere. */
/*
@media (max-width: 400px) {
  .institute-title { font-size: 1.2rem; }
}
*/

/* Desktop spacing */
@media (min-width: 900px) {
  .site-nav .nav-list {
    gap: 1.25rem; /* matches Apply/Youth */
    /* flex-wrap: nowrap;  <- uncomment if you want a single row only */
  }
}

/* Site-wide overflow fixes */
html, body, .wp-site-blocks { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; display: block; }
.swiper, .swiper-slide { width: 100%; max-width: 100%; }
.swiper-wrapper { max-width: 100%; }
figure, .figure { max-width: 100%; overflow: hidden; }

/* === CANONICAL HEADER FROM YOUTH — paste at end of style.css === */

/* Logo + Title */
.logo { width: 60px; height: 60px; filter: none; } /* Youth has no contrast filter */
.institute-title { font-size: 1.5rem; font-weight: 700; white-space: nowrap; }

/* Layout behavior */
.header-content { gap: 1rem; }
@media (min-width: 900px) {
  .header-content { flex-wrap: nowrap; }
  .site-nav { margin-left: auto; }
  .institute-title { max-width: 40vw; }
}

/* Top-level nav spacing (match Youth) */
.site-nav .nav-list {
  display: flex; align-items: center; list-style: none;
  margin: 0; padding: 0; flex-wrap: wrap; gap: 1.25rem;
}
@media (min-width: 900px) {
  .site-nav .nav-list { gap: 1.25rem; }
}

/* Active + hover states (match Youth) */
.site-nav .nav-list a.active,
.site-nav .nav-list a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom: none;
}
.site-nav .nav-list > li > a:hover:not(.active):not([aria-current="page"]) {
  color: #cbb7e8; /* lavender hover for non-active */
}

/* Dropdowns (same visuals as Youth; safe to re-assert) */
.site-nav .nav-item.has-submenu { position: relative; }
.site-nav .submenu {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  margin: 0; padding: 0.5rem 0; list-style: none;
  background: #fff; border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border-top: 3px solid var(--accent);
  opacity: 0; transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 1000;
}
.site-nav .nav-item.has-submenu:hover > .submenu,
.site-nav .nav-item.has-submenu:focus-within > .submenu {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.site-nav .submenu li a {
  display: block; padding: 0.6rem 1rem; text-decoration: none; white-space: nowrap; text-align: left;
  color: var(--primary); font-weight: 500; font-size: 0.95rem;
  transition: color .25s ease, background .25s ease;
}
.site-nav .submenu li a:hover,
.site-nav .submenu li a:focus {
  background: rgba(212,175,55,.1); color: var(--accent);
}

/* Mobile centering parity */
@media (max-width: 768px) {
  .header-content { flex-direction: column; text-align: center; }
  .logo-section { justify-content: center; }
  .institute-title { font-size: 1.2rem; margin: 0 auto; }
  .site-nav > .nav-list { justify-content: center; row-gap: .8rem; }
}
