/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== PAGE SYSTEM ===== */
.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HOME PAGE ===== */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 20px 0 10px;
}

.hero-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}





/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 24px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.nav-link {
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1a56db;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    background: #e8eefb;
    border-color: #1a56db;
    color: #1e40af;
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer {
    padding: 30px 20px;
    text-align: center;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
}

.disclaimer {
    font-size: 12px;
    line-height: 1.7;
    color: #888;
    max-width: 700px;
    margin: 0 auto 12px;
}

.disclaimer strong {
    color: #555;
}

.footer-note {
    font-size: 11px;
    color: #aaa;
}

/* ===== SUB PAGES ===== */
#page-privacy,
#page-about,
#page-contact,
#page-terms {
    background: #ffffff;
    color: #333;
    min-height: 100vh;
}

/* ===== PAGE HEADER ===== */
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #e5e7eb;
    color: #333;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a56db;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}

.page-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a56db;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8eefb;
}

.page-content h2:first-child,
.page-content h2:first-of-type {
    margin-top: 0;
}

.page-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.page-content ul {
    margin: 8px 0 16px 20px;
    list-style: disc;
}

.page-content ul li {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 4px;
}

.updated-date {
    font-size: 13px !important;
    color: #999 !important;
    font-style: italic;
    margin-bottom: 20px !important;
}

/* ===== CONTACT CARD ===== */
.contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.campus-cards {
    display: grid;
    gap: 16px;
}

/* ===== CONTACT PAGE SPECIFIC ===== */
.contact-intro {
    font-size: 16px !important;
    color: #666 !important;
    text-align: center;
    margin-bottom: 30px !important;
}

.campus-detail h2 {
    border-bottom: none !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.contact-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.contact-item p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.location-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.map-placeholder {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.map-placeholder svg {
    color: #9ca3af;
}

.map-placeholder p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== HOURS GRID ===== */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0 30px;
}

.hours-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.hours-card h3 {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.hours-card p {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* ===== SECURITY NOTICE ===== */
.security-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.security-notice h2 {
    color: #92400e !important;
    border-bottom-color: #fcd34d !important;
    margin-top: 0 !important;
}

.security-notice ul {
    margin-left: 20px;
}

.security-notice li {
    color: #78350f !important;
}

/* ===== VALUES GRID ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 16px 0 30px;
}

.value-card {
    background: linear-gradient(135deg, #f0f4ff, #e8eefb);
    border: 1px solid #dbe4f8;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease;
}

.value-card:hover {
    transform: translateY(-2px);
}

.value-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a56db;
    margin-bottom: 6px;
}

.value-card p {
    font-size: 13px;
    color: #555;
    margin-bottom: 0;
}

/* ===== SUB FOOTER ===== */
.sub-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.sub-footer a {
    font-size: 13px;
    font-weight: 500;
    color: #1a56db;
    transition: color 0.2s;
}

.sub-footer a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .hero-image-container {
        padding: 16px;
    }

    .upload-box {
        padding: 40px 20px;
        min-height: 250px;
    }

    .get-id-btn {
        padding: 12px 30px;
        font-size: 15px;
    }

    .bottom-nav {
        gap: 6px;
        padding: 20px 16px;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }

    .page-header {
        padding: 12px 16px;
    }

    .page-header h1 {
        font-size: 17px;
    }

    .page-content {
        padding: 20px 16px 50px;
    }

    .page-content h2 {
        font-size: 16px;
    }

    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}
