/*
Theme Name: Frederick Douglass on the Hill
Theme URI: https://fdhill.org
Author: HayTree Web Services
Author URI: https://www.haytreewebservices.com
Description: A custom WordPress theme for the Bailey-Groče Family Foundation featuring kente cloth African colors honoring Frederick Douglass and African American heritage.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frederick-douglass
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce

Frederick Douglass on the Hill WordPress Theme
Designed and Developed by HayTree Web Services
*/

:root {
    --kente-gold: #D4AF37;
    --kente-red: #8B0000;
    --kente-green: #228B22;
    --kente-black: #1A1A1A;
    --background: #FAFAFA;
    --foreground: #1A1A1A;
    --card: #FFFFFF;
    --card-foreground: #1A1A1A;
    --muted: #F5F5F5;
    --muted-foreground: #737373;
    --border: #E5E5E5;
    --primary: #D4AF37;
    --primary-foreground: #1A1A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Kente Border */
.kente-border {
    display: flex;
    height: 8px;
    width: 100%;
}

.kente-border .gold { background-color: var(--kente-gold); flex: 1; }
.kente-border .red { background-color: var(--kente-red); flex: 1; }
.kente-border .green { background-color: var(--kente-green); flex: 1; }
.kente-border .black { background-color: var(--kente-black); flex: 1; }

.kente-line {
    display: flex;
    height: 4px;
    width: 100%;
}

.kente-line .gold { background-color: var(--kente-gold); flex: 1; }
.kente-line .red { background-color: var(--kente-red); flex: 1; }
.kente-line .green { background-color: var(--kente-green); flex: 1; }
.kente-line .black { background-color: var(--kente-black); flex: 1; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.title-kente-line {
    display: flex;
    height: 4px;
    width: 100%;
}

.title-kente-line span {
    flex: 1;
}

.title-kente-line .gold { background-color: var(--kente-gold); }
.title-kente-line .red { background-color: var(--kente-red); }
.title-kente-line .green { background-color: var(--kente-green); }
.title-kente-line .black { background-color: var(--kente-black); }

/* Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.main-navigation > ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.main-navigation > ul > li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.main-navigation a:hover {
    background-color: var(--muted);
}

/* Dropdown Submenus */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 100;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li {
    position: relative;
}

.main-navigation .sub-menu a {
    padding: 0.5rem 1rem;
    border-radius: 0;
    display: block;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--muted);
}

/* Nested submenus (third level) */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Dropdown arrow indicator for parent items */
.main-navigation > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.375rem;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

.main-navigation .sub-menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
    float: right;
    margin-top: 0.375rem;
}

.header-actions {
    display: none;
}

@media (min-width: 768px) {
    .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--kente-green);
    color: var(--kente-black);
}

.btn-primary:hover {
    background-color: var(--kente-green);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.mobile-menu a:hover {
    background-color: var(--muted);
}

/* Mobile submenu styling */
.mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--kente-gold);
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.mobile-menu .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.mobile-menu .sub-menu a:hover {
    color: var(--foreground);
    background-color: var(--muted);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--kente-black);
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    color: white;
    max-width: 700px;
    text-align: left;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-content p {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Hero Button Styles */
.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: white;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-watch:hover {
    opacity: 0.8;
}

.btn-watch svg {
    flex-shrink: 0;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--kente-gold);
    background-color: var(--kente-gold);
    color: var(--kente-black);
    text-decoration: none;
}

.btn-gold:hover {
    background-color: #C9A431;
    border-color: #C9A431;
}

.btn-coral {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--kente-red);
    color: white;
    border: 2px solid var(--kente-red);
    text-decoration: none;
}

.btn-coral:hover {
    background-color: #6B0000;
    border-color: #6B0000;
    color: white;
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background-color: #F8F6F3;
}

.mission-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .mission-header {
        grid-template-columns: auto 1fr;
        gap: 3rem;
    }
}

.mission-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--kente-black);
    margin: 0;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .mission-header h2 {
        font-size: 3rem;
    }
}

