/* =============================================
   Shared Library Styles – Nokea Blue Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
    background-color: #f5f9ff;          /* Very light blue tint */
    margin: 0;
    padding: 0;
    color: #333;
}

nav {
    background-color: var(--secondary, #0057ad);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

:root {
    --primary: #0065cb;
    --secondary: #0057ad;
    --primary-dark: #004b9a;
    --light-bg: #f5f9ff;
    --card-bg: white;
}

nav .brand {
    font-size: 1.4rem;
    font-weight: 700;
}

nav .auth-buttons a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.1s;
}

nav .auth-buttons a:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

nav .auth-buttons .logout {
    background-color: #d32f2f;
}

nav .auth-buttons .logout:hover {
    background-color: #b71c1c;
}

header {
    text-align: center;
    margin: 30px 20px;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}

.search-bar input {
    padding: 12px 16px;
    flex: 1;
    border: 1px solid #d1e0ff;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,101,203,0.15);
}

.search-bar button {
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
}

.search-bar button:hover {
    background-color: var(--primary-dark, #004b9a);
    transform: translateY(-1px);
}

section {
    margin: 0;
}

h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 1.8rem;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card-bg);
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #222;
    width: 230px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,101,203,0.18);
}

.card img {
    width: 200px;
    height: auto;
    margin-bottom: 5px;
    border-radius: 6px;
}

.card p {
    margin: 0;
    font-weight: 600;
    text-align: center;
    font-size: 1.05rem;
    color: var(--secondary);
}

/* 2x2 Grid */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 48px;
    margin: 0 20px 60px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.grid-item {
    /* Optional subtle separation */
    /* background: rgba(245,249,255,0.6); */
    /* border-radius: 12px; */
    /* padding: 20px; */
}

.grid-item section {
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cards {
        gap: 20px;
    }
    
    .card {
        width: 160px;
    }
}
/* ==================== FOOTER STYLES ==================== */
footer {
    background-color: #0057ad;
    color: white;
    padding: 60px 20px 30px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: white;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: #e0f0ff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #0065cb;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: white;
    margin-right: 16px;
    font-size: 1.3rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-bottom a {
    color: #e0f0ff;
    margin: 0 10px;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        margin: 20px 0;
    }
}