/* Modern color palette */
:root {
    --primary: #4A90E2;
    --secondary: #FF6B6B;
    --accent: #FFD700;
    --bg-dark: #2C3E50;
    --bg-light: #F4F7FA;
    --text-dark: #333;
    --text-light: #FFF;
}


/* Header styling */
.heading2 {
    margin-top: 4px;
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    /* border-radius: 0 0 20px 20px; */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 1s ease-out;
   
}

.heading1 {
    font-size: 2.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.heading1::after {
    content: '';
    width: 100px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Blog layout styling */
.blog-layout {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-layout:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(74, 144, 226, 0.5);
}

/* Blog thumbnail */
.blog-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    margin: 2rem;
    overflow: hidden;
}

.blog-thumb img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.blog-layout:hover .blog-thumb img {
    transform: scale(1.1);
}

/* Blog description */
.blog-description {
    flex: 2;
    padding: 2rem;
    position: relative;
}

.blog-description h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.blog-description:hover h1 {
    color: var(--secondary);
}

.blog-description p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Button styling */
.btn-blog {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-blog a {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.btn-blog::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-blog:hover::before {
    width: 200px;
    height: 200px;
}

.btn-blog:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Blog post styling */
.blog-post {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--text-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(74, 144, 226, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(74, 144, 226, 0.5);
}

.blog-post p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
     text-align: justify;
}

.blog-post:hover p {
    color: var(--primary);
}

/* Quote styling */
.bold-red {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Animation keyframes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-layout, .blog-post {
    animation: fadeIn 0.8s ease-out;
}


/* ............................................................
RESPONSIVE CSS
............................................................ */


/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
    .heading2 {
        padding: 1rem 0;
        /* border-radius: 0 0 15px 15px; */
    }

    .heading1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .heading1::after {
        width: 60px;
        height: 3px;
    }

    .blog-layout {
        margin: 1rem;
        flex-direction: column;
        border-radius: 8px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .blog-layout:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 0 10px rgba(74, 144, 226, 0.3);
    }

    .blog-thumb {
        height: 180px;
    }

    .blog-thumb img {
        transition: transform 0.4s ease;
    }

    .blog-layout:hover .blog-thumb img {
        transform: scale(1.05);
    }

    .blog-description {
        padding: 1rem;
    }

    .blog-description h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .blog-description p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .btn-blog {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 4px;
    }

    .btn-blog::before {
        transition: width 0.5s ease, height 0.5s ease;
    }

    .btn-blog:hover::before {
        width: 150px;
        height: 150px;
    }

    .blog-post {
        margin: 1rem;
        padding: 1rem;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .blog-post:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 0 10px rgba(74, 144, 226, 0.3);
    }

    .blog-post p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .bold-red {
        font-size: 1rem;
    }
}

/* Extra small devices (max-width: 480px) */
@media (max-width: 480px) {
    .heading1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .blog-layout {
        margin: 0.8rem;
    }

    .blog-thumb {
        height: 150px;
    }

    .blog-description h1 {
        font-size: 1.2rem;
    }

    .blog-description p {
        font-size: 0.85rem;
    }

    .btn-blog {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 4px;
    }

    .blog-post {
        margin: 0.8rem;
        padding: 0.8rem;
    }

    .blog-post p {
        font-size: 0.9rem;
    }

    .bold-red {
        font-size: 0.95rem;
    }
}