/* ==========================================================================
   CSS Resets and Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #00D2FF;
    --primary-dark: #3A7BD5;
    --secondary: #2C5364;
    --dark: #0F2027;
    --dark-alt: #1C2331;
    --light: #FFFFFF;
    --light-bg: #F8FAFC;
    --text-main: #334155;
    --text-muted: #64748B;
    --success: #10B981;
    --info: #0EA5E9;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 210, 255, 0.4);
    
    /* Layout */
    --container-max: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-alt);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-dark);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.d-flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.bg-light { background-color: #F1F5F9; }
.text-muted { color: var(--text-muted); }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

.content-prose h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; }
.content-prose h2:first-child { margin-top: 0; }
.content-prose p { margin-bottom: 1rem; }
.content-prose ul.content-list { margin: 1rem 0; padding-left: 1.5rem; list-style: disc; }
.content-prose ul.content-list li { margin-bottom: 0.5rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: var(--light);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-outline-primary:hover {
    background: var(--primary-dark);
    color: var(--light);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-outline-light:hover {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    position: relative;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: var(--light);
}

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

/* Margin Utilities */
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 25px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: var(--light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    backdrop-filter: none;
}

/* Animations */
.transform-hover {
    transition: var(--transition);
}
.transform-hover:hover {
    transform: translateY(-10px);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.icon-pulse {
    animation: pulse 2s infinite;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.header.scrolled .logo-text-light {
    fill: var(--dark-alt);
}

.header.scrolled .nav-link {
    color: var(--text-main);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-dark);
}

.header.scrolled .mobile-toggle {
    color: var(--dark-alt);
}

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

.logo {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: rgba(0, 210, 255, 0.05);
    color: var(--primary-dark);
    border-left-color: var(--primary);
    padding-left: 25px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
}

.header.scrolled .mobile-toggle {
    color: var(--dark-alt);
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--dark);
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 32, 39, 0.9), rgba(32, 58, 67, 0.7), rgba(44, 83, 100, 0.4));
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.slide-title {
    color: var(--light);
    font-size: 4.5rem;
    margin-bottom: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide .btn-group {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.7s;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .btn-group {
    transform: translateY(0);
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 30px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--light);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.slider-dots {
    display: flex;
    gap: 15px;
}

.dot {
    width: 30px; height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 50px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */
.calc-section {
    position: relative;
    background-color: var(--light);
}

/* Glassmorphism Panel */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.calc-form-container {
    padding: 60px;
    background: var(--light);
}

.calc-form-container h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-alt);
    margin-bottom: 10px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
}

.input-with-icon input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition);
    background: #F8FAFC;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.calc-results-container {
    padding: 60px;
    background: linear-gradient(135deg, var(--dark), var(--secondary));
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.calc-results-container::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 10%), radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 10%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    animation: drift 20s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -40px); }
}

.result-placeholder {
    text-align: center;
    z-index: 2;
}

.result-placeholder .icon-pulse {
    width: 80px; height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin: 0 auto 20px;
}

.result-placeholder h3 {
    color: var(--light);
    margin-bottom: 15px;
}

