/*
Theme Name: Semesta Community
Theme URI: https://semesta.org
Author: Antigravity
Author URI: https://semesta.org
Description: A custom theme for the Semesta community with a Tosca color scheme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: semesta
*/

:root {
    --color-primary: #14B8A6;
    /* Teal 500 */
    --color-primary-dark: #0F766E;
    /* Teal 700 */
    --color-primary-light: #CCFBF1;
    /* Teal 100 */
    --color-secondary: #2DD4BF;
    /* Teal 400 */
    --color-accent: #F59E0B;
    /* Amber 500 - Complementary for CTAs */

    --color-bg: #F0FDFA;
    /* Teal 50 */
    --color-surface: #FFFFFF;

    --color-text-main: #134E4A;
    /* Teal 900 */
    --color-text-muted: #64748B;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-container: 1200px;
    --spacing-gutter: 20px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-gutter);
}

/* Header & Top Bar */
.site-header {
    background-color: var(--color-surface);
    box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.05);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 0.8rem 0;
    font-size: 0.9rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
}

.top-bar-left span,
.top-bar-right a {
    margin-right: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}



/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-main);
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text-main);
    transition: top 0.3s, transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Main Header */
.main-header {
    padding: 1rem 0;
    position: relative;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.btn-donate {
    background-color: var(--color-accent);
    color: white;
    border-radius: 99px;
    padding: 0.8rem 2rem;
    font-weight: 700;
}

.btn-donate:hover {
    background-color: #d97706;
    /* darker amber */
    color: white;
}

/* Hero Section */
.custom-logo-link img {
    max-width: 120px;
    height: auto;
}

.hero {
    background: url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    position: relative;
    padding: 10rem 0 14rem;
    /* Increased padding */
    color: white;
    text-align: center;
    /* Center alignment */
    border-radius: 0;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 118, 110, 0.85);
    /* Slightly more transparent */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    /* Centered */
}

.hero-subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: white;
    /* Force white */
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    /* Force white to override global h1 */
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    /* Was inheriting alignment, ensuring left align if needed or keep default */
    color: white;
}

.hero-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Updated Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--color-secondary);
    /* Brighter Teal */
    color: white;
}

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

