@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #0056b3;
    /* KE Blue */
    --primary-dark: #003d80;
    --accent: #ffcc00;
    /* KE Yellow */
    --accent-dark: #e6b800;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --border: #e0e0e0;
    --success: #28a745;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-main);
}

nav ul li a:hover {
    color: var(--primary);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0 150px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Iframe Container */
.bill-section {
    margin-top: -100px;
}

.bill-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.bill-checker {
    margin-top: 10px;
}

.iframe-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.iframe-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

.iframe-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    z-index: 10;
}

.loader-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.loader-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.loader-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Content Sections */
.content-section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

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

.card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--accent);
}

/* Badge */
.badge {
    background: var(--accent);
    color: var(--text-main);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.trust-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.main-content h2 {
    margin: 40px 0 20px;
    color: var(--primary);
}

.main-content h3 {
    margin: 30px 0 15px;
    color: var(--primary-dark);
}

.main-content p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #444;
}

.main-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style: circle;
}

.main-content ul li {
    margin-bottom: 10px;
}

/* Infographic Placeholder */
.infographic-placeholder {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    justify-content: space-between;
}

.info-step {
    flex: 1;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.info-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    background: #f1f5f9;
    padding: 40px;
    border-radius: 20px;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.author-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.author-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-header strong {
    display: block;
    font-size: 18px;
}

.author-header span {
    font-size: 14px;
    color: var(--text-muted);
}

.fact-check {
    margin-top: 15px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.sidebar-widget h4 {
    margin-bottom: 15px;
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

.sidebar-widget ul li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 8px;
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

.promo {
    background: linear-gradient(135deg, var(--accent) 0%, #ffeb3b 100%);
    border: none;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 20px;
    color: var(--accent);
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    nav {
        display: none;
    }

    /* Fix header overflow on mobile */
    header .container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo {
        font-size: 20px;
    }

    .btn-primary {
        padding: 9px 16px;
        font-size: 14px;
    }

    .hero {
        padding: 60px 0 120px;
    }

    .bill-card {
        padding: 20px 15px;
    }

    /* Fix header overlap: header wraps on mobile so reduce negative margin */
    .bill-section {
        margin-top: -60px;
    }

    .iframe-container iframe {
        height: 1100px;
    }

    .infographic-placeholder {
        flex-direction: column;
    }

    .trust-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .main-content p {
        font-size: 15px;
    }

    .faq-section {
        padding: 25px 15px;
    }

    .toc ul {
        grid-template-columns: 1fr;
    }

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

/* Extra small screens — phones < 480px */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 15px;
    }

    .logo {
        font-size: 17px;
    }

    .btn-primary {
        padding: 7px 12px;
        font-size: 13px;
    }

    .bill-card {
        padding: 15px 10px;
        border-radius: 12px;
    }

    .bill-section {
        margin-top: -40px;
    }

    .iframe-container iframe {
        height: 850px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .discovery-grid {
        grid-template-columns: 1fr !important;
    }

    .peak-widget {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        gap: 30px;
    }

    .account-finder {
        padding: 20px 15px;
    }
}