/* home.css — The Digital Curator palette */

/* =====================
   The Digital Curator — Design Tokens
   Stitch-designed: comfortable contrast, no harsh extremes
   Light: soft blue-grey  |  Dark: medium navy-blue (not pitch black)
   ===================== */
:root {
    --brand:       #1a3160;
    --brand-2:     #3a5fa0;
    --brand-soft:  #d9e2ff;
    --brand-soft-2:#ebeef3;
    --text:        #1e2840;
    --text-muted:  #44464f;
    --bg:          #eef1f6;
    --bg-section:  #e5e8ed;
    --card-bg:     #f8f9fc;
    --card-border: rgba(26,49,96,0.10);
    --shadow:      0 12px 32px rgba(26,49,96,0.10);
    --shadow-soft: 0 4px 16px rgba(26,49,96,0.07);
    --accent:      #d4941a;
    --accent-2:    #4dd0e1;
    --radius: 16px;
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-bs-theme="dark"] {
    --text:        #dce4f0;
    --text-muted:  rgba(220,228,240,0.65);
    --bg:          #1f2b3e;
    --bg-section:  #192436;
    --card-bg:     #263347;
    --card-border: rgba(255,255,255,0.10);
    --shadow:      0 17px 38px rgba(0,0,0,0.45);
    --shadow-soft: 0 6px 20px rgba(0,0,0,0.30);
    --accent:      #ffb94c;   /* gold brightened slightly for dark bg */
    --accent-2:    #4dd0e1;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-2);
}

/* =====================
   Home header (logo + title bar)
   ===================== */
.home-header {
    background: linear-gradient(135deg, rgba(21, 49, 126, 0.92), rgba(7, 23, 52, 0.88));
    border-radius: var(--radius);
    padding: 1.35rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    color: #fff;
}

.home-header .main-title-bar {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.logo-img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

.centenary-img {
    max-width: 110px;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 10px 20px rgba(0,0,0,0.48);
}

.subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.4px;
}

@media (max-width: 767.98px) {
    .main-title { font-size: 1.8rem; }
    .subtitle { font-size: 1.05rem; }
}

/* =====================
   Navbar (keep layout/behavior same as before)
   ===================== */
.navbar-custom {
    background-color: var(--card-bg);
    color: var(--brand) !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(21, 49, 126, 0.12);
    margin-bottom: 1rem;
    padding: 0 8px;
    position: relative;
    overflow: visible;
    z-index: 1020;
}

.navbar-custom .navbar-nav { flex-wrap: wrap; gap: 0.35rem; }
.navbar-custom .nav-item { white-space: nowrap; }

.navbar-custom .navbar-nav.ms-auto {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-nav.ms-auto { position: static; transform: none; margin-left: auto; }
}

.navbar-custom .navbar-nav .nav-link,
.navbar-custom .navbar-brand,
.navbar-custom .navbar-toggler {
    color: var(--brand) !important;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.08rem;
    transition: color 0.18s ease;
}

.navbar-custom .navbar-nav .nav-link.active,
.navbar-custom .navbar-nav .nav-link:focus,
.navbar-custom .navbar-nav .nav-link:hover {
    color: var(--brand-2) !important;
    background: rgba(227, 242, 253, 0.65);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(21, 49, 126, 0.14);
}

.navbar-toggler {
    border: none;
    background: rgba(243, 246, 250, 0.85);
    border-radius: 8px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.35);
}

.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(21, 49, 126, 0.18);
    background: var(--card-bg) !important;
    z-index: 2000;
}

.dropdown-item {
    color: var(--brand) !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(227, 242, 253, 0.85) !important;
    color: var(--brand-2) !important;
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }
    .navbar-custom .navbar-nav .nav-item { width: 100%; }
    .navbar-custom .navbar-nav .nav-link {
        text-align: left;
        padding-left: 24px;
        padding-right: 12px;
    }
    .navbar-custom .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        box-shadow: none;
        margin-bottom: 10px;
    }
}

/* Multi-level submenu (open to the right) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -0.125rem;
    margin-left: 0.1rem;
    min-width: 210px;
    border-radius: 0.35rem;
}

/* Ensure submenu closes when parent dropdown is closed */
.dropdown-menu.show .dropdown-submenu > .dropdown-menu {
    display: none;
}

@media (max-width: 767.98px) {
    .navbar-custom { padding: 0 2px; }
    .navbar-custom .navbar-brand { font-size: 1.1rem; }
}
/* Dark-theme overrides for better contrast */
[data-bs-theme="dark"] .navbar-custom .navbar-nav .nav-link,
[data-bs-theme="dark"] .navbar-custom .navbar-brand,
[data-bs-theme="dark"] .navbar-custom .navbar-toggler {
    color: var(--text) !important;
}

[data-bs-theme="dark"] .navbar-custom .navbar-nav .nav-link.active,
[data-bs-theme="dark"] .navbar-custom .navbar-nav .nav-link:focus,
[data-bs-theme="dark"] .navbar-custom .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text) !important;
}

[data-bs-theme="dark"] .president-message-card h5 {
    color: rgba(235, 240, 255, 0.82) !important;
}

