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

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== HEADER ===== */
.top-header {
    text-align: center;
    padding: 14px 10px;
    background: linear-gradient(135deg, #f9f9f9, #efefef);
    border-bottom: 3px solid #8b0000;
}
.top-header img {
    height: 75px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.top-header h2 {
    font-size: 20px;
    color: #8b0000;
    margin-top: 6px;
    letter-spacing: 0.5px;
}
.top-header p {
    font-size: 13px;
    color: #555;
    margin-top: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #8b0000;
    color: white;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 14px 30px;
    align-items: center;
    box-shadow: 0 3px 12px rgba(139,0,0,0.4);
}
.navbar ul {
    display: flex;
    list-style: none;
    gap: 35px;
}
.navbar ul li {
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.navbar ul li:hover {
    border-bottom: 2px solid white;
    color: #ffd0d0;
}

/* ===== HERO ===== */
.hero {
    height: 28vh;
    background: url('assets/bg.jpg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 10px black;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(80, 0, 0, 0.35);
}
.hero h1 {
    position: relative;
    font-size: 36px;
    letter-spacing: 1px;
    animation: fadeUp 0.9s ease forwards;
}
.hero p {
    position: relative;
    font-size: 15px;
    margin-top: 8px;
    letter-spacing: 1.5px;
    opacity: 0.9;
    animation: fadeUp 1.1s ease forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== SLIDER SECTION ===== */
.slider-section {
    width: 45%;
    margin: 24px auto;
}
.slider-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.11), 0 2px 6px rgba(0,0,0,0.07);
    position: relative;
    background: #ffffff;
}
.fade-left,
.fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.97), rgba(255,255,255,0));
}
.fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.97), rgba(255,255,255,0));
}
.slide-track {
    display: flex;
    gap: 10px;
    padding: 10px 8px;
    width: max-content;
    background: #ffffff;
    animation: scrollLeft 12s linear infinite;
}
.slide-track:hover {
    animation-play-state: paused;
}
.slide-card {
    width: 150px;
    height: 180px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0.82;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slide-card:hover {
    transform: scale(1.05) translateY(-2px);
    opacity: 1;
}
@keyframes scrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== AUTH SECTION ===== */
.auth-section {
    height: 45vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.auth-card {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    width: 320px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
    border-top: 4px solid #8b0000;
    transition: 0.3s;
}
.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.auth-card h2 {
    font-size: 20px;
    color: #8b0000;
    margin-bottom: 4px;
}
.auth-card p {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

/* ===== BUTTONS ===== */
.btn {
    width: 100%;
    padding: 11px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    border-radius: 7px;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: 0.3s;
}
.login-btn {
    background: #8b0000;
    color: white;
}
.login-btn:hover {
    background: #a30000;
    box-shadow: 0 4px 14px rgba(139,0,0,0.35);
    transform: translateY(-1px);
}
.register-btn {
    background: #333;
    color: white;
}
.register-btn:hover {
    background: black;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}
.warden-btn {
    background: #1a3a5c;
    color: white;
}
.warden-btn:hover {
    background: #2d5a8e;
    box-shadow: 0 4px 14px rgba(26,58,92,0.35);
    transform: translateY(-1px);
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 2px;
    color: #ccc;
    font-size: 12px;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(3px);
}
.modal.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: white;
    padding: 30px 25px;
    border-radius: 14px;
    width: 340px;
    text-align: center;
    transform: scale(0.85);
    transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-top: 4px solid #8b0000;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal.show .modal-content {
    transform: scale(1);
}
.modal-content h2 {
    color: #8b0000;
    margin-bottom: 12px;
    font-size: 20px;
}

/* ===== MODAL INPUTS ===== */
.modal-content input {
    width: 100%;
    margin: 5px 0;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 13px;
    transition: border 0.3s;
    outline: none;
    color: #333;
}
.modal-content input:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139,0,0,0.08);
}

/* ===== MODAL SELECT DROPDOWN ===== */
.modal-content select {
    width: 100%;
    margin: 5px 0;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 13px;
    transition: border 0.3s;
    outline: none;
    background: white;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.modal-content select:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139,0,0,0.08);
}
.modal-content select option[value=""] {
    color: #aaa;
}

/* ===== CLOSE BUTTON ===== */
.close {
    position: absolute;
    right: 14px;
    top: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    transition: color 0.2s;
}
.close:hover {
    color: #8b0000;
}

/* ===== WARDEN MODAL ACCENT ===== */
#wardenModal .modal-content {
    border-top-color: #1a3a5c;
}
#wardenModal .modal-content h2 {
    color: #1a3a5c;
}
#wardenModal .modal-content input:focus {
    border-color: #1a3a5c;
    box-shadow: 0 0 0 3px rgba(26,58,92,0.08);
}
#wardenModal .close:hover {
    color: #1a3a5c;
}
/* ===== FOOTER ===== */
.footer {
    background: #8b0000;
    color: white;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    letter-spacing: 0.3px;
}