/*
Theme Name: Dhilaalo Pro
Author: Dhilaalo
Version: 5.0 – Enterprise Edition
Description: Premium Personal Finance & Tools WordPress Theme (Fully Optimized)
*/

/* ==========================================================
   1. ROOT VARIABLES
   ========================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #ff7a18;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.12);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Theme variables (Light default) */
    --bg-body: #f8fafc;
    --text-body: #0f172a;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --border-color: #e2e8f0;
    --heading-color: #0f172a;
    --section-bg: #f8fafc;
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --input-text: #0f172a;
    --gray-text: #64748b;
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-border: rgba(0, 0, 0, 0.05);
    --header-text: #0f172a;
    --dropdown-bg: rgba(255, 255, 255, 0.8);
    --dropdown-border: rgba(255, 255, 255, 0.4);
    --popup-bg: rgba(255, 255, 255, 0.92);
}

/* ==========================================================
   2. RESET & BASE
   ========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    border: none;
    cursor: pointer;
    background: none;
    font-family: inherit;
}

/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(28px, 5vw, 48px);
}
h2 {
    font-size: clamp(22px, 4vw, 36px);
}
h3 {
    font-size: clamp(18px, 3vw, 26px);
}
h4 {
    font-size: clamp(16px, 2vw, 20px);
}
h5 {
    font-size: 18px;
}
h6 {
    font-size: 16px;
}

p {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--gray-text);
    line-height: 1.7;
}

/* ==========================================================
   4. LAYOUT & UTILITIES
   ========================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: var(--section-bg);
    transition: background 0.3s ease;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 70px;
    background: linear-gradient(90deg, var(--primary), #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    margin: 15px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--gray-text);
    font-size: 18px;
    opacity: 0.85;
}

/* Soft section glow */
section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    z-index: -1;
    pointer-events: none;
}

/* Flex & Grid */
.flex {
    display: flex;
    flex-wrap: wrap;
}
.grid {
    display: grid;
    gap: 20px;
}
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.no-scroll {
    overflow: hidden;
}

/* ==========================================================
   5. BUTTONS
   ========================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 45px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: #ffffff;
    color: #111827;
    transform: translateY(-3px);
}

.btn-text {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-text);
    transition: 0.3s;
    text-decoration: none;
}
.btn-text:hover {
    color: var(--primary);
}

.btn-outline {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
    transition: 0.25s ease;
    text-decoration: none;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-cta {
    background: var(--primary);
    color: #fff;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    text-decoration: none;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-cta-primary {
    background: var(--primary);
    color: #fff;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none;
}
.btn-cta-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-cta-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none;
}
.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ==========================================================
   6. HEADER SYSTEM
   ========================================================== */

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: #cbd5e1;
    font-size: 13px;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 30px;
    max-width: 1240px;
    margin: 0 auto;
}
.top-left span {
    margin-right: 18px;
}
.top-right a {
    color: #cbd5e1;
    margin-left: 12px;
    transition: 0.3s;
}
.top-right a:hover {
    color: #22d3ee;
}

/* Main Header – Glass effect */
.dh-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    transition: all 0.3s ease;
}
.dh-header.shrink {
    padding: 5px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo */
.site-branding img {
    max-height: 40px;
    width: auto;
}
.site-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: -0.5px;
    text-decoration: none;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    max-height: 45px;
    width: auto;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    color: var(--header-text);
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.main-menu {
    flex: 1;
    margin-left: 40px;
}
.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li {
    position: relative;
}
.nav-menu li a {
    text-decoration: none;
    color: var(--header-text);
    font-weight: 500;
    font-size: 15px;
    padding: 4px 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s ease;
}
.nav-menu li a:hover::after,
.nav-menu .current-menu-item > a::after {
    width: 100%;
}
.nav-menu .current-menu-item a {
    color: var(--primary);
    font-weight: 600;
}
.nav-menu a:hover {
    color: var(--primary);
}
.nav-menu i {
    font-size: 14px;
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 38px;
    left: 0;
    background: var(--dropdown-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--dropdown-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    display: none;
    flex-direction: column;
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
}
.dropdown-menu li {
    padding: 8px 18px;
}
.dropdown-menu a {
    font-size: 14px;
    color: var(--header-text);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}
.dropdown-menu a:hover {
    color: var(--primary);
}
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Right side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search */
.search-wrapper {
    position: relative;
}
.search-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--header-text);
}
.search-form {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: none;
    transition: all 0.3s ease;
}
.search-form.active {
    display: block;
}
.search-field {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    width: 220px;
    background: var(--input-bg);
    color: var(--input-text);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--header-text);
    transition: 0.3s;
}
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    margin-left: 15px;
}
.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--header-text);
}

