/*
 Theme Name:   Neve Child
 Theme URI:    https://themeisle.com/themes/neve/
 Description:  Neve Child Theme
 Author:       Your Name
 Author URI:   https://themeisle.com
 Template:     neve
 Version:      2.0.0
 Text Domain:  neve-child
*/

:root {
    /* Corporate Palette */
    --wca-primary: #0F172A;
    /* Deep Slate/Navy */
    --wca-secondary: #334155;
    /* Slate 700 */
    --wca-accent: #0284C7;
    /* Professional Blue */
    --wca-accent-hover: #0369A1;
    /* Darker Blue */
    --wca-bg: #F8FAFC;
    /* Very Light Gray/White */
    --wca-surface: #FFFFFF;
    /* Pure White */
    --wca-border: #E2E8F0;
    /* Slate 200 */
    --wca-text-main: #1E293B;
    /* Slate 800 */
    --wca-text-muted: #64748B;
    /* Slate 500 */

    /* Spacing */
    --wca-space-sm: 8px;
    --wca-space-md: 16px;
    --wca-space-lg: 24px;
    --wca-space-xl: 40px;
}

body {
    background-color: var(--wca-bg);
    color: var(--wca-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Hide Neve default header/footer on Course & Presentation pages (using Revolution Slider instead) */
body.post-type-archive-course header.header,
body.post-type-archive-course .nv-navbar,
body.post-type-archive-course footer.site-footer,
body.single-course header.header,
body.single-course .nv-navbar,
body.single-course footer.site-footer,
body.post-type-archive-presentation header.header,
body.post-type-archive-presentation .nv-navbar,
body.post-type-archive-presentation footer.site-footer,
body.single-presentation header.header,
body.single-presentation .nv-navbar,
body.single-presentation footer.site-footer,
body.tax-presentation_year header.header,
body.tax-presentation_year .nv-navbar,
body.tax-presentation_year footer.site-footer,
body.tax-course_type header.header,
body.tax-course_type .nv-navbar,
body.tax-course_type footer.site-footer {
    display: none !important;
}

/* Course & Presentation pages: Sticky footer */
body.post-type-archive-course,
body.single-course,
body.post-type-archive-presentation,
body.single-presentation,
body.tax-presentation_year,
body.tax-course_type {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.post-type-archive-course #page,
body.single-course #page,
body.post-type-archive-presentation #page,
body.single-presentation #page,
body.tax-presentation_year #page,
body.tax-course_type #page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.post-type-archive-course .archive-course-container,
body.single-course .single-course-container,
body.post-type-archive-presentation .archive-presentation-container,
body.single-presentation .single-presentation-container-premium,
body.tax-presentation_year .taxonomy-presentation-container,
body.tax-course_type .taxonomy-course-container {
    flex: 1;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--wca-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================================
   Archive / Taxonomy List Layout (Grid)
   ========================================= */

.presentation-year-header {
    text-align: left;
    margin-bottom: var(--wca-space-xl);
    padding-bottom: var(--wca-space-lg);
    border-bottom: 2px solid var(--wca-border);
}

.presentation-year-header .page-title {
    font-size: 2.5rem;
    margin-bottom: var(--wca-space-sm);
}

.presentation-year-counts {
    font-size: 1rem;
    color: var(--wca-text-muted);
    font-weight: 500;
}

.presentation-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns side-by-side */
    gap: var(--wca-space-lg);
}

/* Vertical Card Layout */
.presentation-item {
    display: flex;
    flex-direction: column;
    /* Image Top, Content Bottom */
    background: var(--wca-surface);
    border: 1px solid var(--wca-border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    /* Full height for equal cards */
}

.presentation-item:hover {
    transform: translateY(-5px);
    /* Simple Hover Effect */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.presentation-image {
    width: 100%;
    height: 300px;
    /* Fixed height for consistency */
    position: relative;
    overflow: hidden;
}

.presentation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Optional: Slight zoom on image too */
.presentation-item:hover .presentation-image img {
    transform: scale(1.05);
}

.presentation-content {
    padding: var(--wca-space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.presentation-title {
    font-size: 1.25rem;
    margin: 0 0 var(--wca-space-sm) 0;
    line-height: 1.4;
    color: var(--wca-primary);
    font-weight: 700;
}

.presentation-meta {
    margin-top: auto;
    /* Push to bottom */
    padding-top: var(--wca-space-md);
    display: flex;
    flex-direction: column;
    /* Stack Date and Author if needed, or row */
    gap: 4px;
    font-size: 0.85rem;
    color: var(--wca-text-muted);
    font-weight: 500;
}

.presentation-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.presentation-meta i {
    color: var(--wca-accent);
    width: 16px;
    /* Align icons */
}

/* Responsive Grid */
@media (max-width: 992px) {
    .presentation-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =========================================
   Single Presentation Page (Premium Sidebar Layout)
   ========================================= */

.single-presentation-container-premium {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 80px;
}

.presentation-premium-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    /* Content | Sidebar */
    gap: 50px;
    align-items: start;
}

/* LEFT COLUMN */
.presentation-main-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--wca-border);
    padding-bottom: 20px;
}

.premium-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--wca-primary);
    line-height: 1.2;
    margin-bottom: 15px;
}

.premium-speaker-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.speaker-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--wca-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.speaker-name i {
    color: var(--wca-accent);
}

.speaker-title {
    font-size: 1rem;
    color: var(--wca-text-muted);
    font-style: italic;
    padding-left: 28px;
    /* Align with text name */
}

.premium-content-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--wca-text-main);
}

.premium-content-body p {
    margin-bottom: 1.5em;
}

/* RIGHT COLUMN (SIDEBAR CARD) */
.premium-event-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Deep soft shadow */
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 40px;
}

