/* ============================================
   بوابة أبو طيف للخدمات الإلكترونية
   Design System - Green Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
    /* Colors - Dark Green Theme matching logo */
    --bg-primary: #0d1f17;
    --bg-secondary: #142a1f;
    --bg-card: rgba(20, 42, 31, 0.75);
    --bg-glass: rgba(20, 42, 31, 0.5);
    --bg-glass-border: rgba(46, 125, 80, 0.2);
    --bg-glass-hover: rgba(46, 125, 80, 0.15);

    --text-primary: #e8f5e9;
    --text-secondary: #a5d6a7;
    --text-muted: #6b9b78;

    --accent-primary: #2e7d50;
    --accent-primary-light: #4caf50;
    --accent-secondary: #81c784;
    --accent-gold: #c9b037;
    --accent-cream: #f0e6c8;

    --gradient-primary: linear-gradient(135deg, #1b5e20, #2e7d50);
    --gradient-accent: linear-gradient(135deg, #2e7d50, #4caf50);
    --gradient-gold: linear-gradient(135deg, #c9b037, #e6d374);
    --gradient-card: linear-gradient(145deg, rgba(20, 42, 31, 0.8), rgba(13, 31, 23, 0.9));

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(46, 125, 80, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --nav-height: 70px;
    --font-family: 'Tajawal', sans-serif;

    --danger: #ef5350;
    --warning: #ffa726;
    --info: #29b6f6;
    --success: #66bb6a;
    --verified-blue: #1da1f2;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-cream);
}

ul,
ol {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Particles Background --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(46, 125, 80, 0.15);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--nav-height);
    background: rgba(13, 31, 23, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(13, 31, 23, 0.95);
    border-bottom: 1px solid var(--bg-glass-border);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-brand-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-cream);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--verified-blue);
    flex-shrink: 0;
}

.verified-badge svg {
    width: 18px;
    height: 18px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-cream);
    background: var(--bg-glass-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 60px;
    position: relative;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(27, 94, 32, 0.15) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--bg-glass-border);
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-cream), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-title .verified-badge {
    -webkit-text-fill-color: initial;
    width: 28px;
    height: 28px;
}

.hero-title .verified-badge svg {
    width: 28px;
    height: 28px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 125, 80, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 80, 0.6);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* --- Section Styles --- */
.section {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--accent-cream);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition-normal);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Increased gap */
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    align-items: center;
    /* Center content */
    text-align: center;
    /* Center text */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    /* More lift */
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px rgba(46, 125, 80, 0.4);
    /* Stronger glow */
    color: var(--text-primary);
}

.service-card:hover::before {
    opacity: 1;
}

/* New Image Wrapper */
.service-img-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    /* Circular background */
    border: 1px solid var(--bg-glass-border);
    padding: 15px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.service-card:hover .service-img-wrapper {
    transform: scale(1.1) rotate(3deg);
    /* Dynamic hover effect */
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(46, 125, 80, 0.3);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-normal);
    display: none;
    /* Hide img since we are using emojis now */
}

.emoji-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: var(--transition-normal);
}

.service-card:hover .emoji-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Fallback for old icon just in case */
.service-icon {
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-border);
}

.service-card h3 {
    font-size: 1.15rem;
    /* Slightly larger */
    font-weight: 700;
    color: var(--accent-cream);
    margin: 0;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Content Cards --- */
.content-card {
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.content-card:hover {
    border-color: var(--accent-primary);
}

.content-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-cream);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-glass-border);
}

.content-card ul,
.content-card ol {
    padding-right: 0;
    margin-bottom: 12px;
}

.content-card li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.8;
    list-style-position: inside;
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.8;
}

.content-card strong {
    color: var(--accent-secondary);
}

.content-card a {
    color: var(--accent-secondary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.content-card a:hover {
    color: var(--accent-cream);
}

/* --- Problem Card (specific) --- */
.problem-card {
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.problem-card .problem-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.problem-card .problem-reason {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--warning);
}

.problem-card .problem-solution {
    margin-top: 12px;
}

.problem-card .solution-title {
    color: var(--success);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.problem-card .solution-content {
    color: var(--text-secondary);
    line-height: 1.9;
}

.problem-card .solution-content a {
    color: var(--accent-secondary);
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* --- Condition Amount --- */
.condition-amount {
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.amount-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.amount-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.amount-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Calculator --- */
.calc-container {
    max-width: 600px;
    margin: 0 auto;
}

.calc-card {
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(10px);
}

.calc-info {
    background: rgba(46, 125, 80, 0.1);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-cream);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-fast);
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 80, 0.2);
}

.calc-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: 8px;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 80, 0.5);
}

