/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --bg-color: #ffffff;
    --bg-alt: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-text: #1e293b;
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --container-width: 1200px;
    --radius: 14px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 14px 40px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 820px;
}

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

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

ul {
    list-style: none;
}

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

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

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
    color: #fff;
}

.btn-lg {
    padding: 16px 38px;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition);
}

.btn-link:hover::after {
    width: 100%;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg, rgba(255, 255, 255, 0.92));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--header-text, var(--text-color));
    letter-spacing: -0.5px;
}

.site-title:hover { color: var(--primary-color); }

.site-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    gap: 6px;
}

.main-navigation ul a {
    display: block;
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--header-text, var(--text-color));
    font-weight: 500;
    font-size: 15px;
}

.main-navigation ul a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--header-text, var(--text-color));
    border-radius: 2px;
    transition: var(--transition);
}

.dark-toggle {
    background: rgba(99, 102, 241, 0.1);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.dark-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
}

.dark-toggle .icon-moon { display: none; }
.dark-mode .dark-toggle .icon-sun { display: none; }
.dark-mode .dark-toggle .icon-moon { display: block; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf2f8 100%);
    overflow: hidden;
    padding: 120px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 820px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.hero.has-bg .hero-title,
.hero.has-bg .hero-subtitle {
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero.has-bg .hero-subtitle {
    color: #e2e8f0;
}

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero.has-bg .scroll-cue {
    border-color: #fff;
}

.scroll-cue span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--primary-color);
    animation: scrollPulse 2s infinite;
}

.hero.has-bg .scroll-cue span {
    background: #fff;
}

@keyframes scrollPulse {
    0% { transform: translateY(-6px); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(-6px); opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    animation: fadeUp 0.9s ease both;
}

/* ============ SECTIONS ============ */
section[class$="-section"] {
    padding: 100px 0;
}

.activities-section,
.team-section {
    background: var(--bg-alt);
    background-size: cover;
    background-position: center;
}

.gallery-section,
.contact-section {
    background: var(--bg-color);
    background-size: cover;
    background-position: center;
}

.section-heading {
    text-align: center;
    margin-bottom: 56px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    margin-bottom: 14px;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 14px auto 0;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
}

.section-actions {
    text-align: center;
    margin-top: 48px;
}

/* ============ ACTIVITIES ============ */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

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

.activity-card--upcoming {
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.12);
}

.activity-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-alt);
}

.activity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.activity-card:hover .activity-thumb img {
    transform: scale(1.08);
}

.activity-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.activity-upcoming {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4);
}

.activity-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.activity-body h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.activity-body h3 a {
    color: var(--text-color);
}

.activity-body h3 a:hover {
    color: var(--primary-color);
}

.activity-desc {
    color: var(--text-muted);
    font-size: 14px;
    flex: 1;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.activity-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.activity-meta svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ============ GALLERY SLIDESHOW ============ */
.gallery-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    background: var(--bg-alt);
}

.slider-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.slider-slide {
    flex: 0 0 100%;
    height: 100%;
    width: 100%;
}

.slider-slide a,
.slider-slide img {
    width: 100%;
    height: 100%;
}

.slider-slide img {
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.slider-nav:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots span.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ============ TEAM ============ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 28px;
}

.team-card {
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.team-carousel,
.team-photo {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    background: var(--bg-alt);
}

.team-slides {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.team-slide {
    width: 100%;
    height: 100%;
    float: left;
}

.team-slide img,
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
}

.team-prev { left: 4px; }
.team-next { right: 4px; }

.team-arrow:hover {
    background: var(--primary-color);
    color: #fff;
}

.team-body h3 {
    font-size: 18px;
    margin-bottom: 2px;
}

.team-role {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.team-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transition: all var(--transition);
}

.team-social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: translateY(-3px);
}

.dark-mode .team-social-link {
    background: rgba(99, 102, 241, 0.22);
}

.team-social--left {
    justify-content: flex-start;
    margin-top: 0;
}

.team-single {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    margin-top: 40px;
}

.team-single .team-carousel {
    width: 300px;
    height: 300px;
}

.team-single-img {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    background: var(--bg-alt);
}

.team-single-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-single-img.no-photo {
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.team-single-info .entry-title {
    font-size: 30px;
    margin-bottom: 4px;
}

.team-single-info .team-role {
    font-size: 15px;
    margin-bottom: 18px;
}

.team-single-info .entry-content {
    margin-top: 18px;
}

.team-single-info .entry-content p {
    line-height: 1.8;
    margin-bottom: 16px;
}

.team-single-info .btn {
    margin-top: 20px;
}

@media (max-width: 767px) {
    .team-single {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .team-single .team-carousel,
    .team-single-img {
        margin: 0 auto;
    }

    .team-social--left {
        justify-content: center;
    }
}

/* ============ CONTACT ============ */
.contact-grid {
    display: block;
    max-width: 640px;
    margin: 0 auto;
}

.contact-grid .section-heading {
    text-align: center;
    margin: 0 0 30px;
}

.contact-grid .section-title::after {
    margin: 14px auto 0;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.contact-list a {
    color: var(--text-color);
    font-weight: 600;
}

.contact-list a:hover {
    color: var(--primary-color);
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-grid.cols-1 {
    grid-template-columns: 1fr;
}

.footer-grid.cols-2 {
    grid-template-columns: 1.4fr 1fr;
}

.footer-grid h3 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    max-width: 300px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav ul a {
    color: var(--footer-text);
    font-size: 14px;
}

.footer-nav ul a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--footer-text);
    font-size: 13px;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 13px;
    text-align: center;
    color: #94a3b8;
}

/* ============ BACK TO TOP ============ */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 90;
    box-shadow: var(--shadow-lg);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    text-align: center;
    max-width: 80vw;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ BLOG / POSTS ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.blog-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.06);
}

