:root {
    --headerHeight: 4.5rem;
    --colorWhite: white;
    --webPadding: 2.5rem;
    --theme-dark: #173c68;
    --theme-light: #1d4245;
    --bg-gray: #f4f7f6;
}

* { padding: 0; margin: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg-gray); }

/* --- UTILITIES --- */
.center { display: flex; justify-content: center; align-items: center; }

/* --- HEADER --- */
.headerSection {
    padding: 0.5rem var(--webPadding);
    background: var(--bg-gray);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
}

header {
    width: 100%; height: var(--headerHeight);
    background: white;
    justify-content: space-between !important;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 0 1rem;
    display: flex; align-items: center;
}

/* Left: Logo & Name */
.ltHead { height: 100%; gap: 10px; }
.ltHead .logo { width: 40px; height: 40px; overflow: hidden; }
.ltHead .logo img { width: 100%; height: 100%; object-fit: contain; }
.ltHead .webName a {
    color: var(--theme-dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Middle: Search Bar (Desktop) */
.midHead { flex-grow: 1; justify-content: center; }
.header-search {
    display: flex;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 5px 15px;
    width: 100%;
    max-width: 400px;
    align-items: center;
}
.header-search input {
    border: none; background: transparent;
    padding: 8px; flex-grow: 1; outline: none; font-size: 0.9rem;
}
.header-search button {
    border: none; background: transparent;
    color: var(--theme-dark); cursor: pointer; font-size: 1rem;
}

/* Right: Menu */
.rtHead { gap: 15px; }
.desktop-links { gap: 20px; list-style: none; }
.desktop-links a { text-decoration: none; color: #333; font-weight: 500; font-size: 0.9rem; }
.desktop-links a:hover { color: var(--theme-dark); }

.loginBtn {
    padding: 0.5rem 1.2rem; background: var(--theme-dark);
    border-radius: 6px; border: none; cursor: pointer;
}
.loginBtn a { text-decoration: none; color: white; font-size: 0.9rem; font-weight: 600; }

/* Hamburger */
.menuHead { display: none; }
.hamBurger { width: 30px; height: 20px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamBurger span { width: 100%; height: 3px; background: var(--theme-dark); border-radius: 2px; }

/* Mobile Menu */
.mobMenu {
    position: fixed; right: 0; top: 5.5rem;
    width: 250px; background: var(--theme-dark);
    border-radius: 8px 0 0 8px; display: none;
    padding: 20px 0; box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
}
.mobMenu.active { display: block; animation: slideIn 0.3s forwards; }
.mobMenu ul { flex-direction: column; width: 100%; padding: 0; }
.mobMenu li { width: 100%; list-style: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobMenu a { display: block; padding: 15px 20px; text-decoration: none; color: white; }
.mob-search-li { padding: 10px 20px; background: rgba(0,0,0,0.1); }
.mob-search { display: flex; gap: 5px; }
.mob-search input { width: 100%; padding: 8px; border-radius: 4px; border: none; }
.mob-search button { background: white; border: none; padding: 0 10px; border-radius: 4px; color: var(--theme-dark); }

@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* --- FILTERS & GALLERY --- */
.section1 { margin-top: 6rem; padding: 0 var(--webPadding) 1rem; display: flex; justify-content: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-tag {
    padding: 6px 14px; background: white; border: 1px solid #ddd;
    border-radius: 20px; text-decoration: none; color: #555; font-size: 0.85rem;
}
.filter-tag:hover { background: var(--theme-dark); color: white; border-color: var(--theme-dark); }

.gallery {
    padding: 0 var(--webPadding) 2rem;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px; max-width: 1400px; margin: 0 auto;
}
.card {
    background: white; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s;
}
.card:hover { transform: translateY(-3px); }
.img-box { width: 100%; height: 180px; background: #fff; padding: 10px; display: flex; align-items: center; justify-content: center; }
.img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-body { padding: 10px; text-align: center; }
.card-title { font-size: 0.85rem; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- IMAGE OVERLAY (Lightbox) --- */
.overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.9);
    z-index: 2000; flex-direction: column;
}
.overlay.active { display: flex; animation: fadeIn 0.2s; }

.overlay-header {
    width: 100%; padding: 15px 20px; display: flex;
    justify-content: space-between; align-items: center;
    color: white; background: rgba(0,0,0,0.5);
    position: absolute; top: 0;
}
.back-btn {
    background: transparent; border: none; color: white;
    font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; gap: 8px;
}
#overlayTitle { font-weight: 600; font-size: 1.1rem; }

.overlay-content { flex-grow: 1; width: 100%; padding: 20px; box-sizing: border-box; }
.overlay-content img {
    max-width: 100%; max-height: 80vh;
    object-fit: contain; box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.overlay-footer {
    padding: 20px; background: rgba(0,0,0,0.5);
    width: 100%; position: absolute; bottom: 0;
}
.download-full-btn {
    background: #e74c3c; color: white; padding: 12px 30px;
    border-radius: 30px; text-decoration: none; font-weight: bold;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: transform 0.2s;
}
.download-full-btn:hover { transform: scale(1.05); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    :root { --webPadding: 1rem; }
    .midHead, .desktop-links { display: none; } /* Hide Desktop Search & Links */
    .menuHead { display: flex; } /* Show Hamburger */
    .rtHead { gap: 10px; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .img-box { height: 140px; }
}
/* --- APPEND THIS TO YOUR style.css --- */

/* Authentication Pages (Login/Signup) */
.auth-body {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--theme-dark); /* Eagle Blue Accent */
}

.auth-card h2 {
    color: var(--theme-dark);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-card p {
    color: #777;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--theme-dark);
    box-shadow: 0 0 0 3px rgba(23, 60, 104, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--theme-dark);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background: #0f2b4d;
}

.auth-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.auth-footer a {
    color: var(--theme-dark);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Error/Success Messages */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: left;
}
.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}