[data-bs-theme="dark"] .president-message-display {
    color: var(--text) !important;
}

[data-bs-theme="dark"] .action-box {
    background: linear-gradient(120deg, rgba(40, 44, 55, 0.88) 0%, rgba(28, 32, 44, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text) !important;
}

[data-bs-theme="dark"] .action-box:hover {
    background: linear-gradient(120deg, rgba(56, 62, 78, 0.95) 0%, rgba(38, 44, 60, 0.95) 100%);
}

[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(24, 28, 36, 0.88) !important;
    border: 1px solid rgba(255,255,255,0.12);
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--text) !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background: rgba(255,255,255,0.12) !important;
    color: var(--text) !important;
}

/* =====================
   Hero section
   ===================== */
.hero-section {
    min-height: 62vh;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, rgba(21,49,126,0.68), rgba(23,46,90,0.56)),
        url('../images/hero.jpg') center/cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-heading {
    text-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.hero-welcome {
    font-weight: 500;
    letter-spacing: 0.2px;
    opacity: 0.95;
}

.hero-cta {
    border-width: 2px;
    border-style: solid;
    border-color: rgba(255,255,255,0.85);
    padding: 0.95rem 1.85rem;
    box-shadow: 0 8px 26px rgba(0,0,0,0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.45);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.95);
}

/* =====================
   Notice board + carousel
   ===================== */
#mainCarousel {
    position: relative;
}

.carousel-stage {
    position: relative;
    padding: 4px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 700px;
    width: 100%;
}

.carousel-item {
    height: 700px;
}

.main-carousel-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    background: var(--card-bg);
    border-radius: 12px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;
    color: var(--brand-2) !important;
    width: 2.75rem;
    height: 2.75rem;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='currentColor' stroke-width='2' d='M10.5 2.5 5 8l5.5 5.5'/%3E%3C/svg%3E") !important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='currentColor' stroke-width='2' d='M5.5 13.5 11 8 5.5 2.5'/%3E%3C/svg%3E") !important;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.54);
    color: #fff !important;
    padding: 0.55em 1.25em;
    border-radius: 0.85em;
    text-shadow: 0 1px 10px rgba(0,0,0,0.6);
    font-weight: 600;
    font-size: 1.1em;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
}

[data-bs-theme="dark"] .carousel-caption {
    background: rgba(0, 0, 0, 0.64);
}

.add-slide-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 1050;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--brand-2);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.add-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.delete-slide button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1110;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 60, 60, 0.85);
    color: #ff4d4d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,0.24);
    transition: transform 0.18s ease, background 0.18s ease;
}

.delete-slide button:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 10px 26px rgba(0,0,0,0.36);
}

.carousel-item {
    overflow: visible;
}

.carousel-control-pause {
    color: var(--brand-2);
}

.carousel-control-pause:hover {
    color: var(--brand);
}

/* =====================
   Notice Board
   ===================== */
