/*
Theme Name: SilverSmithing Complete
Theme URI: https://silversmithingclass.com
Author: David Smith
Author URI: https://silversmithingclass.com
Description: Complete theme for SilverSmithingClass.com - Classes, retreats, online training, AND professional silversmithing tools. Tools section at /tools/ can be separated later for sale.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: silversmithing-class
*/

/* ==========================================================================
   CSS Variables - Pacific Northwest Theme
   ========================================================================== */
:root {
    /* Pacific Northwest Colors */
    --primary-color: #2f5233;        /* Forest Green - headings */
    --secondary-color: #3d5a40;      /* Lighter forest green */
    --accent-color: #b87333;         /* Copper - links, highlights */
    --accent-hover: #a06229;         /* Darker copper on hover */
    --text-color: #3d3d3d;           /* Warm charcoal - body text */
    --text-light: #5a5a5a;           /* Lighter text */
    --bg-color: #ffffff;             /* White background */
    --bg-light: #f0f4f0;             /* Misty sage - light sections */
    --bg-cream: #faf8f5;             /* Warm cream for alternating */
    --bg-dark: #1a2e1a;              /* Dark Evergreen - header/footer */
    --border-color: #c8d4c8;         /* Soft green-gray border */
    
    /* Button Colors */
    --button-bg: #3182ce;            /* Ocean Blue */
    --button-hover-bg: #2c5282;      /* Darker ocean blue */
    --button-text: #ffffff;
    --button-hover-text: #ffffff;
    
    /* Fonts - Merriweather & Open Sans */
    --font-primary: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-secondary: 'Open Sans', Arial, 'Helvetica', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Shadows */
    --shadow-soft: 0 2px 15px rgba(47, 82, 51, 0.1);
    --shadow-medium: 0 4px 20px rgba(47, 82, 51, 0.15);
}

/* Page background */
body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #f5f7f5;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* No overlay - full intensity background image */

/* Ensure header is above content */
.site-header {
    position: relative;
    z-index: 1000;
    background-color: transparent;
}

.site-header .header-main {
    background-color: rgba(250, 248, 245, 0.95);
    border-bottom: 1px solid rgba(184, 115, 51, 0.3);
}

/* Ensure main content is above background */
.site-main {
    position: relative;
    z-index: 1;
    padding: 10px 0;
}

/* Ensure footer is above background */
.site-footer {
    position: relative;
    z-index: 1;
}

/* Main content area - TRANSPARENT so background shows through */
.page-content {
    background-color: transparent;
    position: relative;
    z-index: 1;
    padding: 15px 0;
    max-width: 1100px;
    margin: 0 auto;
}

/* Add margin to home page for more background visibility */
.home-page .page-content {
    margin-top: 5px;
    margin-bottom: 30px;
}

/* Alternating section backgrounds */
.section-light, .bg-light {
    background-color: var(--bg-light);
}

.section-cream, .bg-cream {
    background-color: var(--bg-cream);
}

/* Home page specific sections - watercolor inspired, contained within content */
.home-page .about-instructor-section {
    background-color: rgba(216, 228, 221, 0.92);  /* Sage green from trees */
    padding: 40px 30px;
    margin: 30px 0;
    border-radius: 10px;
    border-left: 4px solid #8B7355;  /* Warm brown from cliffs */
}

.home-page .featured-tools-section {
    background-color: rgba(244, 240, 235, 0.95);  /* Warm cream */
    padding: 40px 30px;
    margin: 30px 0;
    border-radius: 10px;
}

.home-page .home-testimonials-section {
    background-color: rgba(214, 224, 230, 0.92);  /* Misty blue from ocean */
    padding: 40px 30px;
    margin: 30px 0;
    border-radius: 10px;
}

.home-page .home-cta-wrapper {
    background-color: rgba(208, 228, 228, 0.92);  /* Light blue-green transparent */
    padding: 40px 30px;
    margin: 30px 0;
    border-radius: 10px;
    border-left: 4px solid #3182ce;  /* Ocean blue accent */
}

.home-page .home-cta-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.home-page .cta-text {
    line-height: 1.8;
    margin: 20px 0;
}

.home-page .cta-video-container {
    margin: 20px auto;
    max-width: 800px; /* Limit width - not full screen */
}

/* Make all CTA videos uniform size and centered */
.home-page .cta-video-container .video-with-expand {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.home-page .cta-video-container .video-with-expand iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home-page .cta-image-container {
    margin: 20px 0;
    text-align: center;
}

.home-page .cta-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: calc(var(--max-width) * 0.95);
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 40px 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: #ffffff;
}