.calc-result {
    margin-top: 24px;
    padding: 24px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    text-align: center;
    display: none;
}

.calc-result.visible {
    display: block;
    animation: fadeIn 0.4s ease;
}

.result-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.result-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.result-details {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Table --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bg-glass-border);
}

.data-table th {
    background: var(--accent-primary);
    color: #fff;
    padding: 14px 16px;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Conditions Page Specifics --- */
.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.effect-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-normal);
    height: 100%;
}

.effect-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.effect-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.effect-card li {
    position: relative;
    padding-right: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.effect-card li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Success Card (Does Not Affect) */
.effect-card-success {
    border-color: rgba(102, 187, 106, 0.3);
    box-shadow: 0 0 15px rgba(102, 187, 106, 0.05);
}

.effect-card-success:hover {
    box-shadow: 0 0 20px rgba(102, 187, 106, 0.15);
    border-color: var(--success);
}

.effect-card-success h4 {
    color: var(--success);
    border-color: rgba(102, 187, 106, 0.2);
}

.effect-card-success li::before {
    background: var(--success);
}

/* Danger Card (Affects) */
.effect-card-danger {
    border-color: rgba(239, 83, 80, 0.3);
    box-shadow: 0 0 15px rgba(239, 83, 80, 0.05);
}

.effect-card-danger:hover {
    box-shadow: 0 0 20px rgba(239, 83, 80, 0.15);
    border-color: var(--danger);
}

.effect-card-danger h4 {
    color: var(--danger);
    border-color: rgba(239, 83, 80, 0.2);
}

/* Accordion Styling */
details.section-details {
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
}

details.section-details[open] {
    box-shadow: var(--shadow-md);
}

summary.section-summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    position: relative;
    outline: none;
}

summary.section-summary::-webkit-details-marker {
    display: none;
}

summary.section-summary:hover {
    background: var(--bg-hover);
}

.toggle-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

details[open] .toggle-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Adjust Section Title Wrapper inside summary */
details .section-title-wrapper {
    margin: 0 !important;
    border: none !important;
    text-align: right !important;
    /* Ensure RTL alignment */
    padding-left: 40px;
    /* Space for icon */
}

/* Hide header borders inside summary to avoid double borders */
details .section-title-wrapper h2 {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.effect-card-danger li::before {
    background: var(--danger);
}

/* Enhanced Check List */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list>li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.check-list>li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--verified-blue);
    font-weight: 800;
    font-size: 1.1rem;
}

.check-list ul {
    margin-top: 8px;
    margin-right: 10px;
    border-right: 2px solid var(--bg-glass-border);
    padding-right: 15px;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-glass-hover);
}

/* --- Links Grid --- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

.link-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-border);
    flex-shrink: 0;
}

.link-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cream);
    margin-bottom: 2px;
}

.link-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-right: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-right: 30px;
}

.timeline-dot {
    position: absolute;
    right: -26px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    border: 3px solid var(--accent-secondary);
    z-index: 1;
}

.timeline-content {
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cream);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Support Programs Cards --- */
.program-card {
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.program-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-cream);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-card .program-details {
    color: var(--text-secondary);
    line-height: 1.9;
}

.program-card .program-details strong {
    color: var(--accent-secondary);
}

.program-card a.program-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.program-card a.program-link:hover {
    box-shadow: var(--shadow-glow);
    color: #fff;
}

/* --- Warning / Notice Banner --- */
.notice-banner {
    background: rgba(46, 125, 80, 0.1);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.notice-banner.warning {
    border-color: rgba(255, 167, 38, 0.3);
    background: rgba(255, 167, 38, 0.05);
}

.notice-banner .notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* --- Category Divider --- */
.category-divider {
    text-align: center;
    padding: 32px 0 16px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-cream);
    position: relative;
}

.category-divider::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 12px auto 0;
    border-radius: 3px;
}

/* --- Page Header --- */
.page-header {
    padding: calc(var(--nav-height) + 48px) 24px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(27, 94, 32, 0.1) 0%, transparent 60%);
}