.blog-body {
    padding: 24px;
}

.blog-body h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.blog-body h2 a {
    color: var(--text-color);
}

.blog-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.entry-header {
    margin-bottom: 24px;
}

.entry-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.entry-meta {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.entry-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    margin: 24px 0 12px;
}

.entry-content p {
    margin: 0 0 18px;
}

.entry-content img {
    border-radius: 10px;
    margin: 20px 0;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
}

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

/* ============ ACTIVITY DETAILS ============ */
.activity-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.activity-details span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.activity-details svg {
    color: var(--primary-color);
}

/* ============ PAGINATION ============ */
.pagination {
    margin-top: 48px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ============ NO CONTENT ============ */
.no-content {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

/* ============ 404 ============ */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* ============ SEARCH FORM ============ */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 24px auto 0;
}

.search-field {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
}

.search-submit {
    width: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-submit:hover {
    transform: scale(1.05);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .activities-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .main-navigation.primary-menu ul,
    .main-navigation ul {
        position: fixed;
        top: 72px;
        right: -100%;
        flex-direction: column;
        width: 260px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        box-shadow: var(--shadow-lg);
        padding: 20px;
        gap: 4px;
        transition: right 0.35s ease;
        z-index: 99;
    }

    .main-navigation.open ul {
        right: 16px;
    }

    .activities-grid,
    .blog-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    section[class$="-section"] {
        padding: 70px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-slider {
        aspect-ratio: 4 / 3;
    }

    .slider-nav {
        width: 38px;
        height: 38px;
    }
}
/* ============ RESPONSIVE REFINEMENTS (auto-fit for phones/tablets) ============ */

/* Prevent horizontal overflow on all viewports */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Branding should never overflow the header */
.site-branding {
    min-width: 0;
    flex: 1 1 auto;
}

.site-title {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Team single layout fluid */
.team-single {
    grid-template-columns: minmax(240px, 300px) 1fr;
}

.team-single .team-carousel,
.team-single-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
}

/* Footer base stays fluid */
.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* Meta rows wrap nicely on small screens */
.entry-meta,
.blog-meta,
.activity-meta {
    flex-wrap: wrap;
}

/* Lightbox fluid */
.lightbox img {
    max-width: 92vw;
    max-height: 78vh;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .gallery-slider {
        max-width: 100%;
    }

    .team-single {
        gap: 28px;
        padding: 28px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 18px;
    }

    section[class$="-section"] {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 0;
        min-height: 75vh;
    }

    .team-single {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .team-single .team-carousel,
    .team-single-img {
        margin: 0 auto;
    }

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

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        min-height: 64px;
        gap: 12px;
    }

    .site-branding {
        max-width: calc(100% - 108px);
    }

    .site-title {
        font-size: 20px;
    }

    .site-description {
        font-size: 11px;
    }

    section[class$="-section"] {
        padding: 60px 0;
    }

    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    .activities-grid,
    .blog-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-slider {
        aspect-ratio: 4 / 3;
    }

    .slider-nav {
        width: 38px;
        height: 38px;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }

    .activity-body {
        padding: 18px;
    }

    .activity-meta {
        gap: 10px;
    }

    .activity-details {
        padding: 16px;
        gap: 10px;
    }

    .team-card {
        padding: 20px;
    }

    .entry-meta,
    .blog-meta {
        gap: 8px;
        font-size: 12px;
    }

    .error-code {
        font-size: clamp(72px, 20vw, 110px);
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        gap: 12px;
    }

    .search-submit {
        width: 100%;
        border-radius: 50px;
        height: 46px;
    }

    .team-social--left {
        justify-content: center;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .lightbox img {
        max-width: 95vw;
        max-height: 75vh;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        font-size: 34px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(26px, 8vw, 34px);
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn {
        padding: 11px 22px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 13px 28px;
        font-size: 15px;
    }

    .hero {
        padding: 64px 0 48px;
    }

    .team-carousel,
    .team-photo {
        width: 130px;
        height: 130px;
    }

    .slider-nav {
        width: 34px;
        height: 34px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .error-code {
        font-size: 64px;
    }

    #back-to-top {
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-inner {
        min-height: 60px;
    }

    .site-title {
        font-size: 18px;
    }

    .menu-toggle span {
        width: 22px;
    }

    .main-navigation.open ul,
    .main-navigation.open.primary-menu ul {
        width: calc(100vw - 32px);
        right: 16px;
    }

    .main-navigation.open ul {
        right: 16px;
    }

    .hero {
        padding: 56px 0 40px;
    }

    .section-title::after {
        width: 40px;
        height: 3px;
    }

    .contact-icon {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .activity-body h3 {
        font-size: 17px;
    }

    .blog-body h2 {
        font-size: 18px;
    }

    .error-code {
        font-size: 56px;
    }

    .dark-toggle {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .site-title {
        font-size: 17px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}
