/* Base Global Styles - Shared across all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f5;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    position: relative;
    width: 100%;
    background: #070529;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Contact Bar */
.contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #070529;
    color: white;
    padding: 10px 20px;
    text-align: center;
    z-index: 1001;
    font-size: 14px;
}

.contact-bar a {
    color: #38bdf8;
    text-decoration: none;
    margin: 0 10px;
}

.contact-bar a:hover {
    text-decoration: underline;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 120px;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
}

/* Navigation */

.navigation a{
    display: inline-block;
    padding: 15px 40px;
    background: #38bdf8;
    color: black;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 20px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    display: block;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background: #38bdf8;
    border-radius: 4px;
}

nav ul li ul {
    display: none;
    position: absolute;
    background: #111;
    top: 35px;
    min-width: 180px;
    flex-direction: column;
    border-radius: 4px;
}

nav ul li:hover ul {
    display: flex;
}

nav ul li ul li {
    border-bottom: 1px solid #333;
}

nav ul li ul li:last-child {
    border-bottom: none;
}

/* Home Button */
.home-button {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    background: #38bdf8;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.home-button:hover {
    background: #0ea5e9;
}

/* Nav Buttons */
.nav-buttons {
    display: flex;
    gap: 10px;
}

.next-button {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    background: #38bdf8;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.next-button:hover {
    background: #0ea5e9;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* Footer Styles */
footer {
    background: #070529;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.home-link {
    display: inline-block;
    padding: 10px 20px;
    background: #38bdf8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.home-link:hover {
    background: #0ea5e9;
    text-decoration: none;
}

/* Container */
.container {
    padding: 20px 40px;
}

/* Cards - Reusable component */
.card {
    background: rgb(235, 229, 229);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
    color: #070529;
}

.card p {
    color: #666;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Tile */
.tile {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Button */
button {
    padding: 12px 30px;
    border: none;
    background: #38bdf8;
    color: black;
    font-size: 16px;
    cursor: pointer;
    border-radius: 15px;
    transition: background 0.3s ease;
    font-weight: bold;
}

button:hover {
    background: #0ea5e9;
    color: white;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    header {
        flex-direction: row;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo img {
        height: 80px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #000;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        gap: 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li ul {
        position: static;
        background: #222;
    }

    /* allow touch/hover on mobile to reveal submenus */
    nav ul li:hover ul {
        display: flex;
    }

    /* keep .active class support for click-based toggle if needed */
    nav ul li.active ul {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .container {
        padding: 20px;
        margin-top: 100px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 16px;
    }

    .logo img {
        height: 60px;
    }

    .logo {
        gap: 10px;
    }

    header {
        padding: 5px;
    }

    .container {
        padding: 15px;
        margin-top: 80px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        padding: 15px;
    }

    button {
        width: 100%;
        padding: 12px;
    }

    nav ul {
        width: 100%;
    }
}
