/*
Theme Name: Event Academy
Theme URI: https://youreventacademy.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A custom theme for Event Academy - Educational programmes for event managers
Version: 1.0
License: GPL v2 or later
Text Domain: event-academy
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

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

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
}

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

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

.site-logo span {
    color: #e67e22;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #e67e22;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-content h3 {
    margin-bottom: 15px;
    color: #e67e22;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    margin-top: 20px;
}

/* ============================================
   HOME PAGE (front-page.php)
   ============================================ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #d35400;
}

/* Courses Grid on Homepage */
.home-courses {
    padding: 40px 0;
}

.home-courses h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* ============================================
   PRODUCTS GRID (All Products)
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-details {
    padding: 20px;
}

.product-card .product-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-card .product-details h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.product-card .product-details h3 a:hover {
    color: #e67e22;
}

.product-card .product-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .price {
    font-size: 20px;
    font-weight: bold;
    color: #e67e22;
}

.product-card .btn-view-details {
    background: #3498db;
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.product-card .btn-view-details:hover {
    background: #2980b9;
}

/* ============================================
   SINGLE PRODUCT PAGE (Product Detail)
   ============================================ */

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

.single-product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Product Images */
.product-images-col .main-image {
    margin-bottom: 15px;
}

.product-images-col .main-image img {
    width: 100%;
    border-radius: 8px;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnails img {
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumbnails img:hover {
    opacity: 0.7;
}

/* Product Details */
.product-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-price {
    font-size: 28px;
    color: #e67e22;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-short-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-full-description {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-full-description h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Add to Cart */
.product-cart-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.product-cart-section .quantity {
    margin-right: 15px;
}

.product-cart-section input[type="number"] {
    width: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-cart-section .single_add_to_cart_button {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.product-cart-section .single_add_to_cart_button:hover {
    background: #d35400;
}

/* Product Meta */
.product-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #888;
}

/* Related Products */
.related-products-section {
    margin-top: 50px;
}

.related-products-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.related-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-3px);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.related-item h3 {
    font-size: 16px;
    margin: 10px 0;
}

.related-item .price {
    color: #e67e22;
    font-weight: bold;
}

/* ============================================
   CUSTOM PAGE TEMPLATE
   ============================================ */

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

.custom-page-container .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.custom-page-container .page-header h1 {
    font-size: 40px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.custom-page-container .page-header img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 20px;
}

.custom-page-container .page-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.custom-page-container .featured-courses {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.custom-page-container .featured-courses h2 {
    text-align: center;
    font-size: 30px;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-product-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-title {
        font-size: 26px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .product-card .product-image img {
        height: 200px;
    }
    
    .single-product-wrapper {
        padding: 15px;
    }
}