/* 
==================================================
   PREMIUM BLOG STYLES (NoBroker / Medium Vibe)
================================================== 
*/

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

:root {
    --blog-primary: #3b82f6; /* Modern Blue */
    --blog-primary-hover: #2563eb;
    --blog-dark: #0f172a; /* Rich dark */
    --blog-text: #334155;
    --blog-muted: #64748b;
    --blog-light: #f8fafc;
    --blog-white: #ffffff;
    --blog-border: #e2e8f0;
    --blog-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #93c5fd 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--blog-text);
    line-height: 1.6;
    background-color: #f4f7f6; /* Premium soft gray */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--blog-dark);
    font-weight: 700;
}

/* --- Header --- */
.blog-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--blog-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.blog-header .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--blog-dark);
}

.blog-header .nav-link {
    font-weight: 500;
    color: var(--blog-text);
    transition: color 0.2s;
}

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

.blog-header .btn-quote {
    background-color: var(--blog-dark);
    color: var(--blog-white);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
    transition: transform 0.2s, background 0.2s;
}

.blog-header .btn-quote:hover {
    background-color: var(--blog-primary);
    transform: translateY(-2px);
    color: white;
}

/* --- Blog Hub Hero (Premium Mesh/Gradient) --- */
.blog-hero {
    background: var(--blog-dark);
    background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    color: var(--blog-white);
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Cg/%3E%3C/svg%3E');
    opacity: 0.5;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    color: var(--blog-white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p {
    color: #e2e8f0;
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* Glassmorphic Search Bar */
.hero-search-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.hero-search-glass input {
    background: transparent;
    border: none;
    color: white;
    flex-grow: 1;
    font-size: 1.1rem;
    outline: none;
}

.hero-search-glass input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-search-glass button {
    background: var(--blog-primary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-search-glass button:hover {
    background: var(--blog-primary-hover);
    transform: scale(1.05);
}

/* --- Premium Article Cards --- */
.article-card {
    background: var(--blog-white);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(59, 130, 246, 0.2);
}

.article-img-wrapper {
    overflow: hidden;
    position: relative;
}

.article-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    background-color: var(--blog-light);
    transition: transform 0.6s ease;
}

.article-card:hover .article-img {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--blog-primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--blog-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.meta-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
    background: var(--blog-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.article-title {
    font-size: 1.35rem;
    margin-bottom: 14px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.article-title a {
    color: var(--blog-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: var(--blog-primary);
}

.article-excerpt {
    color: var(--blog-text);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--blog-primary);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.article-read-more i {
    margin-left: 6px;
    transition: transform 0.2s;
}

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

/* --- Single Article Layout --- */
.article-header {
    max-width: 800px;
    margin: 60px auto 40px;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-cover {
    max-width: 1000px;
    margin: 0 auto 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-cover img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body img {
    width: 100%;
    border-radius: 12px;
    margin: 30px 0;
}

.author-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--blog-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

/* --- Footer --- */
.blog-footer {
    background-color: var(--blog-dark);
    color: var(--blog-white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.blog-footer h5 {
    color: var(--blog-white);
    margin-bottom: 24px;
}

.blog-footer p {
    color: #9ca3af;
}

.blog-footer ul {
    list-style: none;
    padding: 0;
}

.blog-footer ul li {
    margin-bottom: 12px;
}

.blog-footer ul a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-footer ul a:hover {
    color: var(--blog-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ============================
   TABLE OF CONTENTS
   ============================ */
.toc-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 24px 28px;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blog-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #93c5fd;
}

.toc-list {
    margin: 0;
    padding-left: 20px;
}

.toc-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.toc-list a {
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
}

.toc-list a:hover {
    color: var(--blog-primary-hover);
    padding-left: 4px;
}

/* ============================
   PRICING TABLES
   ============================ */
.pricing-table {
    font-size: 0.95rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pricing-table thead th {
    background: var(--blog-dark);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border: none;
    white-space: nowrap;
}

.pricing-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.pricing-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.pricing-table tbody tr:hover {
    background-color: #eff6ff;
    transition: background 0.2s;
}

.pricing-table a {
    color: var(--blog-primary);
    font-weight: 500;
    text-decoration: none;
}

.pricing-table a:hover {
    text-decoration: underline;
}

/* ============================
   PRICE HIGHLIGHT CARDS
   ============================ */
.pricing-highlight {
    margin: 24px 0;
}

.price-card {
    padding: 28px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.price-card i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.price-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--blog-dark);
}

.price-card .price-range {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.price-card small {
    color: var(--blog-muted);
    font-size: 0.8rem;
}

.price-card-local {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.price-card-local i { color: #16a34a; }
.price-card-local .price-range { color: #15803d; }

.price-card-interstate {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.price-card-interstate i { color: #2563eb; }
.price-card-interstate .price-range { color: #1d4ed8; }

/* ============================
   PRO TIP BOXES
   ============================ */
.pro-tip-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 20px 24px;
}

.pro-tip-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--blog-dark);
}

.pro-tip-box p {
    font-size: 0.95rem;
    color: #78716c;
    line-height: 1.6;
}

.pro-tip-box a {
    color: var(--blog-primary);
    font-weight: 500;
}

/* ============================
   VIDEO EMBED
   ============================ */
.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ============================
   FAQ ACCORDION
   ============================ */
.faq-section {
    margin-top: 16px;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.faq-question {
    width: 100%;
    background: #f8fafc;
    border: none;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blog-dark);
    text-align: left;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #eff6ff;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--blog-primary);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-question.active {
    background: #eff6ff;
    border-bottom: 1px solid #e2e8f0;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
}

.faq-answer.show {
    max-height: 300px;
    padding: 16px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--blog-text);
    margin-bottom: 0;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--blog-primary);
}

/* ============================
   ARTICLE BODY H3 ICONS
   ============================ */
.article-body h3 {
    font-size: 1.35rem;
    margin-top: 32px;
    margin-bottom: 14px;
}

.article-body h3 i {
    font-size: 1.1rem;
}

/* ============================
   RESPONSIVE ADJUSTMENTS
   ============================ */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-body {
        padding: 24px 18px !important;
        font-size: 1rem;
    }

    .pricing-table {
        font-size: 0.8rem;
    }

    .pricing-table thead th {
        padding: 10px 8px;
        font-size: 0.72rem;
    }

    .pricing-table tbody td {
        padding: 8px;
    }

    .price-card .price-range {
        font-size: 1.3rem;
    }

    .toc-box {
        padding: 16px 18px;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 14px 16px;
    }

    .pro-tip-box {
        padding: 16px 18px;
    }
}
