/* Catppuccin Mocha Theme - Full Site Stylesheet */

/* 1. DEFINE CATPPUCCIN MOCHA COLOR PALETTE */
:root {
  --ctp-rosewater: #f5e0dc;
  --ctp-flamingo: #f2cdcd;
  --ctp-pink: #f5c2e7;
  --ctp-mauve: #cba6f7;
  --ctp-red: #f38ba8;
  --ctp-maroon: #eba0ac;
  --ctp-peach: #fab387;
  --ctp-yellow: #f9e2af;
  --ctp-green: #a6e3a1;
  --ctp-teal: #94e2d5;
  --ctp-sky: #89dceb;
  --ctp-sapphire: #74c7ec;
  --ctp-blue: #89b4fa;
  --ctp-lavender: #b4befe;
  --ctp-text: #cdd6f4;
  --ctp-subtext1: #bac2de;
  --ctp-subtext0: #a6adc8;
  --ctp-overlay2: #9399b2;
  --ctp-overlay1: #7f849c;
  --ctp-overlay0: #6c7086;
  --ctp-surface2: #585b70;
  --ctp-surface1: #45475a;
  --ctp-surface0: #313244;
  --ctp-base: #1e1e2e;
  --ctp-mantle: #181825;
  --ctp-crust: #11111b;
}

/* CORRECTED: Changed body.light-mode to html.light-mode */
html.light-mode {
  --ctp-rosewater: #dc8a78;
  --ctp-flamingo: #dd7878;
  --ctp-pink: #ea76cb;
  --ctp-mauve: #8839ef;
  --ctp-red: #d20f39;
  --ctp-maroon: #e64553;
  --ctp-peach: #fe640b;
  --ctp-yellow: #df8e1d;
  --ctp-green: #40a02b;
  --ctp-teal: #179299;
  --ctp-sky: #04a5e5;
  --ctp-sapphire: #209fb5;
  --ctp-blue: #1e66f5;
  --ctp-lavender: #7287fd;
  --ctp-text: #4c4f69;
  --ctp-subtext1: #5c5f77;
  --ctp-subtext0: #6c6f85;
  --ctp-overlay2: #7c7f93;
  --ctp-overlay1: #8c8fa1;
  --ctp-overlay0: #9ca0b0;
  --ctp-surface2: #acb0be;
  --ctp-surface1: #bcc0cc;
  --ctp-surface0: #ccd0da;
  --ctp-base: #eff1f5;
  --ctp-mantle: #e6e9ef;
  --ctp-crust: #dce0e8;
}

/* 2. GENERAL & BODY STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at center, var(--ctp-base) 0%, var(--ctp-mantle) 70%, var(--ctp-crust) 100%);
  color: var(--ctp-text);
  line-height: 1.7;
}
/* ... the rest of your CSS file remains the same ... */

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
  color: var(--ctp-sapphire);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ctp-sky);
}

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

section {
    padding: 4rem 0;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--ctp-green);
}

/* 3. HEADER & NAVIGATION */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

/* --- Logo Sizing and Swapping for Light/Dark Mode --- */

/* Hide the light logo by default (in dark mode) */
.logo-light {
    display: none;
}

/* When light mode is active, hide the dark logo */
html.light-mode .logo-dark {
    display: none;
}

/* When light mode is active, show the light logo */
html.light-mode .logo-light {
    display: block;
}

/* CORRECTED LOGO SIZING */
header .logo img {
    height: 45px;
    width: auto;
    vertical-align: middle;
}

header nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

header nav a {
  font-weight: 700;
  color: var(--ctp-subtext0);
}

header nav a.active, header nav a:hover {
  color: var(--ctp-text);
}