.mission-header p {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin: 0;
}

@media (min-width: 768px) {
    .mission-header p {
        font-size: 1.125rem;
        padding-top: 0.5rem;
    }
}

.mission-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .mission-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mission-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.mission-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mission-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.12);
    border-radius: 50%;
    color: var(--kente-gold);
}

.mission-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--kente-black);
}

.mission-card p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Page Header */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--kente-black);
}

.page-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 1rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 5rem 0;
}

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

.section-dark {
    background-color: var(--kente-black);
    color: white;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
}

/* Cards */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--kente-gold);
    color: var(--kente-black);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

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

.card-excerpt {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Cards */
.product-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 1rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--kente-gold);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--kente-gold);
    margin-bottom: 0.75rem;
}

/* Board Member Cards */
.board-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .board-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.board-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    text-align: center;
}

.board-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.board-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-content {
    padding: 1.5rem;
}

.board-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.board-title {
    color: var(--kente-gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.board-bio {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.board-bio-wrapper {
    position: relative;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--kente-gold);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: var(--kente-red);
    text-decoration: underline;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Video Section */
.video-section {
    padding: 5rem 0;
    background-color: var(--kente-black);
    color: white;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.video-thumbnail {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.video-link .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.video-link:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.play-icon {
    width: 80px;
    height: 80px;
    background-color: var(--kente-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.video-content p {
    opacity: 0.9;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.site-footer {
    background-color: var(--card);
    border-top: 4px solid var(--kente-gold);
    padding: 3rem 0 1.5rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3,
.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--muted-foreground);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--foreground);
}

.footer-newsletter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.footer-social a:hover {
    background-color: var(--muted);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-bottom a {
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--foreground);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    color: var(--kente-gold);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--muted-foreground);
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-year {
    flex-shrink: 0;
    width: 80px;
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
}

.timeline-year.gold { color: var(--kente-gold); }
.timeline-year.red { color: var(--kente-red); }
.timeline-year.green { color: var(--kente-green); }

.timeline-content {
    flex-grow: 1;
    padding-left: 1.5rem;
    padding-bottom: 2rem;
    border-left: 4px solid var(--border);
}

.timeline-content.gold { border-left-color: var(--kente-gold); }
.timeline-content.red { border-left-color: var(--kente-red); }
.timeline-content.green { border-left-color: var(--kente-green); }

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--muted-foreground);
}

/* Events */
.event-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.event-featured {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .event-featured {
        grid-template-columns: 1fr 1fr;
    }
}

.event-image {
    position: relative;
    height: 250px;
}

@media (min-width: 1024px) {
    .event-image {
        height: auto;
    }
}

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

.event-content {
    padding: 2rem;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--kente-gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.event-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* WooCommerce Overrides */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    background: var(--card);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    padding: 1rem 1rem 0.5rem !important;
    font-size: 1rem !important;
    font-family: var(--font-heading) !important;
    color: var(--foreground) !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .price {
    color: var(--kente-gold) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 0 1rem !important;
    display: block !important;
}

.woocommerce ul.products li.product .price del {
    color: var(--muted-foreground) !important;
    font-size: 0.9rem !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: block !important;
    margin: 1rem !important;
    padding: 0.75rem 1.5rem !important;
    background-color: var(--kente-gold) !important;
    color: var(--kente-black) !important;
    border-radius: 0.375rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background-color: #C9A431 !important;
}

/* WooCommerce Shop Header */
.woocommerce-products-header {
    margin-bottom: 1.5rem;
}

.woocommerce-products-header__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.woocommerce-result-count,
.woocommerce-ordering {
    margin-bottom: 1rem !important;
}

.woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--background);
}

/* WooCommerce Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--kente-gold) !important;
    color: var(--kente-black) !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #C9A431 !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background-color: var(--kente-red) !important;
    color: white !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background-color: #6B0000 !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.pagination a:hover {
    background-color: var(--muted);
}

.pagination .current {
    background-color: var(--kente-gold);
    color: var(--kente-black);
    border-color: var(--kente-gold);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--kente-gold); }
.bg-gold { background-color: var(--kente-gold); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Placeholder Styles - For areas without images */
.placeholder-image {
    background: linear-gradient(135deg, var(--kente-gold) 0%, var(--kente-red) 50%, var(--kente-green) 100%);
    border-radius: 0.5rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.placeholder-image-small {
    background: linear-gradient(135deg, var(--kente-gold) 0%, var(--kente-red) 50%, var(--kente-green) 100%);
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.placeholder-video {
    background: linear-gradient(135deg, var(--kente-black) 0%, var(--kente-red) 100%);
    border-radius: 0.5rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-product {
    background: linear-gradient(135deg, var(--kente-gold) 0%, var(--muted) 100%);
    position: absolute;
    inset: 0;
}

.placeholder-board {
    background: linear-gradient(180deg, var(--kente-gold) 0%, var(--muted) 100%);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-board svg {
    width: 80px;
    height: 80px;
    color: white;
    opacity: 0.5;
}

/* Hero section default background when no image */
.hero-section {
    background: linear-gradient(135deg, var(--kente-black) 0%, var(--kente-red) 50%, var(--kente-black) 100%);
}

/* ========================================
   WOOCOMMERCE SHORTCODE PRODUCTS - NUCLEAR FIX
   This overrides ALL WooCommerce product styles
   ======================================== */

/* Target ALL possible product grid containers */
body ul.products,
body .products,
.woocommerce ul.products,
.woocommerce .products,
.woocommerce-page ul.products,
.woocommerce-page .products,
.wp-block-woocommerce-product-collection ul.products,
[class*="woocommerce"] ul.products,
[class*="woocommerce"] .products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
}

/* Clear any floats or pseudo-elements */
body ul.products::before,
body ul.products::after,
body .products::before,
body .products::after {
    display: none !important;
    content: "" !important;
    clear: none !important;
}

/* Product items - override ALL width restrictions */
body ul.products li.product,
body .products li.product,
body .products .product,
.woocommerce ul.products li.product,
.woocommerce .products .product,
.woocommerce-page ul.products li.product,
[class*="woocommerce"] ul.products li.product,
[class*="woocommerce"] .products .product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

body ul.products li.product:hover,
body .products .product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Product images */
body ul.products li.product img,
body ul.products li.product a img,
body .products .product img,
body .products .product a img,
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 0 !important;
}

/* Product titles */
body ul.products li.product h2,
body ul.products li.product .woocommerce-loop-product__title,
body .products .product h2,
body .products .product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1A1A1A !important;
    margin: 0 !important;
    padding: 15px 15px 10px !important;
    line-height: 1.4 !important;
}

/* Product prices */
body ul.products li.product .price,
body .products .product .price,
.woocommerce ul.products li.product .price {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #D4AF37 !important;
    margin: 0 !important;
    padding: 0 15px 15px !important;
}

body ul.products li.product .price del {
    color: #888 !important;
    font-size: 0.9rem !important;
}

/* Add to cart buttons */
body ul.products li.product .button,
body ul.products li.product a.button,
body ul.products li.product .add_to_cart_button,
body .products .product .button,
body .products .product .add_to_cart_button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: inline-block !important;
    background: #D4AF37 !important;
    color: #1A1A1A !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 12px 24px !important;
    margin: 0 15px 15px !important;
    border: none !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

body ul.products li.product .button:hover,
body ul.products li.product .add_to_cart_button:hover,
body .products .product .button:hover {
    background: #C9A431 !important;
}

/* Responsive grid */
@media screen and (max-width: 900px) {
    body ul.products,
    body .products,
    .woocommerce ul.products,
    .woocommerce .products,
    [class*="woocommerce"] ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 550px) {
    body ul.products,
    body .products,
    .woocommerce ul.products,
    .woocommerce .products,
    [class*="woocommerce"] ul.products {
        grid-template-columns: 1fr !important;
    }
}