.page-header h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--accent-cream);
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-glass-border);
    padding: 40px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cream);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer .disclaimer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-glass-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* --- Screenshot/Image --- */
.screenshot-img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-border);
    margin: 12px auto;
    display: block;
}

/* --- Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-secondary);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
}

[data-animate="fade-right"].animated {
    transform: translateX(0);
}

/* --- Sub-sections --- */
.sub-section {
    margin-bottom: 24px;
}

.sub-section h4 {
    color: var(--accent-secondary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(13, 31, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: calc(var(--nav-height) + 20px) 24px 24px;
        gap: 4px;
        transition: var(--transition-normal);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        padding: 12px 16px;
        font-size: 1rem;
        display: block;
    }

    .hero {
        min-height: 70vh;
        padding-top: calc(var(--nav-height) + 20px);
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 16px;
    }

    .content-card,
    .problem-card,
    .program-card {
        padding: 20px;
    }

    .calc-card {
        padding: 24px;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Step guide cards */
.step-card {
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
}

.step-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.step-content strong {
    color: var(--accent-secondary);
}

/* Highlight text */
.highlight {
    color: var(--accent-secondary);
    font-weight: 700;
}

.highlight-gold {
    color: var(--accent-gold);
    font-weight: 700;
}

.highlight-danger {
    color: var(--danger);
    font-weight: 700;
}

/* --- Program Details Lists --- */
.program-details ul {
    padding-right: 0;
    margin: 8px 0;
}

.program-details li {
    margin-bottom: 6px;
    color: var(--text-secondary);
    list-style-position: inside;
    line-height: 1.8;
}

/* --- Warning Banner (homepage) --- */
.warning-banner {
    max-width: 1100px;
    margin: -20px auto 0;
    padding: 16px 24px;
    background: rgba(239, 83, 80, 0.08);
    border: 1px solid rgba(239, 83, 80, 0.25);
    border-radius: var(--radius-lg);
    color: var(--danger);
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* --- Social Media Links --- */
.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.social-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-btn svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Lively Brand Colors by Default */
.social-btn.snapchat {
    background: linear-gradient(135deg, #FFFC00, #ffe600);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 252, 0, 0.3);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Special effects on hover */
.social-btn.snapchat:hover {
    box-shadow: 0 8px 25px rgba(255, 252, 0, 0.5);
}

.social-btn.whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.social-btn.tiktok:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* TikTok Glitch Effect Hint */
.social-btn.tiktok::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00f2ea, #ff0050);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn.tiktok:hover::before {
    opacity: 0.7;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.whatsapp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.whatsapp-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-cream);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1.5px;
    margin-top: 6px;
    box-shadow: var(--shadow-sm);
}

/* --- Store Integration Styles --- */

/* Navbar CTA Button */
.nav-menu .nav-cta {
    background: var(--gradient-gold);
    color: var(--bg-primary) !important;
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-weight: 800;
    box-shadow: 0 0 10px rgba(201, 176, 55, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(201, 176, 55, 0.6);
    color: var(--bg-primary) !important;
}

/* Home Page Store Section */
.store-section {
    position: relative;
    background: linear-gradient(rgba(13, 31, 23, 0.95), rgba(13, 31, 23, 0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 80px 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--bg-glass-border);
    border-bottom: 1px solid var(--bg-glass-border);
    overflow: hidden;
}

.store-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(46, 125, 80, 0.1), transparent 70%);
    pointer-events: none;
}

.store-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.store-badge {
    display: inline-block;
    background: rgba(201, 176, 55, 0.15);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    border: 1px solid rgba(201, 176, 55, 0.3);
    backdrop-filter: blur(4px);
}

.store-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a5d6a7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.store-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.store-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-gold {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 176, 55, 0.3);
}

.btn-primary-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 176, 55, 0.5);
    color: var(--bg-primary);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-3px);
}

/* Inner Page floating CTA or Bottom Banner */
.page-cta-banner {
    background: linear-gradient(135deg, rgba(46, 125, 80, 0.2), rgba(20, 42, 31, 0.6));
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px auto;
    text-align: center;
    border: 1px solid rgba(46, 125, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
}

.page-cta-text {
    text-align: right;
    flex: 1;
    min-width: 300px;
}

.page-cta-text h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.page-cta-text p {
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .page-cta-banner {
        flex-direction: column;
        text-align: center;
    }

    .page-cta-text {
        text-align: center;
    }
}