:root {
    --chiro-red: #db3e41;
    --chiro-blue: #1d4e89;
    --chiro-yellow: #f2a900;
    --chiro-brown: #724c2a;
    --bg-color: #fdfbf7;
    --text-color: #333;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Patrick Hand', cursive;
}

.font-playful {
    font-family: 'Fredoka', 'Patrick Hand', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.6;
    padding-top: 90px;
}

@media (max-width: 991px) {
    body {
        padding-top: 80px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--chiro-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Hero Section (Main Page) */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-top: -23px;
    margin-bottom: 2rem;
    background-color: var(--chiro-blue);
}

@media (max-width: 991px) {
    .hero-section {
        margin-top: -13px;
    }
}

.hero-img-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-section:hover .hero-img {
    transform: scale(1.05);
}

.hero-text {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 4px solid var(--chiro-red);
    width: 85%;
    max-width: 800px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Playful Cards */
.card {
    border: none;
    border-radius: 25px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Poll Builder Helpers */
.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.animation-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

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

.transition-all {
    transition: all 0.2s ease-in-out;
}

.fw-500 {
    font-weight: 500;
}

/* Forms & Feed */
.post-card {
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@keyframes card-wiggle {
    0% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-8px) rotate(0.5deg); }
    100% { transform: translateY(-8px) rotate(0deg); }
}

.card:hover {
    animation: card-wiggle 0.5s ease-out forwards;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-header {
    background-color: var(--chiro-yellow);
    color: white;
    font-family: var(--font-heading);
    border-bottom: none;
    padding: 1.25rem;
}

/* Buttons */
.btn-chiro {
    background-color: var(--chiro-red);
    color: white;
    font-family: var(--font-heading);
    border: none;
    padding: 12px 30px;
    border-radius: 35px;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 5px 0 #a82b2e; /* 3D effect */
    display: inline-block;
    text-decoration: none;
}

.btn-chiro:hover {
    background-color: #c42b2e;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 7px 0 #a82b2e;
}

.btn-chiro:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #a82b2e;
}

.btn-chiro.btn-sm {
    padding: 6px 16px;
    font-size: 0.95rem;
    border-radius: 20px;
    box-shadow: 0 3px 0 #a82b2e;
}

.btn-chiro.btn-sm:hover {
    box-shadow: 0 4px 0 #a82b2e;
    transform: translateY(-1px);
}

.btn-chiro.btn-sm:active {
    box-shadow: 0 1px 0 #a82b2e;
    transform: translateY(2px);
}

/* Edit Page Button on Public Pages */
.btn-edit-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    vertical-align: middle;
    gap: 0.35rem;
}

/* Navbar */
.navbar {
    background-color: white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 0.8rem 0;
    border-bottom: 6px solid var(--chiro-yellow);
}

.navbar-brand {
    font-family: var(--font-heading);
    color: var(--chiro-red) !important;
    font-size: 1.8rem;
    font-weight: 700;
    transform: rotate(-1.5deg);
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--chiro-blue) !important;
    font-size: 1.2rem;
    margin: 0 8px;
    transition: all 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--chiro-red);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--chiro-red) !important;
}

/* User Profile Pill in Navbar */
.nav-user-pill {
    background-color: white;
    color: var(--chiro-blue) !important;
    border: 3px solid var(--chiro-red);
    padding: 5px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}

.nav-user-pill:hover {
    background-color: var(--chiro-red);
    color: white !important;
    transform: scale(1.05);
}

.nav-user-pill i {
    font-size: 1.3rem;
}

.nav-user-pill::after {
    display: none !important;
}

@media (max-width: 991px) {
    .nav-user-pill {
        margin-top: 10px;
        margin-bottom: 5px;
        width: fit-content;
    }
}

/* Footer */
footer {
    background-color: var(--chiro-blue);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-radius: 60px 60px 0 0;
}

