/**
 * SAP Resource Page Styles
 * Custom styles for the SAP (Substance Abuse Professional) resource page template
 */

/* ===================================
   VARIABLES & RESET
   =================================== */
:root {
    --sap-primary: #1950D1;
    --sap-secondary: #1543B8;
    --sap-accent: #2D65E8;
    --sap-dark: #333333;
    --sap-gray: #666666;
    --sap-light-gray: #f4f4f4;
    --sap-light-blue: #E8F0FE;
    --sap-white: #ffffff;
    --sap-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --sap-shadow-hover: 0 4px 20px rgba(25, 80, 209, 0.15);
}

.sap-resource-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--sap-dark);
    line-height: 1.6;
}

.sap-resource-page * {
    box-sizing: border-box;
}

/* ===================================
   HERO SECTION
   =================================== */
.sap-hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--sap-white);
    text-align: center;
    padding: 80px 20px;
}

.sap-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sap-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.sap-hero-title {
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 20px;
    line-height: 1.2;
}

.sap-hero-subtitle {
    font-size: 20px;
    margin: 0 0 40px;
    opacity: 0.95;
}

.sap-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   BUTTONS
   =================================== */
.sap-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.sap-btn-primary {
    background: var(--sap-primary);
    color: var(--sap-white);
}

.sap-btn-primary:hover {
    background: var(--sap-secondary);
    transform: translateY(-2px);
    box-shadow: var(--sap-shadow-hover);
}

.sap-btn-secondary {
    background: transparent;
    color: var(--sap-white);
    border-color: var(--sap-white);
}

.sap-btn-secondary:hover {
    background: var(--sap-white);
    color: var(--sap-primary);
}

.sap-btn-outline {
    background: var(--sap-white);
    color: var(--sap-primary);
    border-color: var(--sap-primary);
}

.sap-btn-outline:hover {
    background: var(--sap-primary);
    color: var(--sap-white);
}

.sap-btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

.sap-btn-white {
    background: var(--sap-white);
    color: var(--sap-primary);
    border-color: var(--sap-white);
}

.sap-btn-white:hover {
    background: transparent;
    color: var(--sap-white);
    border-color: var(--sap-white);
}

/* ===================================
   SECTIONS
   =================================== */
.sap-section {
    padding: 80px 20px;
}

.sap-section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 20px;
    color: var(--sap-dark);
}

.sap-intro-text {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--sap-gray);
}

/* ===================================
   WHAT IS SAP SECTION
   =================================== */
.sap-what-is {
    background: var(--sap-white);
}

.sap-icon-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sap-icon-box {
    text-align: center;
    padding: 30px 20px;
}

.sap-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.sap-icon-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--sap-primary);
}

.sap-icon-box p {
    font-size: 16px;
    color: var(--sap-gray);
    margin: 0;
}

.sap-info-box {
    background: var(--sap-light-blue);
    border-left: 4px solid var(--sap-primary);
    padding: 25px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.sap-info-box p {
    margin: 0;
    font-size: 16px;
    color: var(--sap-dark);
}

/* ===================================
   WHY PARTNER SECTION
   =================================== */
.sap-why-partner {
    background: var(--sap-light-gray);
}

.sap-benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sap-card {
    background: var(--sap-white);
    padding: 35px 25px;
    border-radius: 8px;
    box-shadow: var(--sap-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.sap-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sap-shadow-hover);
}

.sap-card-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.sap-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--sap-primary);
}

.sap-card p {
    font-size: 16px;
    color: var(--sap-gray);
    margin: 0;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.sap-how-it-works {
    background: var(--sap-white);
}

.sap-process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.sap-step {
    text-align: center;
    position: relative;
}

.sap-step-number {
    width: 60px;
    height: 60px;
    background: var(--sap-primary);
    color: var(--sap-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.sap-step-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.sap-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--sap-dark);
}

.sap-step p {
    font-size: 16px;
    color: var(--sap-gray);
    margin: 0;
}

/* ===================================
   COURSES SECTION
   =================================== */
.sap-courses {
    background: linear-gradient(135deg, var(--sap-primary) 0%, var(--sap-secondary) 100%);
    color: var(--sap-white);
}

.sap-courses .sap-section-title,
.sap-courses .sap-intro-text {
    color: var(--sap-white);
}

.sap-course-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sap-course-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 35px 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.sap-course-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.sap-course-category h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--sap-white);
}

.sap-course-category > p {
    font-size: 16px;
    margin: 0 0 20px;
    opacity: 0.95;
}

.sap-course-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sap-course-topics li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
}

.sap-course-topics li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sap-white);
    font-weight: bold;
}

.sap-course-cta {
    text-align: center;
}

/* ===================================
   RESOURCES SECTION
   =================================== */
.sap-resources {
    background: var(--sap-white);
}

.sap-resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.sap-resource-group {
    margin-bottom: 30px;
}

.sap-resource-group h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--sap-primary);
}

.sap-resource-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sap-resource-group li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: var(--sap-gray);
}

.sap-resource-group li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sap-primary);
    font-weight: bold;
    font-size: 18px;
}

.sap-dashboard-box {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    display: flex;
    align-items: center;
}

.sap-dashboard-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--sap-dark);
}

/* ===================================
   FAQ SECTION
   =================================== */
.sap-faq {
    background: var(--sap-light-gray);
}

.sap-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.sap-accordion-item {
    background: var(--sap-white);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sap-shadow);
}

.sap-accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--sap-dark);
    transition: all 0.3s ease;
}

.sap-accordion-header:hover {
    color: var(--sap-primary);
}

.sap-accordion-item.active .sap-accordion-header {
    color: var(--sap-primary);
}

.sap-accordion-icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--sap-primary);
    transition: transform 0.3s ease;
}