.btn-white {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

/* Features Overlap */
.features-overlap {
    margin-top: -6rem;
    /* Negative margin to pull up */
    position: relative;
    z-index: 10;
    margin-bottom: 5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card {
    background: white;
    padding: 3rem;
    border-right: 1px solid #f1f5f9;
}

.feature-card.highlight {
    background: var(--color-primary);
    color: white;
}

.feature-card.highlight h3,
.feature-card.highlight a {
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card a {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* About Section */
.section-about {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    background-color: #e2e8f0;
    height: 400px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 700;
}

.section-subtitle {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.text-primary {
    color: var(--color-primary);
}

.check-list {
    list-style: none;
    margin: 2rem 0;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.check-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 800;
}

/* Projects Section */
.section-projects {
    padding: 5rem 0;
    background-color: #F8FAFC;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
    /* Helper class assumed */
}

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

.cat-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-accent);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.progress-wrapper {
    background: #f1f5f9;
    height: 8px;
    border-radius: 99px;
    margin: 1.5rem 0;
    position: relative;
    overflow: visible;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 99px;
}

.read-more-link {
    font-weight: 700;
    color: var(--color-text-main);
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Single Post */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
    background-color: var(--color-surface);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.single-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-meta {
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

.site-footer a {
    color: var(--color-primary-light);
}

/* Projects Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 240px;
    background-color: var(--color-primary-light);
    object-fit: cover;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Date Badge */
.date-badge {
    position: absolute;
    bottom: -25px;
    left: 20px;
    background-color: var(--color-secondary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

.date-badge .day {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.date-badge .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.card-content {
    padding: 2.5rem 1.5rem 1.5rem;
    /* Top padding increased for badge overlap */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.35rem;
    /* Slightly smaller for better fit */
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: #1e293b;
    line-height: 1.3;
}

.card-title a {
    color: #1e293b;
}

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

.card-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: auto;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.card-footer .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-footer i {
    color: #94a3b8;
}

.meta-separator {
    color: #cbd5e1;
    margin: 0 0.5rem;
}

/* Video CTA Section */
.section-video-cta {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background-color: #F0FDFA;
    /* Lightest Teal */
}

/* Split Background Logic Removed */

.video-cta-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.video-cta-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    line-height: 0;
}

.video-cta-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.play-button:hover {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 0 0 15px rgba(20, 184, 166, 0.3);
}

.play-button i {
    margin-left: 5px;
    /* Visual center adjustment */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.video-cta-content {
    padding-left: 2rem;
}

.video-cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #0F172A;
}

.video-cta-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Partner Section */
.section-partners {
    padding: 6rem 0;
    background-color: white;
    overflow: hidden;
    /* Hide overflow */
}

/* Partner Section Marquee */
/* Partner Section Marquee */
.partners-marquee {
    width: 100%;
    margin-top: 3rem;
    overflow: hidden;
    position: relative;
    /* Mask edges for smooth fade effect (optional) */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    flex: 0 0 auto;
    width: 150px;
    margin-right: 4rem;
    /* Use margin instead of gap for perfect loop */
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Member Cards (Global) */
.member-card {
    background: transparent;
    border: none;
    overflow: visible;
    text-align: center;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 24px;
    background-color: #f1f5f9;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-avatar img {
    transform: scale(1.05);
}

.member-info {
    padding: 0;
}

.member-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1e293b;
    font-family: var(--font-heading, serif);
}

.member-info h3 a {
    color: inherit;
    text-decoration: none;
}

.member-job {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Members Scroller Section (Carousel) */
.section-members-scroller {
    padding: 4rem 0 6rem;
    background-color: rgba(13, 148, 136, 0.08);
    /* Tosca with low opacity */
    overflow: hidden;
    border-top: 1px solid #f1f5f9;
}

.members-carousel-container {
    padding: 0 1rem;
}

.members-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    /* Space for scrollbar if visible, or aesthetics */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE 10+ */
    -webkit-overflow-scrolling: touch;
}

.members-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari/Webkit */
}

/* 
 * Calculation for Items per View 
 * Mobile: 3 items -> width ~ 33% 
 * Desktop: 5 items -> width ~ 20%
 * Subtract gap from width to fit perfectly
 */

.member-slide-item {
    flex: 0 0 calc((100% - (2rem * 2)) / 3);
    /* Mobile: 3 items (minus gaps) */
    scroll-snap-align: start;
    max-width: 300px;
    /* Constraint */
}

/* Desktop Breakpoint */
@media (min-width: 1024px) {
    .member-slide-item {
        flex: 0 0 calc((100% - (2rem * 4)) / 5);
        /* Desktop: 5 items (minus 4 gaps) */
    }
}


.partner-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 80px;
    /* Constrain height */
}

/* Responsive adjustment for the new section */
@media (max-width: 900px) {
    .video-cta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .video-cta-content {
        padding-left: 0;
        text-align: center;
    }

    .video-cta-content p {
        margin: 0 auto 2rem;
    }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {

    /* Layout */
    .container {
        padding: 0 1rem;
    }

    /* Top Bar */
    .top-bar {
        display: none;
    }

    /* Header */
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        display: none;
        /* Hidden by default */
        flex-direction: column;
        z-index: 99;
    }

    .site-nav.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .site-nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .site-nav ul li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 0.5rem;
    }

    .d-none-mobile {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 4rem 0 6rem;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

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

    /* Features Overlap */
    .features-overlap {
        margin-top: -3rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        box-shadow: none;
        gap: 1rem;
    }

    .feature-card {
        border-right: none;
        border-radius: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        padding: 2rem;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-placeholder {
        height: 250px;
    }

    /* ===== PAGINATION STYLING ===== */
    /* Based on WordPress structure: nav.navigation.pagination > div.nav-links > [span|a].page-numbers */

    nav.navigation.pagination {
        display: block;
        text-align: center;
        margin: 4rem 0 3rem;
        clear: both;
    }

    nav.navigation.pagination div.nav-links {
        display: inline-flex;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* All page number elements (both links and current page span) */
    nav.navigation.pagination .page-numbers {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 45px;
        height: 45px;
        padding: 0 1rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        color: #64748b;
        background: white;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    /* Hover state for links only */
    nav.navigation.pagination a.page-numbers:hover {
        background: #0d9488;
        color: white;
        border-color: #0d9488;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
    }

    /* Current page (active state) */
    nav.navigation.pagination span.page-numbers.current {
        background: #0d9488;
        color: white;
        border-color: #0d9488;
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
    }

    /* Dots/ellipsis */
    nav.navigation.pagination .page-numbers.dots {
        border: none;
        background: transparent;
        pointer-events: none;
        min-width: auto;
    }

    /* Previous/Next buttons */
    nav.navigation.pagination a.prev.page-numbers,
    nav.navigation.pagination a.next.page-numbers {
        font-weight: 700;
    }

    nav.navigation.pagination a.prev.page-numbers:hover,
    nav.navigation.pagination a.next.page-numbers:hover {
        background: #0f766e;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
        nav.navigation.pagination .page-numbers {
            min-width: 40px;
            height: 40px;
            font-size: 0.875rem;
            padding: 0 0.75rem;
        }
    }

    /* ===== END PAGINATION STYLING ===== */
}

/* END RESPONSIVE BREAKPOINTS @media (max-width: 768px) */

/* ===== MEMBER POPUP STYLING ===== */
.semesta-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.semesta-popup-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.semesta-popup-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.semesta-popup-overlay.show .semesta-popup-modal {
    transform: scale(1);
}

.semesta-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.semesta-popup-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.semesta-popup-content {
    padding: 3rem 2rem 2rem;
}

.semesta-popup-content h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.semesta-popup-content p {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .semesta-popup-modal {
        width: 95%;
        max-width: none;
    }

    .semesta-popup-content {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .semesta-popup-content h2 {
        font-size: 1.5rem;
    }
}



/* ===== END MEMBER POPUP STYLING ===== */


/* Projects */
.posts-grid {
    gap: 1.5rem;
}