/* ===== GLOBAL ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER ===== */
header {
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo */
header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

/* Navigation (left) */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-left a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 6px 10px;
    transition: color 0.3s;
}

.nav-left a:hover {
    color: #007bff;
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 450px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 15px;
    z-index: 1000;
}

.dropdown-columns {
    display: flex; /* Multi-column horizontal layout */
    gap: 25px;
}

.dropdown-column a {
    display: block;
    padding: 4px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.dropdown-column a:hover {
    color: #007bff;
}

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

/* ===== HEADER RIGHT: SEARCH + AUTH ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.header-search button {
    padding: 6px 12px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.header-search button:hover {
    background: #0056b3;
}

.auth-links {
    display: flex;
    gap: 10px;
}

.auth-links a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #007bff;
}

/* ===== FORMS ===== */
.form-container {
    max-width: 450px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #007bff;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"],
.form-container input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-container button:hover {
    background: #0056b3;
}

.form-container p {
    text-align: center;
    margin-top: 15px;
}

.form-container p a {
    color: #007bff;
    text-decoration: none;
}

.form-container p a:hover {
    text-decoration: underline;
}

/* ===== FONT GRID ===== */
.font-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.font-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.font-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
    color: #007bff;
}

.font-card p {
    margin-bottom: 6px;
    font-size: 14px;
}

.font-card a {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    background: #007bff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.font-card a:hover {
    background: #0056b3;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* ===== SUB-FOOTER ===== */
.sub-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
}

/* ===== FOOTER (FontSpace Style) ===== */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 15px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f0a500; /* hover highlight */
}

footer p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #ccc;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-left {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .dropdown-content {
        position: relative;
        top: 0;
        left: 0;
        min-width: 100%;
        flex-direction: column;
        padding: 10px;
    }

    .dropdown-columns {
        flex-direction: column;
        gap: 0;
    }

    .dropdown-column a {
        padding-left: 15px;
    }

    .header-search input {
        width: 70%;
    }

    .header-search button {
        width: 30%;
    }

    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
}