/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Utility Class */
.hidden {
    display: none;
}

main.img {
    object-fit: contain;
    max-width: 100%; /* Ensures the image never exceeds the width of its container */
    height: auto;    /* Maintains the aspect ratio */
    display: block;  /* Removes any inline spacing for better layout control */
    margin: 0 auto;  /* Centers the image horizontally, if needed */
}

/* Layout Container */
.container {
    display: flex;
    max-width: 1200px; /* Set a max width */
    margin: 0 auto;
    flex: 1;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Sidebar Styles */
.sidebar {
    width: 200px; /* Reduced width */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    position: sticky; /* Keeps it sticky when scrolling */
    top: 20px;
}



@media only screen and (max-width: 768px) {
    /* Sidebar Adjustments */
    .sidebar {
        width: 100%; /* Take full width */
        position: relative; /* Normal flow position */
        margin: 0 auto; /* Center the sidebar */
        top: 0; /* Remove sticky positioning */
        padding: 10px; /* Add some padding */
        box-shadow: none; /* Remove shadow */
    }
    .social {
        display: none; /* Hide the social sidebar on small screens */
    }
    /* Layout Adjustment */
    .container {
        flex-direction: column; /* Stack elements vertically */
    }

    /* Main Content Adjustment */
    main {
        width: 96%;
        margin: 0; /* Reset margins */
        padding: 15px; /* Add consistent padding */
    }
}



/* Main Content Styles */
main {
    flex: 1; /* Allow main to take remaining space */
    padding: 15px;
    margin-left: 0; /* Reset margins */
    margin-right: 0; /* Reset margins */
}

/* Responsive adjustments for main content */
@media only screen and (max-width: 768px) {
    main {
      margin: 0;
    }
}

/* Article Styles */
.article {
    margin-bottom: 40px; /* Space between articles */
    padding: 20px;
    border: 1px solid #e2e2e2; /* Subtle border for separation */
    border-radius: 8px;
    background-color: #fafafa; /* Light background for articles */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.article:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Enhanced shadow effect */
}

/* Article Title */
.article h2 {
    font-size: 1.75rem;
    color: #2c3e50;
    margin: 0 0 10px; /* Adjusted bottom margin */
}

/* Article Meta Data */
.article .meta {
    font-size: 0.875rem;
    color: #777;
    margin-bottom: 15px;
}

/* Article Content */
.article p {
    margin-bottom: 15px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(10, 10, 214), rgb(255, 105, 180)); 
    color: white;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px; /* Added more padding for better aesthetics */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Header Titles */
header h1 {
    font-size: 2rem;
    margin: 0;
    color: #ffffff;
}

header p {
    font-size: 1.1rem;
    margin: 5px 0 0;
}

/* Responsive adjustments for smaller screens */
@media only screen and (max-width: 768px) {
    header {
        padding: 20px; /* Reduce padding */
        width: 100%; /* Make sure the header fits the screen */
    }

    header h1 {
        font-size: 1.3rem; /* Reduce font size for mobile screens */
    }

    header p {
        font-size: 0.9rem; /* Adjust paragraph size */
    }
}



/* 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;
    }
}

/* Image Styles */
img {
    width: 100%;
    height: auto;
    max-height: 250px; /* Limit max height */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}