/**
 * Motoschool Main CSS
 *
 * This file imports the main theme styles from style.css
 * You can add theme-specific overrides here
 *
 * @package Motoschool
 */

/* Import main stylesheet */
@import url('../../style.css');

/*
 * Additional theme-specific styles can be added below
 * This file is loaded after style.css
 */

/* ========================================
   Hero Section (Design Specs Implementation)
   ======================================== */

/* Design Tokens - consolidated to style.css :root */

/* Hero Section */
.hero-section {
    height: 70vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-hero);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

/* Navigation Bar */
.navbar {
    background: var(--color-bg-nav);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 30px;
    width: auto;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.navbar-menu a {
    color: var(--color-text-nav);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--color-text-nav-hover);
}

/* Hero Container */
.hero-section .container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Cards Section */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.card {
    background: var(--color-bg-card);
    border-radius: 4px;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #FFFFFF;
}

.card-content {
    flex: 1;
}

.card-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.card-desc {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Hero Title Section */
.hero-title {
    text-align: center;
    margin-top: 1.5rem;
}

.hero-heading {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--color-text-primary);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.hero-subheading {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-primary);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ========================================
   Sponsors Section
   ======================================== */

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-2xl, 48px);
    align-items: center;
    justify-items: center;
}

.sponsor-logo {
    opacity: 0.6;
    transition: opacity var(--transition-fast, 0.2s ease);
    max-width: 100%;
    height: auto;
}

.sponsor-logo:hover {
    opacity: 1;
}

/* ========================================
   Programs Section
   ======================================== */
.program-card {
    background-color: var(--color-bg-card, #1A1A1A);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    transition: transform var(--transition-base, 0.3s ease);
}

.program-card:hover,
.program-card.hover {
    transform: translateY(-4px);
}

.program-card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg, 24px);
}

.program-card-title {
    font-family: var(--font-display, sans);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md, 16px);
}

.program-card-features {
    list-style: none;
    padding: 0;
}

.program-card-features li {
    padding: var(--spacing-xs, 8px) 0;
    color: var(--color-text-secondary, #CCCCCC);
}

/* ========================================
   Events Section (Design Specs Implementation)
   ======================================== */

/* Events Design Tokens */
:root {
    --color-bg-events: #333333;
    --color-primary-events: #FF6B35; /* Enhanced orange for better contrast */
    --color-primary-events-hover: #E55A00;
    --color-card-bg-events: #000000;
    --color-text-events: #FFFFFF;
    --color-text-secondary-events: #CCCCCC;
    --color-button-border: #FFFFFF;
    --font-events: var(--font-display);
}

/* Events Section */
.events-section {
    background-color: var(--color-bg-events);
    padding: 60px 80px;
}

.events-header {
    margin-bottom: 32px;
}

.events-subtitle {
    font-family: var(--font-events);
    font-size: 14px;
    color: var(--color-primary-events);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.events-title {
    font-family: var(--font-events);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text-events);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Event Container */
.event-container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

/* Event Cards */
.event-card {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.event-card > * {
    margin-bottom: 12px;
}

.event-card > *:last-child {
    margin-bottom: 0;
}

.event-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.event-card-left-right {
    background: var(--color-card-bg-events);
    flex: 1;
}

.event-card-middle {
    background: var(--color-primary-events);
    flex: 2;
    align-items: center;
    text-align: center;
}

/* Location Header (Side Cards) */
.event-location-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.location-icon {
    width: 24px;
    height: 24px;
    background: var(--color-primary-events);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-text {
    color: var(--color-text-events);
    font-size: 14px;
    font-weight: 600;
}

/* Date Display (Side Cards) */
.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 16px 0;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.day-name {
    font-family: var(--font-events);
    font-size: 16px;
    color: var(--color-text-events);
    margin-bottom: 4px;
    font-weight: 600;
}

.day-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--color-text-events);
    line-height: 1;
    margin: 4px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.month-name {
    font-family: var(--font-events);
    font-size: 20px;
    color: var(--color-text-events);
    margin-top: 4px;
    font-weight: 600;
}

/* Middle Card Styles */
.event-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--color-text-events);
    font-size: 14px;
    font-weight: 600;
}

.event-date-time {
    font-size: 14px;
    color: var(--color-text-events);
    margin-bottom: 12px;
    font-weight: 600;
}

.event-name {
    font-family: var(--font-events);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-events);
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.event-sponsor {
    font-family: var(--font-events);
    font-size: 18px;
    color: var(--color-text-events);
    margin: 0 0 20px 0;
    font-weight: 600;
}

/* Event Buttons */
.event-btn {
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto;
    font-weight: 600;
    display: inline-block;
    height: auto;
    min-height: 48px;
    line-height: 1.5;
}

/* Fix Gutenberg button layout issues */
.wp-block-button__link {
    height: auto !important;
    min-height: 48px;
    display: inline-block;
    line-height: 1.5;
}

.btn-fill {
    background: #FFFFFF;
    color: var(--color-primary-events);
    border: none;
}

.btn-fill:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
}