/* Mobile Auth (hidden by default) */
.mobile-auth {
    display: none;
}

/* Popup menu (mobile) */
.popup-menu {
    position: fixed;
    right: -260px;
    top: 0;
    height: 100%;
    width: 260px;
    background: var(--popup-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 40px 20px;
}
.popup-menu.active {
    right: 0;
}
.popup-menu ul {
    list-style: none;
    padding: 0;
}
.popup-menu ul li {
    margin-bottom: 15px;
}
.popup-menu ul li a {
    text-decoration: none;
    color: var(--header-text);
    font-weight: 500;
}

/* Header buttons */
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    background: #18c2c9;
    color: #fff;
}
.login-btn:hover {
    background: #14aab0;
    transform: translateY(-1px);
}
.signup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #6b5cff, #5848ff);
    color: #fff;
}
.signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(90, 75, 255, 0.25);
}

/* ==========================================================
   7. HERO SLIDER (Premium Quality)
   ========================================================== */

.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--dark);
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s linear 1s;
    will-change: opacity;
}

.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s linear 0s;
    z-index: 2;
}

.hero-slider .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.85) 0%, rgba(37, 99, 235, 0.55) 100%);
    z-index: 1;
}

.hero-slider .hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 40px 35px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-slider .slide.active .hero-content {
    animation: heroFadeUp 0.8s ease forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #22d3ee;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.hero-slider .hero-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slider .hero-content p {
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    max-width: 550px;
}

.hero-slider .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-slider .hero-buttons .btn-primary,
.hero-slider .hero-buttons .btn-secondary {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 999px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-slider .hero-buttons .btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.hero-slider .hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
}

.hero-slider .hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(6px);
}

.hero-slider .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Arrows */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.hero-prev {
    left: 25px;
}
.hero-next {
    right: 25px;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
    background: #ffffff;
    border-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

/* ==========================================================
   8. BRAND INTRO
   ========================================================== */

.brand-intro {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    padding: 80px 0;
    text-align: center;
}
.brand-intro h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 20px;
}
.brand-intro p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: var(--gray-text);
}
.brand-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================
   9. SERVICES / TOOLS
   ========================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}
.service-card {
    background: var(--card-bg);
    padding: 45px 30px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15), 0 10px 30px rgba(0, 0, 0, 0.08);
}
.service-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}
.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--heading-color);
}
.service-card p {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.6;
}
.service-card a {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    transition: 0.3s;
}
.service-card a:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ==========================================================
   10. TOOLS ECOSYSTEM
   ========================================================== */

.tools-ecosystem {
    background: var(--section-bg);
    padding: 80px 0;
}
.tools-ecosystem h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--heading-color);
}

/* ==========================================================
   11. POSTS / NEWS CARDS
   ========================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 360px;
}
.post-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15), 0 10px 30px rgba(0, 0, 0, 0.08);
}
.post-card .post-image img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-image img {
    transform: scale(1.08);
}
.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-content h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-content h3 a {
    color: var(--heading-color);
    transition: 0.3s;
}
.post-content h3 a:hover {
    color: var(--primary);
}
.post-content .post-excerpt {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more {
    margin-top: auto;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    transition: 0.3s;
}
.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.view-all-posts {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================================
   12. TESTIMONIALS
   ========================================================== */

.testimonials-section {
    padding: 100px 0;
    background: var(--section-bg);
    text-align: center;
}
.testimonial-header {
    text-align: center;
    margin-bottom: 50px;
}
.testimonial-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-color);
}
.testimonial-header p {
    color: var(--gray-text);
}
.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}
.testimonial-card {
    min-width: 100%;
    flex-shrink: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    text-align: center;
}
.testimonial-card:hover {
    transform: scale(1.05);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.12);
}
.testimonial-card p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-body);
}
.testimonial-card .user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.testimonial-card .user img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}
.testimonial-card .user h4 {
    margin: 0;
    font-size: 16px;
    color: var(--heading-color);
}
.testimonial-card .user span {
    font-size: 14px;
    color: var(--gray-text);
}

/* Testimonial arrows */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: 0.3s;
}
.prev {
    left: 15px;
}
.next {
    right: 15px;
}
.prev:hover,
.next:hover {
    background: var(--primary-dark);
}

/* ==========================================================
   13. COMMUNITY / SUBSCRIBE SECTION
   ========================================================== */

.community-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
}
.community-box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 60px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}
.community-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}
.community-text h2 {
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
}
.community-text p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.8;
}

