/* General Reset */
body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    font-size: 16px; 
    line-height: 1.6; 
    color: #333;
    background-color: #f4f4f4;
    background-image: url('2nd\ Cover\ .jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 0;
}

/* Header Styling */
.header {
    background: rgba(128, 0, 0, 0.9);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: red;
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

#searchInput {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-left: 2rem;
    width: 200px;
}

#searchInput:focus {
    outline: none;
    border-color: maroon;
}

.search-icon {
    position: absolute;
    right: 10px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.search-icon:hover {
    color: red;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 1rem; 
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.hero h2 {
    font-size: 3rem; 
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem; 
    margin-bottom: 1.5rem;
}

/* Main Content */
.main-content {
    padding: 0rem orem;
}

/* Section Styling */
.materials-section {
    padding: 3rem 1rem;
    background: rgb(224, 211, 211);
    text-align: center;
    margin-bottom: 0rem;
    border-radius: Opx;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.materials-section h2 {
    font-size: 2.5rem;
    color: rgb(253, 0, 0);
    margin-bottom: 2rem;
}

/* Content Block Styling */
.content-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scrollable-img {
    height: 200px;
    width: 200px;
    overflow-y: auto; /* Enables vertical scrolling */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.content-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
    max-width: 500px;
    text-align: left;
}

/* Link Styling */
.lesson-link, .research-link {
    color: red;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lesson-link:hover, .research-link:hover {
    color: black;
    text-decoration: underline;
}

.lesson-link:active, .research-link:active {
    color: black;
}

/* About Section */
.about {
    padding: 4rem 1rem;
    background: grey;
    color: white;
    text-align: center;
}

.about h2 {
    font-size: 2rem; 
    margin-bottom: 0 auto;
}

.about p {
    font-size: 1.2rem; 
    line-height: 1; 
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: black;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 1rem;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .materials-section {
        padding: 2rem 1rem;
    }

    .materials-section h2 {
        font-size: 2rem;
    }

    .materials-section p {
        font-size: 1rem;
    }

    #searchInput {
        width: 100%;
    }
}
