/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex-grow: 1;
}

/* Header */
header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: #1e88e5;
    font-size: 1.8em;
    font-weight: bold;
}

nav a {
    color: #555;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #1e88e5;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Tools Grid */
.tools-grid {
    padding: 50px 0;
}

.tools-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tool-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.tool-card h3 {
    margin: 15px 0 10px 0;
    font-size: 1.5em;
}

.tool-card a {
    display: inline-block;
    background-color: #1e88e5;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 25px;
    margin-top: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tool-card a:hover {
    background-color: #1565c0;
}

/* Tool Page Container */
.tool-page-container {
    background-color: #fff;
    padding: 40px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    text-align: center;
}

.tool-page-container input[type="file"] {
    margin: 20px 0;
}

.tool-page-container button, .tool-page-container input[type="submit"] {
    background-color: #1e88e5;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tool-page-container button:hover, .tool-page-container input[type="submit"]:hover {
    background-color: #1565c0;
}

/* Footer */
footer {
    background-color: #333;
    color: #f0f2f5;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

/* --- Styling for New Sections --- */

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

/* Latest Articles Section */
.latest-articles {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.article-card h3 {
    margin-top: 0;
    color: #0056b3;
}

.article-card .read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
}
.article-card .read-more:hover {
    text-decoration: underline;
}


/* === IMPROVED FAQ SECTION STYLING === */
.faq-section {
    padding: 60px 0;
}

.faq-container details {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.faq-container summary {
    font-weight: 700;
    font-size: 1.3em; 
    cursor: pointer;
    color: #333;
    line-height: 1.2;
}

.faq-container details[open] summary {
    color: #0056b3;
}

.faq-container p {
    margin-top: 15px;
    line-height: 1.6;
    font-size: 1em;
    color: #555;
}


/* Full Article Page Styling */
.article-container {
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 800px; 
}
.article-container h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.article-container .article-meta {
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}
.article-container p, .article-container li {
    line-height: 1.7;
    font-size: 1.1em;
    margin-bottom: 20px;
}
.article-container h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}


/* Responsive adjustments for grids */
@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}