/* =========================================
   Back Navigation
   ========================================= */

/* Back Button */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wca-text-muted);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--wca-accent);
    transform: translateX(-4px);
}

.event-card-image {
    width: 100%;
    background: #f1f5f9;
}

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

.event-card-details {
    padding: 30px;
}

.card-heading {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wca-text-muted);
    margin-bottom: 20px;
    font-weight: 700;
}

.card-detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-detail-row .icon-box {
    width: 44px;
    height: 44px;
    background: var(--wca-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wca-accent);
    font-size: 1.2rem;
}

.card-detail-row .info {
    display: flex;
    flex-direction: column;
}

.card-detail-row .label {
    font-size: 0.8rem;
    color: var(--wca-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.card-detail-row .val {
    font-size: 1.05rem;
    color: var(--wca-primary);
    font-weight: 600;
}

/* PREMIUM ACTION BUTTONS */
.card-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-whatsapp-full {
    background-color: #25D366;
    color: white !important;
    border: none;
}

.btn-whatsapp-full:hover {
    background-color: #1FAF53;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-instagram-full {
    background: #fff;
    color: #1E293B !important;
    border: 2px solid #E2E8F0;
}

.btn-instagram-full i {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

.btn-instagram-full:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-document-full {
    background: var(--wca-accent);
    color: white !important;
    border: none;
}

.btn-document-full:hover {
    background: var(--wca-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .presentation-premium-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 40px;
    }

    .premium-event-card {
        position: static;
        /* Remove sticky on mobile */
        order: -1;
        /* Move card to top? or keep at bottom? User asked for visual on right/main. Let's keep it below title/content or maybe above content? 
                      Standard mobile event: Title -> Meta -> Card -> Content.
                      With Grid: We can use named areas but simpler is usually better.
                      Let's leave default: Content then Card.
                   */
    }
}

/* =========================================
   Archive Page (Presentation Years)
   ========================================= */

.archive-presentation-container,
.taxonomy-presentation-container {
    min-height: 100vh;
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 80px;
}

.archive-header {
    text-align: center;
    /* Center header */
    margin-bottom: 60px;
}

.archive-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--wca-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.archive-description {
    font-size: 1.2rem;
    color: var(--wca-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.presentation-years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive grid */
    gap: 30px;
    justify-content: center;
    /* Center grid items */
}

/* Premium Year Card */
.year-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 40px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.year-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--wca-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.year-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.year-card:hover::before {
    opacity: 1;
}

.year-card-content {
    z-index: 2;
}

.year-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wca-primary);
    margin-bottom: 8px;
    line-height: 1.1;
}

.academic-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wca-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.8;
}

.year-count {
    display: inline-block;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--wca-secondary);
    font-weight: 600;
}

.year-card-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    color: rgba(0, 0, 0, 0.03);
    transform: rotate(-15deg);
    transition: all 0.4s ease;
}

.year-card:hover .year-card-icon {
    color: rgba(59, 130, 246, 0.08);
    /* Blue tint on hover */
    transform: rotate(0deg) scale(1.1);
    bottom: -10px;
    right: -10px;
}

