/* General Styles for Blogs */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(120deg, #f9fafb, #ffffff);
    color: #333333;
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

/* Header Styles */
header {
    background: linear-gradient(90deg, #28a745, #218838);
    color: #ffffff;
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    height: 70px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #d4f1d4;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 100px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

main h2 {
    font-size: 2.8rem;
    color: #28a745;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

main h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #28a745;
    display: block;
    margin: 10px auto;
    border-radius: 2px;
}

article {
    font-size: 1.1rem;
    color: #444444;
}

article h3 {
    font-size: 2rem;
    color: #222222;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
}

article h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: #28a745;
    border-radius: 2px;
}

article p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
    color: #555555;
}

article ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

article ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555555;
}

article ul li::before {
    content: '\2022';
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Fancy Buttons */
a.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background: linear-gradient(90deg, #28a745, #218838);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

a.button:hover {
    background: linear-gradient(90deg, #218838, #1e7e34);
    transform: translateY(-3px);
}




/* Scroll-to-Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #28a745, #218838);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

#scrollToTopBtn:hover {
    background: linear-gradient(90deg, #218838, #1e7e34);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 20px;
        margin: 80px auto;
    }

    main h2 {
        font-size: 2rem;
    }

    article h3 {
        font-size: 1.5rem;
    }

    article p {
        font-size: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    table {
        display: block;
        width: 100%;
    }
    th, td {
        padding: 8px 4px; /* Reduce padding for smaller screens */
        font-size: 12px; /* Smaller font size for mobile */
    }
    th {
        white-space: nowrap; /* Prevent header text from wrapping */
    }
}

@media (max-width: 640px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }
}
