/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 2em 1em;
    text-align: center;
    margin-bottom: 2em;
}

header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5em;
    margin: 0 0 0.2em 0;
}

header h2 {
    font-size: 1.2em;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 1.5em auto;
    opacity: 0.9;
}

/* Navigation Styles */
header nav {
    display: flex;
    justify-content: center;
    margin-top: 1em;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 2.8rem 1rem 2.8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 1.8rem;
}

header nav li {
    margin: 0;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 0.5em 1.5em;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav a:hover {
    background-color: white;
    color: #2c3e50;
}

/* Main Content Wrapper */
main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1em;
    box-sizing: border-box;
}

/* Section for Project Cards and PDF Library */
.category-section {
    background-color: white;
    padding: 2.5rem 0.8rem;
    margin-bottom: 2em;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category-title {
    font-size: 2.5rem;
    font-family: 'Oswald', sans-serif;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Grid for Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Flex container for centering single items */
.flex-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Individual Card Styling */
.project-card {
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #e0e0e0;
}

.project-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-content h4 {
    font-size: 1.4rem;
    font-family: 'Oswald', sans-serif;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    line-height: 1.3;
}

.project-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-card-content a {
    text-decoration: none;
    color: white;
    background-color: #34495e;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.project-card-content a:hover {
    background-color: #2c3e50;
}

/* PDF Library & Explore Further Section Styles */
.pdf-library-section, .explore-further-section {
    text-align: center;
    background-color: #34495e;
    color: white;
    border-radius: 20px;
}
.pdf-library-section .category-title, .explore-further-section .category-title {
    color: white;
}
.pdf-library-description, .explore-further-section p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1em;
    opacity: 0.9;
    color: #bdc3c7;
}
.pdf-library-button {
    display: inline-block;
    background-color: white;
    color: #34495e;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.pdf-library-button:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

/* --- NEW EXPLORE & FOOTER STYLES --- */
.explore-further-section h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    padding: 3rem 1.5rem 2rem;
    color: white;
}
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem 6rem;
    list-style: none;
    padding:0;
    margin: 2.5rem 0.8rem 2.5rem 0.8rem;
}
.footer-nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
}
.footer-nav a:hover {
    color: white;
    text-decoration: underline;
}
.social-links {
    margin-bottom: 1rem;
}
.social-links a {
    color: #bdc3c7;
    font-size: 1.8rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.social-links a:hover {
    color: white;
    transform: scale(1.1);
}

.site-footer {
    text-align: center;
    padding: 1.5em 0;
    background-color: #2c3e50;
    color: #95a5a6;
    font-size: 0.9em;
    margin-top: 0;
}

footer {
    text-align: center;
    padding: 1.5em 0;
    background-color: #2c3e50;
    color: white;
    font-size: 0.9em;
    margin-top: 2em;
}




