

:root {
    
    --maroon-900: #3D0C13;
    --maroon-800: #5A121C;
    --maroon-700: #7A1F2B;
    --maroon-600: #92283A;
    --gold-600: #A9821E;
    --gold-500: #C9A227;
    --gold-300: #E7CE85;
    --gold-100: #FBF3DC;
    --ink-900: #1C1917;
    --ink-700: #433D38;
    --ink-500: #6E655C;
    --paper-50: #FAF7F1;
    --paper-100: #F2EBDD;
    --white: #FFFFFF;

    
    --bg-page: var(--paper-50);
    --bg-card: var(--white);
    --text-body: var(--ink-900);
    --text-muted: var(--ink-500);
    --border-soft: #E7DFCF;

    
    --font-display: 'Almarai', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', 'Almarai', sans-serif;

    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(61, 12, 19, 0.06);
    --shadow-md: 0 10px 30px rgba(61, 12, 19, 0.10);
    --shadow-gold: 0 6px 18px rgba(169, 130, 30, 0.25);
    --transition: 200ms ease;
    --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.85;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: absolute;
    right: -999px;
    top: 0;
    background: var(--gold-500);
    color: var(--ink-900);
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 0 var(--radius-sm);
    font-weight: 700;
}
.skip-link:focus {
    right: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
}

.site-header {
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 162, 39, 0.16) 0, transparent 45%),
        linear-gradient(160deg, var(--maroon-700) 0%, var(--maroon-800) 55%, var(--maroon-900) 100%);
    color: var(--white);
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--gold-500);
}

.site-header::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='1'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3Ccircle cx='30' cy='30' r='9'/%3E%3C/g%3E%3C/svg%3E");
}
.header-content { position: relative; z-index: 1; }

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.logo-frame {
    width: 90px;
    height: 90px;
    background: var(--white);
    border: 2px solid var(--gold-500);
    border-radius: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
    animation: badgePulse 3.2s ease-in-out infinite;
}

.brand-text .eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--gold-300);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.brand-text h1 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.3;
}

.year-badge {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(231, 206, 133, 0.4);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    color: var(--gold-300);
}

.main-content { padding: 2.2rem 0 3rem; }

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
}

.intro-card {
    padding: 1.8rem 2rem;
    margin-bottom: 1.8rem;
    text-align: center;
    border-top: 4px solid var(--gold-500);
}
.intro-card .lead {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--maroon-800);
}

.alert-note {
    background: var(--gold-100);
    border-right: 4px solid var(--gold-600);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-top: 1.1rem;
    font-weight: 500;
    font-size: 1rem;
    text-align: right;
}

.section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    border-right: 4px solid var(--maroon-700);
    padding: 1.9rem 2rem;
    margin-bottom: 1.8rem;
}

.section-title {
    font-family: var(--font-display);
    color: var(--maroon-800);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    padding-bottom: 0.9rem;
    margin-bottom: 1.6rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--gold-500);
    border-radius: 2px;
}
.section-title::before {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    width: 90px;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--gold-300) 20%, var(--gold-300) 80%, transparent);
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--maroon-700), var(--maroon-900));
    color: var(--gold-300);
    font-size: 0.95rem;
    box-shadow: 0 0 0 3px var(--gold-100), var(--shadow-sm);
    flex-shrink: 0;
    animation: floatSlow 3.6s ease-in-out infinite;
}

.table-wrapper { overflow-x: auto; }

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-width: 480px;
}

.schedule-table thead tr {
    background: linear-gradient(to left, var(--maroon-700), var(--maroon-900));
    color: var(--white);
}

.schedule-table th, .schedule-table td {
    padding: 0.95rem 1.1rem;
    text-align: right;
}

.schedule-table tbody tr:nth-of-type(even) { background: var(--paper-100); }
.schedule-table tbody tr:hover { background: var(--gold-100); }
.schedule-table tbody tr:not(:last-child) { border-bottom: 1px solid var(--border-soft); }

