/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background-color: #1a252f;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #f39c12;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #1a252f;
}

img {
  max-width: 100%;
  height: auto;
}

nav a, .dropbtn {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

nav a:hover, .dropdown:hover .dropbtn, nav a.active {
    color: #f39c12;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a252f;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    top: 100%;
    left: 0;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 3rem 5%;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Page Animations */
.page-fade {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography & Layout Components */
h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid #f39c12;
}

/* Footer */
footer {
    background-color: #1a252f;
    color: #888;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    margin-top: auto;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

    div.scroll-container {
      background-color: #333;
      overflow: auto;
      white-space: nowrap;
      padding: 10px;
    }

    div.scroll-container img {
      padding: 10px;
    }

/* Responsive Media Query: 768px and down */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show the hamburger lines */
    }

    nav {
        display: none; /* Hide standard nav row */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a252f;
        padding: 1.5rem 5%;
        gap: 15px;
        align-items: flex-start;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        border-top: 1px solid #2c3e50;
    }

    /* Reveals the responsive drawer when toggled */
    nav.active {
        display: flex;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: relative;
        top: 0;
        box-shadow: none;
        padding-left: 15px;
        background-color: #243342;
        margin-top: 5px;
    }

    /* Hamburger transformation logic into an 'X' shape */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

}