/* Responsive */
@media (max-width: 768px) {
    .presentation-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .presentation-image {
        min-height: 250px;
    }

    .presentation-content {
        padding: var(--wca-space-lg);
    }

    .single-presentation-hero {
        padding: 40px 20px;
    }

    .single-presentation-body,
    .presentation-footer-actions {
        padding: 30px 20px;
    }
}

/* =========================================
   Course Archive (List Page)
   ========================================= */

.archive-course-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 80px;
}

.course-archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.course-archive-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--wca-primary);
    margin-bottom: 10px;
}

.course-archive-desc {
    font-size: 1.1rem;
    color: var(--wca-text-muted);
}

/* Course Types Grid (Archive page) */
.course-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.course-type-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--wca-surface);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--wca-border);
}

.course-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--wca-accent);
}

.course-type-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--wca-accent) 0%, var(--wca-accent-hover) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-type-icon i {
    font-size: 2rem;
    color: white;
}

.course-type-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-type-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wca-primary);
    margin: 0;
}

.course-type-subtitle {
    font-size: 0.9rem;
    color: var(--wca-text-muted);
}

.course-type-count {
    font-size: 0.85rem;
    color: var(--wca-accent);
    font-weight: 600;
    margin-top: 4px;
}

.course-type-arrow {
    color: var(--wca-text-muted);
    transition: all 0.3s ease;
}

.course-type-card:hover .course-type-arrow {
    color: var(--wca-accent);
    transform: translateX(4px);
}

@media (max-width: 500px) {
    .course-types-grid {
        grid-template-columns: 1fr;
    }

    .course-type-card {
        padding: 24px;
    }

    .course-type-icon {
        width: 56px;
        height: 56px;
    }

    .course-type-icon i {
        font-size: 1.5rem;
    }

    .course-type-title {
        font-size: 1.25rem;
    }
}

/* Taxonomy Course Container (Workshops/Webinars list) */
.taxonomy-course-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 80px;
}

.course-type-header {
    margin-bottom: 50px;
}

.course-type-header .back-link {
    margin-bottom: 20px;
    display: inline-block;
}

.course-type-page-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--wca-primary);
    margin: 0 0 10px 0;
}

.course-type-desc {
    font-size: 1.1rem;
    color: var(--wca-text-muted);
    margin: 0 0 10px 0;
}

.course-type-total {
    font-size: 0.95rem;
    color: var(--wca-accent);
    font-weight: 600;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.course-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-decoration: none;
    background: var(--wca-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Odd rows: Info left, Image right */
.course-row-odd .course-row-info {
    order: 1;
    padding: 40px;
}
.course-row-odd .course-row-image {
    order: 2;
}

/* Even rows: Image left, Info right */
.course-row-even .course-row-info {
    order: 2;
    padding: 40px;
}
.course-row-even .course-row-image {
    order: 1;
}

.course-row-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-row-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wca-primary);
    margin: 0;
    line-height: 1.3;
}

.course-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--wca-text-muted);
}

.course-row-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-row-meta i {
    color: var(--wca-accent);
}

.course-row-desc {
    font-size: 1rem;
    color: var(--wca-text-muted);
    line-height: 1.6;
    margin: 8px 0 0 0;
}

.course-row-image {
    height: 280px;
    overflow: hidden;
}

.course-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-row:hover .course-row-image img {
    transform: scale(1.05);
}

.course-row-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wca-bg);
}

.course-row-placeholder i {
    font-size: 4rem;
    color: var(--wca-border);
}

.no-courses {
    text-align: center;
    padding: 60px 20px;
    color: var(--wca-text-muted);
}

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

    .course-row-odd .course-row-info,
    .course-row-even .course-row-info {
        order: 2;
        padding: 24px;
    }

    .course-row-odd .course-row-image,
    .course-row-even .course-row-image {
        order: 1;
    }

    .course-row-image {
        height: 200px;
    }

    .course-row-title {
        font-size: 1.3rem;
    }
}

/* =========================================
   Single Course Page
   ========================================= */

.single-course-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 80px;
}

.course-back-nav {
    margin-bottom: 30px;
}

.course-header {
    margin-bottom: 30px;
}

.course-header .course-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--wca-primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.course-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.course-date,
.course-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--wca-text-muted);
}

.course-date i,
.course-location i {
    color: var(--wca-accent);
}

.course-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.course-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-course-article .course-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--wca-text-main);
}

.single-course-article .course-content p {
    margin-bottom: 1.5em;
}

@media (max-width: 600px) {
    .course-header .course-title {
        font-size: 1.8rem;
    }
}