.btn-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to bottom, var(--maroon-700), var(--maroon-900));
    color: var(--white);
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-brand::after {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: -60%;
    width: 40%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: inset-inline-start 500ms ease;
}
.btn-brand:hover::after { inset-inline-start: 120%; }

.btn-brand:hover {
    background: linear-gradient(to bottom, var(--maroon-600), var(--maroon-800));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-brand:active { transform: translateY(0); }

.btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gold-100);
    color: var(--maroon-700);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--gold-300);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, color 200ms ease;
}

.btn-inline:hover {
    background: var(--gold-300);
    border-color: var(--gold-500);
    color: var(--maroon-800);
    transform: translateY(-1px);
}
.btn-inline:active { transform: translateY(0); }

.btn-gold {
    background: linear-gradient(to bottom, var(--gold-500), var(--gold-600));
    color: var(--ink-900);
}
.btn-gold:hover { background: linear-gradient(to bottom, var(--gold-300), var(--gold-500)); }

.btn-facebook { background: linear-gradient(to bottom, #3b5998, #2d4373); }
.btn-facebook:hover { background: linear-gradient(to bottom, #4b6cb7, #3b5998); }

.btn-youtube { background: linear-gradient(to bottom, #d32f2f, #a41f1f); }
.btn-youtube:hover { background: linear-gradient(to bottom, #e64444, #d32f2f); }

.buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.video-wrapper { display: flex; justify-content: center; margin: 1.4rem 0; }

.video-frame {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gold-500);
    background: var(--maroon-900);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-description { text-align: center; color: var(--text-muted); max-width: 60ch; margin-inline: auto; }

.map-wrapper { display: flex; justify-content: center; margin: 1.4rem 0; }

.map-frame {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gold-500);
    background: var(--paper-100);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@keyframes borderFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.45), var(--shadow-gold); }
    50%      { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0), var(--shadow-gold); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

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

.hub-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.hub-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.3rem 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--text-body);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.hub-btn-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(145deg, var(--paper-100), var(--paper-50));
    color: var(--maroon-700);
    transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.hub-btn-label { font-weight: 700; font-size: 0.95rem; text-align: center; }

.hub-btn:hover {
    transform: translateY(-4px);
    border-color: var(--gold-300);
    box-shadow: var(--shadow-md);
}
.hub-btn:hover .hub-btn-icon { transform: scale(1.1) rotate(-6deg); }

.hub-btn.is-active {
    border-color: var(--gold-500);
    background: linear-gradient(160deg, var(--maroon-700), var(--maroon-900));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}
.hub-btn.is-active .hub-btn-icon {
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
    color: var(--maroon-900);
    animation: badgePulse 3s ease-in-out infinite;
}
.hub-btn.is-active .hub-btn-label { color: var(--gold-300); }

.stage { position: relative; }

.panel { display: none; }
.panel.is-active {
    display: block;
    animation: panelIn 380ms ease;
}

.sub-heading {
    font-family: var(--font-display);
    color: var(--maroon-800);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 1.6rem 0 0.4rem;
    padding-inline-start: 0.8rem;
    border-inline-start: 4px solid var(--gold-500);
}
.sub-heading:first-of-type { margin-top: 0; }

.hint-text { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.code-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(160deg, var(--white), var(--paper-50));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.code-chip::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold-500), var(--maroon-700));
}

.code-chip:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-300);
}

.code-chip-icon {
    position: relative;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--maroon-700), var(--maroon-900));
    color: var(--gold-300);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px var(--gold-100), var(--shadow-gold);
    transition: transform 220ms ease;
}
.code-chip:hover .code-chip-icon { transform: scale(1.1) rotate(-6deg); }

