/* ==========================================
   SPH Media Subscriptions Page Styles
   ========================================== */

   :root {
    --sph-blue: #de0a16;
    --sph-dark-red: #a01418;
    --sph-black: #1a1a1a;
    --sph-gray: #4a4a4a;
    --sph-light-gray: #f5f5f5;
    --sph-border: #e0e0e0;
    --sph-white: #ffffff;
    --sph-blue: #de0a16;
    --sph-green: #28a745;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Source Sans 3', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--sph-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
    background: var(--sph-white);
    border-bottom: 1px solid var(--sph-border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    width: 60px;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--sph-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sph-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--sph-blue);
}

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

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--sph-white);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(215,25,32,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--sph-blue);
    color: var(--sph-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-hero-primary {
    background: var(--sph-blue);
    color: var(--sph-white);
    border: 2px solid var(--sph-blue);
}

.btn-hero-primary:hover {
    background: var(--sph-blue);
    border-color: var(--sph-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(215, 25, 32, 0.3);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--sph-white);
    border: 2px solid var(--sph-white);
}

.btn-hero-secondary:hover {
    background: var(--sph-white);
    color: var(--sph-black);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--sph-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 600;
}

ul.footer-links {
    padding: 0px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   SECTION COMMON STYLES
   ========================================== */

section {
    padding: 25px 0;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--sph-black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--sph-gray);
    font-weight: 300;
}

/* ==========================================
   PUBLICATIONS SECTION
   ========================================== */

.publications-section {
    background: var(--sph-light-gray);
}

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

.publication-card {
    background: var(--sph-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.publication-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.publication-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sph-blue) 0%, var(--sph-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.publication-logo i {
    font-size: 2.5rem;
    color: var(--sph-white);
}

.publication-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--sph-black);
}

.publication-lang {
    color: var(--sph-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.publication-body {
    flex: 1;
}

.publication-desc {
    color: var(--sph-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.publication-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--sph-gray);
}

.feature-item i {
    color: var(--sph-green);
    font-size: 1.1rem;
}

.publication-footer {
    margin-top: auto;
}

.btn-publication {
    width: 100%;
    padding: 0.875rem;
    background: var(--sph-white);
    color: var(--sph-blue);
    border: 2px solid var(--sph-blue);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-publication:hover {
    background: var(--sph-blue);
    color: var(--sph-white);
    transform: translateY(-2px);
}

/* ==========================================
   PLANS SECTION
   ========================================== */

.plans-section {
    background: var(--sph-white);
}

.plan-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    background: var(--sph-light-gray);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--sph-gray);
    position: relative;
}

.toggle-btn.active {
    background: var(--sph-white);
    color: var(--sph-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.save-badge {
    background: var(--sph-green);
    color: var(--sph-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--sph-white);
    border: 2px solid var(--sph-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--sph-blue);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(215, 25, 32, 0.15);
}

.pricing-card.featured {
    border-color: var(--sph-blue);
    box-shadow: 0 8px 32px rgba(215, 25, 32, 0.2);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sph-blue);
    color: var(--sph-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--sph-black);
}

.card-subtitle {
    color: var(--sph-gray);
    font-size: 1rem;
}

.card-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--sph-light-gray);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--sph-blue);
    line-height: 1;
}

.price-period {
    font-size: 1.1rem;
    color: var(--sph-gray);
    font-weight: 600;
}

.card-features {
    flex: 1;
    margin-bottom: 2rem;
}

.card-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--sph-gray);
    font-size: 1rem;
}

.card-features .feature i {
    color: var(--sph-green);
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-subscribe,
.btn-subscribe-featured {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-top: auto;
}

.btn-subscribe {
    background: var(--sph-white);
    color: var(--sph-blue);
    border: 2px solid var(--sph-blue);
}

.btn-subscribe:hover {
    background: var(--sph-blue);
    color: var(--sph-white);
    transform: translateY(-2px);
}

.btn-subscribe-featured {
    background: var(--sph-blue);
    color: var(--sph-white);
    border: 2px solid var(--sph-blue);
}

.btn-subscribe-featured:hover {
    background: var(--sph-blue);
    border-color: var(--sph-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(215, 25, 32, 0.3);
}

/* Trial Banner */
.trial-banner {
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--sph-blue) 0%, var(--sph-blue) 100%);
    border-radius: 16px;
    padding: 3rem;
    color: var(--sph-white);
}

.trial-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.trial-icon {
    font-size: 3rem;
}

.trial-text {
    flex: 1;
}

.trial-text h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trial-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-trial {
    background: var(--sph-white);
    color: var(--sph-blue);
    border: 2px solid var(--sph-white);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-trial:hover {
    background: transparent;
    color: var(--sph-white);
    transform: translateY(-2px);
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */

.benefits-section {
    background: var(--sph-light-gray);
}

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

.benefit-card {
    background: var(--sph-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sph-blue) 0%, var(--sph-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2.5rem;
    color: var(--sph-white);
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--sph-black);
}

.benefit-desc {
    color: var(--sph-gray);
    line-height: 1.7;
}

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq-section {
    background: var(--sph-white);
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--sph-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sph-black);
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--sph-blue);
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
    color: var(--sph-blue);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--sph-gray);
    line-height: 1.8;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--sph-white);
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: var(--sph-blue);
    color: var(--sph-white);
    border: 2px solid var(--sph-blue);
}

.btn-cta-primary:hover {
    background: var(--sph-blue);
    border-color: var(--sph-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(215, 25, 32, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--sph-white);
    border: 2px solid var(--sph-white);
}

.btn-cta-secondary:hover {
    background: var(--sph-white);
    color: var(--sph-black);
    transform: translateY(-2px);
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: var(--sph-black);
    color: var(--sph-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--sph-white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--sph-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sph-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--sph-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

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

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

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .trial-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .header-nav {
        display: none;
    }

    .hero-section {
        padding: 4rem 0 3rem;
    }

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

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

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

    .publications-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

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

    .cta-buttons {
        flex-direction: column;
    }

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

/* Utility Classes */
.d-none {
    display: none !important;
}

@media (max-width: 576px) {
    .logo {
        width: 100px;
    }
}