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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #663300;
    --accent-color: #C07E07;
    --text-color: #3a3a3a;
    --text-light: #6b6b6b;
    --bg-color: #fffef5;
    --bg-light: #f9f5e2;
    --bg-dark: #e9ecef;
    --border-color: #dee2e6;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warm-gray: #8b8b8b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

/* Top Bar Styles */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.top-bar-link:hover {
    color: white;
}

.top-bar-icon {
    font-size: 1rem;
}

.top-bar-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-bar-social-link {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
}

.top-bar-social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.top-bar-social-link svg {
    width: 18px;
    height: 18px;
}

/* Header Styles */
.site-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.main-nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section > .container h1,
.section > .container h2,
.section > .container h3,
.section > .container h1 *,
.section > .container h2 *,
.section > .container h3 * {
    color: var(--secondary-color) !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--bg-color);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--bg-color);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-dark);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.article-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.article-card h3 a:hover {
    color: var(--accent-color);
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-excerpt p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-excerpt p:last-child {
    margin-bottom: 0;
}

.article-excerpt * {
    color: var(--text-light);
    font-size: inherit;
}

.article-excerpt img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 0.5rem 0;
}

.article-excerpt strong,
.article-excerpt b {
    font-weight: 600;
    color: var(--text-color);
}

.article-excerpt em,
.article-excerpt i {
    font-style: italic;
}

/* Article Page */
.article-header {
    background: var(--bg-light);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.article-meta-large {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-featured-image {
    width: 100%;
    max-width: 800px;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
    margin: 2rem auto;
    display: block;
}

@media (min-width: 1200px) {
    .article-featured-image {
        max-height: 350px;
    }
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--secondary-color);
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

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

/* Quill-generated content styling */
.article-content-body {
    line-height: 1.8;
    color: var(--text-color);
}

.article-content-body h1,
.article-content-body h2,
.article-content-body h3 {
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.3;
}

.article-content-body h4,
.article-content-body h5,
.article-content-body h6 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
}

.article-content-body h1 {
    font-size: 2.5rem;
}

.article-content-body h2 {
    font-size: 2rem;
}

.article-content-body h3 {
    font-size: 1.5rem;
}

.article-content-body h4 {
    font-size: 1.25rem;
}

.article-content-body p {
    margin-bottom: 0;
    line-height: 1.8;
}

.article-content-body ul,
.article-content-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content-body a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: var(--transition);
}

.article-content-body a:hover {
    color: var(--secondary-color);
}

.article-content-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.article-content-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-light);
    font-style: italic;
    color: var(--text-light);
    border-radius: 0 0.5rem 0.5rem 0;
}

.article-content-body code {
    background: var(--bg-light);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.article-content-body pre {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.article-content-body pre code {
    background: none;
    padding: 0;
    color: var(--text-color);
}

.article-content-body strong,
.article-content-body b {
    font-weight: 600;
    color: var(--primary-color);
}

.article-content-body em,
.article-content-body i {
    font-style: italic;
}

.article-content-body hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 3rem 0;
}

.article-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-content-body table th,
.article-content-body table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-content-body table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

/* Article Excerpt Box */
.article-excerpt-box {
    font-size: 1.25rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 0.5rem;
    line-height: 1.7;
}

.article-excerpt-box p {
    margin-bottom: 0.5rem;
}

.article-excerpt-box p:last-child {
    margin-bottom: 0;
}

.article-excerpt-box * {
    font-style: italic;
    color: var(--text-light);
}

/* Social Share */
.social-share {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-share a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.comments-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.comment-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.comment {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

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

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

.footer-social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.75rem;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 0;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(45, 45, 45, 0.7) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Newsletter Signup */
.newsletter-section {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

/* Testimonials */
.testimonials-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.testimonial-content {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-title {
    font-size: 0.875rem;
    color: var(--text-light);
}

.testimonial-form {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto 0;
}

/* Image Sections */
.image-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.image-content-section img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.image-content-section.reverse {
    direction: rtl;
}

.image-content-section.reverse > * {
    direction: ltr;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .top-bar-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-bar-link {
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        width: 250px;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0.5rem;
        display: none;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .social-share {
        flex-direction: column;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1.25rem;
    }
    
    .banner-slider {
        height: 400px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .image-content-section {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

