/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #ffffff; /* Warm background color */
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative; /* For positioning the hero background */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Color Variables */
:root {
    --gold: #D4AF37;
    --gold-light: #E5C76B;
    --gold-dark: #B08A28;
    --white: #fff;
    --black: #000;
    --gray: #f8f8f8;
    --dark-gray: #333;
    --footer-gray: #444444;
    --background-warm: rgb(235, 227, 219); /* Updated warm background color as variable */
}

/* Mobile First Grid Layout */
.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: #ebe3d0; /* Updated to exact color code you requested */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--gold);
    transition: transform 0.3s ease, height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    height: auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo container to hold both logo and site title */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between logo and title */
}

.logo {
    height: 40px;
    width: auto;
}

/* Site title styling */
.site-title {
    display: none; /* Hidden by default for mobile */
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin: 0;
    font-family: 'Arial', sans-serif;
}

/* Header transition effects */
.header-hidden {
    transform: translateY(-100%); /* Move header up and out of view */
}

.header-visible {
    transform: translateY(0); /* Reset position */
}

.header-compact {
    height: 60px; /* Smaller height when scrolled */
    background-color: rgba(235, 227, 208, 0.95); /* Slightly transparent background */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Stronger shadow */
}

.header-compact .logo {
    height: 30px; /* Smaller logo when compact */
    transition: height 0.3s ease;
}

.header-compact .site-title {
    font-size: 1.3rem;
    transition: font-size 0.3s ease;
}

.header-compact .desktop-nav a {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    transition: padding 0.3s ease;
}

/* Desktop Navigation - Added new */
.desktop-nav {
    display: none; /* Hidden by default for mobile */
}

.desktop-nav a {
    text-decoration: none;
    color: var(--black);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
    color: var(--gold-dark);
    border-bottom: 2px solid var(--gold);
}

/* Hamburger Menu & Dropdown Navigation */
.dropdown {
    position: relative;
}

.hamburger-btn {
    background-color: transparent;
    color: var(--gold);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    color: var(--gold-dark);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--background-warm); /* Using warm background color */
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1;
    border: 1px solid var(--gold);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--black);
    border-bottom: 1px solid var(--gold-light);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--gold-light);
}

.dropdown.active .dropdown-content {
    display: block;
}

/* Main Content */
main {
    margin-top: 70px;
    padding: 1rem;
    flex: 1;
    background-color: transparent; /* Changed to transparent to show background image */
    position: relative; /* For positioning relative to this element */
    z-index: 10; /* Ensure content is above background image */
}