.btn-border {
    background: transparent;
    color: var(--color-text-events);
    border: 2px solid var(--color-button-border);
}

.btn-border:hover {
    border-color: #FFFFFF;
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

/* Additional button layout fixes */
.event-card .wp-block-button {
    margin: 0;
    width: 100%;
}

.wp-block-button .wp-block-button__link {
    width: 100%;
    box-sizing: border-box;
}

/* Events Responsive */
@media (max-width: 768px) {
    .events-section {
        padding: 40px 20px;
    }
    
    .event-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .event-card {
        width: 100%;
    }
    
    .events-title {
        font-size: 28px;
    }
    
    .day-number {
        font-size: 48px;
    }
}

/* ========================================
   Team Section (Design Specs Implementation)
   ======================================== */

/* Team Design Tokens */
:root {
    --color-bg-team: #000000;
    --color-text-team-primary: #FFFFFF;
    --color-text-team-secondary: #CCCCCC;
    --color-accent-team: #FF6B35;
    --font-team: var(--font-display);
}

/* Team Section */
.team-section {
    background-color: var(--color-bg-team);
    padding: 60px 0;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.team-container__title {
    font-family: var(--font-team);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-team-primary);
    margin-bottom: 24px;
}

.team-container__subtitle {
    font-family: var(--font-team);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-team-secondary);
    margin-bottom: 32px;
}

/* Team Cards */
.team-cards {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.team-card {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: transparent;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-2px);
}

.team-card__image {
    position: relative;
    margin-bottom: 16px;
}

.team-member-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-member-photo {
    border-color: var(--color-accent-team);
}

.team-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-card__name {
    font-family: var(--font-team);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-team-primary);
    margin-bottom: 8px;
}

.team-card__title {
    font-family: var(--font-team);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-accent-team);
    margin-bottom: 12px;
}

.team-card__description {
    font-family: var(--font-team);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-team-secondary);
    margin: 0;
}

/* Team Responsive */
@media (max-width: 767px) {
    .team-cards {
        flex-direction: column;
        gap: 24px;
    }
    
    .team-container__title {
        font-size: 36px;
    }
    
    .team-container {
        padding: 0 20px;
    }
}

/* ========================================
   Contact CTA Section
   ======================================== */
.contact-cta-section {
    background-color: var(--color-primary, #00A8CC);
    color: var(--color-text-primary, #FFFFFF);
    padding: var(--spacing-6xl, 120px) 0;
}

/* ========================================
   Responsive Design (Design Specs Implementation)
   ======================================== */
@media (max-width: 1200px) {
    .hero-cards {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    
    .navbar-menu {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .hero-subheading {
        font-size: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2rem;
    }
    
    .hero-subheading {
        font-size: 1rem;
    }
    
    .navbar .container {
        padding: 0 1rem;
    }
    
    .hero-section .container {
        padding: 2rem 1rem;
    }
}
