/* Article Layout CSS - General styling for all article pages */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Brand Colors from Logo */
:root {
    --primary-navy: #2C3E50;
    --primary-green: #7CB342;
    --light-green: #8BC34A;
    --dark-navy: #1A252F;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
    --text-dark: #333;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    height: 40px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-menu a:hover {
    color: var(--primary-green);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-navy);
}

.phone-info i {
    color: var(--primary-green);
    font-size: 18px;
}

.phone-info small {
    font-size: 12px;
    color: var(--medium-gray);
}

/* Page Header */
.page-header {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 37, 47, 0.9) 100%), url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-column a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #bbb;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .whatsapp-float i {
        line-height: 50px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    line-height: 60px;
}

/* Legal Pages Styling */
.legal-content {
    padding: 60px 0;
    background: white;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.last-updated {
    font-style: italic;
    color: var(--medium-gray);
    margin-bottom: 40px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green);
}

.legal-section h3 {
    color: var(--primary-navy);
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.legal-section p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-info {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.9)), url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&ixid=M3wxMJA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

/* Article Header Styles */
.article-header {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.9)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.3;
    z-index: -1;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    opacity: 0.7;
}

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

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 14px;
    opacity: 0.9;
}

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

/* Article Content Layout */
.article-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.main-content article {
    padding: 40px;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.content-section h2 {
    color: #2E7D32;
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h3 {
    color: #2E7D32;
    font-size: 1.4rem;
    margin-bottom: 20px;
    margin-top: 30px;
}

.content-section h4 {
    color: #2E7D32;
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 25px;
}

.intro-section {
    margin-bottom: 40px;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    border-radius: 8px;
}

/* Typography */
.main-content p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

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

.main-content li {
    line-height: 1.6;
    margin-bottom: 8px;
    color: #333;
}

.main-content strong {
    color: #2E7D32;
    font-weight: 600;
}

/* Info and Warning Boxes */
.info-box, .warning-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.info-box {
    background: linear-gradient(135deg, #E3F2FD, #F3E5F5);
    border-left: 4px solid #2196F3;
}

.warning-box {
    background: linear-gradient(135deg, #FFF3E0, #FFEBEE);
    border-left: 4px solid #FF5722;
}

.info-box i, .warning-box i {
    font-size: 24px;
    margin-top: 2px;
}

.info-box i {
    color: #2196F3;
}

.warning-box i {
    color: #FF5722;
}

.info-box h4, .warning-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-box ul, .warning-box ul {
    margin-bottom: 0;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #2E7D32;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-links {
    list-style: none;
    padding: 0;
}

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

.related-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s;
}

.related-links a:hover {
    color: #4CAF50;
}

.help-card, .calculator-widget {
    text-align: center;
}

.help-card p, .calculator-widget p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* Resource Links Widget */
.resource-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.resource-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 12px;
    border: 1px solid #4CAF50;
    border-radius: 15px;
    transition: all 0.3s;
}

.resource-link:hover {
    background: #4CAF50;
    color: white;
}

/* COE Widget */
.coe-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coe-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.coe-item:last-child {
    border-bottom: none;
}

.coe-item .category {
    font-size: 13px;
    color: #666;
}

.coe-item .price {
    font-weight: 700;
    color: #2E7D32;
    font-size: 14px;
}

.update-note {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

/* Rates Widget */
.rates-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rate-item:last-child {
    border-bottom: none;
}

.rate-item .lender {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.rate-item .rate {
    font-weight: 700;
    color: #2E7D32;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header {
        padding: 120px 0 40px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .article-meta {
        gap: 15px;
        font-size: 13px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        position: static;
    }
    
    .main-content article {
        padding: 25px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}
