/*
---
File: style.css
Project: IPTV UK Professional Website - THE DEFINITIVE & FINAL BUILD (V5)
Description: This version includes a final, bold redesign of the pricing table
             based on direct feedback. The 'content-section' is reverted to its
             original unique style, and the SEO section's text width is expanded
             for better layout. This is the definitive build.
---
*/

/* --- 1. THEME & GLOBAL VARIABLES --- */
:root {
    /* Font & Layout */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;

    /* Shared Colors */
    --blue-primary: #007BFF;
    --cyan-accent: #00B8FF;
    --success-color: #28a745;
    --white-color: #FFFFFF;
    --black-color: #000000;
}

/* --- 2. THEME DEFINITIONS (DARK & LIGHT) --- */

/* "Pro" Dark Mode (Default) */
body.dark-mode {
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --border-color: #30363D;
    --header-bg: rgba(13, 17, 23, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: #161B22;
    --logo-span-color: var(--cyan-accent);
}

/* "Pro" Light Mode */
body.light-mode {
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --border-color: #E9ECEF;
    --header-bg: rgba(255, 255, 255, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.07);
    --card-bg: #FFFFFF;
    --logo-span-color: var(--blue-primary);
}

/* --- 3. BASE, HEADER, FOOTER --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-stack);
    line-height: 1.7;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { color: var(--blue-primary); text-decoration: none; }
.main-header {
    background-color: var(--header-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky; top: 0; z-index: 1000;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}
.main-header .container, .header-right { display: flex; align-items: center; justify-content: space-between; }
.header-right { gap: 1.5rem; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); }
.logo span { color: var(--logo-span-color); }
.main-nav ul { display: flex; gap: 2.5rem; list-style: none; }
.main-nav a { color: var(--text-secondary); font-weight: 500; transition: color var(--transition-fast); }
.main-nav a:hover { color: var(--text-primary); }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }
.language-switcher { position: relative; }
.language-switcher .selected-lang { border: 1px solid var(--border-color); border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: all var(--transition-fast); }
.language-switcher .selected-lang:hover { border-color: var(--blue-primary); }
.language-switcher .lang-options { display: none; position: absolute; top: calc(100% + 10px); right: 0; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius-md); list-style: none; width: 150px; z-index: 10; overflow: hidden; box-shadow: 0 10px 20px var(--shadow-color); padding: 0.5rem; }
.language-switcher.active .lang-options { display: block; }
.language-switcher .lang-options li a { color: var(--text-secondary); display: block; padding: 0.75rem 1rem; border-radius: 8px; transition: background-color var(--transition-fast), color var(--transition-fast); }
.language-switcher .lang-options li a:hover { background-color: var(--blue-primary); color: var(--white-color); }
.theme-switcher { position: relative; }
#theme-toggle-checkbox { display: none; }
.theme-toggle-label { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 50px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 5px; position: relative; height: 32px; width: 60px; transition: background-color var(--transition-smooth), border-color var(--transition-smooth); }
.theme-toggle-label::after { content: ""; background-color: var(--text-primary); border-radius: 50%; position: absolute; top: 3px; left: 4px; height: 24px; width: 24px; transition: transform var(--transition-smooth), background-color var(--transition-smooth); }
#theme-toggle-checkbox:checked + .theme-toggle-label::after { transform: translateX(28px); }
.theme-toggle-label .fa-sun, .theme-toggle-label .fa-moon { font-size: 14px; }
.theme-toggle-label .fa-sun { color: #f39c12; }
.theme-toggle-label .fa-moon { color: #f1c40f; }
.main-footer { background-color: var(--bg-primary); padding: 5rem 0 2.5rem; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-column .logo { margin-bottom: 1rem; display: inline-block; }
.footer-column h4 { color: var(--text-primary); margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.footer-column h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background-color: var(--blue-primary); }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column a { color: var(--text-secondary); transition: color var(--transition-fast); }
.footer-column a:hover { color: var(--blue-primary); }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { width: 44px; height: 44px; display: grid; place-items: center; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 50%; color: var(--text-secondary); transition: all var(--transition-fast); }
.social-icons a:hover { background-color: var(--blue-primary); border-color: var(--blue-primary); color: var(--white-color); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2.5rem; text-align: center; font-size: 0.9rem; }

/* --- 4. HOMEPAGE SECTIONS --- */

/* --- General Section & Typography Styles --- */
section { padding: 6rem 0; background-color: var(--bg-primary); transition: background-color var(--transition-smooth); }
section:nth-of-type(even) { background-color: var(--bg-secondary); }
.section-header { text-align: center; max-width: 750px; margin: 0 auto 4rem; }
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 800; line-height: 1.2; transition: color var(--transition-smooth); }
h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { font-size: 1.1rem; max-width: 65ch; color: var(--text-secondary); }
.gradient-text { background: linear-gradient(90deg, var(--white-color), var(--cyan-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode .gradient-text { background: linear-gradient(90deg, var(--blue-primary), var(--cyan-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.btn { background-color: var(--blue-primary); color: var(--white-color); padding: 1rem 2.5rem; border-radius: var(--border-radius-md); font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2); }

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem 0;
}
.hero-section p { margin: 1.5rem auto 2.5rem; }

/* --- Universe of Content (REVERTED TO OLD STYLE) --- */
.content-section .container {
    max-width: 1400px;
}
.channel-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}
.channel-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.channel-item:hover {
    transform: translateY(-8px);
    border-color: var(--blue-primary);
}
.channel-item i { font-size: 2.5rem; color: var(--blue-primary); margin-bottom: 1.5rem; }
.channel-item h3 { margin-bottom: 0.5rem; font-size: 1.25rem; flex-grow: 1; }
.channel-item p { font-size: 0.95rem; line-height: 1.5; color: var(--text-secondary); }

/* --- Generic Feature/Why Us Grids --- */
.features-grid, .why-us-grid { display: grid; gap: 1.5rem; }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.why-us-grid { grid-template-columns: repeat(4, 1fr); }
.feature-item, .why-us-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
}
.feature-item:hover, .why-us-item:hover { transform: translateY(-8px); border-color: var(--blue-primary); }
.feature-item i, .why-us-item i { font-size: 2.5rem; color: var(--blue-primary); margin-bottom: 1.5rem; }
.feature-item h4, .why-us-item h4 { margin-bottom: 0.5rem; }
.feature-item p, .why-us-item p { font-size: 0.95rem; }

/* --- VOD Section --- */
.vod-section { text-align: center; }
.vod-features { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; font-size: 1.1rem; font-weight: 500; }
.vod-features .separator { color: var(--blue-primary); }

/* --- Pricing Section (NEW REDESIGN V3) --- */
.pricing-section { background-color: var(--bg-primary); }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center; /* Vertically align cards */
}
.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all var(--transition-smooth);
    border-top: 4px solid var(--border-color); /* Default top border */
}
.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}
.price {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin: 1.5rem 0;
}
.price sup {
    font-size: 1.8rem;
    font-weight: 600;
}
.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.features-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
    flex-grow: 1;
    text-align: left;
}
.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}
.features-list i {
    color: var(--success-color);
    font-size: 1.1rem;
}
.pricing-card .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--blue-primary);
    background: transparent;
    color: var(--blue-primary);
}
.pricing-card .btn:hover {
    background: var(--blue-primary);
    color: var(--white-color);
}