/* 4. HOMEPAGE HERO & HIGHLIGHTS */
section.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: 70vh;
}
.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--ctp-text);
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(90deg, var(--ctp-peach), var(--ctp-mauve), var(--ctp-lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text p {
  font-size: 1.1rem;
  color: var(--ctp-subtext1);
  margin-bottom: 2.5rem;
  max-width: 90%;
}
.hero-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  color: var(--ctp-crust);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-peach { background-color: var(--ctp-peach); }
.btn-mauve { background-color: var(--ctp-mauve); }
.btn-green { background-color: var(--ctp-green); }
.btn-sky { background-color: var(--ctp-sky); }
.btn-blue { background-color: var(--ctp-blue); }

.hero-image img {
  border-radius: 20px;
  border: 2px solid var(--ctp-surface1);
  box-shadow: 0 0 35px -10px var(--ctp-mauve);
}
.highlight-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.highlight-box {
    background-color: var(--ctp-surface0);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--ctp-surface1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
}
.highlight-box:hover {
    transform: translateY(-5px);
    border-color: var(--ctp-mauve);
}
.highlight-box h3 { color: var(--ctp-peach); margin-top: 1rem; }
.highlight-box img { margin-bottom: 1rem; border-radius: 8px; }
.highlight-box ul { list-style: none; text-align: left; color: var(--ctp-subtext1); padding-top: 1rem; }
.highlight-box ul li strong { color: var(--ctp-text); }


/* 5. ABOUT US PAGE STYLES */

.page-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--ctp-surface0);
}
.page-header h1 {
    font-size: 3.5rem;
    color: var(--ctp-mauve);
    margin-bottom: 0.5rem;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--ctp-subtext1);
    max-width: 600px;
    margin: 0 auto;
}
.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.info-card {
    background-color: var(--ctp-surface0);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--ctp-surface1);
}
.info-card h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: var(--ctp-teal);
    margin-bottom: 1rem;
}
.icon-list {
    list-style: none;
    padding-left: 0;
}
.icon-list li {
    background-color: var(--ctp-surface0);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--ctp-blue);
    position: relative;
    padding-left: 2.5rem;
}
.icon-list li::before {
    font-family: "Font Awesome 6 Free";
    content: "\f058"; /* check-circle icon */
    font-weight: 900;
    color: var(--ctp-green);
    position: absolute;
    left: 1rem;
    top: 1.7rem;
}
.icon-list li strong {
    color: var(--ctp-lavender);
    display: block;
    margin-bottom: 0.25rem;
}
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.team-member {
    background-color: var(--ctp-surface0);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--ctp-surface1);
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--ctp-surface2);
}
.team-member h3 {
    font-size: 1.5rem;
    color: var(--ctp-text);
    margin-bottom: 0.25rem;
}
.team-member h3 a {
    color: inherit;
}
.team-member h3 a:hover {
    color: var(--ctp-mauve);
}
.team-member .title {
    font-size: 1rem;
    color: var(--ctp-peach);
    font-weight: 700;
    margin-bottom: 1rem;
}
.team-member p {
    color: var(--ctp-subtext1);
}
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.partner-logos img {
    height: 60px;
    width: auto;
    filter: grayscale(1) opacity(0.7);
    transition: filter 0.3s ease;
}
.partner-logos a:hover img {
    filter: none;
}


