body {
    overflow-x: hidden;
}

/* Hero Section */
.blog-hero-section {
    position: relative;
    background-image: url("../img/hero4.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 40vh;
    z-index: 0;
    overflow: hidden;
}

.blog-hero-section::before {
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    inset: 0;
    z-index: 0;

}



.blog-hero-text {
    position: absolute;
    z-index: 1;
    padding: 60px 0px;
    text-align: center;
    letter-spacing: -1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;


}





.blog-hero-text h2 {
    font-family: var(--primary-font);
    color: var(--light);
    text-align: center;
    font-size: 45px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}


.blog-hero-text p {
    font-family: var(--prinary-font);
    color: var(--light);
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: capitalize;
}


.blog-hero-text a {
    font-family: var(--prinary-font);
    color: var(--light);
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: capitalize;
    text-decoration: none;
}

.hero-btn {
    font-size: 18px;
    font-weight: 400;
    background-color: var(--primary-color);
    text-transform: capitalize;
    color: var(--light);
    padding: 10px 20px;
    border-radius: 25px;
    border-style: none;
    text-decoration: none;
    position: relative;
    transition: background-color 0.3s ease, padding-right 0.3s ease;
}

/* Hover state */
.hero-btn:hover {
    background-color: var(--secondary-color);
    color: #000;
    /* Make space for arrow */
}

.hero-btn:hover::after {
    opacity: 1;
}

/* Hero Section */













/* loading section */

.loading-section {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #fff;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 48px;
    height: 48px;
    border: 5px solid;
    border-color: #e81c24 transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* loading section */












/* blog section */

.blogs {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 80px;
}



.blog-section {
    max-width: 100%;
    margin: 40px auto;
    padding: 20px;
}

.blog-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin-bottom: 20px;
}

.blog-img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.blog-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.read-more-btn {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background-color: var(--secondary-color);
    color: black;
}

/* Full Page Blog Overlay */
.full-blog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.full-blog-overlay.active {
    display: flex;
}

.full-blog-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 85%;
    width: 100%;
    text-align: left;
    position: relative;
}

.full-blog-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.full-blog-title {
    margin: 20px 0 10px;
    font-size: 2rem;
    color: #222;
}

.full-blog-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.close-btn,
.read-less-btn {
    cursor: pointer;
    padding: 10px 20px;
    font-size: 0.9rem;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    margin-top: 20px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
}

.read-less-btn:hover {
    background-color: var(--secondary-color);
    color: black;
}








/* responsive */

@media (max-width:992px) {
    .blog-section {
        padding: 80px 60px;
    }
}

@media (max-width:798px) {
    .blog-section {
        padding: 60px 40px;
    }
}

@media (max-width:576px) {
    .blog-section {
        padding: 40px 20px;
    }
}