/* assets/css/styles.css */
:root {
  --primary: #6B0F0F;
  --secondary: #2E8B57;
  --secondary-a: #2e8b56a1;
  --accent: #C8A165;
  --text-dark: #333333;
  --bg-light: #F7F7F7;
  --white: #FFFFFF;
  --border: #E5E5E5;
  --shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
  --shadow-hover: 0 20px 25px -12px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.bg-light {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: #8b1a1a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-secondary-b {
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--white);
  margin: 1em 0em;
}

.btn-secondary-b:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--secondary);
}

.btn-light:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.btn-link:hover {
  color: var(--primary);
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 90px;
  width: auto;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--primary);
}

.btn-donate-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
}
.btn-donate-nav:hover {
  background: #8b1a1a;
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: 0.3s;
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  padding: 8rem 0;
  text-align: center;
  color: var(--white);
}
.hero-content h1 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  background: var(--secondary-a);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Split Layout */
.split-layout {
  display: flex;
  gap: 4rem;
  align-items: center;
}
.split-layout.reverse {
  flex-direction: row-reverse;
}
.split-text, .split-image {
  flex: 1;
}
.split-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.split-image img:hover {
  transform: scale(1.02);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}
.stat-label {
  font-weight: 500;
}

/* Focus List, Values, etc */
.focus-list, .approach-list, .objectives-list, .impact-list {
  list-style: none;
}
.focus-list li, .approach-list li, .objectives-list li, .impact-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}
.focus-list li::before, .approach-list li::before, .objectives-list li::before, .impact-list li::before {
  content: "✓";
  color: var(--secondary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Program Cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.program-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.program-card h3 {
  padding: 1rem 1rem 0;
  font-size: 1.3rem;
}
.program-card p {
  padding: 0 1rem;
  color: #555;
}
.program-card .btn-link {
  display: inline-block;
  margin: 1rem;
}

/* CTA Banner */
.cta-banner {
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}
.cta-content p {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2rem;
  align-items: center;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.partner-card img {
  width: 100px;
  height: auto;
  filter: grayscale(30%);
  transition: filter 0.3s;
  margin-bottom: 1rem;
}
.partner-card:hover img {
  filter: grayscale(0%);
}
.partner-card:hover {
  transform: translateY(-5px);
}
.partner-name {
  color: var(--text-dark);
  font-weight: 200;
  font-size: .9em;
  text-align: center;

}


/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}
.contact-info h1 {
  margin-bottom: 1.5rem;
}
.contact-details p {
  margin-bottom: 1rem;
}
.contact-details a {
  color: var(--secondary);
  text-decoration: none;
}
.contact-image img {
  width: 100%;
  border-radius: 12px;
}
.contact-form-section {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 4rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input, .contact-form textarea {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}
.contact-form button {
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: left 0.3s;
    padding: 2rem;
  }
  .main-nav.active {
    left: 0;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .split-layout, .split-layout.reverse {
    flex-direction: column;
    gap: 2rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section {
    padding: 2rem 0;
  }
}

/* VMV Grid */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.vmv-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.value-card {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* HES Page specific */
.mission-card, .goal-card, .activity-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.upcoming-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.upcoming-item {
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 40px;
  box-shadow: var(--shadow);
  font-weight: 500;
}
.donate-page .donate-banner {
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  text-align: center;
  color: var(--white);
}

.donate-banner-content{
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.donate-banner-content h1 {
  font-size: 2.5rem;
}
.donate-info {
  padding: 4rem 0;
  text-align: center;
}
.donate-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.donation-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.option {
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 500;
}

/* Resources Page Styles */

.filter-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: .8rem;
}

.filter-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Table Layout */
.resources-table-wrapper {
    overflow-x: auto;
    margin: .8rem 0;
}

.resources-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.resources-table th,
.resources-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.resources-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.resource-item:hover {
    background: var(--bg-light);
}

.resource-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.resource-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.resource-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-download,
.btn-preview {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-download {
    background: var(--secondary);
    color: var(--white);
}

.btn-download:hover {
    background: #236b45;
    transform: translateY(-1px);
}

.btn-preview {
    background: var(--accent);
    color: var(--white);
}

.btn-preview:hover {
    background: #b68b3f;
}

/* Mobile Cards (hidden on desktop) */
.resources-cards {
    display: none;
    gap: 1.5rem;
    flex-direction: column;
}

.resource-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1rem;
    transition: transform 0.2s;
}

.resource-card:hover {
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .resources-table-wrapper {
        display: none;
    }
    .resources-cards {
        display: flex;
    }
    .filter-tabs {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

.resources-table td{
  font-size: .8em;
}

/* Contact Page Enhancements */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin: 2rem 0;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-details p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-details a {
    color: var(--secondary);
    text-decoration: none;
}
.contact-details a:hover {
    color: var(--primary);
}

/* Map container – responsive */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .map-container {
        padding-bottom: 56.25%; /* maintain aspect ratio */
    }
}

/* Existing contact form styling stays as is */
.contact-form-section {
    max-width: 600px;
    margin: 2rem auto 4rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
}
.contact-form button {
    align-self: flex-start;
}

/* Enhanced Footer */
.site-footer {
    background: #1e1e1e;
    color: #ccc;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-site-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--accent);
    margin-top: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-col address {
    font-style: normal;
    margin-bottom: 1rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #ccc;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-motto h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.footer-motto p {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0rem; 
    margin-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-weight: 200;
}

.design-credit {
    color: #888;
    /* font-size: 0.8rem;  */
}

.design-credit a{
color: #bbb;
text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.social-links a {
    display: inline-block;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--accent);
}

/* Resources Preview */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.resource-preview-card:hover {
    transform: translateY(-4px);
}

.resource-preview-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.resource-preview-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.resource-preview-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}
.resource-preview-info .btn-link {
    font-size: 0.85rem;
}

/* Partners Preview */
.partners-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.partner-preview-card {
    display: block;
    text-align: center;
    transition: transform 0.2s;
}
.partner-preview-card:hover {
    transform: scale(1.05);
}
.partner-preview-card img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.2s;
}
.partner-preview-card:hover img {
    filter: grayscale(0%);
}

/* Contact Preview */
.contact-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.contact-preview-info address {
    margin: 1rem 0;
    font-style: normal;
    line-height: 1.6;
}
.contact-preview-info p {
    margin-bottom: 0.5rem;
}
.contact-preview-info a {
    color: var(--white);
    text-decoration: none;
}
.contact-preview-info a:hover {
    color: var(--accent);
}

.contact-preview-info p a {
    color: var(--primary);
    text-decoration: none;
}

.contact-preview-map iframe {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Text center helper */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .partners-grid-preview {
        gap: 1rem;
    }
    .resources-grid {
        gap: 1rem;
    }
}

/* Active navigation link */
.main-nav a.active {
    color: var(--secondary);
    font-weight: 600;
    position: relative;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    /* background-color: var(--primary);  */
    border-radius: 2px;
}

/* For the donate button, active style should not override the button appearance */
 .btn-donate-nav.active {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(107, 15, 15, 0.3); 
}

/* Dropdown Menu Styles */
.main-nav li {
    position: relative;
}

.has-submenu > a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.has-submenu > a i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

/* Desktop submenu - vertical column using flex */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    padding: 0.75rem 0;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.02);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 100;
    list-style: none;
    /* Force vertical stacking */
    display: flex;
    flex-direction: column;
}

/* Show submenu on hover (desktop) */
.main-nav li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu items - vertical stacking (already handled by flex column) */
.submenu li {
    width: 100%;
    /* margin-bottom: .1em;  */
    margin-top: -1em;
}

.submenu li a {
    display: block;
    padding: 0.1rem 1.2rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    /* border-bottom: solid 1px #1e1e1e;  */
}

.submenu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* Arrow rotation on hover */
.main-nav li:hover > a i {
    transform: rotate(180deg);
}

/* Active parent link underline adjustment */
.has-submenu > a.active::after {
    bottom: -3px;
}

/* ===== Mobile Dropdown ===== */
@media (max-width: 768px) {
    .has-submenu {
        position: static;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: #f8f8f8;
        padding: 0;
        margin-top: 0.5rem;
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        width: 100%;
        /* Maintain column direction on mobile */
        display: flex;
        flex-direction: column;
    }
    
    .has-submenu.active .submenu {
        visibility: visible;
        max-height: 300px; /* adjust based on content */
    }
    
    .submenu li a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        white-space: normal;
    }
    
    .submenu li a:hover {
        padding-left: 1.2rem;
    }
    
    /* Rotate chevron when open */
    .has-submenu.active > a i {
        transform: rotate(180deg);
    }
}

/* Gallery Page */
.gallery-page {
    padding: 2rem 0;
}
.page-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.gallery-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #666;
}
.gallery-project {
    margin-bottom: 3rem;
}
.gallery-project h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s;
}
.gallery-grid a:hover {
    transform: scale(1.02);
}
.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.gallery-grid img:hover {
    box-shadow: var(--shadow-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .gallery-grid img {
        height: 140px;
    }
} 

/* Program Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.highlight-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}
.highlight-card:hover {
    transform: translateY(-4px);
}
.highlight-card i {
    font-size: 2rem;
    color: var(--secondary);
}
.highlight-card p {
    margin: 0;
    font-weight: 500;
}

/* Program Body */
.program-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
} 

/* Video Resources Section */
.video-resources {
    background: var(--bg-light);
}
.video-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #555;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.video-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.video-card:hover {
    transform: translateY(-6px);
}
.video-thumbnail {
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.play-overlay i {
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.video-card:hover .play-overlay {
    background: rgba(0,0,0,0.2);
}
.video-card:hover .play-overlay i {
    transform: scale(1.1);
}
.video-title {
    margin-top: 0.75rem;
    font-size: 1rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.close-modal {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}
.close-modal:hover {
    color: var(--accent);
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .play-overlay i {
        font-size: 2.5rem;
    }
}