.code-chip-badge {
    position: absolute;
    bottom: -6px;
    left: -6px;
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
    color: var(--maroon-900);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.68rem;
    line-height: 1;
    padding: 0.28rem 0.4rem;
    border-radius: 999px;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.code-chip-name { font-size: 0.93rem; font-weight: 700; color: var(--maroon-800); }

.halls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.hall-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hall-card::after {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    width: 46px;
    height: 46px;
    background: radial-gradient(circle at top left, rgba(201, 162, 39, 0.18), transparent 70%);
}

.hall-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-300);
}

.hall-card-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
    color: var(--maroon-900);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: transform 220ms ease;
}
.hall-card:hover .hall-card-icon { transform: rotate(-10deg) scale(1.08); }

.hall-card-text { display: flex; flex-direction: column; gap: 0.15rem; position: relative; z-index: 1; }
.hall-card-text strong { font-size: 1rem; color: var(--maroon-800); font-weight: 800; }
.hall-card-text small { color: var(--text-muted); font-size: 0.85rem; }

.map-places {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: 1.2rem 0 1.6rem;
}

.map-place-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--paper-50);
    border: 2px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    cursor: pointer;
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.map-place-btn i { color: var(--maroon-700); transition: color 200ms ease; }

.map-place-btn:hover { transform: translateY(-2px); border-color: var(--gold-300); }

.map-place-btn.is-active {
    background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
    border-color: var(--gold-500);
    color: var(--white);
}
.map-place-btn.is-active i { color: var(--gold-300); }

.map-reset-btn { border-style: dashed; }
.map-reset-btn.is-active { border-style: solid; }

.map-route-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.route-origin-btn {
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
}

.route-origin-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.route-origin-btn[disabled]:hover {
    background: linear-gradient(to bottom, var(--maroon-700), var(--maroon-900));
    transform: none;
    box-shadow: none;
}

.route-selected-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.3rem;
}

.route-selected-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--maroon-800);
    background: var(--gold-100);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

.steps-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px dashed var(--border-soft);
}

.step-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--paper-50);
    border: 2px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    color: var(--text-body);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, color 200ms ease;
}
.step-btn i { font-size: 0.95rem; }
.step-btn em {
    font-style: normal;
    font-weight: 800;
    background: var(--gold-100);
    color: var(--maroon-800);
    width: 20px; height: 20px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
}

.step-btn:hover { transform: translateY(-2px); border-color: var(--gold-300); }

.step-btn.is-active {
    background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
    border-color: var(--gold-500);
    color: var(--white);
}
.step-btn.is-active em { background: var(--gold-500); color: var(--maroon-900); }

.steps-stage { position: relative; min-height: 120px; }

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: panelIn 320ms ease; }

.step-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    color: var(--maroon-800);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.step-panel-number {
    flex-shrink: 0;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
    color: var(--maroon-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-gold);
}

.step-arrows {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--border-soft);
}

.step-counter {
    font-weight: 700;
    color: var(--maroon-800);
    background: var(--gold-100);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.step-arrow-btn { font-size: 0.9rem; }

.step-list { list-style: none; }
.step-list li {
    position: relative;
    padding-right: 1.3rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.step-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-600);
}

.doc-list { list-style: none; columns: 1; }
.doc-list li {
    position: relative;
    padding-right: 1.6rem;
    margin-bottom: 0.9rem;
}
.doc-list li::before {
    content: '\f0f6'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--maroon-700);
    position: absolute;
    right: 0;
    top: 0.1rem;
    font-size: 0.9rem;
}

@media (min-width: 700px) {
    .doc-list { columns: 2; column-gap: 2.5rem; }
}

.links-section { text-align: center; }

.links-desc {
    color: var(--text-muted);
    max-width: 65ch;
    margin: 0 auto 1.6rem;
}

.link-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
    text-align: right;
}

.link-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--paper-50);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--text-body);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.link-tile::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--maroon-700);
    transition: width var(--transition);
}