/* For semi-transparent background behind content */
.content-wrapper {
    background-color: rgba(235, 227, 219, 0.8);
    border-radius: 8px;
    padding: 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.hero-logo {
    max-width: 200px;
    margin: 1rem auto;
}

.hero-tagline {
    font-size: 0.9rem;
    color: var(--gold-dark);
    margin: 0.5rem 0;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1rem 0;
    color: var(--gold-dark);
}



/* Adjust responsive behavior for contact section */
@media (min-width: 768px) {
    .contact-cta {
        margin-top: 2.5rem;
    }
}

@media (min-width: 992px) {
    .about-quote {
        font-size: 1.2rem;
        padding-left: 1.5rem;
    }
    
    .contact-heading {
        font-size: 1.4rem;
    }
    
    /* Show site title on desktop */
    .site-title {
        display: block; /* Show the title */
    }
}



/* Collapsed Header for Mobile */
@media (max-width: 767px) {
    .header-container {
        padding: 0.5rem 1rem;
    }

    .logo {
        height: 32px; /* Smaller logo on mobile */
    }
    
    /* Adjust background image for mobile */
    .background-image {
        width: 70%;
        opacity: 0.3; /* More transparent on mobile */
    }
    
    main {
        margin-top: 60px; /* Smaller margin for mobile */
    }
    
    .header-compact {
        height: 50px; /* Even smaller height on mobile */
    }
    
    .header-compact .logo {
        height: 25px; /* Smaller logo on mobile */
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .logo {
        height: 50px;
    }
    
    /* Show desktop navigation, hide hamburger on tablet and larger */
    .desktop-nav {
        display: flex;
        align-items: center;
    }
    
    .dropdown {
        display: none;
    }

    .hero-logo {
        max-width: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Adjust background image for tablet */
    .background-image {
        width: 50%;
        opacity: 0.4;
    }
    
    main {
        margin-top: 80px; /* Keep enough margin for the expanded header */
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    main {
        margin-top: 80px;
    }
    
    /* Enhance desktop navigation for larger screens */
    .desktop-nav a {
        padding: 0.5rem 1.2rem;
        font-size: 1.1rem;
    }

    
  
  

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    /* Adjust background image for desktop */
    .background-image {
        width: 40%;
        opacity: 0.5;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Further refine desktop navigation spacing */
    .desktop-nav a {
        padding: 0.5rem 1.5rem;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .header-compact .site-title {
        font-size: 1.5rem;
    }
    
    .about-photo {
        max-height: 500px; /* Largest max height */
    }
}

/* Workshop Page Specific Styles */

/* Page Title and Description */
.page-title {
    color: var(--gold-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    padding-top: 1.5rem;
}

.page-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

/* Workshop Trainer Container */
.workshop-trainer-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Trainer Card */
.trainer-card {
    background-color: rgba(235, 227, 219, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: relative;
    border-left: 4px solid var(--gold);
}

/* Trainer Info Section */
.trainer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.trainer-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.trainer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-details {
    text-align: center;
}

.trainer-bio-short {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--dark-gray);
    text-align: left;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--gold-light);
}

.trainer-bio-short p {
    margin-bottom: 0.75rem;
}

.trainer-bio-short p:last-child {
    margin-bottom: 0;
}

.trainer-name {
    color: var(--gold-dark);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.trainer-title {
    color: var(--dark-gray);
    font-style: italic;
    font-size: 1rem;
}

/* Workshop List */
.workshop-list {
    margin-bottom: 1.5rem;
}

.workshop-list h3 {
    color: var(--gold-dark);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--gold-light);
    padding-bottom: 0.5rem;
}

.workshop-list ul {
    list-style: none;
    padding-left: 0;
}

.workshop-item {
    margin-bottom: 0.5rem;
    position: relative;
}

.workshop-title {
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    display: block;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    text-align: left;
    width: 100%;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    text-decoration: none;
}

.workshop-title:hover {
    color: var(--gold-dark);
    border-left: 3px solid var(--gold-light);
    background-color: rgba(212, 175, 55, 0.1);
}

.workshop-item.active .workshop-title {
    color: var(--gold-dark);
    border-left: 3px solid var(--gold);
    background-color: rgba(212, 175, 55, 0.2);
    font-weight: 600;
}

/* Workshop Descriptions */
.workshop-descriptions {
    margin-top: 1rem;
}

.workshop-description {
    display: none;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    border-top: 3px solid var(--gold);
}

.workshop-description.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.workshop-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    background-color: var(--gray);
    padding: 0.75rem;
    border-radius: 4px;
}

.workshop-detail {
    font-size: 0.9rem;
}

.workshop-detail span {
    font-weight: bold;
    color: var(--gold-dark);
}

.workshop-description h3 {
    color: var(--gold-dark);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.workshop-intro {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.workshop-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.workshop-description li {
    margin-bottom: 0.5rem;
}

.trainer-bio {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gold-light);
}

.trainer-bio h4 {
    color: var(--gold-dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Responsive styles for tablets and larger */
@media (min-width: 768px) {
    .trainer-info {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .trainer-details {
        text-align: left;
        margin-left: 1.5rem;
        flex: 1;
    }
    
    .trainer-bio-short {
        margin-top: 1.25rem;
    }
    
    .workshop-details {
        justify-content: flex-start;
    }
    
    .workshop-detail {
        margin-right: 1.5rem;
    }
}

/* Responsive styles for desktop */
@media (min-width: 992px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }
    
    .trainer-card {
        padding: 2rem;
    }
    
    .trainer-image-container {
        width: 180px;
        height: 180px;
    }
    
    .trainer-name {
        font-size: 1.8rem;
    }
    
    .trainer-title {
        font-size: 1.1rem;
    }
    
    .workshop-title {
        font-size: 1.1rem;
    }
    
    .workshop-description h3 {
        font-size: 1.6rem;
    }
}

/* ===== COMPLETELY REVISED FOOTER STYLES ===== */
/* Delete all existing footer CSS and replace with this */

footer {
    background-color: var(--footer-gray);
    color: var(--white);
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 100;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main footer grid - revised layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Footer section headers */
.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 0.5rem;
}

/* About section */
.about-section p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Social media icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--gold);
    border-radius: 50%;
    color: var(--black);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    font-weight: bold;
}

.social-icon:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

/* Footer navigation links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: var(--gold);
}

/* Contact information styling */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-info strong {
    color: var(--gold-light);
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Copyright section */
.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gold);
    text-align: center;
    font-size: 0.85rem;
    color: #cccccc;
}

.copyright p:first-child {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE LAYOUTS ===== */

/* Mobile layout (default above) */

/* Tablet layout */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }
    
    /* Second paragraph in copyright is smaller on tablet */
    .copyright p:last-child {
        font-size: 0.8rem;
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Desktop layout */
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
    }
    
    /* More space between contact info items */
    .contact-info {
        gap: 0.3rem;
    }
    
    /* Full width for copyright on desktop */
    .copyright p:last-child {
        max-width: 100%;
    }
}

/* Large desktop layout */
@media (min-width: 1200px) {
    .footer-grid {
        gap: 3rem;
    }
    
    .footer-section h3 {
        margin-bottom: 1rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
}

/* Back to Top Button */
#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--gold);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    display: flex;
    opacity: 1;
}

#back-to-top:hover {
    background-color: var(--gold-dark);
    transform: translateY(-3px);
}

/* Only show button on mobile screens (under 768px) */
@media (min-width: 768px) {
    #back-to-top {
        display: none !important; /* Force hidden on larger screens */
    }
}