/* Best Seller Card Style */
.pricing-card.best-seller {
    transform: scale(1.05);
    z-index: 5;
    border-color: var(--border-color); /* Reset side borders */
    border-top: 4px solid var(--blue-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
body.light-mode .pricing-card.best-seller {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.pricing-card.best-seller .btn {
    background: var(--blue-primary);
    color: var(--white-color);
}
.pricing-card.best-seller .btn:hover {
    background: transparent;
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

/* --- How to Order --- */
.order-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.step {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    padding-top: 3.5rem;
    position: relative;
    text-align: left;
}
.step-number {
    position: absolute;
    top: -25px;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--blue-primary);
    color: var(--white-color);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 4px solid var(--bg-secondary);
}
.step h4 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.step p { font-size: 0.9rem; line-height: 1.6; }

/* --- Devices Section --- */
.devices-section { background-color: var(--bg-secondary); overflow: hidden; padding: 4rem 0; }
.device-icons-scroller { display: flex; width: 100%; justify-content: center; }
.device-icons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
}
.device-icon { text-align: center; color: var(--text-secondary); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.device-icon i { font-size: 3rem; }
.device-icon span { font-size: 1rem; }

@media (max-width: 992px) {
    .devices-section { position: relative; }
    .devices-section::before, .devices-section::after { content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; pointer-events: none; }
    .devices-section::before { left: 0; background: linear-gradient(to right, var(--bg-secondary), transparent); }
    .devices-section::after { right: 0; background: linear-gradient(to left, var(--bg-secondary), transparent); }
    .device-icons-scroller { width: max-content; justify-content: flex-start; }
    .device-icons-container { flex-wrap: nowrap; gap: 0; animation: scroll 40s linear infinite; }
    .device-icon { margin: 0 2.5rem; }
    @keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
}

/* --- SEO & CTA Sections (MODIFIED) --- */
.seo-section { background-color: var(--bg-primary); padding: 5rem 0;}
.seo-content-panel {
    max-width: 1100px; /* Increased width */
    margin: 0 auto;
    background-color: var(--bg-secondary);
    padding: 3rem 4rem; /* Increased side padding */
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}
.seo-content-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}
.seo-content-panel p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left;
}
.seo-content-panel p:last-child { margin-bottom: 0; }
.cta-section { background: linear-gradient(120deg, var(--blue-primary) 0%, var(--cyan-accent) 100%); text-align: center; padding: 5rem 0; }
.cta-section h2, .cta-section p { color: var(--white-color); }
.cta-section p { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 2rem; opacity: 0.9; }
.cta-section .btn { background-color: var(--white-color); color: var(--blue-primary); font-weight: 700; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
body.dark-mode .cta-section .btn:hover { background-color: #e9ecef; }
body.light-mode .cta-section .btn:hover { color: var(--white-color); background-color: transparent; border: 2px solid var(--white-color); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--bg-secondary); box-shadow: 0 10px 20px var(--shadow-color); padding: 1rem; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.5rem; }
    .main-nav a { display: block; padding: 1rem; border-radius: var(--border-radius-md); }
    .main-nav a:hover { background-color: rgba(128, 128, 128, 0.1); }
    .mobile-toggle { display: block; }
    .pricing-card.best-seller { transform: scale(1); }
    .channel-grid, .features-grid, .why-us-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .pricing-grid { grid-template-columns: 1fr; }
    .order-steps { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));}
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    h1 { font-size: 2.5rem; } h2 { font-size: 1.8rem; }
    .channel-grid, .features-grid, .why-us-grid, .order-steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .social-icons { justify-content: center; }
    .seo-content-panel { padding: 2rem; }
}