/* Input Fields */
input, textarea, select {
    border: 3px solid #eee !important;
    border-radius: 18px !important;
    padding: 0.8rem 1.2rem !important;
    font-family: var(--font-body);
    font-size: 1.1rem !important;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--chiro-yellow) !important;
    box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.1) !important;
    outline: none;
}

/* Group Colors */
.group-header {
    padding: 12px 25px;
    border-radius: 15px;
    color: white;
    display: inline-block;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.group-ribbels { background-color: #9b59b6; }
.group-speelclub { background-color: #f1c40f; color: #333; }
.group-rakwis { background-color: #27ae60; }
.group-titos { background-color: #e74c3c; }
.group-ketis { background-color: #2980b9; }
.group-aspis { background-color: #d35400; }

/* Leader Carousel */
.leader-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.leader-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.leader-card-wrapper {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: center;
}

.leader-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08) !important;
}

/* Carousel Controls */
.carousel-container {
    position: relative;
    padding: 0 10px;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chiro-red);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--chiro-red);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: -10px;
}

.carousel-control-next {
    right: -10px;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0;
    }
}

/* Calendar Styles */
.calendar-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: white;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.calendar-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.calendar-date-badge {
    background-color: var(--chiro-red);
    color: white;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    min-width: 75px;
    font-family: var(--font-heading);
    box-shadow: 0 4px 0 #a82b2e;
}

.calendar-day { font-size: 1.8rem; font-weight: 700; display: block; line-height: 1; }
.calendar-month { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; }

/* Event Modal Styles */
.event-description-container {
    line-height: 1.6;
    color: #444;
}

.event-description-container blockquote {
    border-left: 4px solid var(--chiro-red);
    padding-left: 1rem;
    color: #666;
    font-style: italic;
}

@media (max-width: 767px) {
    #eventModal .border-end {
        border-end: none !important;
        border-bottom: 1px solid #dee2e6;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }
    
    .nav-link {
        margin: 5px 0;
        padding: 10px 15px !important;
        border-radius: 10px;
    }
    
    .nav-link:hover {
        background-color: #f8f9fa;
    }
    
    .nav-link::after { display: none; }

    /* Fix for mobile menu scrolling */
    .navbar-collapse {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 50px;
    }

    /* Dropdown centering on mobile */
...
}

/* Prevent background scroll when navbar is open */
body.navbar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@media (min-width: 992px) {
    .dropdown-item {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    body { font-size: 1.1rem; }
    
    .hero-img-container { height: 45vh; min-height: 300px; }
    
    .hero-text {
        padding: 1.5rem;
        width: 90%;
        bottom: 10%;
    }
    
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text p { font-size: 1.2rem; }
    
    .navbar-brand { font-size: 1.5rem; }
    
    footer { border-radius: 40px 40px 0 0; padding: 3rem 1rem 2rem; }
    
    .btn-chiro.btn-sm {
        padding: 5px 12px;
        font-size: 0.85rem;
        border-radius: 16px;
        box-shadow: 0 2px 0 #a82b2e;
    }

    .btn-edit-page {
        font-size: 0.85rem;
        padding: 5px 12px;
    }
}

@media (max-width: 576px) {
    body { font-size: 1rem; }
    
    .hero-img-container { height: 40vh; min-height: 250px; }
    
    .hero-text {
        padding: 1.2rem;
        width: 92%;
        border-width: 3px;
        border-radius: 25px;
        }

    
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 1rem; }
    
    .container { padding-left: 20px; padding-right: 20px; }
    
    .calendar-date-badge { min-width: 65px; padding: 8px; }
    .calendar-day { font-size: 1.5rem; }

    .btn-chiro.btn-sm {
        padding: 4px 10px;
        font-size: 0.8rem;
        border-radius: 14px;
        box-shadow: 0 2px 0 #a82b2e;
    }

    .btn-edit-page {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* Custom spacing utilities */
.pb-6 { padding-bottom: 4rem; }
.pt-6 { padding-top: 4rem; }
.my-6 { margin-top: 4rem; margin-bottom: 4rem; }

/* Quill Alignment Classes */
.ql-align-center {
    text-align: center;
}
.ql-align-right {
    text-align: right;
}
.ql-align-justify {
    text-align: justify;
}

.rich-text-content {
    line-height: 1.7;
    font-size: 1.1rem;
}
.rich-text-content p {
    margin-bottom: 1.5rem;
}

/* Compact Table Styles for Admin Dashboard */
.table {
    font-size: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

.table th, .table td {
    padding: 0.6rem 0.75rem !important;
    white-space: normal !important; /* Force text wrapping */
    word-break: break-word !important; /* Break long words/URLs */
    vertical-align: middle !important;
}

/* Ensure actions column doesn't wrap awkwardly if buttons are there */
.table td:last-child {
    white-space: nowrap !important;
    width: 1%; /* Shrink to fit content */
}

/* Birthday Alert Card */
.birthday-alert {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px solid #ffccd5 !important;
    border-radius: 1rem !important;
    position: relative;
    overflow: hidden;
}

.birthday-alert::before {
    content: "🥳";
    position: absolute;
    right: 10px;
    bottom: -10px;
    font-size: 4rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.birthday-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: #ffccd5;
    color: #d63384;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Responsive images in user-generated content (posts, comments, events, etc) */
.card-text img, .comment-text img, #modalEventDesc img, .rich-content img, .rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Fix for buttons inside forms inside a Bootstrap btn-group */
.btn-group > form {
    display: contents !important;
}

.btn-group > form > .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group > form > .btn:hover {
    z-index: 1;
}

.btn-group > form > .btn:focus,
.btn-group > form > .btn:active {
    z-index: 2;
}

.btn-group > form:not(:first-child) > .btn {
    margin-left: -1px;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.btn-group > form:not(:last-child) > .btn {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Fix sizes for buttons inside forms in small/large button groups */
.btn-group-sm > form > .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
}

.btn-group-lg > form > .btn {
    padding: 0.5rem 1rem !important;
    font-size: 1.25rem !important;
}

/* Payment Option Cards (Register Page) */
.payment-methods-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option-card {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 0;
}

.payment-option-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

/* Checked state via :has and .selected fallback */
.payment-option-card:has(.form-check-input:checked),
.payment-option-card.selected {
    border-color: var(--chiro-blue);
    background-color: #f4f8fd;
    box-shadow: 0 4px 12px rgba(29, 78, 137, 0.08);
}

/* Radio button styling */
.payment-option-card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    margin-right: 0.85rem;
    margin-left: 0;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid #94a3b8;
    float: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-option-card:has(.form-check-input:checked) .form-check-input,
.payment-option-card.selected .form-check-input {
    border-color: var(--chiro-blue);
    background-color: var(--chiro-blue);
}

.payment-option-card .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(29, 78, 137, 0.2);
    border-color: var(--chiro-blue);
}

/* Payment icon */
.payment-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    border-radius: 10px;
    background-color: rgba(29, 78, 137, 0.08);
    color: var(--chiro-blue);
    font-size: 1.15rem;
    margin-right: 0.85rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.payment-option-card:has(.form-check-input:checked) .payment-icon-badge,
.payment-option-card.selected .payment-icon-badge {
    background-color: var(--chiro-blue);
    color: #ffffff;
}

/* Content typography */
.payment-content {
    flex-grow: 1;
    min-width: 0;
    padding-top: 0.1rem;
}

.payment-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
}

.payment-option-card:has(.form-check-input:checked) .payment-title,
.payment-option-card.selected .payment-title {
    color: var(--chiro-blue);
}

.payment-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.35;
    color: #475569;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-top: 0.2rem;
}

/* Responsive styles */
@media (max-width: 576px) {
    .payment-option-card {
        padding: 0.75rem 0.85rem;
        border-radius: 0.85rem;
    }
    .payment-option-card .form-check-input {
        width: 1.15rem;
        height: 1.15rem;
        margin-top: 0.2rem;
        margin-right: 0.65rem;
    }
    .payment-icon-badge {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        font-size: 1rem;
        border-radius: 8px;
        margin-right: 0.65rem;
    }
    .payment-title {
        font-size: 1.05rem;
    }
    .payment-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .payment-option-card {
        padding: 0.65rem 0.75rem;
    }
    .payment-icon-badge {
        width: 1.8rem;
        height: 1.8rem;
        min-width: 1.8rem;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    .payment-option-card .form-check-input {
        margin-right: 0.5rem;
    }
}

/* ==========================================================================
   TRAVEL BLOG & SCRAPBOOK STYLES (HOME PAGE)
   ========================================================================== */

/* Washi Tape Accent */
.washi-tape {
    position: absolute;
    height: 28px;
    width: 105px;
    background-color: rgba(242, 169, 0, 0.75); /* Chiro Yellow */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.04) 100%);
    /* Jagged torn edges left and right */
    clip-path: polygon(
        0% 8%, 3% 0%, 97% 0%, 100% 10%,
        98% 30%, 100% 50%, 97% 70%, 100% 90%, 97% 100%,
        3% 100%, 0% 88%, 2% 65%, 0% 45%, 2% 25%
    );
}

.washi-tape-yellow {
    background-color: rgba(242, 169, 0, 0.78);
}

.washi-tape-red {
    background-color: rgba(219, 62, 65, 0.72);
}

.washi-tape-blue {
    background-color: rgba(29, 78, 137, 0.68);
}

.washi-tape-kraft {
    background-color: rgba(228, 216, 192, 0.88);
}

.washi-tape-top-center {
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-1.5deg);
}

.washi-tape-top-left {
    top: -12px;
    left: -12px;
    transform: rotate(-24deg);
    width: 85px;
}

.washi-tape-top-right {
    top: -12px;
    right: -12px;
    transform: rotate(24deg);
    width: 85px;
}

/* ==========================================================================
   INTEGRATED SCRAPBOOK & TRAVEL BLOG STYLES (HOME PAGE)
   ========================================================================== */

/* Overall Page Layout Wrapper */
.scrapbook-canvas {
    overflow-x: clip;
    padding-bottom: 2rem;
}

/* Spread 1: The Integrated Scrapbook Hero Spread */
.scrapbook-hero-spread {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 3rem 2.5rem;
    position: relative;
    margin-bottom: 3.5rem;
}

@media (max-width: 991px) {
    .scrapbook-hero-spread {
        padding: 2.25rem 1.5rem;
        border-radius: 22px;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 576px) {
    .scrapbook-hero-spread {
        padding: 1.75rem 1rem;
        border-radius: 18px;
    }
}

.scrapbook-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fde68a;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.journal-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 700;
    color: var(--chiro-blue);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.journal-main-lead {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    line-height: 1.45;
    color: #475569;
    margin-bottom: 1.75rem;
}

.btn-chiro-outline {
    background-color: transparent;
    color: var(--chiro-blue);
    font-family: var(--font-heading);
    border: 2.5px solid var(--chiro-blue);
    padding: 10px 24px;
    border-radius: 35px;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

.btn-chiro-outline:hover {
    background-color: var(--chiro-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 78, 137, 0.25);
}

.btn-chiro-outline:active {
    transform: translateY(2px);
}

/* Hero Polaroid Cluster (Images integrated as central collage!) */
.hero-photo-cluster {
    position: relative;
    min-height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

@media (max-width: 991px) {
    .hero-photo-cluster {
        min-height: auto;
        padding-top: 1.5rem;
    }
}

.feature-polaroid {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease, z-index 0.1s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.feature-polaroid .polaroid-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-polaroid .polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s ease;
}

.feature-polaroid .polaroid-caption {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 2px;
    line-height: 1.25;
}

.feature-polaroid .polaroid-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    text-align: center;
}

/* Main Hero Polaroid */
.polaroid-main {
    width: 85%;
    max-width: 380px;
    padding: 14px 14px 22px 14px;
    transform: rotate(-2.5deg);
    z-index: 2;
}

.polaroid-main .polaroid-img-wrapper {
    aspect-ratio: 1 / 1;
}

/* Secondary Overlapping Polaroid */
.polaroid-secondary {
    position: absolute;
    width: 55%;
    max-width: 240px;
    bottom: -15px;
    right: 5%;
    padding: 10px 10px 18px 10px;
    transform: rotate(4deg);
    z-index: 3;
}

.polaroid-secondary .polaroid-img-wrapper {
    aspect-ratio: 1 / 1;
}

.polaroid-secondary .polaroid-caption {
    font-size: 1.15rem;
    margin-top: 8px;
}

/* Hover Lift on Hero Photos */
.polaroid-main:hover,
.polaroid-main:focus-within {
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.16);
    z-index: 5;
}

.polaroid-secondary:hover,
.polaroid-secondary:focus-within {
    transform: rotate(0deg) translateY(-8px) scale(1.04);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.18);
    z-index: 6;
}

.feature-polaroid:hover .polaroid-img,
.feature-polaroid:focus-within .polaroid-img {
    transform: scale(1.04);
}

/* Mobile adjustments for hero polaroid cluster */
@media (max-width: 767px) {
    .polaroid-main {
        width: 100%;
        max-width: 320px;
        transform: rotate(-1deg);
        margin: 0 auto;
    }
    .polaroid-secondary {
        position: relative;
        width: 75%;
        max-width: 220px;
        bottom: auto;
        right: auto;
        margin: -25px auto 0 auto;
        transform: rotate(2deg);
    }
}

/* Travel Sticker Badge */
.travel-sticker-badge {
    position: absolute;
    top: 5px;
    left: 10px;
    background: #fef08a;
    color: #854d0e;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    border: 1.5px dashed #ca8a04;
    transform: rotate(-10deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 4;
}

/* Vintage Passport Stamp */
.passport-stamp {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    border: 2.5px dashed var(--chiro-red);
    border-radius: 50%;
    color: var(--chiro-red);
    transform: rotate(-10deg);
    padding: 6px;
    text-align: center;
    font-family: var(--font-heading);
    user-select: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.passport-stamp.stamp-sm {
    width: 65px;
    height: 65px;
}

.passport-stamp:hover {
    transform: rotate(0deg) scale(1.06);
}

.passport-stamp-top {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.passport-stamp-icon {
    font-size: 1.15rem;
    line-height: 1;
    margin: 2px 0;
}

.passport-stamp-bottom {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Spread 2: The Integrated Journal & Story Spread */
.journal-notebook-page {
    position: relative;
    background: #fffdf9;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.75rem 2.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .journal-notebook-page {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }
}

/* Notebook left-side margin line */
.journal-notebook-page::before {
    content: '';
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 26px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--chiro-yellow) 0px,
        var(--chiro-yellow) 6px,
        transparent 6px,
        transparent 10px
    );
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 767px) {
    .journal-notebook-page::before {
        display: none;
    }
}

.journal-notebook-inner {
    position: relative;
    z-index: 2;
    padding-left: 22px;
}

@media (max-width: 767px) {
    .journal-notebook-inner {
        padding-left: 0;
    }
}

.notebook-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    color: var(--chiro-blue);
    font-weight: 700;
}

.notebook-body {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #334155;
}

.notebook-body p {
    margin-bottom: 1.25rem;
}

.notebook-body strong {
    color: #0f172a;
}

/* Scrapbook Sidebar Snapshots */
.sidebar-polaroid {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 12px 12px 18px 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-polaroid .polaroid-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-polaroid .polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.sidebar-polaroid .polaroid-caption {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 2px;
    line-height: 1.25;
}

.sidebar-polaroid .polaroid-tag {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    text-align: center;
}

.polaroid-tilt-right {
    transform: rotate(2deg);
}

.polaroid-tilt-left {
    transform: rotate(-2deg);
}

.sidebar-polaroid:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.02);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
}

.sidebar-polaroid:hover .polaroid-img {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .polaroid-tilt-right,
    .polaroid-tilt-left {
        transform: rotate(0deg);
    }
}

/* Passport Visa Sheet (Stats Integrated as Travel Visas) */
.passport-visa-sheet {
    background: #fcf9f2;
    border: 2px dashed #d1c7b7;
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    position: relative;
}

.visa-sheet-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #d1c7b7;
}

.visa-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #78350f;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.visa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.visa-stamp {
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.visa-stamp:hover {
    transform: translateY(-2px) scale(1.02);
}

.visa-stamp.visa-red {
    border-color: var(--chiro-red);
    background: rgba(219, 62, 65, 0.04);
}

.visa-stamp.visa-blue {
    border-color: var(--chiro-blue);
    background: rgba(29, 78, 137, 0.04);
}

.visa-stamp.visa-yellow {
    border-color: var(--chiro-yellow);
    background: rgba(242, 169, 0, 0.05);
}

.visa-stamp.visa-brown {
    border-color: var(--chiro-brown);
    background: rgba(114, 76, 42, 0.04);
}

.visa-num {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.visa-stamp.visa-red .visa-num { color: var(--chiro-red); }
.visa-stamp.visa-blue .visa-num { color: var(--chiro-blue); }
.visa-stamp.visa-yellow .visa-num { color: #d69400; }
.visa-stamp.visa-brown .visa-num { color: var(--chiro-brown); }

.visa-lbl {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.15;
}

/* Spread 3: Travel Postcards (Integrated Quick Navigation) */
.scrapbook-section-header {
    text-align: center;
    margin-bottom: 2.25rem;
    position: relative;
}

.scrapbook-stamp-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--chiro-red);
    background: rgba(219, 62, 65, 0.08);
    border: 2px dashed var(--chiro-red);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    transform: rotate(-1.5deg);
}

.scrapbook-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--chiro-blue);
    margin-bottom: 0.4rem;
}

