:root {
    /* Color Palette - Modern Scientific/Organic */
    --primary-color: #006d77;       /* Deep Teal */
    --primary-light: #83c5be;       /* Light Teal */
    --secondary-color: #edf6f9;     /* Ice White */
    --accent-color: #e29578;        /* Terracotta */
    --text-main: #2b2d42;           /* Dark Slate */
    --text-light: #5d6b7a;          /* Muted Blue-Grey */
    --bg-body: #f4f6f8;             /* Light Grayish Blue */
    --bg-card: #ffffff;
    
    /* Gradients */
    --gradient-header: linear-gradient(135deg, var(--primary-color), #2a9d8f);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: 'Noto Sans SC', var(--font-main);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--text-main);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.header-content h1 {
    font-size: 1.5rem;
    margin: 0;
    background: var(--gradient-header);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    background-color: transparent;
    transition: all 0.2s ease;
}

.back-link:hover {
    background-color: rgba(0, 109, 119, 0.1);
    color: var(--primary-color);
    transform: translateX(-2px);
}

/* Cards & Sections */
.section-card, .food-section, .accommodation-section, .cat-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover, .food-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    position: relative;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

#backToTopBtn:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02));
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 0.95rem;
}

.qr-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
}

.qr-img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    background: white;
    padding: 5px;
}

.qr-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.qr-desc {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Utils */
.tips {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 2rem;
    border-left: 4px solid #66bb6a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips strong {
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.2rem;
    }
    
    .section-card, .food-section {
        padding: 1.5rem;
    }
}

/* Grid Layouts */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-header);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

.section-content {
    color: var(--text-light);
}

.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.section-list li:last-child {
    border-bottom: none;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.08);
    text-align: left;
}

.data-table th {
    background-color: rgba(0, 109, 119, 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

.data-table tr:hover {
    background-color: rgba(0,0,0,0.01);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* Resource List (Courses etc.) */
.resource-list {
    list-style-type: none;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.resource-item {
    background: #f8f9fa;
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.resource-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    border-color: rgba(0,0,0,0.1);
}

.resource-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-detail {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.resource-actions {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 0.95rem;
}
