/* Reset some defaults */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #2e2a27; /* dark warm base */
    color: #2a1e1e;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3b322c;
    padding: 1rem 2rem;
    color: #fff;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: #5a4536;
    border-radius: 4px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem;
    transition: background 0.3s;
}

.dropdown-toggle:hover {
    background: #5a4536;
    border-radius: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #4e3e34;
    padding: 0.5rem 0;
    border-radius: 4px;
    min-width: 150px;
    z-index: 1000;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #a54b00;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(46, 42, 39, 0.85), rgba(46, 42, 39, 0.85)),
        url('https://source.unsplash.com/1600x900/?math,books') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fef9f5;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #b25e00;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.hero-button:hover {
    background-color: #8d4700;
}

/* Footer */
footer {
    background-color: #2e2a27;
    color: #a09387;
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid #3b322c;
}

/* Navbar links and toggle common hover */
.nav-links a,
.dropdown-toggle {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
    vertical-align: middle;
}

.nav-links a:hover,
.dropdown-toggle:hover {
    background: #5a4536;
    border-radius: 4px;
}
