/*
Theme Name: Twenty Twenty-Five Child - Group Buys
Description: Child theme for Group Buys Courses website  
Template: twentytwentyfive
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* ================================
   GROUP BUYS COURSES STYLES
   ================================ */

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Archive Header */
.course-archive-header {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.course-archive-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.course-archive-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Course Grid */
.featured-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Course Card Styles */
.course-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Course Image */
.course-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.no-image-placeholder span {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Status Badge */
.course-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.status-active {
    background: #10b981;
    color: white;
}

.status-completed {
    background: #6b7280;
    color: white;
}

.status-coming-soon {
    background: #f59e0b;
    color: white;
}

.status-cancelled {
    background: #ef4444;
    color: white;
}

/* Savings Badge */
.savings-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* Course Card Content */
.course-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-title a {
    text-decoration: none;
    color: #1f2937;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #3b82f6;
}

.course-instructor {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Course Category Tags */
.course-categories {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.course-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-category-tag:hover {
    background: #4338ca;
    color: white;
}

.course-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Pricing Section */
.course-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

.price-group-buy {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ef4444;
}

/* Progress Bar */
.course-progress {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.countdown-item {
    text-align: center;
    min-width: 50px;
}

.countdown-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Action Button */
.course-action-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
}

.course-action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-archive-title {
        font-size: 2rem;
    }
    
    .course-archive-description {
        font-size: 1rem;
    }
    
    .countdown-timer {
        gap: 12px;
    }
    
    .countdown-number {
        font-size: 1.25rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .course-card {
        background: #1f2937;
        color: #f9fafb;
        border-color: #374151;
    }
    
    .course-title a {
        color: #f9fafb;
    }
    
    .course-title a:hover {
        color: #60a5fa;
    }
}

/* ================================
   SINGLE COURSE PAGE STYLES
   ================================ */

/* Single Course Header */
.single-course-header {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.course-header-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.course-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.course-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.course-single-instructor {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.course-single-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.course-single-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.course-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Single Course Content */
.single-course-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.course-main-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.course-section {
    margin-bottom: 40px;
}

.course-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 10px;
}

.course-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

.learning-points {
    display: grid;
    gap: 16px;
}

.learning-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.checkmark {
    color: #10b981;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.learning-item span:last-child {
    color: #1f2937;
    font-weight: 500;
}

/* Course Sidebar */
.course-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
}

/* ================================
   SIDEBAR FEATURES LIST
   ================================ */

.sidebar-features {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateX(4px);
}

.feature-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

/* Sidebar Pricing */
.sidebar-pricing {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.price-original-large {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.price-group-buy-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 8px;
}

.savings-text {
    color: #10b981;
    font-weight: 600;
    font-size: 1rem;
}

/* Sidebar Progress */
.sidebar-progress {
    margin-bottom: 24px;
}

.sidebar-progress .progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Sidebar Countdown */
.sidebar-countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.sidebar-countdown .countdown-item {
    text-align: center;
    min-width: 60px;
}

.sidebar-countdown .countdown-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.sidebar-countdown .countdown-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Responsive Design for Single Course */
@media (max-width: 1024px) {
    .single-course-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .course-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .course-header-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .course-single-title {
        font-size: 2rem;
    }
    
    .course-main-content {
        padding: 24px;
    }
    
    .sidebar-card {
        padding: 24px;
    }
    
    .sidebar-countdown {
        gap: 12px;
    }
    
    .sidebar-countdown .countdown-number {
        font-size: 1.5rem;
    }
    
    .feature-item {
        padding: 6px 0;
    }
    
    .feature-text {
        font-size: 0.85rem;
    }
}

/* Rich Text Content Styling */
.learning-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

.learning-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 24px 0 16px 0;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
}

.learning-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 20px 0 12px 0;
}

.learning-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 16px 0 8px 0;
}

.learning-content p {
    margin-bottom: 16px;
}

.learning-content ul, .learning-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.learning-content li {
    margin-bottom: 8px;
    position: relative;
}

.learning-content ul li::marker {
    color: #10b981;
    font-weight: bold;
}

.learning-content ol li::marker {
    color: #3b82f6;
    font-weight: bold;
}

.learning-content strong {
    color: #1f2937;
    font-weight: 700;
}

.learning-content em {
    font-style: italic;
    color: #6b7280;
}

.learning-content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.learning-content a:hover {
    color: #1d4ed8;
}

.learning-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 16px;
    margin: 20px 0;
    font-style: italic;
    color: #6b7280;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
}

/* ================================
   COURSE CONTENT & PROOF SECTION
   ================================ */

.course-content-proof {
    background: #f8fafc;
    padding: 32px;
    border-radius: 16px;
    border-left: 4px solid #10b981;
    margin-top: 8px;
    position: relative;
}

.course-content-proof::before {
    content: "🔒 Verified Course Access";
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    position: absolute;
    top: -12px;
    left: 24px;
}

/* Style images in course content */
.course-content-proof img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 16px 0;
    border: 2px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-content-proof img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Style text content */
.course-content-proof p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 16px;
}