/* 6. FOOTER */
footer {
  text-align: center;
  padding: 4rem 2rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--ctp-surface0);
}
.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.footer-section h3 {
  color: var(--ctp-flamingo);
  margin-bottom: 1rem;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section a {
    color: var(--ctp-subtext0);
}
.footer-section a:hover {
    color: var(--ctp-rosewater);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--ctp-surface0);
  color: var(--ctp-overlay1);
  font-size: 0.9rem;
}
.footer-section .social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}
.footer-section .social-icons a {
    font-size: 1.5rem;
    color: var(--ctp-subtext0);
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-section .social-icons a:hover {
    color: var(--ctp-rosewater);
    transform: translateY(-2px);
}
.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

/* 7. PROGRAMS PAGE STYLES */ /* Renumbered from 6 */

.content-section {
    background-color: var(--ctp-surface0);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--ctp-surface1);
    margin-bottom: 2rem;
}
.content-section h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: var(--ctp-sky);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--ctp-surface2);
    padding-bottom: 1rem;
}
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.program-card {
    background-color: var(--ctp-mantle);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.program-card h4 {
    color: var(--ctp-peach);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.program-card p {
    color: var(--ctp-subtext1);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.program-card .fee {
    color: var(--ctp-yellow);
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.program-card .btn {
    width: 100%;
}
.styled-list {
    list-style: none;
    padding-left: 0;
}
.styled-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--ctp-surface1);
    color: var(--ctp-text);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.styled-list li:last-child {
    border-bottom: none;
}
.styled-list li i {
    color: var(--ctp-blue);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}
.styled-list li strong {
    color: var(--ctp-lavender);
}
.styled-list a {
    color: var(--ctp-text);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    transition: background-color 0.2s ease;
    padding: 1rem;
    margin: -1rem;
    border-radius: 8px;
}
.styled-list a:hover {
    background-color: var(--ctp-surface1);
    color: var(--ctp-mauve);
}
.styled-list a span {
    color: var(--ctp-subtext0);
    font-style: italic;
    margin-left: auto;
}

/* 8. PROJECTS PAGE STYLES */ /* Renumbered from 7 */

#map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--ctp-surface1);
}
.subtitle {
    text-align: center;
    color: var(--ctp-subtext0);
    margin-top: -2.5rem;
    margin-bottom: 2rem;
}
.leaflet-popup-content-wrapper {
    background: #ffffff;
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.leaflet-popup-content {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}
.leaflet-popup-tip {
    background: #ffffff;
}
.leaflet-popup-close-button {
    color: #333333 !important;
}
.leaflet-popup-close-button:hover {
    color: #000000 !important;
}
.leaflet-control-zoom a {
    background-color: var(--ctp-surface1);
    color: var(--ctp-text);
    border-color: var(--ctp-surface2);
}
.leaflet-control-zoom a:hover {
    background-color: var(--ctp-surface2);
    color: var(--ctp-sky);
}
.initiatives-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.initiative-card {
    background-color: var(--ctp-surface0);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--ctp-green);
}
.initiative-card h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ctp-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.initiative-card p {
    color: var(--ctp-subtext1);
}
.progress-impact {
    background-color: var(--ctp-surface0);
    padding: 3rem;
    border-radius: 12px;
}
.progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.impact-stats h4, .impact-reports h4 {
    font-size: 1.3rem;
    color: var(--ctp-peach);
    margin-bottom: 1.5rem;
}

/* 9. RESOURCES PAGE STYLES */ /* Renumbered from 8 */

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.category-card {
    display: block;
    background-color: var(--ctp-surface0);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--ctp-surface1);
    color: var(--ctp-text);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--ctp-teal);
}
.category-card h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ctp-teal);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.category-card p {
    color: var(--ctp-subtext1);
}
.search-filter {
    background-color: var(--ctp-surface0);
    padding: 3rem;
    border-radius: 12px;
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    align-items: center;
    background-color: var(--ctp-mantle);
    border: 1px solid var(--ctp-surface1);
    border-radius: 8px;
    padding: 0 1rem;
    flex-grow: 1;
}
.form-group i {
    color: var(--ctp-overlay1);
    margin-right: 0.75rem;
}
.form-group input,
.form-group select {
    background: none;
    border: none;
    color: var(--ctp-text);
    padding: 0.9rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: 100%;
    outline: none;
}
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239399b2' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.filter-form .btn {
    padding: 0.9rem 2.5rem;
    min-width: 150px;
}
.publication-card {
    background-color: var(--ctp-surface0);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--ctp-surface1);
}
.publication-card .card-content {
    padding: 2rem;
}
.publication-card h3 {
    color: var(--ctp-lavender);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.publication-card p {
    color: var(--ctp-subtext1);
}
.publication-card .btn {
    border-radius: 0;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color 0.2s ease;
}
.publication-card .btn:hover {
    filter: brightness(1.1);
}

/* 10. NEWS & EVENTS PAGE STYLES */ /* Renumbered from 9 */

#calendar {
    background-color: var(--ctp-mantle);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--ctp-surface1);
}
.fc-header-toolbar {
    margin-bottom: 2rem !important;
}
.fc-header-toolbar .fc-button {
    background-color: var(--ctp-surface1);
    border: 1px solid var(--ctp-surface2);
    color: var(--ctp-text);
    box-shadow: none;
    transition: background-color 0.2s ease;
}
.fc-header-toolbar .fc-button:hover {
    background-color: var(--ctp-surface2);
}
.fc-header-toolbar .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--ctp-mauve);
    border-color: var(--ctp-mauve);
}
.fc-toolbar-title {
    color: var(--ctp-text);
    font-size: 1.8em !important;
    font-weight: 900;
}
.fc-daygrid-day-frame {
    border: 1px solid var(--ctp-surface0);
}
.fc .fc-daygrid-day-number {
    color: var(--ctp-subtext0);
    padding: 0.5em;
}
.fc .fc-day-today {
    background-color: var(--ctp-surface0) !important;
}
.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--ctp-blue);
    font-weight: bold;
}
.fc-col-header-cell {
    background-color: var(--ctp-surface1);
    color: var(--ctp-subtext1);
    border-color: var(--ctp-surface2);
}
.fc-theme-standard th {
    border-right: 1px solid var(--ctp-surface2);
}
.fc-daygrid-event {
    border-radius: 4px;
    padding: 0.3em 0.6em;
    font-weight: bold;
    color: var(--ctp-crust) !important;
}
.fc-event-main {
    color: inherit;
}
.fc-h-event {
    border-width: 0px;
}
.fc-list-table, .fc-list-day-cushion {
    background-color: var(--ctp-surface0);
    color: var(--ctp-text);
}
.fc-list-day-text, .fc-list-day-side-text {
    color: var(--ctp-mauve);
}
.fc-list-event:hover td {
    background-color: var(--ctp-surface1);
}
.events-container,
.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.event-card {
    background-color: var(--ctp-surface0);
    padding: 2.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}
