﻿/* Blog Styles for Capital Realty */

/* Blog Header */
.blog-header {
    background: var(--white);
    border-bottom: 1px solid rgba(26, 42, 108, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

/* Blog Main Layout */
.blog-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Article Styles */
.blog-article {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-header {
    padding: 3rem;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-meta .category {
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-deep-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-highlight {
    color: var(--primary-gold);
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(26, 42, 108, 0.1);
}

.article-image figcaption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Article Content */
.article-content {
    padding: 0 3rem 3rem;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-deep-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-gold);
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-deep-blue);
    margin: 2rem 0 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.content-section ul {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-deep-blue), #2a3a8c);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 5px 20px rgba(26, 42, 108, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Calculator Demo */
.calculator-demo {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.calc-example {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(26, 42, 108, 0.1);
}

.input-group label {
    font-weight: 500;
    color: var(--text-secondary);
}

.input-value {
    font-weight: 600;
    color: var(--primary-deep-blue);
}

.calc-result {
    text-align: center;
    background: var(--primary-gold);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.roi-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.roi-label {
    font-size: 1rem;
    opacity: 0.9;
}

.calc-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Districts Grid */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.district-card {
    background: var(--white);
    border: 1px solid rgba(26, 42, 108, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.district-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 42, 108, 0.15);
}

.district-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.district-header h3 {
    margin: 0;
    color: var(--primary-deep-blue);
}

.roi-badge {
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.district-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.feature i {
    color: var(--primary-gold);
    width: 20px;
}

.district-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 42, 108, 0.1);
}

.price-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-value {
    font-weight: 600;
    color: var(--primary-deep-blue);
    font-size: 1.1rem;
}

/* Tips Container */
.tips-container {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border: 1px solid rgba(26, 42, 108, 0.1);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateX(5px);
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.tip-icon i {
    width: 24px;
    height: 24px;
}

.tip-content h3 {
    margin: 0 0 0.5rem;
    color: var(--primary-deep-blue);
}

.tip-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-deep-blue), #2a3a8c);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 3rem;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gold);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #d4ac0d;
    transform: translateY(-2px);
}

/* Article Footer */
.article-footer {
    padding: 3rem;
    background: var(--bg-light);
    border-top: 1px solid rgba(26, 42, 108, 0.1);
}

.author-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-deep-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
}

.author-avatar i {
    width: 32px;
    height: 32px;
}

.author-details h4 {
    margin: 0 0 0.5rem;
    color: var(--primary-deep-blue);
}

.author-details p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--white);
    color: var(--primary-deep-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid rgba(26, 42, 108, 0.2);
}
blockquote {
  border-left: 3px solid var(--primary-deep-blue);
  font-style: italic;
  line-height: 1.8em;
  padding: 1em 2em;
  position: relative;
  transition: 0.2s border ease-in-out;
  z-index: 0;
}
blockquote:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  height: 2em;
  background-color: #fff;
  width: 5px;
  margin-top: -1em;
}
blockquote:after {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.5em;
  color:  #FF5154;
  font-family: "Ionicons";
  font-style: normal;
  line-height: 1em;
  text-align: center;
  text-indent: -2px;
  width: 1em;
  margin-top: -0.5em;
  transition: 0.2s all ease-in-out, 0.4s transform ease-in-out;
}

blockquote:active:after {
  transform: rotateY(360deg);
}
blockquote cite {
  display: block;
  font-size: 0.75em;
  line-height: 1.8em;
  margin-top: 1em;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 42, 108, 0.1);
}

.sidebar-widget h3 {
    margin: 0 0 1.5rem;
    color: var(--primary-deep-blue);
    font-size: 1.3rem;
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.toc a:hover,
.toc a.active {
    color: var(--primary-deep-blue);
    border-left-color: var(--primary-gold);
    background: rgba(241, 196, 15, 0.1);
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-article h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.related-article h4 a {
    color: var(--primary-deep-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article h4 a:hover {
    color: var(--primary-gold);
}

.related-article time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Newsletter Widget */
.newsletter-widget p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(26, 42, 108, 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.newsletter-form button {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #d4ac0d;
}

/* Blog Footer */
.blog-footer {
    background: var(--primary-deep-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .blog-main {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .article-header,
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-example {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .districts-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .roi-value {
        font-size: 2.5rem;
    }
    
    .cta-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
}