.section-light {
    background-color: var(--bg-light);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 3px 0;
    font-size: 0.75rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #f0c674;  /* Gold/yellow color - stands out on dark background */
    text-decoration: underline;
}

.header-top a:hover {
    color: #ffffff;
}

.header-main {
    padding: 5px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Cart */
.header-cart {
    margin-left: auto;
}

.header-cart .cart-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-color);
    font-size: 1.25rem;
    text-decoration: none;
}

.header-cart .cart-icon:hover {
    color: var(--accent-color);
}

.header-cart .cart-count {
    background: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding img,
.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: var(--primary-color);
}

.site-title a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 18px;
}

.main-navigation a {
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 4px 0;
    display: block;
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--accent-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        border-top: 1px solid var(--border-color);
        display: none;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-navigation a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a2a2a 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    color: #ffffff;
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero .btn {
    margin: 0 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn, .button {
    display: inline-block;
    padding: 4px 18px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-primary, .button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border-color: var(--button-bg);
}

.btn-primary:hover, .button:hover {
    background-color: var(--button-hover-bg);
    border-color: var(--button-hover-bg);
    color: var(--button-hover-text);
}

.btn-secondary {
    background-color: transparent;
    color: var(--button-bg);
    border-color: var(--button-bg);
}

.btn-secondary:hover {
    background-color: var(--button-bg);
    color: #ffffff;
}

.btn-light {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* ==========================================================================
   Cards - Watercolor inspired
   ========================================================================== */
.card {
    background-color: rgba(253, 251, 247, 0.92);  /* Warm cream */
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(93, 82, 70, 0.15);  /* Warm shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 115, 85, 0.25);  /* Subtle warm border */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(93, 82, 70, 0.2);
    background-color: rgba(255, 253, 250, 0.98);
}

.card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
}

/* Grid Layouts */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   Classes Section
   ========================================================================== */
.class-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.class-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.class-card .btn {
    margin-top: auto;
}

.class-details {
    margin: 0.5rem 0;
    padding: 0;
    background-color: transparent;
    border-radius: 4px;
}

.class-details li {
    margin-bottom: 0.25rem;
    list-style: none;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.85rem;
    line-height: 1.3;
}

.class-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Class Page Sidebar */
.class-sidebar {
    align-self: start;
}

.class-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 992px) {
    .class-layout {
        grid-template-columns: 1.8fr 1fr;
        gap: 35px;
    }
}

.class-info-box {
    background: rgba(253, 251, 247, 0.95);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 15px rgba(93, 82, 70, 0.12);
}

.class-info-box h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.class-info-box .card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.class-info-box h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.class-info-box p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

/* Sticky sidebar on desktop only */
@media (min-width: 992px) {
    .class-sidebar {
        position: sticky;
        top: 90px;
        height: fit-content;
    }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

.testimonial-location {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ==========================================================================
   About / Instructor Section
   ========================================================================== */
.about-instructor {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

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

.instructor-bio h2 {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .about-instructor {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info .phone {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.hours-table {
    width: 100%;
    margin-top: 20px;
}

.hours-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.footer-widget a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.woocommerce .product {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.woocommerce .product:hover {
    transform: translateY(-5px);
}

.woocommerce .product .woocommerce-loop-product__title {
    font-size: 1.125rem;
    padding: 15px 15px 0;
}

.woocommerce .product .price {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: bold;
    padding: 10px 15px;
}

.woocommerce .product .button {
    display: block;
    margin: 15px;
    background-color: var(--accent-color);
    border-radius: 4px;
    text-align: center;
}

.woocommerce .product .button:hover {
    background-color: var(--accent-hover);
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a2a2a 100%);
    color: #ffffff;
    padding: 8px 0;
    text-align: center;
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: 0;
    font-size: 1.25rem;
}

/* Breadcrumbs - Footer Placement */
.footer-breadcrumbs {
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-breadcrumbs .breadcrumbs,
.footer-breadcrumbs .woocommerce-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0;
}

.footer-breadcrumbs .breadcrumbs a,
.footer-breadcrumbs .woocommerce-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-breadcrumbs .breadcrumbs a:hover,
.footer-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-breadcrumbs .separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

/* Hide breadcrumbs on home page footer */
.home .footer-breadcrumbs {
    display: none;
}

.woocommerce-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 10px;
    padding: 5px 0;
}

.woocommerce-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: var(--accent-color);
}

.page-content {
    padding: 15px 0;
}

/* Content card for regular pages - readable background */
.content-card {
    background-color: rgba(253, 251, 247, 0.95);
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 3px 20px rgba(93, 82, 70, 0.12);
    margin: 20px 0;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h2 {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Video Embed Responsive
   ========================================================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   Cookie Notice
   ========================================================================== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 20px;
    z-index: 9999;
    display: none;
}

.cookie-notice.show {
    display: block;
}

.cookie-notice .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-notice p {
    margin: 0;
    flex: 1;
}

.cookie-notice .btn {
    margin-left: 10px;
}

/* ==========================================================================
   Global Button Override - Slim Buttons
   ========================================================================== */
.btn,
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.single_add_to_cart_button,
.checkout-button,
.wc-proceed-to-checkout a.button {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   TOOLS SECTION STYLES - Can be extracted with tools business
   ========================================================================== */

.tools-page {
    background: var(--bg-cream);
    padding: 40px 0;
}

.tools-header {
    text-align: center;
    margin-bottom: 40px;
}

.tools-intro {
    font-size: 1.1em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Tools Grid */
.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .home-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Tool Card */
.home-tool-card {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.tool-media-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background: #f0f0f0;
}

.tool-media-container iframe,
.tool-media-container .tool-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tool-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card-content {
    padding: 20px;
}

.tool-title {
    font-size: 1.15em;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.tool-excerpt {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.tool-price {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 15px 0;
}

.view-tool-btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 10px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: background 0.3s ease;
}

.view-tool-btn:hover {
    background: var(--accent-hover);
    color: white;
}

/* Tools CTA Section */
.tools-cta-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.tools-cta-section h2 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.tools-cta-section p {
    color: var(--text-light);
    margin: 0 0 20px 0;
    font-size: 1.05em;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    color: white;
}

.no-tools-message {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1em;
}

.no-tools-message a {
    color: var(--accent-color);
}

/* ==========================================================================
   Member Login Page
   ========================================================================== */
.login-card {
    max-width: 480px;
    margin: 0 auto;
}

.login-intro {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
}

.login-intro a {
    color: var(--accent-color);
}

.login-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 20px;
    color: #991b1b;
    text-align: center;
}

.ss-login-form .form-field {
    margin-bottom: 20px;
}

.ss-login-form label {
    display: block;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.ss-login-form input[type="text"],
.ss-login-form input[type="password"],
.ss-login-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ss-login-form input[type="text"]:focus,
.ss-login-form input[type="password"]:focus,
.ss-login-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
}

.form-field-checkbox {
    display: flex;
    align-items: center;
}

.form-field-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 0;
}

.form-field-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-actions {
    margin-top: 25px;
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.form-links a:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   Streaming Pages (Beginning & Intermediate)
   ========================================================================== */
.streaming-header {
    position: relative;
}

.streaming-subtitle {
    color: var(--accent-color);
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-style: italic;
    margin-top: 5px;
}

.streaming-user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(184, 115, 51, 0.3);
    font-size: 0.9rem;
}

.welcome-user {
    color: var(--accent-color);
    font-weight: 600;
}

.streaming-nav-links {
    display: flex;
    gap: 20px;
}

.streaming-nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.streaming-nav-links a:hover {
    color: var(--accent-color);
}

/* Section styling */
.streaming-section {
    margin-bottom: 30px;
}

.streaming-section-title {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.section-intro {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Video Grid Layouts */
.video-grid {
    display: grid;
    gap: 25px;
}

.video-grid.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.video-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.video-grid.single-column {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* Video Cards */
.streaming-video-card {
    background: var(--bg-cream);
    border-radius: 8px;
    overflow: visible;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.streaming-video-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.streaming-video-card.featured-video {
    border: 2px solid var(--accent-color);
}

/* Responsive 16:9 video embed */
.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 58%;
    height: 0;
    overflow: visible;
    background: #1a1a1a;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card-info {
    padding: 15px 18px;
}

.video-card-info h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.05rem;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.video-description {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* Materials Kit Section */
.streaming-materials {
    margin-bottom: 30px;
    text-align: center;
}

.materials-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.materials-topics span {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Downloads Section */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.download-item:hover {
    background: #e8ede8;
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.download-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.download-name {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.downloads-note {
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 12px 15px;
    background: #fff8e6;
    border: 1px solid #f0d68a;
    border-radius: 6px;
}

.downloads-note code {
    background: #f0f4f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Responsive: Streaming Pages */
@media (max-width: 900px) {
    .video-grid.three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .streaming-user-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .video-grid.three-columns,
    .video-grid.two-columns {
        grid-template-columns: 1fr;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .streaming-section-title {
        font-size: 1.3rem;
    }
}