/* --- VOD Section Cards (NEW) --- */
.vod-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.vod-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-smooth);
}

.vod-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue-primary);
}

.vod-card i {
    font-size: 2.5rem;
    color: var(--blue-primary);
    margin-bottom: 1.5rem;
}

.vod-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.vod-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Checkout Page Styles (IPTV Version) --- */
.checkout-page {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Form Styles */
.customer-details h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-stack);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Order Summary Styles */
.order-summary {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    position: sticky;
    top: 120px; /* Adjust based on your header height */
}

.order-summary h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-item, .order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.order-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-method {
    margin-top: 2rem;
}

.payment-method h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--border-radius-md);
}

.payment-option i {
    color: var(--blue-primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.payment-option p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-block {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.checkout-error {
    background-color: #e74c3c;
    color: var(--white-color);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    text-align: center;
}

/* Country Flags Input Styles */
.iti {
    width: 100%;
}

.iti__country-list {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.iti__country {
    color: var(--text-primary);
}

.iti__country:hover, .iti__country.iti__highlight {
    background-color: var(--blue-primary);
}

.iti--separate-dial-code .iti__selected-dial-code {
    color: var(--text-secondary);
}

body.light-mode .iti__country-list {
    color: var(--text-primary);
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .order-summary {
        position: static; /* Remove sticky positioning on mobile */
    }
}


body.dark-mode .iti__country-list {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* Style for the individual country names in dark mode */
body.dark-mode .iti__country {
    color: var(--text-secondary);
}

/* Style for when you hover over or highlight a country in dark mode */
body.dark-mode .iti__country:hover,
body.dark-mode .iti__country.iti__highlight {
    background-color: var(--blue-primary);
    color: var(--white-color);
}

/* Style for the dial code (e.g., +44) shown in the input box in dark mode */
body.dark-mode .iti--separate-dial-code .iti__selected-dial-code {
    color: var(--text-secondary);
}

/* --- Mobile Fix for Country Dropdown --- */
/* This CSS makes the long country list usable on small screens. */

@media (max-width: 767px) {
    .iti__country-list {
        /* Limit the height to 50% of the screen's height */
        max-height: 50vh;
        
        /* Add a vertical scrollbar if the list is too long */
        overflow-y: scroll;

        /* Ensure the dropdown appears on top of everything else */
        z-index: 1001; 
    }
}
.thank-you-page {
    /* Use flexbox to vertically and horizontally center the content */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Give it some height */
    padding: 4rem 0;
}

.thank-you-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    max-width: 650px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.thank-you-box h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.thank-you-box p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 100%; /* Override default paragraph width */
}

.order-id-box {
    background-color: var(--bg-primary);
    border: 1px dashed var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin: 2rem 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.order-id-box strong {
    color: var(--text-primary);
    display: block; /* Make it appear on its own line */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    word-break: break-all; /* Prevents long IDs from breaking the layout */
}

.order-id-box p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.thank-you-box .btn {
    margin-top: 2rem;
}
/* --- FAQ Page Styles --- */
.faq-page {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden; /* Ensures the border-radius is respected by children */
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    border-bottom: none; /* Remove border from the last item */
}

.faq-question {
    width: 100%;
    background-color: var(--card-bg);
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--bg-secondary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--blue-primary);
}

.faq-answer {
    background-color: var(--bg-primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 100%;
}

/* --- Active State for Accordion --- */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 300px; /* Adjust if your answers are very long */
}

/* --- NEW Contact Page Styles --- */
/* This is a complete redesign for a more modern and professional look. */

.contact-page {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Keep the layout ratio */
    gap: 0; /* Remove the gap, we'll handle spacing inside the columns */
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden; /* Important for the new design */
    box-shadow: 0 15px 40px var(--shadow-color);
}

/* --- Left Column: Contact Information --- */
.contact-info {
    padding: 3rem;
    background-color: var(--card-bg); /* Slightly different shade for contrast */
    border-right: 1px solid var(--border-color);
}

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    transition: background-color var(--transition-fast);
}

.contact-info-item:hover {
    background-color: var(--bg-primary);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--blue-primary);
    margin-top: 5px;
    flex-shrink: 0; /* Prevents the icon from shrinking */
    width: 30px;
    text-align: center;
}

.contact-info-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-info-item p, .contact-info-item a {
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.contact-info-item a:hover {
    color: var(--blue-primary);
}

/* --- Right Column: Contact Form --- */
.contact-form {
    padding: 3rem;
}

.contact-form h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* The .form-group styles from checkout will apply here, which is good for consistency */
/* We can add a more prominent button style */
.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Success Message Styling --- */
/* This style is shared with the checkout page */
.checkout-success {
    background-color: var(--success-color);
    color: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

/* --- Responsive adjustments for mobile --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 767px) {
    .contact-info, .contact-form {
        padding: 2rem;
    }
}

/* ===================================================================
   Installation Page Accordion Styles (Unique Classes)
   =================================================================== */

/* --- Main container for the accordion --- */

.installation-page {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}


 

/* --- Main container for the accordion --- */
.installation-page .guide-accordion {
    max-width: 900px;
    margin: 40px auto;
}

/* --- The Card for each guide item --- */
.guide-item {
    background: #2D3748;
    border: 1px solid #4A5568;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* --- The clickable question/title button --- */
.guide-question {
    width: 100%;
    background: transparent;
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: #EDF2F7;
    text-align: left;
}

.guide-question i.fas {
    font-size: 1rem;
    color: #A0AEC0;
    transition: transform 0.4s ease;
}

/* --- The answer/content panel (Hidden by default) --- */
.guide-answer {
    max-height: 0; /* This is what keeps it closed */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background: #1A202C;
    color: #A0AEC0;
    line-height: 1.8;
}

/* * --- THIS IS THE KEY FIX ---
 * When the .guide-item has the .active class (added by your JS),
 * the .guide-answer inside it will open to its full height.
*/
.guide-item.active .guide-answer {
    max-height: 1500px; /* A large value to ensure all content can fit */
}

/* When the item is active, rotate the icon */
.guide-item.active .guide-question i.fas {
    transform: rotate(180deg);
    color: #4299e1;
}

/* Inner content styling (no changes here) */
.guide-answer > h3,
.guide-answer > ol,
.guide-answer > .notes {
    padding-left: 30px;
    padding-right: 30px;
}
.guide-answer h3 {
    margin-top: 0;
    padding-top: 25px;
    padding-bottom: 10px;
    color: #FFFFFF;
    border-top: 1px solid #2D3748;
}
.guide-answer ol {
    padding-top: 0;
    padding-left: 50px;
    padding-bottom: 15px;
}
.guide-answer li {
    margin-bottom: 15px;
    color: #CBD5E0;
}
.guide-answer strong {
    color: #FFFFFF;
    font-weight: 600;
}
.guide-answer code {
    background-color: #0d1117;
    border: 1px solid #4A5568;
    color: #81E6D9;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 0.9em;
}
.guide-answer .notes {
    margin-top: 15px;
    margin-bottom: 30px;
    padding: 18px;
    background-color: rgba(66, 153, 225, 0.1);
    border-left: 4px solid #4299e1;
    color: #90cdf4;
    border-radius: 4px;
    font-size: 0.95em;
}
.guide-answer .notes strong {
    color: #bee3f8;
}

/* ===================================
   404 - Page Not Found Styles
   =================================== */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 60vh; /* Ensures it takes up significant space between header/footer */
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-size: 10rem;
    font-weight: 800;
    line-height: 1;
    color: #4A5568; /* A muted dark gray for the large number */
    margin: 0;
}

.error-content h2 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-top: 10px;
    margin-bottom: 15px;
}

.error-content p {
    color: #A0AEC0; /* Your secondary text color */
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.error-content .btn {
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
}
/* ===================================
   Blog Page Styles
   =================================== */
.blog-page {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}
/* --- Blog Listing Page --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 40px;
}

.blog-card {
    background-color: #2D3748;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #FFFFFF;
}

.card-content .meta {
    font-size: 0.85rem;
    color: #A0AEC0;
    margin-bottom: 15px;
}

.card-content .excerpt {
    color: #CBD5E0;
    flex-grow: 1;
    margin-bottom: 20px;
}




/* ===================================================================
   FINAL & RESPONSIVE - Blog & Single Post Page Styles
   =================================================================== */

/* --- Blog Listing Page --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 40px;
}

.blog-card {
    background-color: #2D3748;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #FFFFFF;
    line-height: 1.3;
}

.card-content .meta {
    font-size: 0.85rem;
    color: #A0AEC0;
    margin-bottom: 15px;
}

.card-content .excerpt {
    color: #CBD5E0;
    flex-grow: 1;
    margin-bottom: 20px;
}


/* --- Single Post Page --- */
.single-post-page .container {
    max-width: 800px; /* Optimal reading width */
}

.post-header {
    text-align: center;
    padding: 20px 0 40px 0;
    border-bottom: 1px solid #4A5568;
    margin-bottom: 40px;
}

.post-title {
    font-size: 2.8rem;
    color: #FFFFFF;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.post-meta {
    color: #A0AEC0;
    font-size: 0.9rem;
}

.post-hero-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
}

.post-body {
    color: #CBD5E0;
    line-height: 1.8;
    font-size: 1.1rem;
    /* ✅ FIX: These properties force long text to wrap to the next line */
    overflow-wrap: break-word;
    word-wrap: break-word; /* Legacy fallback */
    word-break: break-word; /* For extra safety with very long strings */
}

/* Styling for content from your admin editor */
.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2, .post-body h3, .post-body h4 {
    color: #FFFFFF;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.post-body h2 { font-size: 2rem; }
.post-body h3 { font-size: 1.6rem; }

.post-body a {
    color: #4299e1; /* Your blue accent color */
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 25px;
}

.post-body li {
    margin-bottom: 0.75rem;
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #2D3748;
    border-left: 5px solid #4299e1;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #FFFFFF;
}

/* --- RESPONSIVE DESIGN FOR MOBILE --- */
@media (max-width: 768px) {
    .post-title {
        font-size: 2.2rem; /* Smaller title on mobile */
    }
    
    .post-header, .post-hero-image, .post-body {
        margin-bottom: 30px; /* Reduce spacing on mobile */
    }

    .post-body {
        font-size: 1rem; /* Slightly smaller text for better readability */
    }

    .post-body h2 { font-size: 1.8rem; }
    .post-body h3 { font-size: 1.4rem; }
}


/* ===================================
   Sitemap Page Styles
   =================================== */
.sitemap-container {
    max-width: 900px;
    margin: 40px auto;
}

.sitemap-section {
    background-color: #2D3748;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.sitemap-section h3 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #4A5568;
}

.sitemap-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 12px;
}

.sitemap-list a {
    color: #A0AEC0;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s ease-in-out;
}

.sitemap-list a:hover {
    color: #4299e1; /* Blue accent */
}

.sitemap-lang-header {
    display: block;
    font-weight: 700;
    color: #EDF2F7;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}




/* ===================================================================
   V3 - Professional & Refined Legal Pages (Privacy & Terms) Styles
   =================================================================== */

/* --- Main page layout --- */
/* ✅ FIX: Adds vertical space between header/footer and the content. */
main.legal-page {
    padding: 60px 0; /* Adds 60px of space top and bottom */
}

/* --- Main container for the content --- */
.legal-page .container {
    max-width: 900px; /* Sets an optimal width for readability */
}

/* --- The main content box --- */
.legal-content {
    background: linear-gradient(145deg, #3a455a, #2d3748);
    border: 1px solid #4A5568;
    padding: 30px 40px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- "Last Updated" text --- */
.legal-content .last-updated {
    text-align: center;
    color: #A0AEC0;
    font-style: italic;
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

/* --- Section Headings (e.g., "1. Introduction") --- */
.legal-content h3 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #4A5568;
}

/* The very first heading shouldn't have extra space at the top */
.legal-content h3:first-of-type {
    margin-top: 0;
}

/* --- Main Paragraph Text --- */
.legal-content p {
    color: #CBD5E0; /* A lighter gray for better readability */
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* --- Bolding inside paragraphs --- */
.legal-content strong {
    color: #EDF2F7;
    font-weight: 600;
}

/* --- Responsive Design for Mobile Devices --- */
@media (max-width: 768px) {
    main.legal-page {
        padding: 40px 0; /* Less padding on mobile */
    }
    .legal-content {
        padding: 25px 20px;
    }
    .legal-content h3 {
        font-size: 1.5rem;
    }
    .legal-content p {
        font-size: 0.95rem;
    }
}

