/* Indian Study Portal - Professional Educational Website Styles */
/* Designed for clarity, readability, and AdSense-friendly structure */

:root {
  --primary: #1a365d;
  --primary-dark: #0f2744;
  --accent: #ed8936;
  --accent-hover: #dd6b20;
  --success: #38a169;
  --text: #2d3748;
  --text-light: #4a5568;
  --bg: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --max-width: 1200px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.lead {
  font-size: 1.125rem;
  color: var(--text);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 0.9rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: #edf2f7;
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
  color: white;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

.btn-secondary {
  background: var(--primary);
  color: white;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  color: white;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

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

.card-body {
  padding: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #ebf8ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-link:hover {
  color: var(--accent-hover);
}

/* Article cards */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-meta {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-card h3 a {
  color: var(--primary-dark);
}

.article-card h3 a:hover {
  color: var(--accent);
}

.tag {
  display: inline-block;
  background: #edf2f7;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Content pages */
.page-header {
  background: var(--primary);
  color: white;
  padding: 2.5rem 0;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.content-area {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
  border: 1px solid var(--border);
}

.article-content h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  margin-top: 1.5rem;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-light);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: #fffaf0;
  color: var(--text);
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.article-content th {
  background: #edf2f7;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Sidebar layout */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 2rem;
}

.sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.sidebar-widget h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  margin-bottom: 0.6rem;
}

.sidebar-widget a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.sidebar-widget a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero {
    padding: 3rem 0;
  }
  .content-area {
    padding: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
}

/* AdSense placeholder (for structure) */
.ad-slot {
  background: #f0f4f8;
  border: 1px dashed #cbd5e0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 0.85rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* Author box */
.author-box {
  display: flex;
  gap: 1rem;
  background: #f7fafc;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-top: 2.5rem;
  border: 1px solid var(--border);
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
}

/* ========== WordPress Theme Additions (preserve original design) ========== */

.site-header .header-inner { position: relative; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
}
.logo:hover { color: var(--primary); }
.logo span { color: var(--accent); }

.custom-logo-link img { max-height: 48px; width: auto; }

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-navigation a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: #edf2f7;
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.site-content { padding: 2.5rem 0 3rem; }

.widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.widget-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.6rem; }
.widget a { color: var(--text-light); font-size: 0.95rem; }
.widget a:hover { color: var(--accent); }

.sidebar .widget { /* already covered */ }

.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #f7fafc;
  border-radius: var(--radius);
}
.comment-author { font-weight: 600; }
.comment-meta { font-size: 0.85rem; color: #718096; margin-bottom: 0.5rem; }

.pagination, .nav-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span, .nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.pagination .current, .nav-links .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field { flex: 1; }
.search-form .search-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.search-form .search-submit:hover { background: var(--primary-dark); }

.author-box {
  display: flex;
  gap: 1rem;
  background: #f7fafc;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-top: 2.5rem;
  border: 1px solid var(--border);
}
.author-avatar img { border-radius: 50%; width: 60px; height: 60px; }
.author-info h4 { margin-bottom: 0.25rem; }
.author-info p { margin: 0; font-size: 0.9rem; }

.social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  align-items: center;
}
.social-share .share-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-right: 0.5rem;
}
.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf2f7;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.social-share a:hover {
  background: var(--primary);
  color: white;
}

.breadcrumb {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: white; }
.breadcrumb .separator { margin: 0 0.4rem; opacity: 0.7; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

.alignwide { max-width: 1200px; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Layout variants from Customizer */
.sidebar-left .layout-with-sidebar { direction: rtl; }
.sidebar-left .layout-with-sidebar > * { direction: ltr; }
.no-sidebar .layout-with-sidebar { grid-template-columns: 1fr; }
.no-sidebar .sidebar { display: none; }

@media (max-width: 900px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    z-index: 999;
  }
  .main-navigation.toggled ul { display: flex; }
  .main-navigation a { width: 100%; padding: 0.75rem 1rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 3rem 0; }
  .content-area { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
}

/* =========================================================
   FIXED PRIMARY MENU + SUBMENU (Desktop + Mobile)
   ANKIT PILANIA Theme
   ========================================================= */

/* Desktop Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  position: relative;
}

.main-navigation > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation > ul > li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 0.55rem 0.95rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
  background: #edf2f7;
  color: var(--primary);
}

/* Desktop Dropdown (Submenu) */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 9999;
  list-style: none;
  margin: 0;
  flex-direction: column;
}

.main-navigation ul ul li {
  width: 100%;
  position: relative;
}

.main-navigation ul ul a {
  padding: 0.65rem 1.15rem;
  font-size: 0.9rem;
  border-radius: 0;
  color: var(--text);
  white-space: normal;
}

.main-navigation ul ul a:hover {
  background: #f7fafc;
  color: var(--accent);
}

/* Show submenu on hover (Desktop) */
.main-navigation li:hover > ul {
  display: block;
}

/* Nested submenu (3rd level) */
.main-navigation ul ul ul {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

/* Arrow indicator for parent items with children */
.main-navigation .menu-item-has-children > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
  margin-left: 3px;
}

.main-navigation ul ul .menu-item-has-children > a::after {
  content: " ›";
  float: right;
}

/* ========== MOBILE MENU ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  margin: 4.5px 0;
  transition: 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .main-navigation > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-navigation.toggled > ul {
    display: flex;
  }

  .main-navigation > ul > li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-navigation a {
    padding: 0.85rem 1.25rem;
    border-radius: 0;
    width: 100%;
  }

  /* Mobile Submenu */
  .main-navigation ul ul {
    position: static;
    display: none;
    width: 100%;
    min-width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #f8fafc;
    padding: 0;
  }

  .main-navigation ul ul a {
    padding-left: 2.2rem;
    font-size: 0.9rem;
    color: var(--text-light);
  }

  .main-navigation ul ul ul a {
    padding-left: 3.2rem;
  }

  /* Show submenu when parent has open class (controlled by JS) */
  .main-navigation li.open > ul {
    display: block;
  }

  /* Mobile arrow */
  .main-navigation .menu-item-has-children > a::after {
    float: right;
    content: "+";
    font-size: 1.1em;
    font-weight: 600;
  }

  .main-navigation li.open > a::after {
    content: "−";
  }
}

/* Ensure header doesn't clip dropdowns */
.site-header {
  overflow: visible;
}
.header-inner {
  position: relative;
  overflow: visible;
}

/* ============================================================
   FINAL MOBILE + DESKTOP MENU FIX (High Priority)
   Overrides all previous conflicting rules
   ============================================================ */

.site-header {
  overflow: visible !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  position: relative;
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Desktop */
@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }

  .main-navigation > ul,
  .main-navigation ul.menu,
  #primary-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    max-height: none;
    overflow: visible;
  }

  .main-navigation li {
    position: relative;
  }

  .main-navigation a {
    display: block;
    padding: 0.55rem 0.95rem;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
  }

  .main-navigation a:hover,
  .main-navigation .current-menu-item > a,
  .main-navigation .current-menu-ancestor > a {
    background: #edf2f7;
    color: #1a365d;
  }

  /* Dropdown */
  .main-navigation ul ul {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    padding: 0.4rem 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
  }

  .main-navigation li:hover > ul {
    display: block !important;
  }

  .main-navigation ul ul a {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    white-space: normal;
    border-radius: 0;
  }

  .main-navigation ul ul a:hover {
    background: #f7fafc;
    color: #ed8936;
  }

  .main-navigation .menu-item-has-children > a::after {
    content: " ▾";
    font-size: 0.65em;
    opacity: 0.65;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1002;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1a365d;
    margin: 4px 0;
    transition: 0.3s ease;
    border-radius: 2px;
  }

  /* Hide menu by default on mobile */
  .main-navigation > ul,
  .main-navigation ul.menu,
  #primary-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    margin: 0;
    list-style: none;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-top: 1px solid #e2e8f0;
    z-index: 1001;
    max-height: 85vh;
    overflow-y: auto;
  }

  /* Show when toggled */
  .main-navigation.toggled > ul,
  .main-navigation.toggled ul.menu,
  .main-navigation.toggled #primary-menu {
    display: flex !important;
  }

  .main-navigation li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
  }

  .main-navigation a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    color: #2d3748;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0;
    text-decoration: none;
  }

  .main-navigation a:hover,
  .main-navigation .current-menu-item > a {
    background: #f8fafc;
    color: #1a365d;
  }

  /* Mobile Submenus - hidden by default */
  .main-navigation ul ul {
    display: none !important;
    position: static !important;
    width: 100%;
    min-width: 100%;
    background: #f8fafc;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }

  /* Show submenu when parent has .open */
  .main-navigation li.open > ul {
    display: block !important;
  }

  .main-navigation ul ul a {
    padding: 12px 20px 12px 36px;
    font-size: 0.92rem;
    color: #4a5568;
  }

  .main-navigation ul ul ul a {
    padding-left: 52px;
  }

  /* Accordion indicators */
  .main-navigation .menu-item-has-children > a {
    position: relative;
    padding-right: 48px;
  }

  .main-navigation .menu-item-has-children > a::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a365d;
  }

  .main-navigation li.open > a::after {
    content: "−";
  }
}

