/* style.css */

/* Global Resets & Font */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling */
header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 100px; /* ADJUSTED: Increased logo height for desktop */
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between logo image and text if any */
}

/* Optional: If you want text next to image logo */
.logo .logo-text-main {
    font-size: 1.6em;
    font-weight: 700;
    color: #2c3e50;
}
.logo .logo-text-accent {
    font-size: 1.6em;
    font-weight: 700;
    color: #3498db;
    margin-left: 5px; /* Small space if text follows image */
}


nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* Main Content Area */
main {
    flex-grow: 1;
    padding: 30px 0;
}

.content-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

article h1 { /* Main Article Title */
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 0.7em;
    line-height: 1.3;
}

article h2 { /* Subheadings with Green Background */
    font-size: 1.6em;
    background-color: #28a745; /* Green background */
    color: #ffffff; /* White text */
    margin-top: 1.8em;
    margin-bottom: 1em;
    padding: 10px 15px; /* Padding around text */
    border-radius: 5px; /* Slightly rounded corners */
    line-height: 1.4;
}

article p, article ul, article ol {
    margin-bottom: 1.3em;
    font-size: 1.05em;
    color: #4a4a4a;
}

article ul, article ol {
    padding-left: 25px;
}

article li {
    margin-bottom: 0.5em;
}

article a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

article a:hover {
    text-decoration: underline;
}

article strong {
    font-weight: 600;
    color: #2c3e50;
}

/* Footer Styling */
footer {
    background-color: #28a745;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
}

.footer-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

footer p {
    margin: 0;
    font-size: 0.95em;
}
footer a {
    color: #e8f5e9;
    text-decoration: none;
    font-weight: 500;
}
footer a:hover {
    text-decoration: underline;
}

/* Mobile Menu Icon Styling */
.mobile-menu-icon {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container nav {
        display: none;
    }
    .header-container nav.active {
        display: flex;
        position: absolute;
        top: 65px; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    .header-container nav.active ul {
        flex-direction: column;
        width: 100%;
    }
    .header-container nav.active ul li {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }
     .header-container nav.active ul li a {
        display: block;
        padding: 10px;
    }

    .mobile-menu-icon {
        display: block;
    }

    .logo img {
        max-height: 50px; /* ADJUSTED: Increased logo height for mobile */
    }
    .logo .logo-text-main, .logo .logo-text-accent {
        font-size: 1.4em;
    }


    .content-container {
        width: 95%;
        padding: 25px 20px;
    }

    article h1 {
        font-size: 1.9em;
    }
    article h2 {
        font-size: 1.4em;
        padding: 8px 12px;
    }
}

/* Table Styling (Add this to your style.css) */
article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.95em; /* Slightly smaller font for table content */
}

article th, article td {
    border: 1px solid #ddd; /* Light grey border */
    padding: 10px 12px;
    text-align: left;
}

article th {
    background-color: #f2f2f2; /* Light grey background for table headers */
    font-weight: 600;
    color: #333;
}

article tr:nth-child(even) {
    background-color: #f9f9f9; /* Zebra striping for even rows */
}

article tr:hover {
    background-color: #f1f1f1; /* Hover effect for rows */
}