
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600&display=swap');


:root {
    --primary-color: #1A365D;
    --secondary-color: #2A4365;
    --accent-color: #4299E1;
    --dark-color: #0F2942;
    --light-color: #FFFFFF;
    --text-color: #2D3748;
    --text-light: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

section {
    padding: 5rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(245, 245, 220, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 85px;
    margin-right: 10px;
}



/* Add these new styles to your existing CSS */

/* Navigation Link Styles */
.nav-item a {
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-item a:hover {
    color: var(--primary-color);
}

/* Underline effect on hover */
.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-item a:hover::after {
    width: 100%;
}

/* Active link styling */
.nav-item a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item a.active::after {
    width: 100%;
    background-color: var(--primary-color);
}

/* Dropdown menu items */
.dropdown-content a {
    color: var(--dark-color);
    padding: 0.5rem 1.5rem;
    display: block;
    text-align: left;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.dropdown-content a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: rgba(66, 153, 225, 0.2);
    color: var(--primary-color);
}

.dropdown-content a:hover::after {
    width: calc(100% - 3rem);
}

.dropdown-content a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.dropdown-content a.active::after {
    width: calc(100% - 3rem);
    background-color: var(--primary-color);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-item a {
        color: var(--light-color);
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 5px;
        position: relative;
        padding-bottom: 8px;
    }

    .nav-item a::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 1rem;
        width: 0;
        height: 2px;
        background-color: var(--accent-color);
        transition: var(--transition);
    }

    .nav-item a:hover::after,
    .nav-item a.active::after {
        width: calc(100% - 2rem);
    }

    .nav-item a.active {
        background-color: rgba(255,255,255,0.1);
        font-weight: 600;
        color: var(--light-color);
    }

    .dropdown-content a {
        color: var(--light-color);
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .dropdown-content a::after {
        left: 1rem;
    }

    .dropdown-content a:hover::after,
    .dropdown-content a.active::after {
        width: calc(100% - 2rem);
    }
}

/* Keep all your existing CSS below this point */
/* ... */





.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-item {
    position: relative;
    margin-left: 2rem;
}

.nav-item a {
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-item a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: var(--light-color);
    min-width: 250px;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    color: var(--dark-color);
    padding: 0.5rem 1.5rem;
    display: block;
    text-align: left;
    white-space: nowrap;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: rgba(66, 153, 225, 0.2);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
/* Hero Section */
.hero {
height: 100vh;
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/bg.webp');
background-size: cover;
background-position: center;
display: flex;
align-items: center;
text-align: center;
color: var(--text-light);
padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #206dac;
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 500;
    /* border: 2px solid var(--accent-color); */
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* Features Section */
.features {
    background-color: white;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid var(--accent-color);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
    background-color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 0 1rem;
}

/* Video Section */
.video-section {
    background-color: white;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* About Section */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    order: 1;
}

.about-image {
    order: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Tabbed Interface Styles */
.tabs-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: none;
    border-radius: 5px 5px 0 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-button:hover {
    color: var(--accent-color);
}

.tab-button.active {
    color: var(--accent-color);
    font-weight: 600;
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 0 0 5px 5px;
    box-shadow: var(--shadow);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sub-sections */
.sub-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--secondary-color);
}

.sub-section:last-child {
    border-bottom: none;
}

.sub-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Judaism Overview */
.judaism-overview {
    background-color: white;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 15px;
    right: -10px;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Community */
.community {
    background-color: var(--light-color);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.community-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.community-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

/* Recipes Section */
.recipes {
    background-color: white;
}

.recipe-card {
    display: flex;
    margin-bottom: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.recipe-image {
    flex: 1;
    min-height: 250px;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-details {
    flex: 2;
    padding: 1.5rem;
}

.recipe-ingredients {
    margin-top: 1rem;
}

.recipe-ingredients ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recipe-ingredients li {
    background-color: rgba(66, 153, 225, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 3rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--light-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item::after {
        left: 22px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .nav-item {
        margin: 1rem 0;
        width: 80%;
        text-align: center;
    }
    
    .nav-item a {
        color: var(--light-color);
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 5px;
    }
    
    .nav-item a:hover {
        background-color: rgba(255,255,255,0.1);
    }

    .dropdown-content {
        position: static;
        background-color: rgba(0,0,0,0.2);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0.5rem 0;
        border-radius: 5px;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .dropdown-content a {
        color: var(--light-color);
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .dropdown-content a:hover {
        background-color: rgba(255,255,255,0.1);
        color: var(--accent-color);
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .recipe-card {
        flex-direction: column;
    }

    .recipe-image {
        min-height: 200px;
    }

    .video-container iframe {
        height: 250px;
    }
    
    /* Mobile tabs */
    .tab-buttons {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-button {
        width: 100%;
        text-align: left;
        border-radius: 5px;
        border-bottom: 1px solid rgba(66, 153, 225, 0.2);
        padding: 1rem;
    }
    
    .tab-button::after {
        display: none;
    }
    
    .tab-button.active {
        background-color: rgba(66, 153, 225, 0.2);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .gallery-item {
        height: 180px;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}
