/* Positive Psychology global styles
   Ported verbatim from the page 16 Code Module (Divi 5 fullwidth-code).
   Do not edit alongside the old code module - this file is now the source of truth. */

/* ==== */
/* 1.1 GLOBAL STYLES & CONTAINER    */
/* ==== */
.pp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Override Divi defaults */
.pp-section * {
    box-sizing: border-box;
}

.pp-section {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

/* ==== */
/* 1.2 HEADER & NAVIGATION STYLES    */
/* ==== */
.pp-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.pp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.pp-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
}

.pp-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.pp-nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.pp-nav-links a:hover {
    color: #2c5aa0;
}

.pp-cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.pp-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white !important;
}

/* ==== */
/* 1.3 HERO SECTION STYLES    */
/* ==== */
.pp-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.pp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.pp-hero-content {
    position: relative;
    z-index: 2;
}

.pp-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

/* Fixed specificity for hero subtitle - MARGIN FIX APPLIED HERE */
.pp-hero p.pp-hero-subtitle {
    font-size: 1.3rem;
    color: #5a6c7d;
    margin-bottom: 3rem;  /* Increased from 2rem */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pp-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.pp-social-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: #5a6c7d;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* ==== */
/* 1.4 BUTTON STYLES    */
/* ==== */
.pp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.pp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.pp-btn-secondary {
    background: white;
    color: #2c5aa0 !important;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid #2c5aa0;
    display: inline-block;
}

.pp-btn-secondary:hover {
    background: #2c5aa0;
    color: white !important;
    transform: translateY(-2px);
}

.pp-btn-white {
    background: white;
    color: #2c5aa0 !important;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.pp-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #2c5aa0 !important;
}

/* ==== */
/* 1.5 FEATURED COURSE SECTION STYLES    */
/* ==== */
.pp-featured-course {
    padding: 80px 0;
    background: white;
}

.pp-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pp-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.pp-section-subtitle {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto;
}

.pp-course-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pp-course-info {
    text-align: left;
}

.pp-course-info h3 {
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.pp-course-description {
    font-size: 1.1rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.pp-course-highlights {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.pp-course-highlights li {
    padding: 0.5rem 0;
    color: #2c3e50;
    position: relative;
    padding-left: 2rem;
}

.pp-course-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==== */
/* NON-CERTIFICATED COURSE OPTION STYLES    */
/* ==== */
.pp-noncert-option {
    margin-top: 1.5rem;
}

.pp-noncert-title {
    font-weight: 700;
    color: #764ba2;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pp-noncert-desc {
    color: #5a6c7d;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pp-course-visual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pp-course-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pp-float 6s ease-in-out infinite;
}

@keyframes pp-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.pp-course-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.pp-stat {
    text-align: center;
}

.pp-stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.pp-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==== */
/* 1.6 OUR COURSES GRID SECTION STYLES    */
/* ==== */
.pp-courses {
    padding: 80px 0;
    background: #f8f9fa;
}

.pp-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pp-course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pp-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pp-course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.pp-course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pp-course-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pp-course-card-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pp-course-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
  margin-top: 1rem;
}

.pp-course-link {
    color: #2c5aa0;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    margin-top: auto;
}

.pp-course-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* ==== */
/* 1.7 BENEFITS SECTION STYLES    */
/* ==== */
.pp-benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pp-benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
}

.pp-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pp-benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.pp-benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.pp-benefit-description {
    color: #5a6c7d;
    line-height: 1.6;
}

/* ==== */
/* 1.8 TESTIMONIALS SECTION STYLES    */
/* ==== */
.pp-testimonials {
    padding: 80px 0;
    background: white;
}

.pp-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pp-testimonial {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
}

.pp-testimonial::before {
    content: '"';
    font-size: 4rem;
    color: #2c5aa0;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
}

.pp-testimonial-text {
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.pp-testimonial-author {
    font-weight: 600;
    color: #2c5aa0;
}

/* ==== */
/* 1.9 FINAL CTA SECTION STYLES    */
/* ==== */
.pp-final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.pp-final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

/* Fixed with !important for final CTA paragraph - MARGIN FIX APPLIED HERE */
.pp-final-cta p {
    font-size: 1.2rem;
    margin-bottom: 3rem !important;  /* Increased from 2rem with !important */
    opacity: 0.9;
}

/* ==== */
/* 1.10 RESPONSIVE DESIGN    */
/* ==== */
@media (max-width: 768px) {
    .pp-hero h1 {
    font-size: 2.5rem;
    }

    .pp-course-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
    }

    .pp-nav-links {
    display: none;
    }

    .pp-hero-cta {
    flex-direction: column;
    align-items: center;
    }

    .pp-social-proof {
    flex-direction: column;
    gap: 1rem;
    }

    .pp-nav {
    justify-content: space-between;
    }
    
    .pp-courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pp-container {
    padding: 0 15px;
    }
    
    .pp-hero {
    padding: 60px 0;
    }
    
    .pp-featured-course,
    .pp-benefits,
    .pp-testimonials,
    .pp-final-cta {
    padding: 60px 0;
    }
}

/* ---- Vimeo player (ported from the in-page code module) ---- */
.vimeo-player {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.vimeo-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}
.vimeo-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}
.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}
@media (max-width: 768px) {
    .vimeo-player {
        margin: 0 15px;
    }
}