.result-placeholder p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.result-data {
    width: 100%;
    z-index: 2;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.result-header h3 {
    color: var(--light);
    margin: 0;
}

.main-stat {
    margin-bottom: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.stat-unit {
    display: block;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.stat-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-blue-light { background: rgba(0, 210, 255, 0.2); }
.bg-green-light { background: rgba(16, 185, 129, 0.2); }

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-lbl {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.progress-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: var(--border-radius);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.progress-bar-bg {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.hidden { display: none !important; }

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: var(--border-radius-lg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-left: 5px solid var(--primary);
}

.exp-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.exp-text {
    font-weight: 600;
    color: var(--text-muted);
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.feature-list i {
    color: var(--success);
    font-size: 20px;
}

/* ==========================================================================
   Categories Section
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card-block {
    background: var(--light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 50px 30px 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.category-card-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05) 0%, rgba(58, 123, 213, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.category-card-block:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    border-color: rgba(0, 210, 255, 0.2);
}

.category-card-block:hover::before {
    opacity: 1;
}

.card-number {
    position: absolute;
    top: -15px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 0, 0, 0.03);
    transition: all 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.category-card-block:hover .card-number {
    color: rgba(0, 210, 255, 0.1);
    transform: scale(1.1) translateY(10px);
}

.card-icon-styled {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card-block:hover .card-icon-styled {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--dark-alt);
    transition: color 0.3s ease;
}

.category-card-block:hover .card-content h3 {
    color: var(--primary-dark);
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.7;
}

.card-link {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.card-link i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.category-card-block:hover .card-link {
    color: var(--primary-dark);
}

.category-card-block:hover .card-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.testimonial-card {
    padding: 40px;
    position: relative;
    border-top: 4px solid var(--primary);
}

.rating {
    color: #F59E0B;
    margin-bottom: 20px;
    font-size: 18px;
}

.quote {
    font-size: 18px;
    font-style: italic;
    color: var(--dark-alt);
    margin-bottom: 30px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar img {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.author-info h4 {
    margin: 0;
    font-size: 18px;
}

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

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.blog-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.blog-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--light);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.blog-date span {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.blog-content {
    padding: 30px;
}

.blog-category {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.blog-content h3 a {
    color: var(--dark-alt);
}

.blog-content h3 a:hover {
    color: var(--primary-dark);
}

.blog-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-more:hover i {
    transform: translateX(5px);
}

.mobile-only { display: none; }

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 0;
}

.cta-bg {
    background: linear-gradient(rgba(15, 32, 39, 0.9), rgba(44, 83, 100, 0.9)), url('https://images.unsplash.com/photo-1518173946687-a4c8892bbd9f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: var(--light);
}

.cta-bg h2 {
    color: var(--light);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-bg p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    padding: 80px 0;
}

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

.footer-widget h3 {
    color: var(--light);
    margin-bottom: 25px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--primary);
}

.brand-widget p {
    margin: 20px 0;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.links-widget ul li {
    margin-bottom: 12px;
}

.links-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-widget ul li a i {
    font-size: 10px;
    color: var(--primary);
    transition: var(--transition);
}

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

.links-widget ul li a:hover i {
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info li i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .section-header h2 { font-size: 2.5rem; }
    .slide-title { font-size: 3.5rem; }
    .calc-grid, .about-grid, .testimonial-grid { gap: 30px; }
    .calc-form-container, .calc-results-container { padding: 40px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0; left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--light);
        padding: 100px 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    /* Mobile Dropdown Menu */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        transform: none;
        padding: 10px 0 10px 20px;
        background: transparent;
        min-width: 100%;
        border-radius: 0;
    }

    .nav-item.dropdown.show-dropdown .dropdown-menu {
        display: block;
    }

    .nav-item.dropdown.show-dropdown .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .dropdown-menu li a {
        padding: 8px 15px;
        font-size: 14px;
        border-left: 2px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-menu li a:hover {
        background: transparent;
        border-left-color: var(--primary);
    }
    
    .nav-link {
        color: var(--dark-alt);
        font-size: 18px;
    }

    .mobile-toggle { display: block; z-index: 1001; }
    .contact-btn { display: none; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .slide-title { font-size: 2.5rem; }
    .slide-desc { font-size: 1.1rem; }
    
    .calc-grid, .about-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-results-container {
        padding: 40px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
    }
    
    .cta-bg {
        padding: 80px 20px;
    }
    
    .cta-bg h2 {
        font-size: 2.5rem;
    }
    
    .cta-bg p {
        font-size: 1.1rem;
    }
    
    .logo svg, .logo-footer svg {
        max-width: 250px;
        height: auto;
    }

    /* About Us Responsive */
    .page-banner {
        padding: 120px 0 60px;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-desc {
        font-size: 1.1rem;
    }

    .story-grid, .mv-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-image-wrapper {
        order: -1;
        margin-bottom: 20px;
    }

    .mv-block {
        padding: 40px 30px;
    }

    .mv-content h3 {
        font-size: 1.8rem;
    }

    .story-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Contact Us Responsive */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-cards-section {
        margin-top: -40px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .map-wrapper {
        min-height: 350px;
    }
}

@media (max-width: 576px) {
    .logo svg, .logo-footer svg {
        max-width: 200px;
    }
    
    .slide .btn-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-grid, .cards-grid, .info-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-controls {
        bottom: 20px;
        gap: 15px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .cta-bg {
        padding: 60px 20px;
    }
    
    .cta-bg h2 {
        font-size: 2rem;
    }

    .banner-title {
        font-size: 2rem;
    }

    .mv-block {
        padding: 30px 20px;
    }

    .stat-num {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Contact Us Page Styles
   ========================================================================== */

/* Contact Banner */
.contact-banner {
    background-image: url('https://images.unsplash.com/photo-1596524430615-b46475ddff6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

/* Info Cards Section */
.info-cards-section {
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Pull up to overlap banner slightly */
    padding-top: 0;
}

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

.info-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0.5;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--light);
}

.info-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-link {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.info-link:hover {
    color: var(--light);
}

.info-link i {
    transition: transform 0.3s ease;
}

.info-link:hover i {
    transform: translateX(5px);
}

/* Contact Main Layout */
.contact-main-section {
    padding-top: 60px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

/* Styled Form Wrapper */
.contact-form-wrapper {
    padding: 50px;
    background: var(--light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Dropdown specifically */
.input-with-icon select {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition);
    background: #F8FAFC;
    appearance: none; /* remove default arrow */
    cursor: pointer;
}

.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
}

/* Textarea specifically */
.textarea-with-icon {
    position: relative;
    display: flex;
}

.textarea-with-icon i {
    position: absolute;
    left: 20px;
    top: 20px;
    color: var(--text-muted);
}

.textarea-with-icon textarea {
    width: 100%;
    padding: 20px 20px 20px 50px;
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition);
    background: #F8FAFC;
    resize: vertical;
}

.textarea-with-icon textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

.ml-2 {
    margin-left: 8px;
}

/* Map Wrapper */
.map-wrapper {
    height: 100%;
    min-height: 500px;
}

.map-inner {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
}

.map-overlay-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--light);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.loc-icon {
    width: 40px; height: 40px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.pulse-animation {
    animation: slowPulse 2s infinite;
}

@keyframes slowPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.loc-text strong {
    display: block;
    color: var(--dark-alt);
    font-family: var(--font-heading);
}

.loc-text span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive specific to Contact */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .map-wrapper {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .info-cards-section {
        margin-top: -30px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    .map-overlay-card {
        bottom: 15px; left: 15px; right: 15px;
    }
}

/* ==========================================================================
   About Us Page Styles
   ========================================================================== */

/* Page Banner */
.page-banner {
    position: relative;
    padding: 160px 0 100px;
    background-color: var(--dark);
    overflow: hidden;
}

.about-banner {
    background-image: url('https://images.unsplash.com/photo-1464938050520-ef2270bb8ce8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.9) 0%, rgba(58, 123, 213, 0.7) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    color: var(--light);
    font-size: 4rem;
    margin-bottom: 20px;
    animation: floatUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.banner-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    animation: floatUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
    opacity: 0;
}

.badge-pulse {
    animation: floatUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s forwards, pulse 2s infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.banner-waves {
    position: absolute;
    bottom: -5px; /* Offset to prevent a gap */
    left: 0;
    width: 100%;
    z-index: 3;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px; /* Fix for safari gap */
    min-height: 100px;
    max-height: 150px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* Our Story Section */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.story-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.story-image-wrapper {
    position: relative;
    padding: 20px;
}

.img-accent {
    position: absolute;
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.img-accent-1 {
    top: 0; right: 0;
    width: 80%; height: 80%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0.1;
    transform: translate(20px, -20px);
}

.img-accent-2 {
    bottom: 0; left: 0;
    width: 60%; height: 60%;
    background: var(--success);
    opacity: 0.1;
    transform: translate(-20px, 20px);
}

/* Vision & Mission Section */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.mv-block {
    background: var(--light);
    border-radius: var(--border-radius-lg);
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.02);
    z-index: 1;
}

.mv-bg-shape {
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(58, 123, 213, 0.1));
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.6s ease;
}

.bg-shape-alt {
    top: auto; bottom: -50px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(0, 210, 255, 0.1));
}

.mv-block:hover .mv-bg-shape {
    transform: scale(2.5);
}

.mv-icon {
    width: 70px; height: 70px;
    background: var(--light-bg);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: var(--primary-dark);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.mv-block:hover .mv-icon {
    transform: translateY(-10px) rotate(10deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    box-shadow: var(--shadow-glow);
}

.mv-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.mv-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Core Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid transparent;
}

.value-card:hover {
    border-bottom-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 80px; height: 80px;
    background: rgba(0, 210, 255, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: var(--primary);
    color: var(--light);
    transform: scale(1.1);
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive adjustments for About Page */
@media (max-width: 992px) {
    .story-grid, .mv-grid {
        grid-template-columns: 1fr;
    }
    .banner-title { font-size: 3rem; }
    .story-image-wrapper { margin-top: 40px; }
}

/* ==========================================================================
   Blog Page Styles
   ========================================================================== */

.blog-hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.blog-tabs-container {
    margin-top: -40px;
    position: relative;
    z-index: 20;
}

.blog-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    background: var(--light);
    padding: 15px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: transparent;
    color: var(--dark-alt);
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.tab-btn:hover {
    background: rgba(0, 210, 255, 0.05);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--light);
    box-shadow: var(--shadow-glow);
}

.blog-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Filtering classes */
.blog-card.fadeOut {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.blog-card.hide {
    display: none;
}

.blog-card.fadeIn {
    animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.blog-card .blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card .blog-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .blog-tabs {
        padding: 10px;
        gap: 8px;
    }
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
        flex: 1 1 45%;
    }
    .blog-page-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Blog Detail Page Styles
   ========================================================================== */

.blog-detail-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    overflow-x: hidden; /* Keeps content within viewport on mobile */
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 100%;
}

/* Article Styling */
.blog-content-area {
    background: var(--light);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 0; /* Prevents grid overflow on mobile */
    overflow-wrap: break-word;
}

.article-header {
    margin-bottom: 40px;
}

.meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-content {
    color: var(--text-main);
    line-height: 1.8;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

/* Table wrapper for responsive horizontal scroll on mobile only */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.table-responsive table,
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-content .table-responsive table {
    box-shadow: none;
}

.article-content th, .article-content td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

.article-content th {
    background: var(--primary-dark);
    color: var(--light);
    font-family: var(--font-heading);
}

.article-content td {
    background: #F8FAFC;
}

.faq-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E2E8F0;
}

/* Sidebar Styling */
.sidebar {
    position: sticky;
    top: 100px;
    min-width: 0; /* Prevents grid overflow on mobile */
}

.widget {
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 45px;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--light);
    cursor: pointer;
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.recent-post-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-info h4 a {
    color: var(--dark-alt);
}

.recent-post-info h4 a:hover {
    color: var(--primary-dark);
}

.recent-post-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Info Card Widget in Sidebar */
.widget.info-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    color: var(--light);
    text-align: center;
}

.widget.info-card .widget-title {
    color: var(--light);
    border-bottom-color: var(--primary);
}

.widget.info-card p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    color: var(--light);
}

/* Blog Detail Hero - responsive padding (overrides inline when removed) */
.blog-hero.blog-detail-hero {
    padding: 120px 20px;
}

/* Responsive Blog Detail */
@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        position: static;
    }
    
    .blog-content-area {
        padding: 30px;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Blog detail hero - reduce padding on mobile */
    .blog-hero.blog-detail-hero {
        padding: 100px 16px 60px;
    }
    
    .blog-hero.blog-detail-hero .banner-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .blog-hero.blog-detail-hero .banner-title br {
        display: none;
    }
    
    .blog-hero.blog-detail-hero .banner-desc {
        font-size: 1rem;
    }
    
    .blog-hero.blog-detail-hero .badge {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .blog-detail-section {
        padding: 40px 0;
    }
    
    .blog-content-area {
        padding: 24px 20px;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
        margin: 30px 0 15px;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
        margin: 25px 0 12px;
    }
    
    .article-content p,
    .article-content li {
        font-size: 15px;
    }
    
    /* Table scroll wrapper for mobile - keeps content in container */
    .table-responsive {
        margin: 24px 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table,
    .article-content table {
        min-width: 400px;
        font-size: 14px;
    }
    
    .article-content th,
    .article-content td {
        padding: 12px 10px;
    }
    
    .widget {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .recent-post-img {
        width: 60px;
        height: 50px;
    }
    
    .recent-post-info h4 {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .blog-hero.blog-detail-hero {
        padding: 90px 12px 50px;
    }
    
    .blog-hero.blog-detail-hero .banner-title {
        font-size: 1.5rem;
    }
    
    .blog-detail-section .container,
    .blog-detail-section .blog-container {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .blog-content-area {
        padding: 20px 16px;
    }
    
    .meta-info {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }
    
    .article-content h3 {
        font-size: 1.15rem;
    }
    
    .table-responsive table,
    .article-content table {
        min-width: 320px;
        font-size: 13px;
    }
    
    .article-content th,
    .article-content td {
        padding: 10px 8px;
    }
    
    .faq-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .search-form input {
        padding: 10px 12px;
        padding-right: 40px;
    }
    
    .widget.info-card .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}