.event-card h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ctp-lavender);
    margin-bottom: 1rem;
}
.event-card p {
    color: var(--ctp-subtext1);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.event-card .btn {
    width: 100%;
}
.news-card {
    background-color: var(--ctp-surface0);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-content {
    padding: 2rem;
}
.news-meta {
    color: var(--ctp-overlay1);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.news-content h4 {
    color: var(--ctp-sky);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.news-content p {
    color: var(--ctp-subtext1);
    margin-bottom: 1.5rem;
}
.news-content a {
    color: var(--ctp-peach);
    font-weight: bold;
    text-decoration: none;
}
.news-content a:hover {
    text-decoration: underline;
}

/* 11. CONTACT US PAGE STYLES */ /* Renumbered from 10 */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--ctp-surface0);
    padding: 3rem;
    border-radius: 12px;
}
.contact-info h3, .contact-form-container h3 {
    color: var(--ctp-green);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.contact-info p {
    color: var(--ctp-subtext1);
    margin-bottom: 1.5rem;
}
.contact-info .styled-list {
    margin-bottom: 2rem;
}
.contact-info .styled-list strong {
    color: var(--ctp-text);
}
.contact-info .styled-list a {
    color: var(--ctp-peach);
}
.contact-info .styled-list a:hover {
    color: var(--ctp-flamingo);
}
.contact-info .styled-list li {
    align-items: flex-start;
}
.contact-info .styled-list i {
    margin-top: 0.25rem;
}
.social-links {
    display: flex;
    gap: 1.5rem;
}
.social-links a {
    color: var(--ctp-overlay1);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: var(--ctp-sky);
    transform: scale(1.1);
}
.contact-form .form-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.contact-form .form-group.align-top {
    align-items: flex-start;
}
.contact-form .form-group.align-top label {
    padding-top: 1rem;
}
.contact-form label {
    flex-basis: 120px;
    flex-shrink: 0;
    text-align: right;
    color: var(--ctp-subtext0);
    font-weight: bold;
}
.contact-form input,
.contact-form textarea {
    flex-grow: 1;
    width: 100%;
    padding: 1rem;
    background-color: var(--ctp-mantle);
    border: 1px solid var(--ctp-surface2);
    border-radius: 8px;
    color: var(--ctp-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--ctp-blue);
    box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.25);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* 12. GET INVOLVED PAGE STYLES */ /* Renumbered from 11 */

.involvement-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.involvement-card {
    background-color: var(--ctp-surface0);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--ctp-surface1);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.involvement-card .card-icon {
    font-size: 3rem;
    color: var(--ctp-mauve);
    margin-bottom: 1.5rem;
}
.involvement-card h3 {
    color: var(--ctp-text);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.involvement-card p {
    color: var(--ctp-subtext1);
    margin-bottom: 2rem;
    flex-grow: 1;
}
.donation-membership-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}
.donation-form-container, .membership-container {
    background-color: var(--ctp-surface0);
    padding: 3rem;
    border-radius: 12px;
}
.membership-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.membership-options .involvement-card {
    background-color: var(--ctp-mantle);
}
.donation-form .form-row {
    display: flex;
    gap: 1rem;
}
.donation-form .form-group {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.donation-form label {
    display: block;
    color: var(--ctp-subtext0);
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.donation-form input,
.donation-form select {
    width: 100%;
    padding: 1rem;
    background-color: var(--ctp-mantle);
    border: 1px solid var(--ctp-surface2);
    border-radius: 8px;
    color: var(--ctp-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
.donation-form input:focus,
.donation-form select:focus {
    outline: none;
    border-color: var(--ctp-blue);
    box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.25);
}
.donation-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* 13. PROFILE PAGE STYLES */ /* Renumbered from 12 */

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: flex-start;
}
.profile-sidebar {
    position: sticky;
    top: 2rem;
}
.profile-card {
    background-color: var(--ctp-surface0);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--ctp-surface1);
}
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    display: block;
    border: 4px solid var(--ctp-surface2);
}
.profile-sidebar h2 {
    text-align: center;
    color: var(--ctp-text);
    margin-bottom: 0.25rem;
    font-size: 1.8rem;
}
.profile-title {
    text-align: center;
    color: var(--ctp-peach);
    font-weight: bold;
    margin-bottom: 1rem;
}
.profile-bio {
    color: var(--ctp-subtext1);
    font-size: 0.95rem;
    text-align: center;
}
.profile-sidebar h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ctp-mauve);
    margin-bottom: 1rem;
}
.qualifications-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ctp-surface1);
}
.qualifications-list li:last-child {
    border-bottom: none;
}
.profile-main-content h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* CORRECTED: Renamed from .publication-card to avoid conflict */
.profile-publication-card {
    background-color: var(--ctp-surface0);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--ctp-blue);
    margin-bottom: 1.5rem;
}
.profile-publication-card h3 {
    color: var(--ctp-sky);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.publication-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--ctp-overlay2);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.publication-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.profile-publication-card p {
    color: var(--ctp-subtext1);
    margin-bottom: 1.5rem;
}
.profile-publication-card .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* 14. MOBILE RESPONSIVE STYLES */