/* ========== Footer – Final Clean Styles ========== */
.site-footer {
  background: #0f2744 !important;
  color: rgba(255,255,255,0.8) !important;
  padding: 3rem 0 1.5rem !important;
  margin-top: 3rem !important;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

.footer-brand h3 {
  color: #ffffff !important;
  margin-bottom: 0.75rem !important;
  font-size: 1.25rem !important;
}

.footer-brand p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.footer-links h4,
.footer-widget .widget-title {
  color: #ffffff !important;
  font-size: 1rem !important;
  margin-bottom: 1rem !important;
  font-weight: 600 !important;
}

.footer-links ul,
.footer-widget ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-links li,
.footer-widget li {
  margin-bottom: 0.5rem !important;
}

.footer-links a,
.footer-widget a,
.site-footer a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.footer-links a:hover,
.footer-widget a:hover,
.site-footer a:hover {
  color: #ed8936 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  padding-top: 1.5rem !important;
  text-align: center !important;
  font-size: 0.875rem !important;
  color: rgba(255,255,255,0.55) !important;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

/* Footer widget areas – 4 column layout */
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1fr 1fr !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

.footer-brand-widgets {
  margin-top: 1rem;
}

.footer-brand-widgets .widget-title {
  color: #ffffff !important;
  font-size: 0.95rem !important;
  margin-bottom: 0.5rem !important;
}

.footer-brand-widgets a {
  color: rgba(255,255,255,0.7) !important;
}

.footer-brand-widgets a:hover {
  color: #ed8936 !important;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Footer separator lines (optional – enabled via Customizer) */
.site-footer.has-separators .footer-links li,
.site-footer.has-separators .footer-widget li {
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  padding-bottom: 0.4rem !important;
  margin-bottom: 0.4rem !important;
}

.site-footer:not(.has-separators) .footer-links li,
.site-footer:not(.has-separators) .footer-widget li {
  border-bottom: none !important;
}

/* ========== Homepage Hub Cards ========== */
.hubs-section {
  background: #f7fafc;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.hub-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hub-card:hover {
  border-color: #ed8936;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  color: inherit;
}

.hub-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.hub-card h3 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a365d;
  margin: 0 0 0.6rem 0;
}

.hub-card p {
  font-size: 0.92rem;
  color: #4a5568;
  line-height: 1.55;
  margin: 0 0 1rem 0;
}

.hub-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ed8936;
}

.hub-card:hover .hub-link {
  color: #c05621;
}

.cta-section .section-title {
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}
