/* ==========================================
   RESET & CORE CONFIGURATION
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-dark: #0f172a;
    --bg-alt: #1e293b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #0ea5e9;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    --border-color: #e2e8f0;
    --radius: 8px;
    --max-width: 1200px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   BUTTONS & BADGES
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-large {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

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

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.btn-white {
    background-color: #ffffff;
    color: var(--bg-dark);
}

.btn-white:hover {
    background-color: var(--text-light);
}

.hero-badge, .section-tag {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

/* ==========================================
   TOP ANNOUNCEMENT BAR
   ========================================== */
.top-bar {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 0.825rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-info span {
    margin-right: 1.5rem;
}

.top-bar-info i, .top-bar-social i {
    color: var(--accent);
    margin-right: 0.25rem;
}

.top-bar-social a {
    margin-left: 1rem;
    opacity: 0.8;
}

.top-bar-social a:hover {
    opacity: 1;
    color: var(--accent);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-dark);
    letter-spacing: -0.5px;
}

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

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-alt) 100%);
    color: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15), transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    color: #cbd5e1;
    margin-bottom: 2.25rem;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================
   SERVICES GRID SECTION
   ========================================== */
.services-section {
    padding: 5.5rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
    max-width: 650px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--bg-dark);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

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

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.12);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--bg-dark);
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.service-link:hover {
    gap: 0.5rem;
}

/* ==========================================
   PAGE LAYOUT: CONTENT + SIDEBAR
   ========================================== */
.page-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 3.5rem;
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.section-header-inline {
    margin-bottom: 2.5rem;
}

.section-header-inline h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--bg-dark);
    margin-bottom: 0.25rem;
}

.section-header-inline p {
    color: var(--text-muted);
}

/* Articles */
.post-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.post-image-placeholder {
    background-color: var(--bg-alt);
    color: #ffffff;
    height: 180px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.image-label i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.post-body {
    padding: 2.25rem;
}

.post-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.category-tag {
    background-color: var(--bg-base);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.post-body h3 {
    font-size: 1.55rem;
    margin-bottom: 0.85rem;
    color: var(--bg-dark);
    letter-spacing: -0.4px;
}

.post-body p {
    color: #475569;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
}

.read-more:hover {
    color: var(--primary-hover);
}

.reading-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Success Case Study Widget inside Content */
.case-studies-block {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-top: 4rem;
}

.case-studies-block h3 {
    font-size: 1.45rem;
    margin-bottom: 1.5rem;
}

.case-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metrics {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ==========================================
   SIDEBAR & WIDGETS
   ========================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.widget {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
    color: var(--bg-dark);
    letter-spacing: -0.2px;
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

/* Telegram Widget Special Colors */
.widget-telegram {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
}

.widget-telegram .widget-title {
    color: #ffffff;
    border-color: #38bdf8;
}

.widget-telegram p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
}

.widget-telegram .btn-primary {
    background-color: #0284c7;
}

.widget-telegram .btn-primary:hover {
    background-color: #0369a1;
}

/* Election Widget UI */
.election-metrics {
    margin: 1.25rem 0;
}

.election-metrics li {
    margin-bottom: 1.25rem;
}

.metric-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.metric-percentage {
    color: var(--primary);
}

.progress-bar {
    background-color: var(--border-color);
    width: 100%;
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background-color: var(--primary);
}

/* Tutorial & Masterclass Widget */
.tutorial-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tutorial-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tutorial-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.tutorial-list h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bg-dark);
}

.tutorial-list h4:hover {
    color: var(--primary);
}

.sidebar-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
}

/* Contact Widget */
.widget-contact .email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--bg-base);
    color: var(--primary);
    border: 1px dashed rgba(37, 99, 235, 0.4);
    padding: 0.85rem;
    border-radius: var(--radius);
    font-weight: 600;
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

.widget-contact .email-btn:hover {
    background-color: #eff6ff;
}

/* ==========================================
   CLIENT TESTIMONIAL SECTION
   ========================================== */
.testimonials-section {
    background-color: var(--bg-surface);
    padding: 5.5rem 0;
    border-top: 1px solid var(--border-color);
}

.text-center {
    text-align: center;
    margin: 0 auto 3.5rem;
}

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

.testimonial-card {
    background-color: var(--bg-base);
    padding: 2.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.client-info h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.client-info span {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* ==========================================
   CALL TO ACTION BANNER (CONVERSION)
   ========================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    padding: 4.5rem 0;
}

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

.cta-content {
    max-width: 700px;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   COMPREHENSIVE FOOTER
   ========================================== */
.main-footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding: 5.5rem 0 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.brand-col h3 {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.brand-col h3 span {
    color: var(--accent);
}

.brand-col p {
    margin-bottom: 1.5rem;
    line-height: 1.55;
    max-width: 320px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    margin-right: 0.75rem;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

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

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 2px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Mobile view typically switches to a burger menu */
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .top-bar-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .top-bar-social {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}
