/* ==========================================
   Global Styles & Font Import
   ========================================== */

@import "/assets/user/fonts/font.css";

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

:root {
    --primary-color: #27686A;
    --accent-color: #C9A44C;
    --primary-hover: #1f5557;
    --bg-color: #fdfdfd;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --text-light: #b2bec3;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'dana', Arial, sans-serif;
    font-feature-settings: "ss02" 1;
    -moz-font-feature-settings: "ss02" 1;
    -webkit-font-feature-settings: "ss02" 1;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}



/* ==========================================
   Header & Navigation
   ========================================== */

.header-section {
    position: relative;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar-brand.logo i {
    color: var(--primary-color);
}

.navbar-brand.logo:hover {
    color: var(--primary-hover);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: none;
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}




/* ==========================================
   Section Headers
   ========================================== */

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}


/* ==========================================
   Hero Section
   ========================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('/assets/images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.search-box-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.search-box {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.search-field {
    position: relative;
}

.search-field i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--primary-color);
    z-index: 10;
    pointer-events: none;
}

.search-field .form-control,
.search-field .form-select {
    padding-right: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    height: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-field .form-control:focus,
.search-field .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(39, 104, 106, 0.15);
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    height: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.search-btn-text {
    display: inline;
}

/* ==========================================
   Responsive - Hero & Search Box
   ========================================== */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-box {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .category-card img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .search-box-wrapper {
        padding: 0 0.75rem;
    }

    .search-box {
        padding: 1rem;
        border-radius: 12px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .search-field .form-control,
    .search-field .form-select {
        height: 42px;
        font-size: 0.82rem;
        padding-right: 36px;
        border-radius: 8px;
        border-width: 1.5px;
    }

    .search-field i {
        right: 10px;
        font-size: 0.85rem;
    }

    .btn-search {
        height: 42px;
        font-size: 0.88rem;
        border-radius: 8px;
        padding: 0.5rem 1rem;
    }

    .category-card img {
        height: 220px;
    }

    .property-image img {
        height: 200px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding: 2.5rem 0 3rem;
    }

    .hero-title {
        font-size: 1.35rem;
        line-height: 1.6;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
    }

    .search-box-wrapper {
        padding: 0 1rem;
    }

    .search-box {
        padding: 0.85rem;
        border-radius: 10px;
    }

    .search-box .row.g-2 {
        --bs-gutter-x: 0.4rem;
        --bs-gutter-y: 0.4rem;
    }

    .search-field .form-control,
    .search-field .form-select {
        height: 38px;
        font-size: 0.78rem;
        padding-right: 32px;
        border-radius: 7px;
    }

    .search-field i {
        right: 8px;
        font-size: 0.8rem;
    }

    .btn-search {
        height: 38px;
        font-size: 0.82rem;
        border-radius: 7px;
        gap: 4px;
    }

    .category-card img {
        height: 200px;
    }

    .feature-box {
        padding: 2rem 1rem;
    }

    .footer-widget {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 400px) {
    .search-box-wrapper {
        padding: 0 0.5rem;
    }

    .search-box {
        padding: 0.7rem;
    }

    .search-field .form-control,
    .search-field .form-select {
        height: 36px;
        font-size: 0.75rem;
        padding-right: 28px;
    }

    .search-field i {
        right: 7px;
        font-size: 0.75rem;
    }

    .btn-search {
        height: 36px;
        font-size: 0.78rem;
    }

    .search-btn-text {
        display: none;
    }
}


/* ==========================================
   Categories Section - NEW DESIGN
   ========================================== */

.categories-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 350px;
    display: block;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.85);
}

.category-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(39, 104, 106, 0.3) 50%,
            rgba(39, 104, 106, 0.95) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.5rem;
    transition: all 0.4s ease;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
    transform: translateY(0);
    transition: transform 0.4s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-desc {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.category-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    z-index: 10;
}

/* Hover Effects */
.category-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 45px rgba(39, 104, 106, 0.3);
}

.category-card:hover img {
    transform: scale(1.15);
    filter: brightness(1);
}

.category-card:hover .category-overlay {
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(39, 104, 106, 0.5) 40%,
            rgba(39, 104, 106, 1) 100%
    );
}

.category-card:hover .category-title {
    transform: translateY(-10px);
}

.category-card:hover .category-desc {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover .category-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotate(360deg) scale(1.1);
}

