/*
Theme Name: Red Door Realty
Description: Gutenberg-first real estate theme with calm and professional styling.
Author: Adam Sisco
Version: 1.0
*/

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.5em;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1em;
}

a {
    color: #DC202B;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wp-block-button .wp-block-button__link {
    background-color: #DC202B;
    color: #FFFFFF;
    border-radius: 6px;
    padding: 0.75em 1.25em;
    font-weight: 600;
    text-transform: uppercase;
}

.alignfull {
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}
/* ========================================
   LAYOUT & CONTAINERS
   ======================================== */

body {
    max-width: 100%;
}

#site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0 2rem;
}

.wp-block-group.alignfull {
    width: calc(100% - 4rem) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}

.wp-block-group {
    padding: 2rem 0;
}

.wp-block-group.alignfull {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Hero sections - contact page full bleed only */
.hero-contact.alignfull {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    flex-shrink: 0;
    margin-left: auto;
}

.hamburger {
    display: block;
    width: 24px;
    height: 16px;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #DC202B;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: 0;
}

.hamburger::after {
    bottom: 0;
}

/* Middle line of hamburger */
.hamburger {
    background: linear-gradient(to right, #DC202B, #DC202B);
    background-size: 100% 2px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Active state for hamburger */
.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 50%;
    transform: rotate(45deg) translateY(-50%);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 50%;
    transform: rotate(-45deg) translateY(50%);
}

/* Mobile navigation */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-navigation {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 100;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-top: 70px;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
    
    .site-navigation.active {
        transform: translateX(0);
    }
    
    /* Ensure menu containers expand to full width */
    .site-navigation > div {
        width: 100%;
    }
    
    .primary-menu {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .primary-menu > li {
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
    }
    
    .primary-menu > li > a {
        display: block;
        padding: 1rem 1.5rem;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        width: 100%;
        box-sizing: border-box;
    }
    
    .primary-menu > li > a:hover {
        background-color: #f9f9f9;
        color: #DC202B;
    }
}

/* Desktop navigation */
@media (min-width: 768px) {
    .site-navigation {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        transform: translateX(0);
    }
    
    .primary-menu {
        display: flex;
        flex-direction: row;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 2rem;
    }
    
    .primary-menu > li {
        border-bottom: none;
    }
    
    .primary-menu > li > a {
        display: block;
        padding: 0;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .primary-menu > li > a:hover {
        color: #DC202B;
        background-color: transparent;
    }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-logo {
    display: flex;
    flex-shrink: 0;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.site-navigation {
    display: flex;
    gap: 2rem;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.primary-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.2s;
}

.primary-menu a:hover {
    color: #DC202B;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero-home,
.hero-about,
.hero-buyer,
.hero-seller {
    background-color: #f5f5f5;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-home h1,
.hero-about h1,
.hero-buyer h1,
.hero-seller h1 {
    font-size: 48px;
    margin-bottom: -1rem;
}

.hero-home p,
.hero-about p,
.hero-buyer p,
.hero-seller p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
}

/* ========================================
   COLUMNS & SECTIONS
   ======================================== */

.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.wp-block-column {
    display: flex;
    flex-direction: column;
}

/* ========================================
   SPECIFIC SECTIONS
   ======================================== */

.how-we-work {
    padding: 3rem 0;
}

/* Buyer Help & Seller Prep - Numbered Badges with Cards */
.buyer-help,
.seller-prep {
    background-color: #f9f9f9;
}

.buyer-help h2,
.seller-prep h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.buyer-help .wp-block-columns,
.seller-prep .wp-block-columns {
    gap: 2rem;
}

.buyer-help .wp-block-column,
.seller-prep .wp-block-column {
    background-color: #fff;
    padding: 2.5rem 2rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
}

.buyer-help .wp-block-column:hover,
.seller-prep .wp-block-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.buyer-help .wp-block-column p:first-child,
.seller-prep .wp-block-column p:first-child {
    font-weight: 600;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0;
}

.buyer-help .wp-block-column p,
.seller-prep .wp-block-column p {
    margin-bottom: 0;
}

/* Large numbered badges */
.buyer-help .wp-block-column::before,
.seller-prep .wp-block-column::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #DC202B;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 28px;
    margin: -70px auto 1rem;
    position: relative;
}

.buyer-help .wp-block-column:nth-child(1)::before {
    content: '1';
}

.buyer-help .wp-block-column:nth-child(2)::before {
    content: '2';
}

.buyer-help .wp-block-column:nth-child(3)::before {
    content: '3';
}

.seller-prep .wp-block-column:nth-child(1)::before {
    content: '1';
}

.seller-prep .wp-block-column:nth-child(2)::before {
    content: '2';
}

.seller-prep .wp-block-column:nth-child(3)::before {
    content: '3';
}

.simple-process {
    background-color: #f5f5f5;
    text-align: center;
    padding: 4rem 2rem;
}

.simple-process h2 {
    margin-bottom: 3rem;
}

.simple-process .wp-block-columns {
    gap: 2rem;
    margin-bottom: 0;
}

.simple-process .wp-block-columns {
    gap: 2rem;
    margin-bottom: 0;
    display: grid;
}

/* Hide buyer-guide section */
.buyer-guide.hidden {
    display: none;
}

.seller-guide.hidden {
    display: none;
}

/* Buyer Worries section */
.buyer-worries {
    text-align: center;
    background-color: #fff;
}

.buyer-worries h2 {
    margin-bottom: 1rem;
    font-size: 32px;
}

.buyer-worries > p:first-of-type {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    color: #666;
    margin-bottom: 2rem;
}

.buyer-worries .wp-block-image {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Seller Worries section */
.seller-worries {
    text-align: center;
    background-color: #fff;
}

.seller-worries h2 {
    margin-bottom: 1rem;
    font-size: 32px;
}

.seller-worries > p:first-of-type {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    color: #666;
    margin-bottom: 2rem;
}

.seller-worries .wp-block-image {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    overflow: hidden;
}   

/* Default 4 columns on desktop */
.simple-process .wp-block-columns {
    grid-template-columns: repeat(4, 1fr);
}

/* Force 2 columns on tablets */
@media (max-width: 960px) {
    .simple-process .wp-block-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Force 1 column on mobile */
@media (max-width: 640px) {
    .simple-process .wp-block-columns {
        grid-template-columns: 1fr;
    }
}

.simple-process .wp-block-column {
    flex: 1;
}

.process-step {
    padding: 1.5rem 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.process-icon {
    font-size: 48px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.process-step h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: #000;
    padding: 0 0.5rem;
}

.process-step p {
    margin: 0;
    padding: 0 2rem;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: #333;
    color: #fff;
    padding: 0;
    margin-top: 4rem;
}

.footer-bottom {
    padding: 1rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Stack on mobile */
@media (max-width: 640px) {
    .footer-bottom p {
        font-size: 13px;
    }
}

.rd-contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.rd-contact-left {
    flex: 1;
}

.rd-contact-right {
    flex: 0 0 40%;
}

@media (max-width: 768px) {
    .rd-contact-columns {
        flex-direction: column;
    }
    .rd-contact-right {
        flex: 1;
    }
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .site-navigation {
        gap: 1rem;
    }

    .primary-menu {
        gap: 1rem;
        font-size: 14px;
    }

    .hero-home h1,
    .hero-buyer h1,
    .hero-seller h1 {
        font-size: 32px;
    }

    #site-content {
        padding: 0 1rem;
    }

    .wp-block-columns {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
    background-color: #f5f5f5;
}

.testimonials h2 {
    margin-bottom: 2rem;
}

.testimonial-card {
    background-color: #fff;
    border-left: 4px solid #DC202B;
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #333;
    line-height: 1.7;
}

.testimonial-quote p {
    margin: 0;
    font-size: 14px;
}

.testimonial-author {
    border-top: 1px solid #e8e8e8;
    padding-top: 1rem;
    text-align: center;
}

.testimonial-author strong {
    display: block;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-author small {
    display: block;
    color: #666;
    font-size: 12px;
}

/* ========================================
   CHOOSE PATH
   ======================================== */

.choose-path {
    background-color: #fff;
}

.path-card {
    background-color: #f5f5f5;
    border-top: 4px solid #DC202B;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.path-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.path-icon {
    font-size: 56px;
    margin-bottom: 1rem;
    display: inline-block;
}

.path-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #000;
}

.path-card p {
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   HOW WE WORK
   ======================================== */

.how-we-work {
    background-color: #fff;
}

.how-we-work h2 {
    margin-bottom: 1.5rem;
}

.how-we-work p {
    color: #333;
    line-height: 1.8;
}

/* ========================================
   SHORT BIO / MEET OUR TEAM
   ======================================== */

.short-bio {
    background-color: #f5f5f5;
}

.bio-image {
    padding-right: 2rem;
}

.bio-image img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bio-content h2 {
    margin-bottom: 1.5rem;
    color: #000;
}

.bio-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ========================================
   SOFT CLOSE
   ======================================== */

.soft-close {
    background: linear-gradient(135deg, #DC202B 0%, rgba(220, 32, 43, 0.8) 100%);
    color: #fff;
    border-radius: 8px;
    margin: 2rem;
}

.soft-close h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.soft-close p {
    color: #f0f0f0;
    font-size: 18px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.soft-close .wp-block-button__link {
    background-color: #fff;
    color: #DC202B;
    font-weight: 700;
}

.soft-close .wp-block-button__link:hover {
    background-color: #f0f0f0;
}

/* ========================================
   ABOUT PAGE - TEAM GRID
   ======================================== */

.about-team {
    background-color: #f5f5f5;
}

.about-team h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.about-team > p {
    text-align: center;
    margin-bottom: 3rem;
}

.about-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.about-team h2,
.about-team > p {
    width: 100%;
}

.wp-block-columns.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.wp-block-columns.team-grid .team-member {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
    min-width: 0;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.team-member-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-portrait {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    padding: 0 20px 0;
}

.team-member h3 {
    margin: 0 0 0.5rem 0;
    color: #000;
}

.team-member p {
    margin: 0.5rem 0;
    color: #666;
}

.team-member a {
    color: #DC202B;
    text-decoration: none;
}

.team-member a:hover {
    text-decoration: underline;
}

/* ========================================
   TEAM MEMBER MODAL
   ======================================== */

.team-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.team-modal-overlay.active {
    display: flex;
}

.team-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-modal-close:hover {
    color: #DC202B;
}

.team-modal-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.team-modal-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.team-modal-image {
    width: auto;
}

.team-modal-image img {
    width: auto;
    height: auto;
    max-width: 60vw;
    max-height: 40vh;
    border-radius: 8px;
}

.team-modal-left h2 {
    margin: 0.25rem 0 0 0;
    font-size: 1.25rem;
}

.team-modal-title {
    margin: 0.1rem 0 0 0;
    color: #DC202B;
    font-weight: 600;
    font-size: 0.9rem;
}

.team-modal-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.team-modal-contact {
    margin: 0;
    padding: 0;
    border: none;
}

.team-modal-contact p {
    margin: 0.15rem 0;
    font-size: 0.85rem;
}

.team-modal-bio {
    display: none;
    white-space: pre-line;
}

/* Larger screens - 2 column layout */
@media (min-width: 768px) {
    .team-modal-content {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .team-modal-image {
        max-width: none;
        max-height: none;
    }
    
    .team-modal-left {
        flex: 0 0 40%;
    }
    
    .team-modal-image {
        width: 100%;
    }
    
    .team-modal-image img {
        max-height: 300px;
    }
    
    .team-modal-right {
        flex: 1 1 60%;
        gap: 1rem;
        text-align: left;
    }
    
    .team-modal-header {
        margin-bottom: 0.5rem;
    }
    
    .team-modal-header h2 {
        margin: 0 0 0.1rem 0;
        font-size: 1.4rem;
    }
    
    .team-modal-header .team-modal-title {
        margin: 0;
        font-size: 0.95rem;
    }
    
    .team-modal-contact {
        padding: 0;
    }
    
    .team-modal-contact p {
        font-size: 0.9rem;
        margin: 0.2rem 0;
    }
    
    .team-modal-bio {
        display: block;
        line-height: 1.6;
        color: #555;
        font-size: 0.9rem;
        padding-bottom: 20px;
        white-space: pre-line;
    }
}

/* Team member card styling - make clickable */
.team-member-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.team-member-trigger:hover .team-portrait {
    opacity: 0.8;
}

.team-member-trigger h3 {
    color: #000;
}

.team-member-trigger:hover h3 {
    color: #DC202B;
}

.team-portrait {
    transition: opacity 0.3s;
}

/* WPForms button styling */
.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form input[type="submit"] {
    background-color: #DC202B !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s !important;
}

.wpforms-container .wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-form input[type="submit"]:hover {
    background-color: #b01a24 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 32, 43, 0.3) !important;
}

.wpforms-container .wpforms-form button[type="submit"]:active,
.wpforms-container .wpforms-form input[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Responsive team grid */
@media (max-width: 1200px) {
    .wp-block-columns.team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .wp-block-columns.team-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Upper Section - 3 Column Info */
.footer-upper {
    background-color: #DC202B;
    color: #FFFFFF;
    padding: 3rem 2rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.footer-upper-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.footer-col p {
    color: #FFFFFF;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.footer-col a {
    color: #FFFFFF;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.footer-col a:hover {
    text-decoration: underline;
}

.owner-image {
    margin-bottom: 0.5rem;
}

.owner-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-col-owner h3 {
    margin: 0 0 0.75rem 0;
}

.owner-title {
    font-size: 0.85rem;
    color: #f0f0f0;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.owner-contact p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* About Column */
.footer-col-about p {
    text-align: left;
    margin-bottom: 1rem;
}

/* Address Column */
.footer-col-address {
    text-align: left;
}

/* Mobile - Stack to single column */
@media (max-width: 960px) {
    .footer-upper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .footer-col-owner,
    .footer-col-about,
    .footer-col-address {
        text-align: center;
    }
    
    .footer-col-about p {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-upper {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .footer-col h3 {
        font-size: 1rem;
    }
    
    .footer-col p {
        font-size: 0.85rem;
    }
    
    .owner-image img {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   CHARITABLE EVENTS PAGE
   ======================================== */

.hero-charitable-events {
    background-color: #f5f5f5;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.hero-charitable-events .hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-charitable-events h1 {
    font-size: 48px;
    color: #000;
    margin: 0 0 1rem 0;
}

.hero-charitable-events p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Charitable Events Section */
.charitable-events-container {
    max-width: 1200px;
    margin: 0 auto;
}

.charity-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 5rem 2rem;
    border-bottom: 1px solid #eee;
}

.charity-event:last-child {
    border-bottom: none;
}

.bg-white {
    background-color: #fff;
}

.bg-light-gray {
    background-color: #f9f9f9;
}

.charity-event.image-right {
    direction: rtl;
}

.charity-event.image-right > * {
    direction: ltr;
}

/* Full-width image layout */
.charity-event.full-width-image {
    display: block;
    padding: 5rem 2rem;
}

.charity-event.full-width-image .charity-event-image {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.charity-event.full-width-image .charity-event-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.charity-event-image {
    overflow: hidden;
    border-radius: 8px;
}

/* YouTube Video Embed */
.charity-event-video {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.charity-event-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.charity-event-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
}

.charity-event-content h2 {
    font-size: 2rem;
    color: #000;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.3;
    text-align: center;
}

.charity-event-subtitle {
    font-size: 1.2rem;
    color: #DC202B;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    text-align: center;
}

.charity-event-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
}

.charity-event-copy {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    white-space: pre-line;
}


.cta-button {
    display: inline-block;
    background-color: #DC202B;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    background-color: #b01a24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 32, 43, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Tablet - Still 2 columns, adjust gap */
@media (max-width: 960px) {
    .charity-event {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2.5rem 2rem;
    }
    
    .charity-event.image-right {
        direction: ltr;
    }
    
    .charity-event-content h2 {
        font-size: 1.5rem;
    }
}

/* Mobile - Stack single column */
@media (max-width: 640px) {
    .charitable-events-container {
        padding: 0 1rem;
    }
    
    .charity-event {
        padding: 1.5rem 0;
    }
    
    .charity-event-image {
        margin-bottom: 1rem;
    }
    
    .charity-event-content h2 {
        font-size: 1.25rem;
    }
    
    .charity-event-content p {
        font-size: 0.9rem;
    }
    
    .hero-charitable-events h1 {
        font-size: 2rem;
    }
    
    .hero-charitable-events p {
        font-size: 1rem;
    }
}

/* ========================================
   ABOUT PAGE - CHARITABLE WORK SECTION
   ======================================== */

.about-charitable-work {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.charitable-work-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.charitable-work-image {
    overflow: hidden;
    border-radius: 8px;
}

.charitable-work-image img {
    width: 100%;
    height: auto;
    display: block;
}

.charitable-work-content h2 {
    font-size: 2rem;
    color: #000;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.charitable-work-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
}

.charitable-work-content .cta-button {
    display: inline-block;
}

/* Tablet - Stack to single column */
@media (max-width: 960px) {
    .charitable-work-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile - Adjust spacing */
@media (max-width: 640px) {
    .about-charitable-work {
        padding: 2rem;
    }
    
    .charitable-work-container {
        gap: 1rem;
    }
    
    .charitable-work-content h2 {
        font-size: 1.5rem;
    }
    
    .charitable-work-content p {
        font-size: 0.9rem;
    }
}

/* Signup Modals */
.signup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.signup-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.signup-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    z-index: 1001;
}

.signup-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-modal-close:hover {
    color: #DC202B;
}

.signup-modal h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    color: #000;
}

.signup-modal p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #DC202B;
    box-shadow: 0 0 0 3px rgba(220, 32, 43, 0.1);
}

.optional {
    color: #999;
    font-weight: normal;
    font-size: 0.85rem;
}

.signup-submit {
    background-color: #DC202B;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.signup-submit:hover {
    background-color: #b01a24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 32, 43, 0.3);
}

.signup-submit:active {
    transform: translateY(0);
}

.signup-success {
    text-align: center;
    color: #27ae60;
    font-weight: 600;
    font-size: 1.1rem;
}

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

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

@media (max-width: 640px) {
    .signup-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .signup-modal h2 {
        font-size: 1.5rem;
    }

    .signup-modal p {
        font-size: 0.9rem;
    }
}

