/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header */
header {
    background: linear-gradient(135deg, #1d45a1, #b94dbb);
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
    list-style: none;
}

header.sticky {
    background-color: rgba(30, 30, 30, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Logo */
.logo {
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #ffaa00;
}

/* Menu Icon */
.menu-icon {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
}

/* Navigation Links */
.nav-links {
    display:  inline-flex;
    list-style: none;
    margin-left: 5rem;
    padding: 0;
    gap: 30px;
    text-align: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: #ffaa00;
    color: #000;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dropdown .dropbtn:hover {
    background-color: #ffaa00;
    color: #000;
}

.dropdown-content {
    display: none;
    position: absolute;
    font-size: medium;
    top: 100%;
    left: 0;
    padding-left: 0px;
    background: #333;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 999;
}

.dropdown-content a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    padding: 0;
    display: block;
    transition: background-color 0.3s ease;
    list-style: none;
    width: 120px;
}

.dropdown-content a:hover {
    background-color: #ffaa00;
    color: #000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Dark Mode Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 2px solid #00aaff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: #ffaa00;
    color: #000;
}

/* Mobile Menu */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .menu-icon {
        display: block;
        font-size: 20px;
        margin: 5px;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: -300px;
        flex-direction: column;
        width: 125px;
        margin-left: 0;
        height: 750px;
        background-color: rgba(30, 30, 30, 0.95);
        padding: 0;
        gap: 10px;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-links.show {
        left: 0;
        font-size: 15px;
    }

    .nav-links a {
        text-align: left;
        padding: 12px 20px;
        font-size: 15px;
        margin-top: 5px;
    }

    .dropdown-content {
        padding: 0;
        width: 125px;
        font-size: 12px;
        background-color: rgba(30, 30, 30, 0.95);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease;
    }
}


/* Blog Layout */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 90px;
}

/* Blog Cards */
.blog-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.3s ease;
}

.blog-card h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 1rem 1.5rem 0.5rem;
    font-weight: 700;
}

.blog-card p {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0 1.5rem 1.5rem;
}

.blog-card .btn {
    align-self: flex-start;
    margin: 1rem 1.5rem;
    text-decoration: none;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

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

.blog-card:hover .btn {
    transform: scale(1.1);
    background: linear-gradient(135deg, #2575fc, #6a11cb);
}

/* Footer */
#footer {
    background: #0d0d0d; /* Dark background for a modern look */
    color: #f2f2f2; /* Light gray text for readability */
    padding: 3rem 2rem;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    flex: 1;
}

.footer-logo a.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4caf50; /* Accent color */
    text-decoration: none;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 0.5rem 0;
}

.footer-links ul li a {
    color: #f2f2f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #4caf50; /* Accent color for hover */
}

.footer-social {
    flex: 1;
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #f2f2f2;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #4caf50; /* Accent color for hover */
}

.footer-contact p {
    margin: 0.5rem 0;
}

.footer-contact a {
    color: #f2f2f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #4caf50;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #333;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888; /* Subtle gray for less emphasis */
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }
}
/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode header {
    background-color: #333;
}

body.dark-mode header nav ul li a {
    color: #e0e0e0;
}

body.dark-mode header nav ul li a:hover {
    background-color: #fdc830;
    color: #333;
}

body.dark-mode .blog-card {
    background-color: #2c2c2c;
    color: #ffffff;
}

body.dark-mode .blog-card:hover {
    background-color: #3c3c3c;
}

body.dark-mode .blog-card h2 {
    color: #ededed;
}

body.dark-mode .blog-card p {
    color: #ededed;
}

body.dark-mode .blog-btn {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

/* Mobile-Friendly Blog Cards */
@media (max-width: 576px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    .blog-card img {
        max-height: 150px;
    }
    .blog-card h2 {
        font-size: 1.2rem;
    }
    .blog-card p {
        font-size: 0.85rem;
    }
    .blog-card .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}


/* Blog Button Style */
.blog-btn {
    background-color: #ff5e57;
    /* Bold and vibrant red-orange for high contrast */
    color: white;
    /* White text to stand out against the bold background */
    padding: 12px 24px;
    /* Comfortable padding for easy clickability */
    font-size: 1.1rem;
    /* Slightly larger font for emphasis */
    font-weight: 600;
    /* Bold font for better visibility */
    text-decoration: none;
    /* Remove underlines for links */
    border-radius: 35px;
    /* Rounded corners for a smooth, modern look */
    border: none;
    /* Remove default border */
    transition: all 0.3s ease-in-out;
    /* Smooth transition for hover and focus */
    letter-spacing: 0.5px;
    /* Light letter spacing for neatness */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    /* Soft shadow for depth */
    cursor: pointer;
    /* Pointer cursor for interaction */
    display: inline-block;
    /* Inline-block display */
    text-align: center;
    /* Center text inside the button */
}

/* Hover Effect */
.blog-btn:hover {
     background: linear-gradient(135deg, rgb(220, 204, 24), rgb(235, 44, 139)); 
    /* Darker shade on hover for depth */
    transform: translateY(-4px);
    /* Slight lift effect */
    box-shadow: 0 0 15px rgba(235, 44, 139, 0.7), 0 0 25px rgba(220, 204, 24, 0.7); /* Glowing effect */
}

/* Focus Effect */
.blog-btn:focus {
    outline: none;
    /* Remove the default focus outline */
    border: 2px solid #ffb740;
    /* Bright border color for visibility */
}

/* Active State */
.blog-btn:active {
    transform: translateY(2px);
    /* Slight downward effect when clicked */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    /* Lighter shadow when active */
}

/* Disabled State */
.blog-btn:disabled {
    background-color: #cccccc;
    /* Gray background for disabled state */
    color: #999999;
    /* Light gray text */
    cursor: not-allowed;
    /* No click cursor */
    box-shadow: none;
    /* Remove shadow */
}


body.dark-mode #dark-mode-toggle button {
    background-color: rgb(243, 98, 98);
    color: #333;
}

/* Dark Mode Toggle Button */
#dark-mode-toggle button {
    font-size: 1em;
}

#dark-mode-toggle button::before {
    font-family: "Font Awesome 5 Free";
    content: "\f186";
    /* Moon icon */
}

body.dark-mode #dark-mode-toggle button::before {
    content: "\f185";
    /* Sun icon */
}