/* Responsive for Categories */
@media (max-width: 992px) {
    .category-card {
        height: 320px;
    }

    .category-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .category-card {
        height: 280px;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .category-card {
        height: 260px;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .category-desc {
        font-size: 0.9rem;
    }
}


/* ==========================================
   Properties Section
   ========================================== */

.properties-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--white);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-image {
    position: relative;
    overflow: hidden;
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.property-badge.new {
    background-color: #ff9800;
}

.property-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.property-location {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.property-location i {
    margin-left: 5px;
    color: var(--primary-color);
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.property-features span {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.property-features span i {
    margin-left: 5px;
    color: var(--primary-color);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.property-price {
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-unit {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.property-rating i {
    color: #ffc107;
    font-size: 1.1rem;
}

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

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

.btn-outline-primary-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==========================================
   Why Section - MODERN GRID DESIGN
   ========================================== */

.why-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 50%, rgba(39, 104, 106, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(39, 104, 106, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.why-feature {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    border: 2px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.why-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.why-feature:hover::before {
    transform: scaleX(1);
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(39, 104, 106, 0.05);
    line-height: 1;
    transition: all 0.4s ease;
}

.feature-icon-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(39, 104, 106, 0.15);
}

.feature-icon-box::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-icon-box i {
    font-size: 2.5rem;
    color: #ffffff;
    transition: transform 0.4s ease;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s ease;
}

/* Hover Effects */
.why-feature:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(39, 104, 106, 0.15);
}

.why-feature:hover .feature-number {
    color: rgba(39, 104, 106, 0.1);
    transform: scale(1.1);
}

.why-feature:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(39, 104, 106, 0.25);
}

.why-feature:hover .feature-icon-box::before {
    opacity: 1;
}

.why-feature:hover .feature-icon-box i {
    transform: scale(1.1);
}

.why-feature:hover .feature-title {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-section {
        padding: 4rem 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .why-feature {
        padding: 2.5rem 1.5rem;
    }

    .feature-icon-box {
        width: 80px;
        height: 80px;
    }

    .feature-icon-box i {
        font-size: 2rem;
    }

    .feature-number {
        font-size: 2.5rem;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .feature-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .why-feature {
        padding: 2rem 1.2rem;
    }

    .feature-icon-box {
        width: 70px;
        height: 70px;
    }

    .feature-icon-box i {
        font-size: 1.8rem;
    }
}


/* ==========================================
   Footer Section
   ========================================== */

.footer-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo i {
    color: var(--white);
}

.footer-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-left: 8px;
    font-size: 0.75rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: start;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-contact li i {
    margin-left: 10px;
    margin-top: 3px;
    color: var(--white);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.4rem;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

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

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ==========================================
   Responsive Design
   ========================================== */


/* ==========================================
   Utility Classes
   ========================================== */

.text-primary-custom {
    color: var(--primary-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg);
}


/* استایل برای دکمه "مشاهده" در کارت ملک */
.btn-details {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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



/* ==========================================
   Host Button Styles
   ========================================== */

/* کانتینر برای کنار هم قرار گرفتن دکمه‌ها */
.auth-buttons-group {
    display: flex;
    align-items: center;
    gap: 12px; /* فاصله بین دکمه میزبان و دکمه ورود */
    margin-right: 15px; /* فاصله از منوها */
}

/* استایل دکمه میزبان شوید */
.btn-host-custom {
    background-color: var(--accent-color); /* استفاده از رنگ طلایی تم شما */
    color: var(--white);
    padding: 0.5rem 1.4rem;
    border-radius: 50px; /* گردی گوشه‌ها مشابه سایر دکمه‌ها */
    border: 2px solid var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* فاصله آیکون و متن */
}

/* افکت هاور دکمه میزبان */
.btn-host-custom:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* حالت ریسپانسیو برای موبایل (اگر لازم شد) */
@media (max-width: 768px) {
    .btn-host-custom {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .auth-buttons-group {
        gap: 8px;
    }
}



/* ==========================================
   Blog Section
   ========================================== */

.blog-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(39, 104, 106, 0.15);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(39, 104, 106, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

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

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: auto;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-card:hover .read-more {
    gap: 12px;
    color: var(--primary-hover);
}

.read-more i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

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

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-section {
        padding: 3rem 0;
    }

    .blog-image {
        height: 200px;
    }

    .blog-title {
        font-size: 1.05rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 576px) {
    .blog-content {
        padding: 1.25rem;
    }

    .blog-image {
        height: 180px;
    }
}