.course-content-proof h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 24px 0 12px 0;
    border-bottom: 2px solid #10b981;
    padding-bottom: 8px;
}

.course-content-proof h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 20px 0 8px 0;
}

.course-content-proof ul, .course-content-proof ol {
    margin: 16px 0;
    padding-left: 24px;
}

.course-content-proof li {
    margin-bottom: 8px;
    color: #4b5563;
    line-height: 1.6;
}

.course-content-proof ul li::marker {
    color: #10b981;
}

.course-content-proof ol li::marker {
    color: #3b82f6;
    font-weight: bold;
}

.course-content-proof strong {
    color: #1f2937;
    font-weight: 700;
}

.course-content-proof em {
    font-style: italic;
    color: #6b7280;
}

.course-content-proof a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.course-content-proof a:hover {
    color: #1d4ed8;
}

/* Image gallery styles */
.course-content-proof .wp-block-gallery,
.course-content-proof .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.course-content-proof .wp-block-image,
.course-content-proof .gallery-item {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-content-proof {
        padding: 20px;
    }
    
    .course-content-proof::before {
        position: static;
        display: block;
        margin-bottom: 16px;
        text-align: center;
    }
    
    .course-content-proof .wp-block-gallery,
    .course-content-proof .gallery {
        grid-template-columns: 1fr;
    }
}

/* Loading state for images */
.course-content-proof img[src=""] {
    background: #e5e7eb;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-content-proof img[src=""]:before {
    content: "Loading...";
    color: #9ca3af;
}

/* Print styles */
@media print {
    .course-content-proof img {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* ================================
   REMOVE ALL WORDPRESS HEADERS
   ================================ */

/* Nuclear option - hide ALL WordPress headers and navigation */
.wp-site-blocks > header,
header.wp-block-template-part,
.wp-block-template-part,
.wp-block-navigation,
.wp-block-navigation-item,
.wp-block-page-list,
.wp-block-site-title,
.wp-block-site-tagline,
.wp-block-navigation-link,
.wp-block-navigation-submenu,
.wp-block-home-link,
header[role="banner"],
.site-header:not(.simple-nav),
.main-navigation:not(.simple-nav),
#site-navigation,
.primary-navigation,
.menu-primary-container,
.nav-menu:not(.simple-nav .nav-links),
.menu:not(.simple-nav .nav-links),
nav:not(.simple-nav),
.navigation:not(.simple-nav),
.top-navigation,
.header-navigation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Ensure our custom nav is always visible */
.simple-nav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 9999 !important;
}

/* ================================
   CUSTOM NAVIGATION STYLES
   ================================ */

/* Navigation styles - Forced on all pages */
.simple-nav {
    background: white !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 15px 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.simple-nav .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.simple-nav .logo {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    text-decoration: none !important;
}

.simple-nav .nav-links {
    display: flex !important;
    gap: 30px !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.simple-nav .nav-links a {
    color: #374151 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.simple-nav .nav-links a:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

/* Fix body spacing */
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ensure content starts below nav */
#content,
.site-content,
main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Admin bar adjustments */
body.admin-bar .simple-nav {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .simple-nav {
        top: 46px !important;
    }
}

/* Responsive navigation */
@media (max-width: 768px) {
    .simple-nav .nav-links {
        gap: 15px !important;
    }
    
    .simple-nav .nav-links a {
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
    }
}