.notice-box {
    width: 100%;
    height: 400px;
    background: #fff !important;
    border: 1px solid rgba(207, 216, 220, 0.85);
    border-left: 6px solid rgba(21, 49, 126, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    color: #1c2331 !important;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.notice-box .notice-item {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    padding: 0.55rem 0.75rem 0.55rem 1.75rem;
    color: #1c2331 !important;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

.notice-box h5 {
    margin-bottom: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.notice-box .notice-item:nth-child(2n) {
    background: rgba(0, 0, 0, 0.08);
}

.notice-box .notice-item::before {
    content: "★";
    position: absolute;
    left: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 0.95rem;
}

[data-bs-theme="dark"] .notice-box {
    background: rgba(40, 42, 48, 0.72);
    border: 1px solid rgba(255,255,255,0.14);
    border-left: 6px solid rgba(255,255,255,0.30);
    color: rgba(255,255,255,0.92);
}

[data-bs-theme="dark"] .notice-box .notice-item {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
}

[data-bs-theme="dark"] .notice-box .notice-item {
    background: rgba(255,255,255,0.06);
}

/* =====================
   Action buttons strip
   ===================== */
.action-row {
    margin-top: -10px;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.action-row .col-auto {
    flex: 0 0 auto;
}

.action-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(120deg, rgba(245,247,250,1) 0%, rgba(195,207,226,1) 100%);
    border: 1px solid rgba(27, 35, 72, 0.15);
    border-radius: 999px;
    padding: 14px 18px;
    min-width: 220px;
    min-height: 62px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    box-shadow: 0 8px 26px rgba(0,0,0,0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.action-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    background: linear-gradient(120deg, rgba(195,207,226,1) 0%, rgba(245,247,250,1) 100%);
}

.action-box.voting-btn {
    min-width: 180px;
}

@media (max-width: 767.98px) {
    .action-box { min-width: 180px; }
}

/* =====================
   Sidebar / President card
   ===================== */
.sidebar-column {
    position: relative;
    height: auto;
}

.sidebar-fixed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    overflow-y: auto;
}

.sidebar-fixed .btn-gradient-about,
.sidebar-fixed .president-message-card {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .sidebar-column, .sidebar-fixed {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }
    .sidebar-fixed .btn-gradient-about,
    .sidebar-fixed .president-message-card {
        max-width: 100% !important;
        margin: 0 !important;
    }
}

.btn-gradient-about {
    background: linear-gradient(90deg, #ffd54f 0%, #64b5f6 100%) !important;
    color: var(--brand) !important;
    border: none !important;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 26px rgba(255, 213, 79, 0.35);
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    font-size: 1.05rem;
}

.btn-gradient-about:hover,
.btn-gradient-about:focus {
    background: linear-gradient(90deg, #64b5f6 0%, #ffd54f 100%) !important;
    color: #0277bd !important;
    box-shadow: 0 18px 36px rgba(100, 181, 246, 0.35);
}

.president-message-card {
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: 0 18px 38px rgba(0,0,0,0.16);
    padding-bottom: 0.5rem;
    color: rgba(12, 18, 25, 0.98);
}

[data-bs-theme="dark"] .president-message-card {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255, 255, 255, 0.78);
    color: rgba(28, 35, 49, 0.92);
}

.president-message-card .card-body {
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.president-message-card h5 {
    color: var(--brand-2);
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(255, 208, 75, 0.55);
}

.president-message-display {
    font-size: 1rem;
    color: rgba(12, 18, 25, 0.98);
    text-align: center;
    margin-bottom: 0.75rem;
    white-space: pre-line;
}

[data-bs-theme="dark"] .president-message-display {
    color: rgba(12, 18, 25, 0.98);
}

textarea.president-textarea {
    font-size: 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    padding: 0.65rem;
    white-space: pre-wrap;
    min-height: 250px;
    resize: vertical;
}

[data-bs-theme="dark"] textarea.president-textarea {
    background: rgba(24, 28, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

/* =====================
   Stats section
   ===================== */
.stats-section {
    background: transparent;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.stat-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 18px 38px rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.stat-number {
    font-weight: 700;
}

.stat-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* =====================
   Upcoming events
   ===================== */
.upcoming-events-section {
    background: rgba(241, 247, 255, 0.9);
    padding: 3rem 0;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.upcoming-events-section h2 {
    color: var(--brand);
    font-weight: 700;
}

.upcoming-events-section .card {
    border: 1px solid rgba(25, 118, 210, 0.18);
    border-left: 6px solid rgba(25, 118, 210, 0.75);
    border-radius: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.upcoming-events-section .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.upcoming-events-section .card-body {
    position: relative;
    overflow: hidden;
}

.upcoming-events-section .card-title {
    font-weight: 600;
}

.upcoming-events-section .card-text {
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

/* =====================
   Misc helpers
   ===================== */
#coming-soon,
#staffMembersSection {
    display: none;
}

#contactSuccess,
.contact-card {
    max-width: 680px;
    margin-top: 3rem;
}

#contactSuccess {
    margin-left: auto;
    margin-right: auto;
}

#back-to-top {
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 9999;
    border-radius: 50%;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.user-initials-badge {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 50%;
}

/* =====================
   Section cards (Hall of Fame, Distinguished, Photos, Archives)
   ===================== */
.section-card {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem 1.5rem;
    position: relative;
    z-index: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card > * {
    position: relative;
    z-index: 1;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(0,0,0,0.18);
}

[data-bs-theme="dark"] .section-card {
    background: rgba(24,28,36,0.75);
    border-color: rgba(255,255,255,0.10);
}

[data-bs-theme="dark"] .section-card--hof {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.14), rgba(24, 28, 36, 0.75));
}

[data-bs-theme="dark"] .section-card--distinguished {
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.14), rgba(24, 28, 36, 0.75));
}

[data-bs-theme="dark"] .section-card--archives {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.14), rgba(24, 28, 36, 0.75));
}

[data-bs-theme="dark"] .section-card-tile {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
}

.section-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.30), transparent 60%);
    pointer-events: none;
    opacity: 0.5;
}

.section-card--hof {
    border-left: 6px solid var(--accent);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(255, 255, 255, 0.85));
}
.section-card--distinguished {
    border-left: 6px solid var(--accent-2);
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.18), rgba(255, 255, 255, 0.85));
}
.section-card--photos {
    border-left: 6px solid var(--brand-2);
}
.section-card--archives {
    border-left: 6px solid rgba(255, 152, 0, 0.85);
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.18), rgba(255, 255, 255, 0.85));
}

.section-header { text-align: center; margin-bottom: 1.5rem; }
.section-title { font-size: 2.05rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 0.4rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.2rem; }

.section-card-tile {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

.card-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0,0,0,0.16);
}

.scroll-card-wrapper {
    width: 240px;
    min-width: 240px;
}

.horiz-section {
    position: relative;
    min-height: 240px;
    overflow: hidden;
}

.horiz-container {
    display: flex;
    align-items: stretch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.horiz-container::-webkit-scrollbar { display: none; }

.horiz-nav.left { left: 8px; }
.horiz-nav.right { right: 8px; }
.horiz-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--brand);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.18s ease, background 0.18s ease;
    z-index: 10;
}

.horiz-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.95);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