.dh-subscribe-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 850px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.dh-subscribe-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 22px;
    font-size: 16px;
    background: #fff;
}
.dh-subscribe-form button {
    border: none;
    background: var(--dark);
    color: #fff;
    padding: 22px 35px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.dh-subscribe-form button:hover {
    background: #000;
}

.community-stats {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}
.stat-box {
    text-align: center;
}
.stat-box h4 {
    font-size: 54px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.stat-box span {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================
   14. CTA PRO SECTION
   ========================================================== */

.cta-pro {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--dark), #1e293b);
    position: relative;
    overflow: hidden;
}
.cta-pro::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 60%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}
.cta-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 70px 50px;
    text-align: center;
    transition: 0.4s ease;
}
.cta-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.cta-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #fff;
}
.cta-content p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #cbd5e1;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 35px;
}
.cta-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 14px;
    opacity: 0.85;
    color: #cbd5e1;
}
.cta-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================
   15. LATEST POSTS (Dark Style)
   ========================================================== */

.latest-modern {
    padding: 90px 0;
    background: #0b1023;
}
.latest-modern .section-title {
    color: #fff;
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.latest-modern .section-title::after {
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
}
.latest-modern .section-subtitle {
    color: #94a3b8;
}
.latest-modern .post-card {
    background: #111827;
    border-color: #1e293b;
}
.latest-modern .post-card h3 a {
    color: #fff;
}
.latest-modern .post-card .post-excerpt {
    color: #94a3b8;
}
.latest-modern .post-card .read-more {
    color: #22d3ee;
}
.latest-modern .post-card .read-more:hover {
    color: #3b82f6;
}
.latest-modern .view-all-posts .btn-primary {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
}
.latest-modern .view-all-posts .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
}

/* ==========================================================
   16. TRUST SECTION
   ========================================================== */

.trust-section {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.trust-text h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--heading-color);
}
.trust-text span {
    color: var(--primary);
    font-weight: 700;
    font-size: 26px;
}
.trust-avatars {
    display: flex;
}
.trust-avatars img {
    border-radius: 50%;
    margin-left: -10px;
    border: 3px solid #fff;
    transition: 0.3s ease;
}
.trust-avatars img:hover {
    transform: translateY(-4px);
}

/* ==========================================================
   17. FOOTER
   ========================================================== */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 0;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    padding-bottom: 60px;
}
.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}
.footer-col h4::after {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    left: 0;
    bottom: -8px;
    border-radius: 5px;
}
.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-subscribe {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-subscribe input {
    flex: 1;
    min-width: 160px;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    outline: none;
    background: var(--input-bg);
    color: var(--input-text);
}
.footer-subscribe button {
    padding: 12px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.footer-subscribe button:hover {
    background: var(--primary-dark);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 30px 0 15px;
}
.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--footer-text);
    font-size: 16px;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    opacity: 0.7;
    color: var(--footer-text);
}