.scrapbook-section-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.postcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.postcard-nav-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.postcard-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        45deg,
        var(--chiro-red) 0px,
        var(--chiro-red) 12px,
        #ffffff 12px,
        #ffffff 18px,
        var(--chiro-blue) 18px,
        var(--chiro-blue) 30px,
        #ffffff 30px,
        #ffffff 36px
    );
}

.postcard-nav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.postcard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.postcard-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.postcard-stamp-mini {
    width: 38px;
    height: 46px;
    border: 1.5px dashed #94a3b8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #94a3b8;
    background: #f8fafc;
    transform: rotate(4deg);
}

.postcard-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--chiro-blue);
    margin-bottom: 0.35rem;
}

.postcard-desc {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.35;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.postcard-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--chiro-red);
    transition: transform 0.2s ease;
}

.postcard-nav-card:hover .postcard-arrow {
    transform: translateX(4px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .feature-polaroid,
    .feature-polaroid:hover,
    .sidebar-polaroid,
    .sidebar-polaroid:hover,
    .passport-stamp,
    .visa-stamp,
    .postcard-nav-card {
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Live In-Place Scrapbook Editor (Admin / Media Mode)
   ========================================================================== */

.live-edit-toolbar {
    position: sticky;
    top: 0;
    z-index: 1055;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--chiro-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.live-edit-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #198754;
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(25, 135, 84, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.live-editing-active {
    position: relative;
}

/* Editable Text Elements */
.live-editing-active [data-live-edit][data-live-edit-type="text"],
.live-editing-active [data-live-edit][data-live-edit-type="rich"],
.live-editing-active [data-live-edit-btn] .btn-label {
    cursor: text;
    border-radius: 6px;
    outline: 2px dashed rgba(13, 110, 253, 0.4);
    outline-offset: 3px;
    transition: outline-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.live-editing-active [data-live-edit][data-live-edit-type="text"]:hover,
.live-editing-active [data-live-edit][data-live-edit-type="rich"]:hover,
.live-editing-active [data-live-edit-btn] .btn-label:hover {
    outline-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.06);
}

.live-editing-active [data-live-edit][data-live-edit-type="text"]:focus,
.live-editing-active [data-live-edit][data-live-edit-type="rich"]:focus,
.live-editing-active [data-live-edit-btn] .btn-label:focus {
    outline: 2.5px solid #0d6efd !important;
    outline-offset: 3px;
    background-color: rgba(13, 110, 253, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

/* Editable Image Wrappers */
.live-editing-active [data-live-edit][data-live-edit-type="image"] {
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    outline: 3px dashed rgba(220, 53, 69, 0.55);
    outline-offset: 4px;
    transition: outline-color 0.2s ease, transform 0.2s ease;
}

.live-editing-active [data-live-edit][data-live-edit-type="image"]:hover,
.live-editing-active [data-live-edit][data-live-edit-type="image"].live-drop-hover {
    outline-color: #dc3545;
    outline-style: solid;
    outline-width: 3.5px;
}

.live-editing-active [data-live-edit][data-live-edit-type="image"].live-drop-hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Image Overlay Badge */
.live-image-overlay {
    display: none;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    white-space: nowrap;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
    transition: all 0.2s ease;
}

.live-editing-active .live-image-overlay,
.scrapbook-canvas.admin-logged-in .live-image-overlay {
    display: flex;
}

.scrapbook-canvas.admin-logged-in [data-live-edit][data-live-edit-type="image"]:hover .live-image-overlay {
    background: var(--chiro-blue);
    transform: translateX(-50%) scale(1.05);
}

/* Image Cropper Modal & Workspace */
.cropper-modal-dialog {
    max-width: 94vw;
    width: 1280px;
    margin: 1.25rem auto;
}

@media (min-width: 1600px) {
    .cropper-modal-dialog {
        max-width: 1440px;
    }
}

.cropper-dropzone {
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cropper-dropzone:hover,
.cropper-dropzone.drag-over {
    background: #f1f5f9;
    border-color: var(--chiro-blue) !important;
}

.cropper-container-box {
    background: #0b1120;
    width: 100%;
    height: 65vh;
    min-height: 480px;
    max-height: 75vh;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropper-container-box .cropper-container {
    width: 100% !important;
    height: 100% !important;
}

.cropper-container-box img {
    max-width: 100%;
    display: block;
}

/* Rich Toolbar */
.live-rich-toolbar {
    position: sticky;
    top: 65px;
    z-index: 20;
    max-width: fit-content;
}

.live-rich-toolbar .btn {
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Toast container */
#live-edit-toast-container .toast {
    border-radius: 14px;
    font-family: var(--font-heading);
}

/* ==========================================================================
   GENERALIZED SCRAPBOOK & PLAYFUL STYLES FOR PUBLIC PAGES
   ========================================================================== */

/* Additional washi tape positioning */
.washi-tape-bottom-left {
    bottom: -12px;
    left: -12px;
    transform: rotate(24deg);
    width: 85px;
}

.washi-tape-bottom-right {
    bottom: -12px;
    right: -12px;
    transform: rotate(-24deg);
    width: 85px;
}

.washi-tape-bottom-center {
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(1.5deg);
}

.washi-tape-tilt-left {
    transform: rotate(-3deg);
}

.washi-tape-tilt-right {
    transform: rotate(3deg);
}

.washi-tape-straight {
    transform: none;
}

/* Generalized Scrapbook Page Header */
.scrapbook-page-header {
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2.75rem 2.25rem;
    position: relative;
    margin-bottom: 2.5rem;
}

@media (max-width: 991px) {
    .scrapbook-page-header {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .scrapbook-page-header {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
}

/* General Scrapbook Card */
.scrapbook-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    padding: 2.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 767px) {
    .scrapbook-card {
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }
}

/* Notebook Page Styled Card */
.scrapbook-notebook-card {
    background: #fffdfa;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    padding: 2.5rem 2.25rem;
}

.scrapbook-notebook-card::before {
    content: '';
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 24px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--chiro-yellow) 0px,
        var(--chiro-yellow) 6px,
        transparent 6px,
        transparent 10px
    );
    opacity: 0.55;
    pointer-events: none;
}

@media (max-width: 767px) {
    .scrapbook-notebook-card::before {
        display: none;
    }
    .scrapbook-notebook-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }
}

.scrapbook-notebook-inner {
    padding-left: 20px;
}

@media (max-width: 767px) {
    .scrapbook-notebook-inner {
        padding-left: 0;
    }
}

/* Department Cards (Afdelingen) */
.dept-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    position: relative;
    padding: 1.75rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

.dept-age-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
    letter-spacing: 0.3px;
}

/* Department Themes */
.dept-ribbels .dept-age-badge { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.dept-ribbels .dept-title { color: #7c3aed; }
.dept-ribbels .washi-tape-dept { background-color: rgba(139, 92, 246, 0.72); }

.dept-speelclub .dept-age-badge { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.dept-speelclub .dept-title { color: #d97706; }
.dept-speelclub .washi-tape-dept { background-color: rgba(245, 158, 11, 0.72); }

.dept-rakwis .dept-age-badge { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.dept-rakwis .dept-title { color: #059669; }
.dept-rakwis .washi-tape-dept { background-color: rgba(16, 185, 129, 0.72); }

.dept-titos .dept-age-badge { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.dept-titos .dept-title { color: #dc2626; }
.dept-titos .washi-tape-dept { background-color: rgba(239, 68, 68, 0.72); }

.dept-ketis .dept-age-badge { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.dept-ketis .dept-title { color: #2563eb; }
.dept-ketis .washi-tape-dept { background-color: rgba(37, 99, 235, 0.72); }

.dept-aspis .dept-age-badge { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.dept-aspis .dept-title { color: #ea580c; }
.dept-aspis .washi-tape-dept { background-color: rgba(249, 115, 22, 0.72); }

/* Leader Polaroids (Leiding) */
.leader-polaroid-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 12px 18px 12px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.leader-tilt-left {
    transform: rotate(-1.5deg);
}

.leader-tilt-right {
    transform: rotate(1.5deg);
}

.leader-polaroid-card:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.14);
    z-index: 4;
}

.leader-polaroid-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.leader-polaroid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.leader-polaroid-card:hover .leader-polaroid-img-wrapper img {
    transform: scale(1.05);
}

.leader-polaroid-caption {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.leader-polaroid-sub {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

/* Calendar Ticket Cards */
.calendar-ticket-item {
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px dashed #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    padding: 1.25rem 1.5rem;
    position: relative;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.calendar-ticket-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--chiro-blue);
}

.calendar-ticket-stamp {
    width: 72px;
    height: 72px;
    background: #ffffff;
    border: 2px solid var(--chiro-blue);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(29, 78, 137, 0.12);
    flex-shrink: 0;
}

.calendar-ticket-stamp .calendar-ticket-day {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--chiro-blue);
}

.calendar-ticket-stamp .calendar-ticket-month {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--chiro-red);
}

/* Shirt Merchandise Cards */
.shirt-showcase-box {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    position: relative;
    text-align: center;
}

.shirt-price-stamp {
    position: absolute;
    top: -15px;
    right: -10px;
    background: var(--chiro-yellow);
    color: #1e293b;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 30px;
    transform: rotate(6deg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 2px dashed rgba(0, 0, 0, 0.15);
    z-index: 4;
}

.shirt-receipt-box {
    background: #fffdf7;
    border: 2px dashed #e2d9c8;
    border-radius: 20px;
    padding: 1.75rem;
    position: relative;
}

/* Contact Postcard Letter */
.contact-postcard-box {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-postcard-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        45deg,
        var(--chiro-red) 0px,
        var(--chiro-red) 14px,
        #ffffff 14px,
        #ffffff 20px,
        var(--chiro-blue) 20px,
        var(--chiro-blue) 34px,
        #ffffff 34px,
        #ffffff 40px
    );
}





