/* General Reset */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: linear-gradient(135deg, #f3f4f6, #e3f2fd);
    color: #333;
}

/* Navigation Styles */
nav {
    background: linear-gradient(90deg, #0078D4, #0056b3);
    color: white;
    padding: 6px 20px; /* breathing room */
    display: flex;
    justify-content: flex-start;
    align-items: center; /* vertical centering */
    gap: 20px; /* space between logo and links */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1; /* keeps text centered with logo */
    transition: color 0.3s, transform 0.3s;
}

nav a:hover,
nav a:focus-visible {
    color: #ffd700;
    transform: scale(1.1);
    outline: none;
}

/* Logo */
.logo {
    display: block;
    height: 56px;  /* controls logo size */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Main Content Layout */
main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
    font-size: 36px;
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 28px;
    color: #0078D4;
    margin: 20px 0;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 5px;
}

/* Paragraphs */
p {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

/* Lists */
ul {
    margin: 20px 0;
    padding-left: 40px;
}

li {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

/* Links */
a {
    color: #0078D4;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover,
a:focus-visible {
    color: #ffd700;
    text-decoration: underline;
    outline: none;
}

/* Buttons */
button {
    background: #0078D4;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 120, 212, 0.3);
}

button:hover,
button:focus-visible {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 86, 179, 0.4);
    outline: none;
}

/* Forms */
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0078D4;
    box-shadow: 0 0 8px rgba(0, 120, 212, 0.3);
}

/* Cards */
.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 8px;
        font-size: 14px;
    }

    .logo {
        height: 44px; /* shrink on mobile */
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    button {
        font-size: 16px;
        padding: 10px 20px;
    }
}