.sap-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sap-accordion-item.active .sap-accordion-content {
    max-height: 500px;
}

.sap-accordion-content p {
    padding: 0 25px 25px;
    margin: 0;
    font-size: 16px;
    color: var(--sap-gray);
    line-height: 1.7;
}

/* ===================================
   CTA SECTION
   =================================== */
.sap-cta {
    background: linear-gradient(135deg, var(--sap-primary) 0%, var(--sap-secondary) 100%);
    color: var(--sap-white);
    text-align: center;
}

.sap-cta .sap-section-title {
    color: var(--sap-white);
}

.sap-cta-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.95;
}

.sap-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.sap-stat {
    text-align: center;
}

.sap-stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--sap-white);
    margin-bottom: 10px;
}

.sap-stat-label {
    font-size: 16px;
    opacity: 0.9;
}

.sap-cta-button {
    margin-bottom: 30px;
}

.sap-cta-contact {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

.sap-cta-contact a {
    color: var(--sap-white);
    text-decoration: underline;
}

.sap-cta-contact a:hover {
    text-decoration: none;
}

/* ===================================
   CONTACT FOOTER SECTION
   =================================== */
.sap-contact-footer {
    background: var(--sap-dark);
    color: var(--sap-white);
}

.sap-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.sap-footer-info h3,
.sap-footer-links h3 {
    font-size: 24px;
    margin: 0 0 20px;
    color: var(--sap-white);
}

.sap-footer-info p {
    font-size: 16px;
    margin: 0 0 25px;
    opacity: 0.9;
}

.sap-contact-info p {
    margin: 10px 0;
}

.sap-contact-info a {
    color: var(--sap-white);
    text-decoration: none;
}

.sap-contact-info a:hover {
    text-decoration: underline;
}

.sap-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sap-footer-links li {
    margin-bottom: 12px;
}

.sap-footer-links a {
    color: var(--sap-white);
    text-decoration: none;
    font-size: 16px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.sap-footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.sap-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sap-footer-bottom p {
    margin: 10px 0;
    font-size: 14px;
    opacity: 0.8;
}

/* ===================================
   DEMO COURSE STYLES
   =================================== */

/* Hero Demo Button */
.sap-btn-demo {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.sap-btn-demo:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff7733 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* How It Works Demo Callout */
.sap-demo-callout {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    border: 2px solid #ff6b35;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.sap-demo-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.sap-demo-content {
    flex: 1;
}

.sap-demo-content h4 {
    color: #ff6b35;
    margin: 0 0 10px 0;
    font-size: 22px;
}

.sap-demo-content p {
    margin: 0 0 15px 0;
    color: #333;
}

.sap-btn-demo-small {
    background: #ff6b35;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sap-btn-demo-small:hover {
    background: #ff5722;
    transform: translateX(5px);
    text-decoration: none;
    color: white;
}

/* Courses Section Demo Banner */
.sap-demo-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

.sap-demo-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.sap-demo-banner-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
}

.sap-demo-banner-content {
    position: relative;
    z-index: 1;
}

.sap-demo-banner-content h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 28px;
}

.sap-demo-banner-content p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
}

.sap-demo-banner-features {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.sap-demo-banner-features span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.sap-btn-demo-large {
    background: white;
    color: #ff6b35;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sap-btn-demo-large:hover {
    background: #fff;
    color: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Resources Section Demo */
.sap-resource-demo {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    border: 2px solid #ff6b35;
    border-radius: 8px;
    padding: 20px;
}

.sap-resource-demo h4 {
    color: #ff6b35;
    margin-top: 0;
}

.sap-resource-demo p {
    color: #333;
    line-height: 1.6;
}

.sap-resource-link {
    display: inline-block;
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.sap-resource-link:hover {
    color: #ff5722;
    transform: translateX(5px);
    text-decoration: none;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablet */
@media (max-width: 992px) {
    .sap-hero-title {
        font-size: 36px;
    }

    .sap-hero-subtitle {
        font-size: 18px;
    }

    .sap-section {
        padding: 60px 20px;
    }

    .sap-section-title {
        font-size: 32px;
    }

    .sap-resources-grid,
    .sap-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sap-stats {
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sap-hero {
        min-height: 450px;
        padding: 60px 20px;
    }

    .sap-hero-title {
        font-size: 28px;
    }

    .sap-hero-subtitle {
        font-size: 16px;
    }

    .sap-hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .sap-btn {
        width: 100%;
        max-width: 300px;
    }

    .sap-section {
        padding: 40px 15px;
    }

    .sap-section-title {
        font-size: 28px;
    }

    .sap-intro-text {
        font-size: 16px;
    }

    .sap-icon-boxes,
    .sap-benefit-cards,
    .sap-process-steps,
    .sap-course-categories {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .sap-stat-number {
        font-size: 36px;
    }

    .sap-accordion-header {
        font-size: 16px;
        padding: 15px 20px;
    }

    .sap-accordion-content p {
        padding: 0 20px 20px;
        font-size: 15px;
    }

    /* Demo Course Mobile Styles */
    .sap-demo-callout {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .sap-demo-icon {
        font-size: 36px;
    }

    .sap-demo-banner {
        padding: 30px 20px;
    }

    .sap-demo-banner-content h3 {
        font-size: 22px;
    }

    .sap-demo-banner-features {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .sap-hero-title {
        font-size: 24px;
    }

    .sap-section-title {
        font-size: 24px;
    }

    .sap-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .sap-stats {
        flex-direction: column;
        gap: 30px;
    }
}

/* Print Styles */
@media print {
    .sap-hero,
    .sap-cta,
    .sap-btn {
        display: none;
    }

    .sap-section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}
