/* Soft, Contemplative Color Variables */
:root {
    --soft-blue: #4f6d8e;
    --muted-blue: #5a7a99;
    --sage-green: #7a8471;
    --warm-taupe: #8b7d6b;
    --gentle-gold: #b8860b;
    --soft-gold: #d4af37;
    --cream: #f8f6f0;
    --warm-white: #fdfcf7;
    --soft-gray: #6b7280;
    --light-gray: #9ca3af;
    --gentle-shadow: rgba(0, 0, 0, 0.08);
    --soft-border: #e8e5df;
}

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

body {
    font-family: 'Crimson Text', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--soft-gray);
    background: var(--warm-white);
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

h2 {
    font-size: 2.2rem;
    color: var(--soft-blue);
    margin-bottom: 0.5rem;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    color: var(--warm-taupe);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-style: italic;
    color: var(--light-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--muted-blue) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 15px var(--gentle-shadow);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-donate {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header-donate-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.header-donate-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .header-donate {
        position: static;
        transform: none;
        margin-top: 1rem;
        text-align: center;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.title-section h1 {
    font-size: 1.6rem;
    margin: 0;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4a6fa5 0%, #6b9bd2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.95;
}

/* Tab Navigation */
.main-content {
    padding: 2rem 0 4rem;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--soft-border);
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--soft-blue);
    background: var(--cream);
}

.tab-btn.active {
    color: var(--warm-taupe);
    border-bottom-color: var(--gentle-gold);
    background: var(--cream);
}

/* Tab Content */
.tab-content {
    min-height: 500px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-pane.active {
    display: block;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.profile-photo {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--gentle-shadow);
}

.bio-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.bio-content p {
    margin-bottom: 1.5rem;
    color: var(--soft-gray);
}

.credentials {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid var(--gentle-gold);
    box-shadow: 0 2px 10px var(--gentle-shadow);
}

.credentials h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--warm-taupe);
}

.credentials ul {
    list-style: none;
}

.credentials li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--soft-border);
    color: var(--soft-gray);
}

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

/* Mission Section */
.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--soft-gray);
}

.mission-text p {
    margin-bottom: 1.5rem;
}

.kabbalah-explanation {
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--soft-border);
    box-shadow: 0 4px 15px var(--gentle-shadow);
}

.kabbalah-explanation h3 {
    margin-bottom: 1rem;
    color: var(--warm-taupe);
}

.flows {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.flow-item {
    padding: 1rem;
    background: var(--warm-white);
    border-radius: 8px;
    border-left: 3px solid var(--gentle-gold);
    box-shadow: 0 2px 8px var(--gentle-shadow);
}

.offerings {
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--soft-border);
    box-shadow: 0 4px 15px var(--gentle-shadow);
}

.offerings h3 {
    margin-bottom: 1.5rem;
    color: var(--warm-taupe);
}

.offerings ul {
    list-style: none;
}

.offerings li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--soft-border);
    color: var(--soft-gray);
    position: relative;
    padding-left: 1.5rem;
}

.offerings li:before {
    content: '•';
    color: var(--gentle-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

/* Books Section */
.books-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.book {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    align-items: start;
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--soft-border);
    box-shadow: 0 4px 15px var(--gentle-shadow);
    transition: all 0.3s ease;
}

.book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--gentle-shadow);
}

.book-cover {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 15px var(--gentle-shadow);
}

.book-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--soft-blue);
}

.book-info p {
    color: var(--soft-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.book-link {
    display: inline-block;
    background: var(--gentle-gold);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.book-link:hover {
    background: var(--soft-gold);
    transform: translateY(-1px);
}

/* Programs Section */
.study-group-highlight {
    background: linear-gradient(135deg, #4a6fa5 0%, #6b9bd2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px var(--gentle-shadow);
}

.study-group-highlight h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Recorded Courses Section */
.recorded-courses-highlight {
    background: linear-gradient(135deg, var(--warm-taupe) 0%, var(--gentle-gold) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px var(--gentle-shadow);
}

.recorded-courses-highlight h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.recorded-courses-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.course-icon {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subheading-center {
    text-align: center;
    font-size: 1rem;          /* normal body size */
    margin-bottom: 1.5rem;
}

.recorded-courses-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.recorded-courses-info strong {
    color: var(--cream);
}

.course-links.compact {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.course-year {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-year strong {
    color: var(--cream);
    min-width: 45px;
}

.course-year a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 0 0.3rem;
    transition: all 0.3s ease;
}

.course-year a:hover {
    color: white;
    text-decoration: underline;
}

.multi-session {
    color: rgba(255, 255, 255, 0.95);
}

.course-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.course-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.year-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--cream);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-content > a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-content > a:hover {
    color: white;
    text-decoration: underline;
}

.multi-part {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.multi-part > span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.parts {
    display: flex;
    gap: 0.8rem;
    padding-left: 1rem;
}

.parts a {
    color: var(--cream);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
}

.parts a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.study-group-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.schedule {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.study-group-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.study-group-info a {
    color: var(--soft-gold);
    text-decoration: none;
    font-weight: 600;
}

.study-group-info a:hover {
    color: white;
}

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

.program {
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--soft-border);
    box-shadow: 0 4px 15px var(--gentle-shadow);
    transition: all 0.3s ease;
}

.program:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--gentle-shadow);
}

.program h3 {
    color: var(--soft-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.program p {
    color: var(--soft-gray);
    line-height: 1.6;
}

.program-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--gentle-shadow);
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 2rem auto 0;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--gentle-gold);
    text-align: center;
    box-shadow: 0 4px 15px var(--gentle-shadow);
}

.contact-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--warm-taupe);
}

.contact-item a {
    color: var(--soft-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--gentle-gold);
}

.contact-item p {
    color: var(--soft-gray);
    line-height: 1.6;
}

/* Contact Section - Add this to your existing Contact Section */
.contact-logo {
    text-align: center;
    margin: 2rem 0 3rem;
}

.contact-logo-img {
    width: 120px;
    height: 120px;
    border: 3px solid var(--gentle-gold);
    border-radius: 10px;
    padding: 0; /* remove all padding */
    background-color: transparent;
    box-shadow: 0 4px 20px var(--gentle-shadow);
    object-fit: cover; /* this will crop the image to fill the frame */
    transition: all 0.3s ease;
}

.contact-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--gentle-shadow);
}

.donate-button {
    display: inline-block;
    background: var(--soft-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.donate-button:hover {
    background: var(--muted-blue);
    color: white;
    transform: translateY(-1px);
}

.contact-item .donate-button {
    color: white;
}

.contact-item .donate-button:hover {
    color: white;
}

/* Footer */
footer {
    background: var(--soft-blue);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--soft-gold);
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.footer-logo h4 {
    margin: 0;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-links a:hover {
    color: var(--soft-gold);
    transform: translateX(5px);
}

.related-links img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

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

.design-credit a {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--soft-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.design-credit a:hover {
    transform: scale(1.05);
}

.design-credit img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.design-credit p {
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .study-group-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .related-links a {
        justify-content: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}