/* Custom CSS for Workshops Page */

/* 1. Global Resets & Box-sizing (Copied from home.css) */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Root Variables (Color Palette & Fonts - Copied from home.css) */
:root {
    --color-primary-bg: #F0F4F8;       /* Soft, modern light blue-grey */
    --color-secondary-bg: #E2E8F0;     /* Slightly darker blue-grey for elements */
    --color-accent-teal: #008080;      /* Rich, earthy teal */
    --color-accent-gold: #FFB74D;      /* Friendly, inviting warmth */
    --color-text-dark: #334155;        /* Soft but legible dark text */
    --color-text-light: #64748B;       /* Lighter text for descriptions */
    --color-white: #FFFFFF;
    --color-border-light: #CBD5E1;     /* Light border color */
    --color-green-tag: #28a745;        /* For "Beginner" tag */
    --color-orange-tag: #fd7e14;       /* For "Intermediate" tag */
    --color-purple-tag: #6f42c1;       /* For "Advanced" tag */

    /* Updated to Poppins */
    --font-poppins: 'Poppins', sans-serif;
}

/* 3. Base Body & Typography (Copied from home.css) */
body {
    font-family: var(--font-poppins);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-poppins);
    color: var(--color-text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 4. Utility Classes (Copied from home.css) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin: 0 auto 3rem;
    max-width: 48rem;
}

.heading-primary {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.heading-secondary {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--color-accent-teal);
    color: var(--color-white);
    border: 2px solid var(--color-accent-teal);
}

.btn-primary:hover {
    background-color: #006666;
    border-color: #006666;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-teal);
    border: 2px solid var(--color-accent-teal);
}

.btn-secondary:hover {
    background-color: var(--color-accent-teal);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

/* Section Padding */
section {
    padding: 4rem 0;
}

/* 5. Navbar (Copied from home.css, with active link) */
.navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 40;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-teal);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text-dark);
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--color-accent-teal);
}

/* Active Nav Link Style */
.nav-link-active {
    color: var(--color-accent-teal);
    font-weight: 600; /* Make it slightly bolder */
}
.nav-link-active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-teal);
    bottom: 0;
    left: 0;
}


/* Hide desktop nav links on small screens */
.nav-links {
    display: none;
}
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}
.mobile-menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.3);
}
.mobile-menu-toggle:hover {
    background-color: var(--color-primary-bg);
}

/* 6. Mobile Menu Overlay (Copied from home.css, with active link) */
.mobile-menu-overlay {
    position: fixed;
    inset: 0 0 0 auto;
    width: 16rem;
    background-color: var(--color-white);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

.mobile-nav-link {
    display: block;
    font-size: 1.25rem;
    color: var(--color-text-dark);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
}

.mobile-nav-link:hover {
    color: var(--color-accent-teal);
    background-color: var(--color-primary-bg);
}

/* Active Mobile Nav Link Style */
.mobile-nav-link-active {
    color: var(--color-accent-teal);
    font-weight: 600;
    background-color: var(--color-primary-bg); /* Highlight background */
}

/* Add this to your home.css to handle the mobile menu state */
body.mobile-menu-active {
    overflow: hidden;
}

/* 7. Workshops Hero Section (New for workshops.html) */
.section-workshops-hero {
    background-color: var(--color-primary-bg); /* Use primary background color */
    padding: 4rem 0; /* Consistent section padding */
}

/* 8. Featured Workshops Section (Similar to home page workshop grid) */
.section-featured-workshops {
    background-color: var(--color-white); /* White background */
    padding: 4rem 0;
}

/* 9. All Workshops Section (Similar to home page workshop grid) */
.section-all-workshops {
    background-color: var(--color-primary-bg); /* Primary background color */
    padding: 4rem 0;
}

/* Workshop Grid (Reused from home.css) */
.workshop-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on small screens */
    gap: 2rem; /* 32px */
}

/* Workshop Card (Reused from home.css) */
.workshop-card {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
}

.workshop-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.workshop-image-wrapper {
    position: relative;
    /* Changed aspect ratio to 3/2 for potentially better fit with common image sizes */
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.workshop-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, cropping as necessary */
    /* Note: If images still appear "cut off," consider using original images that
             are closer to a 3:2 aspect ratio, or compose them to allow for cropping. */
}

.workshop-tag {
    position: absolute;
    top: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
}

.tag-beginner {
    left: 1rem;
    background-color: var(--color-green-tag);
}

.tag-featured {
    right: 1rem;
    background-color: var(--color-accent-gold);
}

.tag-intermediate {
    left: 1rem;
    background-color: var(--color-orange-tag);
}

.tag-advanced {
    left: 1rem;
    background-color: var(--color-purple-tag);
}

.workshop-content {
    padding: 1.5rem;
    text-align: left;
}

.workshop-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.workshop-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    min-height: 2.5rem; /* Ensure consistent height for descriptions */
}

.workshop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.workshop-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent-teal);
}

/* Centering the action button */
.section-action-btn {
    margin-top: 3rem;
    text-align: center; /* Centers inline-block children like the button */
}

/* Footer (Copied from home.css) */
.footer {
    background-color: var(--color-white);
    color: var(--color-text-dark);
    padding: 3rem 0;
    border-top: 3px solid var(--color-accent-teal); /* Changed border color to accent teal */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-teal);
    margin-bottom: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-accent-teal);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--color-text-dark);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-accent-teal);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.contact-address {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--color-accent-teal);
}


/* 10. Media Queries for Responsiveness (Copied from home.css, with adjustments for new sections) */

/* Medium devices (tables, 768px and up) */
@media (min-width: 768px) {
    section {
        padding: 6rem 0;
    }

    .navbar-content {
        justify-content: space-between;
    }

    .nav-links {
        display: flex;
    }
    .mobile-menu-toggle {
        display: none;
    }

    .section-workshops-hero .heading-primary {
        font-size: 3.5rem; /* Adjust heading size for tablets */
    }
    .section-workshops-hero .section-description {
        font-size: 1.25rem; /* Adjust description size for tablets */
    }


    .workshop-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for workshops on tablets */
    }

    .section-featured-workshops .workshop-grid {
        /* Specific layout for featured workshops if needed, e.g., wider cards */
        grid-template-columns: repeat(2, 1fr); /* 2 columns for featured workshops */
    }

    .section-all-workshops .workshop-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for all workshops */
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .heading-primary {
        font-size: 3.5rem;
    }

    .heading-secondary {
        font-size: 2.5rem;
    }

    .workshop-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for workshops on desktops */
    }

    .section-featured-workshops .workshop-grid {
        grid-template-columns: repeat(3, 1fr); /* Keep 2 columns for featured on desktop */
    }

    .section-all-workshops .workshop-grid {
        grid-template-columns: repeat(3, 1fr); /* 4 columns for all workshops on desktop */
    }
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
    .container {
        padding: 0;
    }
}