.link-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-300);
    background: var(--white);
}
.link-tile:hover::before { width: 6px; }

.link-tile-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.05rem;
    background: linear-gradient(145deg, var(--maroon-700), var(--maroon-900));
    box-shadow: var(--shadow-sm);
    transition: transform 260ms ease;
}
.link-tile:hover .link-tile-icon { transform: scale(1.12) rotate(-8deg); }

.link-tile-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.link-tile-text strong { font-size: 1rem; font-weight: 700; }
.link-tile-text small { color: var(--text-muted); font-size: 0.82rem; }

.link-tile-arrow {
    color: var(--gold-600);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.link-tile:hover .link-tile-arrow { transform: translateX(-4px); }

.accent-gold .link-tile-icon { background: linear-gradient(145deg, var(--gold-500), var(--gold-600)); color: var(--ink-900); }
.accent-gold::before { background: var(--gold-500); }

.accent-facebook .link-tile-icon { background: linear-gradient(145deg, #4267B2, #2d4373); }
.accent-facebook::before { background: #4267B2; }

.accent-youtube .link-tile-icon { background: linear-gradient(145deg, #d32f2f, #a41f1f); }
.accent-youtube::before { background: #d32f2f; }

.site-footer {
    background: linear-gradient(160deg, var(--maroon-900), var(--ink-900));
    color: var(--paper-50);
    padding: 2.2rem 0;
    text-align: center;
    border-top: 3px solid var(--gold-500);
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

.footer-logo {
    width: 46px; height: 46px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 4px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.3rem;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-weight: 700; }

.footer-line { color: var(--gold-300); font-size: 0.95rem; }
.footer-rights { color: var(--paper-100); font-size: 0.85rem; opacity: 0.85; }

.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold-500);
    background: linear-gradient(145deg, var(--maroon-700), var(--maroon-900));
    color: var(--gold-300);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease, background 220ms ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
    color: var(--maroon-900);
    border-color: var(--maroon-700);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        width: 46px;
        height: 46px;
        bottom: 16px;
        inset-inline-end: 16px;
        font-size: 1.05rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hub-btn, .btn-brand, .btn-inline, .link-tile, .link-tile-icon, .code-chip, .code-chip-icon, .step-btn, .scroll-top-btn, .hall-card, .hall-card-icon, .map-place-btn { transition: none; }
    .panel.is-active, .step-panel.is-active { animation: none; }
    .hub-btn.is-active .hub-btn-icon,
    .title-icon,
    .logo-frame {
        animation: none !important;
    }
    .btn-brand::after { display: none; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }

    .header-content { justify-content: flex-start; }
    .brand-text h1 { font-size: 1.25rem; }
    .logo-frame { width: 58px; height: 58px; }

    .section, .intro-card { padding: 1.4rem 1.2rem; }
    .section-title { font-size: 1.25rem; }

    .hub-nav { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .hub-btn { padding: 1rem 0.6rem; }
    .hub-btn-icon { width: 44px; height: 44px; font-size: 1.15rem; }
    .hub-btn-label { font-size: 0.85rem; }

    .steps-subnav { gap: 0.4rem; }
    .step-btn { padding: 0.4rem 0.7rem; }

    .codes-grid { grid-template-columns: repeat(2, 1fr); }
    .halls-grid { grid-template-columns: 1fr; }
    .map-places { gap: 0.5rem; }
    .map-place-btn { font-size: 0.82rem; padding: 0.45rem 0.8rem; }

    .link-tiles-grid { grid-template-columns: 1fr; }

    .buttons-row { flex-direction: column; align-items: stretch; }
    .btn-brand { justify-content: center; }
}

@media (max-width: 420px) {
    .container { padding-inline: 14px; }
    .step-panel h3 { font-size: 1.1rem; }
    .hub-nav { grid-template-columns: repeat(2, 1fr); }
    .codes-grid { grid-template-columns: 1fr 1fr; }
}