/* Hide the hamburger button on desktop by default */
.mobile-menu-button {
    display: none;
}

/* Apply all mobile styles at 900px and below */
@media (max-width: 900px) {

    /* --- General Adjustments --- */
    .page-wrapper {
        padding: 0 1rem;
    }
    section {
        padding: 2rem 0;
    }
    h2 {
        font-size: 2rem;
    }

    /* --- Header & Hamburger Menu --- */
    
    /* Hide the desktop navigation menu */
    header nav {
        display: none;
        position: absolute;
        top: 80px; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: var(--ctp-crust);
        padding: 1rem 0;
        z-index: 1000; /* Ensure it appears above other content */
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    /* This class is added by JavaScript to show the menu */
    header nav.is-open {
        display: flex;
    }
    
    /* Style the links inside the mobile menu */
    header nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
    }
    header nav ul li {
        width: 100%;
        text-align: center;
    }
    header nav ul li a {
        padding: 1rem;
        display: block;
        width: 100%;
    }
    header nav ul li a:hover {
        background-color: var(--ctp-mantle);
    }
    
    /* Show and style the hamburger button */
    .mobile-menu-button {
        display: block;
        background: none;
        border: none;
        color: var(--ctp-text);
        font-size: 1.8rem;
        cursor: pointer;
    }

    /* --- Homepage Hero Section Fixes --- */
    section.hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        max-width: 100%;
    }
    .hero-buttons {
        grid-template-columns: 1fr;
    }

    /* --- Other Page Grid Fixes --- */
    .profile-grid, .donation-membership-container, .contact-container, .mission-vision-container, .progress-grid {
        grid-template-columns: 1fr;
    }
}

