/* Fade-in Animation for Scroll */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sticky Header */
.blog-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease-in-out;
}

.blog-header nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.blog-header nav ul li a {
    padding: 15px;
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-header nav ul li a:hover {
    color: #2575fc;
}

/* Header Styling */
header {
    background: linear-gradient(90deg, #00ffcc, #ff5722);
    color: white;
    padding: 50px 10%;
    text-align: center;
    border-bottom: 2px solid #ddd;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    position: relative;
    z-index: 1;
}

/* Blog Post Styling */
.blog-post {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.blog-post p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.blog-post h1 {
    color: #333;
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.blog-post h2, .blog-post h3 {
    color: #1a73e8;
    font-size: 2rem;
    margin-bottom: 15px;
}

ul {
    list-style-type: square;
    margin-left: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #2575fc;
    color: white;
    font-weight: 600;
}

table td {
    background-color: #fafafa;
}

/* Call-to-Action Button */
.cta-btn {
    background-color: #2575fc;
    padding: 15px 30px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 20px;
    align-items: center;  
    width: auto;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
    background-color: #6a11cb;
    transform: scale(1.05);
}

.cta-btn:active {
    transform: scale(1);
}

/* Footer Styling */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
}

footer a {
    color: #2575fc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00ffcc;
}

/* Media Queries */
@media (max-width: 768px) {
    header {
        padding: 40px 5%;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .blog-post {
        padding: 15px;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    footer {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 5%;
    }

    header h1 {
        font-size: 2rem;
    }
}
