/*
Theme Name: AHCT Theme
Description: Custom theme for Association for Hispanic Classical Theater (AHCT) - Converted from static HTML site
Version: 1.1
Author: Jacob
*/
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Deep Red Background */
.site-header {
    background-color: #8B0000; /* Deep red */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.nav-container {
    width: 100vw; /* span full viewport */
    margin: 0;
    padding: 0 0 0 0; /* no left padding */
    display: flex;
    justify-content: center; /* center contents within header */
    align-items: center;
    min-height: 80px; /* Increased from 60px */
}

/* Center the inner nav wrapper and its menu */
.nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

/* Nav items: unify Homepage link and dropdown buttons for exact alignment */
.nav-menu > .home-link-btn,
.nav-menu .dropbtn {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600; /* match */
    text-decoration: none;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
    background: transparent;
    transition: all 0.3s ease;
}
.nav-menu > .home-link-btn:hover,
.nav-menu .dropbtn:hover { color: #ffffff; background-color: rgba(255,255,255,0.10); }

/* Additional safety override for any img tag with ahct-logo class */
img.ahct-logo {
    height: 68px !important;
    max-width: 150px !important;
    width: auto !important;
    object-fit: contain !important;
}

.nav-menu {
    display: flex;
    gap: 30px;
    padding: 0 20px; /* balanced padding when centered */
    margin: 0 auto; /* center the nav menu block */
    justify-content: center; /* center nav items */
    align-items: center;
}
.dropdown {
    position: relative;
    display: flex; /* ensure vertical centering like other items */
    align-items: center;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1; /* unify */
    display: inline-flex; /* unify */
    align-items: center;  /* unify */
    border: none;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    background-color: rgba(255,255,255,0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    top: 100%;
    right: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #8B0000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content Area - White Background */
.main-content {
    background-color: white;
    min-height: calc(100vh - 60px);
}

/* Title Section */
.title-section {
    text-align: center;
    padding: 40px 0 30px;
    background-color: white;
}

.main-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.red-text {
    color: #8B0000; /* Red AHCT */
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
}

/* Main Layout with Sidebars */
.main-layout {
    padding: 20px 0 60px;
}

.layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styles */
.left-sidebar,
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-box {
    background-color: white;
    border: 3px solid #8B0000; /* Red border */
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139,0,0,0.2);
}

.sidebar-box a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.sidebar-box:hover a {
    color: #8B0000;
}

/* Large box for right sidebar */
.large-box {
    padding: 25px 15px;
}

.large-box h3 {
    color: #8B0000;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.membership-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-link {
    display: block;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #8B0000;
    border-radius: 5px;
    text-decoration: none;
    color: #8B0000;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.action-link:hover {
    background-color: #8B0000;
    color: white;
}

/* Central Content Area */
.central-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.central-content h2 {
    font-family: 'Crimson Text', serif;
    color: #8B0000;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2rem;
}

.flyers-photos-area {
    min-height: 400px;
}

.content-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.content-placeholder h3 {
    color: #8B0000;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

    /* =========================
       Homepage: News/Flyers cards
       Constrain images to boxes and align layout
       ========================= */
    .content-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .featured-announcement {
        margin-bottom: 30px;
        padding: 25px;
        background: #f8f9fa;
        color: #333;
        border-radius: 12px;
        border: 2px solid #8B0000;
    }

    .hesse-grant-featured {
        display: flex;
        gap: 25px;
        align-items: center;
    }

    .grant-poster {
        position: relative;
        flex-shrink: 0;
    }

    /* Confine featured images to a fixed card size */
    .grant-image {
        width: 200px;
        height: 280px;
        object-fit: cover;
        border-radius: 8px;
        border: 3px solid #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        display: block;
    }

    .poster-placeholder {
        width: 200px;
        height: 280px;
        background: rgba(255,255,255,0.9);
        color: #333;
        border-radius: 8px;
        border: 3px solid #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .grant-info {
        flex: 1;
    }

    .grant-info h3 {
        font-size: 1.6rem;
        margin-bottom: 12px;
        color: #333;
    }

    .grant-info p {
        font-size: 1rem;
        margin-bottom: 14px;
        color: #555;
    }

    .post-meta {
        font-size: 0.9rem;
        color: #666;
    }

    .post-meta .category {
        color: #8B0000;
        font-weight: 600;
    }

    /* Generic safety: prevent images from overflowing containers */
    .content-grid img,
    .featured-announcement img,
    .central-content img,
    .wp-block-image img {
        max-width: 100%;
        height: auto;
    }

    /* Also constrain generic WordPress post images */
    img.wp-post-image {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* =========================
       Central Hero Carousel (homepage)
       ========================= */
    .central-carousel {
        position: relative;
    }

    .central-carousel .hero-carousel {
        position: relative;
        width: 100%;
        min-height: 320px;
        border-radius: 10px;
        overflow: hidden; /* keep slides contained */
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    }

    .central-carousel .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;       /* ensure background images fill but don't distort */
        background-position: center;  /* center focal point */
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .central-carousel .hero-slide.active {
        opacity: 1;
    }

    .central-carousel .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .central-carousel .hero-content {
        color: #fff;
        text-align: center;
        padding: 20px;
    }

    .central-carousel .hero-title {
        font-family: 'Crimson Text', serif;
        font-size: 2rem;
        margin: 0 0 8px 0;
    }

    .central-carousel .hero-subtitle {
        font-size: 1rem;
        opacity: 0.9;
    }

    @media (max-width: 768px) {
        .hesse-grant-featured {
            flex-direction: column;
            text-align: center;
        }
        .grant-image,
        .poster-placeholder {
            width: 150px;
            height: 210px;
        }
    }

.sample-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

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

.sample-image {
    background-color: #f8f9fa;
    border: 2px dashed #ccc;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #666;
    font-style: italic;
}

.sample-item p {
    font-weight: 600;
    color: #333;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-section p,
.footer-section li {
    margin-bottom: 8px;
    color: #bdc3c7;
}

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ecf0f1;
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-family: 'Crimson Text', serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B0000;
}

.btn {
    background: #8B0000;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #A52A2A;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Conference Fee Styles */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fee-table th,
.fee-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.fee-table th {
    background: #8B0000;
    color: white;
    font-weight: 600;
}

.fee-table tr:last-child td {
    border-bottom: none;
}

.fee-table tr:hover {
    background: #f8f9fa;
}

/* Contact Page Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-card h3 {
    color: #8B0000;
    margin-bottom: 15px;
}

.contact-card a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-section p,
.footer-section li {
    margin-bottom: 8px;
    color: #bdc3c7;
}

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ecf0f1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .layout-container {
        grid-template-columns: 180px 1fr 180px;
        gap: 20px;
    }
    
    .sidebar-box {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    
    .main-title {
        font-size: 2.3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        position: relative;
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .nav-menu.mobile-active {
        display: flex;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropbtn {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-top: 5px;
    }
    
    .layout-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .left-sidebar,
    .right-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar-box {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
        margin: 5px;
    }
    
    .large-box {
        flex: 1;
        min-width: 250px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .central-content {
        padding: 20px;
    }
    
    .sample-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .left-sidebar,
    .right-sidebar {
        flex-direction: column;
    }
    
    .sidebar-box {
        margin: 0;
        max-width: none;
    }
    
    .main-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .title-section {
        padding: 30px 0 20px;
    }
    
    .layout-container {
        padding: 0 10px;
        gap: 20px;
    }
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3,
.form-section h4 {
    color: #8B0000;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Membership Form Styles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #8B0000;
}

.benefit-card h3 {
    color: #8B0000;
    margin-bottom: 10px;
}

.membership-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.membership-option {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.membership-option:has(input:checked) {
    border-color: #8B0000;
    background: #f8f9fa;
}

.membership-option input[type="radio"] {
    margin-right: 10px;
}

.membership-option label {
    cursor: pointer;
    display: block;
}

.membership-option strong {
    color: #8B0000;
    font-size: 1.1rem;
}

/* Conference Form Styles */
.conference-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 30px 0;
    border-left: 5px solid #8B0000;
}

.conference-details {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.fee-breakdown {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #8B0000;
}

.fee-amount {
    font-size: 1.2rem;
    color: #8B0000;
    margin: 10px 0;
}

.discount-message {
    background: #e8f5e8;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.warning-message {
    background: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.success-message {
    background: #d4edda;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.quick-actions {
    text-align: center;
    margin: 40px 0;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Conference Reminders */
.conference-reminders {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.reminder-list {
    display: grid;
    gap: 15px;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #8B0000;
}

.reminder-date {
    font-weight: 600;
    color: #8B0000;
}

/* Session Selection */
.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.session-option {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.session-option:hover {
    background: #e9ecef;
}

.session-option input[type="checkbox"] {
    margin-right: 8px;
}

/* File Upload Styles */
.file-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

input[type="file"] {
    padding: 8px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    background: #f8f9fa;
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.info-card h3 {
    color: #8B0000;
    margin-bottom: 15px;
}

/* Officer Grid */
.officer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.officer-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.officer-card h4 {
    color: #8B0000;
    margin-bottom: 10px;
}

/* Update Options */
.update-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.update-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.update-card h3 {
    color: #8B0000;
    margin-bottom: 15px;
}

/* Conference Archive */
.conference-list {
    list-style: none;
    padding: 0;
}

.conference-list li {
    padding: 15px;
    border-bottom: 1px solid #e1e5e9;
    font-style: italic;
    color: #666;
}

.conference-list li:last-child {
    border-bottom: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .nav-menu.mobile-active {
        display: flex;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropbtn {
        width: 100%;
        text-align: left;
    }
    
    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-top: 5px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .reminder-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .session-grid {
        grid-template-columns: 1fr;
    }
    
    .fee-table {
        font-size: 0.9rem;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 10px 8px;
    }
}


/* Join Us page styles */
body.page-template-page-join-us,
body.ahct-join-us-active,
body:has(.joinus-wrapper) {
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ee 55%, #f0ede6 100%);
}

body.page-template-page-join-us .site-main,
body.ahct-join-us-active .site-main,
body:has(.joinus-wrapper) .site-main {
    padding: 0;
}

.joinus-wrapper {
    --join-red: #8b0000;
    --join-gold: #f3d27c;
    --join-ink: #1e1b18;
    --join-cream: #f9f5ed;
    --join-slate: #2c3e50;
    --join-sand: #efe7d6;
    width: min(1100px, 100% - 48px);
    margin: clamp(32px, 5vw, 64px) auto clamp(64px, 9vw, 108px);
    padding: clamp(32px, 5vw, 64px);
    border-radius: 32px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 245, 237, 0.92) 100%);
    box-shadow: 0 40px 80px rgba(12, 26, 75, 0.12);
    display: grid;
    gap: clamp(40px, 6vw, 72px);
    color: var(--join-ink);
}

.joinus-wrapper a {
    color: var(--join-red);
    font-weight: 600;
}

.joinus-wrapper .hero {
    background: var(--join-red);
    padding: clamp(32px, 6vw, 64px);
    border-radius: 26px;
    color: #ffffff;
    display: grid;
    gap: 20px;
    box-shadow: 0 32px 68px rgba(139, 0, 0, 0.35);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "kicker"
        "title"
        "copy"
        "buttons"
        "aside";
}

.joinus-wrapper .hero .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    grid-area: kicker;
}

.joinus-wrapper .hero h1 {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2.4rem, 3.2vw + 1.4rem, 3.6rem);
    line-height: 1.08;
    margin: 0;
    grid-area: title;
}

.joinus-wrapper .hero p {
    font-size: clamp(1.06rem, 0.9vw + 1rem, 1.24rem);
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.joinus-wrapper .hero > p:not(.kicker) {
    grid-area: copy;
}

.joinus-wrapper .hero .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    grid-area: buttons;
}

.joinus-wrapper .hero .button-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.joinus-wrapper .hero .button-row a.primary {
    background: var(--join-gold);
    color: var(--join-ink);
    box-shadow: 0 16px 32px rgba(243, 210, 124, 0.45);
}

.joinus-wrapper .hero .button-row a.outline {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.joinus-wrapper .hero .button-row a:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.24);
}

.joinus-wrapper .hero aside {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    grid-area: aside;
}

.joinus-wrapper .hero aside a {
    color: #ffffff;
    text-decoration: underline;
}

.joinus-wrapper .section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.joinus-wrapper .section-header h2 {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.9rem, 2.4vw + 1.2rem, 2.6rem);
    margin: 0;
    color: var(--join-slate);
}

.joinus-wrapper .section-header p,
.joinus-wrapper .section-header strong {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(30, 27, 24, 0.78);
}

.joinus-wrapper .option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(20px, 3vw, 28px);
}

.joinus-wrapper .option-card {
    background: linear-gradient(165deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 60%, rgba(239, 231, 214, 0.9) 100%);
    border-radius: 20px;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid rgba(139, 0, 0, 0.14);
    box-shadow: 0 18px 40px rgba(12, 26, 75, 0.12);
    display: grid;
    gap: 14px;
}

.joinus-wrapper .option-card.recommended {
    border: 2px solid var(--join-gold);
    box-shadow: 0 28px 56px rgba(243, 210, 124, 0.28);
}

.joinus-wrapper .option-card h3 {
    margin: 0;
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    color: var(--join-slate);
}

.joinus-wrapper .option-card p {
    margin: 0;
    color: rgba(30, 27, 24, 0.76);
    line-height: 1.55;
}

.joinus-wrapper .option-card p.price {
    font-size: clamp(2.1rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--join-red);
}

.joinus-wrapper .option-card p.price span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(30, 27, 24, 0.6);
}

.joinus-wrapper .option-card ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: rgba(30, 27, 24, 0.74);
    line-height: 1.55;
}

.joinus-wrapper .flow-list {
    counter-reset: join-step;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

.joinus-wrapper .flow-list li {
    position: relative;
    counter-increment: join-step;
    padding: 20px 24px 20px 64px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(12, 26, 75, 0.1);
    border: 1px solid rgba(30, 27, 24, 0.08);
    display: grid;
    gap: 10px;
}

.joinus-wrapper .flow-list li::before {
    content: counter(join-step);
    position: absolute;
    top: 20px;
    left: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--join-red);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 700;
    box-shadow: 0 16px 32px rgba(139, 0, 0, 0.28);
}

.joinus-wrapper .flow-list h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--join-slate);
}

