/* QRATIV Website Styles - Original Design Recreation */
/* Matching the purple/teal color scheme from the original website */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header and Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8B5CF6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B5CF6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main {
    margin-top: 80px;
}

/* Hero Section - Light Purple Background */
.hero {
    background: linear-gradient(135deg, #A78BFA 0%, #C084FC 100%);
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

/* Why Focus Section - White Background */
.why-focus {
    padding: 6rem 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
    font-size: 2.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

.visual-content {
    display: flex;
    justify-content: center;
}

.stat-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A78BFA 0%, #C084FC 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

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

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

/* Say Goodbye Section - Teal Background */
.say-goodbye {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
    padding: 6rem 0;
}

.say-goodbye .section-title {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.quote-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quote-text {
    font-size: 1.25rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
    color: white;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: white;
    font-size: 1.125rem;
}

.author-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.quote-icons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.icon-item {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Platform Section - White Background */
.platform-section {
    padding: 6rem 0;
    background: white;
}

.platform-description {
    text-align: center;
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.platform-diagram {
    margin-top: 3rem;
}

.data-sources {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: start;
}

.source-item {
    text-align: center;
}

.source-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.source-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.source-details {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.source-details div {
    margin-bottom: 0.25rem;
}

/* Why Drug Purposing Section - Light Purple Background */
.why-drug-purposing {
    background: linear-gradient(135deg, #A78BFA 0%, #C084FC 100%);
    color: white;
    padding: 6rem 0;
}

.why-drug-purposing .section-title {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.reasons-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.reason-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.reason-text {
    color: white;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Make Difference Section - White Background */
.make-difference {
    padding: 6rem 0;
    background: white;
}

.difference-text {
    text-align: center;
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* How It Works Section - White Background */
.how-it-works {
    padding: 6rem 0;
    background: white;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    margin-bottom: 4rem;
}

.step-title {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.step-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.step-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-text {
    color: #4b5563;
    line-height: 1.6;
}

/* Contact Section - Teal Background */
.contact-section {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
    padding: 6rem 0;
}

.contact-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    text-align: center;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-white {
    background: white;
    color: #0D9488;
    border-color: white;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #33B599;
    color: white;
    padding: 4rem 0 0;
}

.footer-contact {
    text-align: center;
    padding: 3rem 0;
}

.footer-contact p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: white;
}

.footer-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-contact-item {
    text-align: center;
}

.footer-contact-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-contact-value {
    font-size: 1rem;
    color: white;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.footer-btn {
    background: white;
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.footer-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 200px;
}

.footer-location-left {
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-location-right {
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-location-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

.footer-bottom {
    background: #1f2937;
    padding: 2rem 0;
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quote-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .data-sources {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .reasons-list {
        grid-template-columns: 1fr;
    }

    .step-content {
        grid-template-columns: 1fr;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-images {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .why-focus,
    .say-goodbye,
    .platform-section,
    .why-drug-purposing,
    .make-difference,
    .how-it-works,
    .contact-section {
        padding: 4rem 0;
    }

    .stat-circle {
        width: 150px;
        height: 150px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.article-excerpt {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.article-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.article-actions {
    text-align: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: white;
    color: #374151;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
/* Clickable Article Items */
.article-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-item-link:hover .article-item {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-item-link .article-link {
    color: #2563eb;
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
}

.article-item-link:hover .article-link {
    color: #1d4ed8;
    text-decoration: underline;
}