/* 15. BLOG POST STYLES */ /* Renumbered from 14 */

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--ctp-surface0);
    padding: 3rem;
    border-radius: 12px;
}
.blog-header h1 {
    font-size: 3rem;
    color: var(--ctp-mauve);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.article-meta {
    color: var(--ctp-overlay1);
    font-style: italic;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--ctp-surface1);
    padding-bottom: 2rem;
}
.blog-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.blog-content h2 {
    font-size: 1.8rem;
    color: var(--ctp-peach);
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.blog-content p, .blog-content li {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.blog-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}
.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: bold;
    color: var(--ctp-sky);
    text-decoration: none;
    border-top: 1px solid var(--ctp-surface1);
    padding-top: 2rem;
    width: 100%;
}
.back-link:hover {
    color: var(--ctp-sapphire);
}

/* 16. GOOGLE MAP STYLES */ /* Renumbered from 15 */
gmp-map {
  height: 500px;
}
.flag-icon {
  position: relative;
  left: 10px;
}

/* 17. THEME SWITCHER STYLES */

.theme-switcher {
    display: flex;
    align-items: center;
}

.theme-switcher label {
    position: relative;
    display: block;
    width: 50px;
    height: 26px;
    background-color: var(--ctp-surface0);
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.theme-switcher label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: var(--ctp-base);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-switcher input {
    display: none; /* Hide the actual checkbox */
}

/* Move the circle when checked */
.theme-switcher input:checked + label::after {
    transform: translateX(24px);
}

/* Icon styles */
.theme-switcher .fa-moon {
    position: absolute;
    top: 5px;
    left: 6px;
    color: var(--ctp-lavender);
    font-size: 14px;
    transition: opacity 0.3s ease;
}
.theme-switcher .fa-sun {
    position: absolute;
    top: 5px;
    right: 6px;
    color: var(--ctp-yellow);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show sun and hide moon when checked */
.theme-switcher input:checked + label .fa-moon {
    opacity: 0;
}
.theme-switcher input:checked + label .fa-sun {
    opacity: 1;
}

/* 18. TABLE STYLES */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  background-color: var(--ctp-mantle);
  border: 1px solid var(--ctp-surface1);
  border-radius: 8px;
  overflow: hidden; /* Ensures the border-radius is applied to corners */
}

table th, table td {
  border: 1px solid var(--ctp-surface1);
  padding: 1rem 1.5rem;
  text-align: left;
  vertical-align: top;
}

table th {
  background-color: var(--ctp-surface0);
  color: var(--ctp-green);
  font-weight: 700;
}

table tr:nth-child(even) {
    background-color: var(--ctp-surface0);
}

table td {
  color: var(--ctp-subtext1);
}

table td strong {
  color: var(--ctp-text);
}

/* --- Styles for Light Mode --- */
html.light-mode table {
    background-color: var(--ctp-crust);
    border-color: var(--ctp-surface2);
}

html.light-mode table th, html.light-mode table td {
    border-color: var(--ctp-surface2);
}

html.light-mode table th {
    background-color: var(--ctp-mantle);
}

html.light-mode table tr:nth-child(even) {
    background-color: var(--ctp-mantle);
}