.joinus-wrapper .flow-list p {
    margin: 0;
    font-size: 0.98rem;
    color: rgba(30, 27, 24, 0.75);
    line-height: 1.55;
}

.joinus-wrapper .flow-list .step-note {
    font-size: 0.9rem;
    color: rgba(30, 27, 24, 0.62);
    line-height: 1.5;
}

.joinus-wrapper .form-shell {
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(30, 27, 24, 0.08);
    box-shadow: 0 24px 48px rgba(12, 26, 75, 0.14);
    padding: clamp(32px, 4vw, 52px);
    display: grid;
    gap: clamp(28px, 4vw, 40px);
}

.joinus-wrapper .form-hint {
    font-size: 0.92rem;
    color: rgba(30, 27, 24, 0.68);
}

.joinus-wrapper .form-hint .required {
    color: var(--join-red);
    font-weight: 600;
}

.joinus-wrapper .support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.joinus-wrapper .support-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 237, 0.9));
    border: 1px solid rgba(30, 27, 24, 0.06);
    border-radius: 18px;
    padding: clamp(24px, 3vw, 32px);
    box-shadow: 0 18px 32px rgba(12, 26, 75, 0.12);
    display: grid;
    gap: 12px;
}

.joinus-wrapper .support-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--join-slate);
}