/* ==========================================================
   18. RESPONSIVE
   ========================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }
    .hero-slider .hero-content {
        padding: 30px 24px;
        max-width: 90%;
    }
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .hero-prev {
        left: 12px;
    }
    .hero-next {
        right: 12px;
    }
}

/* Mobile Large */
@media (max-width: 992px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-color);
    }
    .main-nav.active {
        display: flex;
    }
    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }
    .menu-toggle {
        display: flex;
    }
    .btn-outline,
    .btn-cta {
        display: none;
    }
    .nav-actions .btn-text,
    .nav-actions .btn-primary {
        display: none;
    }
    .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }
    .mobile-auth .full {
        width: 100%;
        text-align: center;
    }
    .top-bar {
        display: none;
    }
    .hero-slider {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .community-box {
        padding: 50px 25px;
    }
    .community-text h2 {
        font-size: 34px;
    }
    .dh-subscribe-form {
        flex-direction: column;
        border-radius: 18px;
    }
    .dh-subscribe-form input,
    .dh-subscribe-form button {
        width: 100%;
        border-radius: 0;
    }
    .community-stats {
        gap: 35px;
    }
    .stat-box h4 {
        font-size: 40px;
    }
    .cta-wrapper {
        padding: 50px 25px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-cta-primary,
    .btn-cta-outline {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
    .footer-grid {
        gap: 35px;
    }
    .footer-subscribe {
        flex-direction: column;
    }
    .footer-subscribe button {
        width: 100%;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .post-card {
        height: auto;
    }
}

/* Mobile Small */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    .hero-prev,
    .hero-next {
        display: none;
    }
    .testimonial-card {
        padding: 25px;
    }
    .testimonial-slider .prev,
    .testimonial-slider .next {
        display: none;
    }
    .register-box {
        padding: 35px 25px;
    }
    .cta-content h2 {
        font-size: 28px;
    }
    .cta-content p {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 50px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .post-card {
        height: auto;
    }
    .hero-slider .hero-content {
        padding: 24px 18px;
        max-width: 95%;
    }
    .hero-slider .hero-content h1 {
        font-size: 26px;
    }
    .hero-slider .hero-content p {
        font-size: 15px;
    }
    .hero-slider .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-slider .hero-buttons a {
        justify-content: center;
        width: 100%;
    }
    .hero-dots {
        bottom: 20px;
        gap: 8px;
    }
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

/* Extra Small */
@media (max-width: 600px) {
    .top-bar {
        display: none;
    }
    .nav-container {
        padding: 15px 20px;
    }
    section {
        padding: 50px 0;
    }
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    .hero-content h1 {
        font-size: 24px;
    }
    .hero-content p {
        font-size: 15px;
    }
    .section-title {
        font-size: 24px;
    }
    .footer-grid {
        gap: 25px;
    }
    .footer-col h4 {
        font-size: 16px;
    }
    .footer-bottom {
        font-size: 12px;
    }
}

/* TV / Large screens */
@media (min-width: 1600px) {
    .nav-container {
        max-width: 1500px;
    }
    .nav-menu {
        gap: 45px;
    }
}

/* ==========================================================
   19. THEME SYSTEM (Dark / Light / Auto) – Full Site Control
   ========================================================== */

/* Dark theme – applied to html.theme-dark */
html.theme-dark {
    --bg-body: #0a0a12;
    --text-body: #e2e8f0;
    --card-bg: #181825;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --border-color: #2a2a3a;
    --heading-color: #f1f5f9;
    --section-bg: #0a0a12;
    --footer-bg: #0a0a12;
    --footer-text: #94a3b8;
    --input-bg: #181825;
    --input-border: #2a2a3a;
    --input-text: #e2e8f0;
    --gray-text: #94a3b8;
    --header-bg: rgba(10, 10, 18, 0.85);
    --header-border: rgba(255, 255, 255, 0.06);
    --header-text: #e2e8f0;
    --dropdown-bg: rgba(30, 41, 59, 0.9);
    --dropdown-border: rgba(255, 255, 255, 0.08);
    --popup-bg: rgba(15, 23, 42, 0.95);
}

/* Auto theme – follows system preference */
html.theme-auto {
    /* Default to light, media query will override */
}
@media (prefers-color-scheme: dark) {
    html.theme-auto {
        --bg-body: #0a0a12;
        --text-body: #e2e8f0;
        --card-bg: #181825;
        --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        --border-color: #2a2a3a;
        --heading-color: #f1f5f9;
        --section-bg: #0a0a12;
        --footer-bg: #0a0a12;
        --footer-text: #94a3b8;
        --input-bg: #181825;
        --input-border: #2a2a3a;
        --input-text: #e2e8f0;
        --gray-text: #94a3b8;
        --header-bg: rgba(10, 10, 18, 0.85);
        --header-border: rgba(255, 255, 255, 0.06);
        --header-text: #e2e8f0;
        --dropdown-bg: rgba(30, 41, 59, 0.9);
        --dropdown-border: rgba(255, 255, 255, 0.08);
        --popup-bg: rgba(15, 23, 42, 0.95);
    }
}

/* ==========================================================
   20. ADDITIONAL DARK MODE OVERRIDES (for specific elements)
   ========================================================== */

html.theme-dark .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
}
html.theme-dark .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

html.theme-dark .brand-intro {
    background: var(--section-bg);
}
html.theme-dark .brand-intro p {
    color: var(--gray-text);
}

html.theme-dark .tools-ecosystem {
    background: var(--section-bg);
}

html.theme-dark .community-section {
    background: linear-gradient(135deg, #1e3a8a, #5b21b6);
}

html.theme-dark .cta-pro {
    background: linear-gradient(135deg, #0a0a12, #1a1a2e);
}

html.theme-dark .latest-modern {
    background: #0a0a12;
}

html.theme-dark .latest-modern .post-card {
    background: #181825;
}

html.theme-dark .testimonials-section {
    background: var(--section-bg);
}
html.theme-dark .testimonial-card {
    background: var(--card-bg);
}

html.theme-dark .trust-section {
    background: var(--section-bg);
    border-color: var(--border-color);
}

html.theme-dark .dh-subscribe-form {
    background: var(--card-bg);
}
html.theme-dark .dh-subscribe-form input {
    background: var(--input-bg);
    color: var(--input-text);
}

/* ==========================================================
   21. FIXES – Prevent Content Hiding
   ========================================================== */

.fade-in,
.slide,
.service-card,
.post-card,
.testimonial-card,
.stat-box,
.feature-card {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

.hero-slider .slide {
    display: flex !important;
}

.hidden,
.hide,
[style*="display:none"],
[style*="visibility:hidden"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}