:root {
    --primary-color: #0A3D62;
    --secondary-color: #F39C12;
    --bg-color: #F5F6FA;
    --text-color: #2D3436;
    --white: #ffffff;
    --font-heading: 'Poppins', 'Montserrat', sans-serif;
    --font-body: 'Open Sans', 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #082d49;
    transform: translateY(-2px);
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.4s ease;
}

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

.contact-info span {
    margin-right: 20px;
}

.contact-info i, .social-icons i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 40px; /* Adjust based on top-bar height */
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    background-color: var(--white);
    padding: 10px 0;
    top: 0; /* Move to top on scroll */
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.header.scrolled + .page-hero,
body.scrolled-padding {
    /* Prevent content jump when header becomes fixed at top */
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
    transition: color 0.3s ease;
    margin-right: auto; /* Fix 2: Force Logo Left */
}

.header.scrolled .logo {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
}

.navbar {
    /* display: flex;  Removed, container handles layout */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 20px; /* Spacing */
}

/* Desktop Only CTA */
.btn-quote-desktop {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-quote-desktop:hover {
    background-color: #d35400; /* Darker orange */
    transform: translateY(-2px);
    color: var(--white);
}

.nav-btn-item.mobile-only {
    display: none; /* Hidden on desktop */
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    letter-spacing: 0.5px;
    color: var(--white);
    transition: color 0.3s ease;
    font-family: var(--font-heading);
}

.header.scrolled .nav-links > li > a {
    color: var(--text-color);
}

/* Hover Underline Effect */
.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links > li > a:hover::after, 
.nav-links > li > a.active::after {
    width: 100%;
}

.nav-links > li > a:hover, 
.nav-links > li > a.active {
    color: var(--secondary-color);
}

.header.scrolled .nav-links > li > a:hover, 
.header.scrolled .nav-links > li > a.active {
    color: var(--primary-color);
}

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

.dropbtn i {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 400px; /* Wider for 2 columns */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 5px;
    padding: 15px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: grid; /* Use Grid for layout inside dropdown but keep hidden by default */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
    display: grid;
    opacity: 1;
    visibility: visible;
    top: 100%; /* Ensure it stays attached */
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.dropdown-content a i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.header.scrolled .dropdown-content {
    top: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    margin-left: 20px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}

.header.scrolled .bar {
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 61, 98, 0.8), rgba(10, 61, 98, 0.8)), url('images/banners/slider-2.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Services Section */
.services {
    background-color: var(--white);
}

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

.service-card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #eee;
    background: var(--white);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Why Choose Us */
.why-us {
    background-color: var(--bg-color);
}

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

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--white);
}

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

.portfolio-item {
    position: relative;
    height: 300px; /* Fixed height */
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

/* Add images to portfolio items */
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Background colors for placeholders if images fail or for variety */
.portfolio-item:nth-child(odd) {
    background-color: #ddd;
}
.portfolio-item:nth-child(even) {
    background-color: #ccc;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 61, 98, 0.9);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.placeholder-img {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    border-radius: 10px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-text h2::after {
    left: 0;
    transform: none;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background: var(--bg-color);
    padding: 50px;
    border-radius: 10px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-info .info-item i {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-family: var(--font-body);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: #052035; /* Darker blue */
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links h3, .footer-social h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbar {
        position: fixed;
        left: -100%;
        top: 0; /* Cover full height */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100vh; /* Full viewport height */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 80px; /* Space for close button/header */
        overflow-y: auto; /* Allow scrolling if menu is long */
    }

    .navbar.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        width: 100%; /* Full width for clickable area */
    }

    .nav-links a {
        color: var(--text-color); /* Dark text for white background */
        font-size: 1.2rem;
        display: block;
        padding: 15px 0;
    }

    /* Mobile Dropdown */
    .dropdown-content {
        position: static; /* Stack naturally in mobile */
        display: none; /* Hidden by default */
        width: 100%;
        box-shadow: none;
        background-color: #f9f9f9;
        transform: none;
        opacity: 1;
        visibility: visible;
        grid-template-columns: 1fr; /* Single column */
        padding: 0;
    }

    .dropdown.active .dropdown-content {
        display: block; /* Show when active class added via JS */
    }
    
    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile, rely on click/JS */
    }
    
    .dropdown.active .dropdown-content {
        display: block !important;
    }

    /* Mobile Button */
    .btn-quote-desktop {
        display: none; /* Hide desktop button */
    }

    .nav-btn-item.mobile-only {
        display: block; /* Show mobile button in menu */
        margin-top: 20px;
    }
    
    .btn-quote {
        background-color: var(--secondary-color);
        color: var(--white) !important;
        padding: 12px 30px;
        border-radius: 5px;
        display: inline-block !important; /* Override .nav-links a display:block */
        width: auto !important;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Page Headers */
.page-hero {
    height: 50vh;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.page-hero.services-hero {
    background: linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.9)), url('images/banners/special_bg.jpeg');
    background-size: cover;
    background-position: center;
}

.page-hero.portfolio-hero {
    background: linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.9)), url('images/services/service-1.jpg');
    background-size: cover;
    background-position: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--white);
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: var(--white);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 61, 98, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.project-info .category {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Partners Section */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partners-grid img {
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partners-grid img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.testimonial-card .stars {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-card .quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-card h4 {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

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

/* Portfolio Detail Page */
.project-details {
    background-color: var(--white);
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.main-project-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.project-main h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-main p {
    margin-bottom: 20px;
    color: #555;
}

.sidebar-box {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sidebar-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.info-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.info-list li:last-child {
    border-bottom: none;
}

.service-tags li {
    display: inline-block;
    background: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    margin-right: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.gallery-grid img {
    border-radius: 10px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .project-content-grid {
        grid-template-columns: 1fr;
    }
}

/* 
   ------------------------------
   BLOG STYLES
   ------------------------------
*/

.blog-hero {
    background: linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.9)), url('images/banners/slider-2.png');
    background-size: cover;
    background-position: center;
}

.blog-detail-hero {
    height: 50vh;
}

.post-meta-hero {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 600;
}

.post-meta-hero span {
    margin: 0 10px;
}

.post-meta-hero .category-tag {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 0;
}

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    align-self: flex-start;
}

.featured-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.post-meta {
    margin: 15px 0 25px;
    color: #888;
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 20px;
}

.post-meta i {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* Blog Layout & Grid */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.blog-filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: var(--transition);
}

.blog-filter-btn.active, .blog-filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

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

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.search-form {
    display: flex;
}

.search-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-form button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-item img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
}

.recent-post-item h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.recent-post-item .date {
    font-size: 0.8rem;
    color: #888;
}

.categories-widget ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.categories-widget ul li:last-child {
    border-bottom: none;
}

.categories-widget ul li a {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-weight: 600;
}

.categories-widget ul li a:hover {
    color: var(--secondary-color);
}

.categories-widget ul li span {
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #888;
}

/* Blog Detail Content */
.blog-article .article-image img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-article .lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.8;
}

.blog-article h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-article p {
    margin-bottom: 20px;
    color: #555;
}

.blog-article ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 30px;
    color: #555;
}

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

.cta-box {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    border: 2px dashed var(--secondary-color);
}

.cta-box h3 {
    margin-bottom: 10px;
}

/* Newsletter Section */
.newsletter {
    background: var(--white);
    text-align: center;
    padding: 60px 0;
}

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

.newsletter h2 {
    margin-bottom: 10px;
}

.newsletter p {
    color: #666;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

/* Responsive Blog */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image img {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}