.joinus-wrapper .support-card p,
.joinus-wrapper .support-card li {
    margin: 0;
    line-height: 1.6;
    color: rgba(30, 27, 24, 0.78);
}

.joinus-wrapper .support-card .form-support {
    font-size: 0.95rem;
    color: rgba(30, 27, 24, 0.7);
}

.joinus-wrapper .support-card a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.joinus-wrapper .support-card .resource-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

@media (max-width: 1024px) {
    .joinus-wrapper {
        padding: clamp(28px, 6vw, 52px);
    }
}

@media (min-width: 900px) {
    .joinus-wrapper {
        gap: clamp(48px, 6vw, 80px);
    }

    .joinus-wrapper .hero {
        grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
        grid-template-areas:
            "kicker kicker"
            "title aside"
            "copy aside"
            "buttons aside";
        align-items: start;
    }

    .joinus-wrapper .hero aside {
        margin-left: auto;
        align-self: stretch;
        display: flex;
        align-items: flex-start;
    }

    .joinus-wrapper .flow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .joinus-wrapper .flow-list li {
        height: 100%;
    }
}

@media (min-width: 1024px) {
    .joinus-wrapper .support-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 1200px) {
    .joinus-wrapper .option-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .joinus-wrapper .flow-list li {
        padding-left: 72px;
    }

    .joinus-wrapper .flow-list li::before {
        top: 24px;
        left: 24px;
    }
}

@media (max-width: 840px) {
    .joinus-wrapper {
        padding: 28px 20px 48px;
        border-radius: 26px;
    }

    .joinus-wrapper .hero {
        padding: clamp(24px, 6vw, 48px);
    }

    .joinus-wrapper .hero .button-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .joinus-wrapper .flow-list li {
        padding-left: 60px;
    }

    .joinus-wrapper .support-grid {
        grid-template-columns: 1fr;
    }
}
