:root {
    --deep-navy: #0A1628;
    --mariner-blue: #286ACD;
    --water-leaf-mint: #A3E4DB;
    --light-pink: #FED1E1;
    --dark-pink: #F871B4;
    --white: #FFFFFF;
    --red-peach: #ff6477;

    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-premium: 0 10px 40px rgba(10, 22, 40, 0.12);

    /* 3-Color Gradient */
    --gradient-3: linear-gradient(90deg, var(--mariner-blue) 0%, var(--water-leaf-mint) 50%, var(--light-pink) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Thai', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for the fixed navbar */
}

body {
    background-color: var(--deep-navy);
    color: var(--deep-navy);
    min-height: 100vh;
    overflow-x: hidden;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/background.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 1000;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, background-color, width;
}

.navbar.scrolled {
    transform: translateX(-50%) translateY(0) !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 38px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

button {
    cursor: pointer;
    border: none;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 12px;
    transition: all 0.2s;
}

button:active {
    transform: scale(0.95);
}

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

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

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

.btn-pink2 {
    background-color: var(--dark-pink);
    color: var(--white);
    font-size: large;
}

.btn-blue2 {
    background-color: var(--mariner-blue);
    color: white;
    font-size: large;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 80px auto 0;
    /* Add top margin for fixed navbar */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    /* Center children */
}

.main-container>section {
    width: 100%;
    /* Ensure all sections fill the container */
}

/* Hero Section */
.hero-card {
    padding: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
        "text slider"
        "button slider";
    column-gap: 40px;
    align-items: center;
}

.hero-text {
    grid-area: text;
}

.hero-slider {
    grid-area: slider;
}

.hero-action-buttons {
    grid-area: button;
    align-self: start;
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}


.gradient-text {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    word-break: break-word;
    /* Fix for mobile overflow */
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-text p {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #4A5568;
}

.hero-text .event-info-container {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.event-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 10px;
    color: var(--mariner-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.event-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2D3748;
}

.btn-hero {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, filter 0.3s;
    width: 100%;
}

.btn-hero-radius20 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.3s, filter 0.3s;
    width: 100%;
}

.btn-hero-primary {
    background: var(--gradient-3);
    color: white;
    box-shadow: 0 10px 20px rgba(248, 113, 180, 0.25);
}

.btn-hero-primary:hover {
    filter: brightness(1.1);
}

.btn-hero-secondary {
    background-color: var(--mariner-blue);
    color: white;
    box-shadow: 0 10px 20px rgba(40, 106, 205, 0.25);
}

.btn-hero-red-peach {
    background-color: var(--red-peach);
    color: white;
    box-shadow: 0 10px 20px rgba(40, 106, 205, 0.25);
}

.btn-hero:hover {
    transform: translateY(-3px);
}

/* Slider Improvements */
.hero-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    cursor: zoom-in;
    /* Click to expand */
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.slide {
    min-width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* Slider Arrows - Smaller & Perfectly Round */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.slider-nav button {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.5;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--mariner-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0;
    line-height: 1;
}

.slider-nav button:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.slider-nav button:active {
    transform: scale(0.95);
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 10px;
}

/* Stats Section */
.stats-container-row {
    width: 100%;
    margin-bottom: 20px;
}

.stats-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 992px) {
    .stats-grid-wrapper {
        grid-template-columns: 1.5fr 1fr;
    }
}

.stats-card {
    padding: 30px;
}

.stats-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #718096;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.stats-label.light {
    color: #A0AEC0;
}

.progress-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-bar-container-new {
    width: 100%;
}

.progress-bar-bg-custom {
    height: 18px;
    background: #F3F3F3;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.progress-bar-fill-custom {
    height: 100%;
    background: var(--gradient-3);
    border-radius: 50px;
    transition: width 1s ease-out;
}

.amount-display-custom {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.current-amount-custom {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563EB;
}

.amount-separator {
    font-size: 1.5rem;
    color: #4E9FFF;
    font-weight: 300;
}

.target-amount-custom {
    font-size: 1.8rem;
    font-weight: 600;
    color: #a5cdfe;
}

.donation-status-msg {
    margin-top: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4A5568;
    text-align: center;
    transition: all 0.3s ease;
}

.donation-remark-msg {
    margin-top: 10px;
    font-size: 0.6rem;
    font-weight: 500;
    color: #949494;
    text-align: center;
    transition: all 0.3s ease;
}

.status-short {
    color: #2D3748;
}

.status-over {
    color: #38A169;
}

.donation-card {
    text-align: center;
}

/* Timer Card Specs */
.timer-card {
    text-align: center;
}

.glass-dark {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.timer-box-new {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    padding: 15px 30px;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.timer-grid-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    min-width: 50px;
}

.timer-unit span {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.timer-unit small {
    font-size: 0.65rem;
    opacity: 0.5;
    letter-spacing: 1px;
    margin-top: 5px;
}

.timer-sep {
    font-size: 1.5rem;
    opacity: 0.3;
}

.timer-end-text {
    font-size: 0.85rem;
    color: #A0AEC0;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

.glass-light {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
}

/* Content Row */
.content-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.latest-donations-card {
    padding: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.live-badge {
    background: var(--light-pink);
    color: #E53E3E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.live-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #E53E3E;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.9);
        opacity: 1;
    }
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table-container th:nth-child(1),
.table-container td:nth-child(1) {
    width: 48%;
    text-align: left;
    padding-left: 5px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.table-container th:nth-child(2),
.table-container td:nth-child(2) {
    width: 22%;
    text-align: center;
}

.table-container th:nth-child(3),
.table-container td:nth-child(3) {
    width: 30%;
    text-align: right;
    padding-right: 5px;
}

.table-container td {
    padding: 10px 5px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    vertical-align: middle;
}

.status-badge-pending {
    display: inline-block;
    background: #FFFBEB;
    color: #F59E0B;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    margin-top: 3px;
    border: 1px solid #FEF3C7;
    white-space: nowrap;
}

.donor-name {
    font-weight: 600;
    color: #2D3748;
}

.table-container .amount {
    color: #2563EB;
    font-weight: 800;
}

.table-container .price-text {
    display: block;
    width: 100%;
}

.table-container .date {
    color: #718096;
    font-size: 0.8rem;
    line-height: 1.3;
}

.table-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.total-items {
    grid-column: 3;
    justify-self: end;
    font-size: 0.7rem;
    color: #718096;
    font-weight: 500;
}

.pagination {
    grid-column: 2;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pag-dots {
    color: #A0AEC0;
    margin: 0 4px;
}

.pagination button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.pagination button.active {
    background: var(--mariner-blue);
    color: white;
    border-color: var(--mariner-blue);
}

.poster-card {
    cursor: pointer;
    overflow: hidden;
}

.poster-card img {
    width: 100%;
    border-radius: 18px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.poster-card:hover img {
    transform: scale(1.03);
}

/* Donate Row & QR Card */
.donate-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 35px;
}

.qr-card {
    padding: 35px;
    text-align: center;
    background: white;
}

.qr-main-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0A1628;
    margin-bottom: 20px;
}

.thai-qr-banner {
    background: #1C4E80;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.qr-payment-logo {
    height: 25px;
    filter: brightness(0) invert(1);
}

.promptpay-mini-logo {
    height: 25px;
    margin-bottom: 20px;
}

.qr-container-new {
    padding: 15px;
    background: white;
    display: inline-block;
    margin-bottom: 25px;
}

.qr-image-large {
    width: 280px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.qr-image-large:hover {
    transform: scale(1.02);
}

.account-info-box {
    background: #F7FAFC;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.bank-icon-k {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-icon-k img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-name {
    font-size: 0.85rem;
    color: #718096;
}

.account-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0A1628;
}

.account-number-wrapper {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #E2E8F0;
}

.account-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0A1628;
    letter-spacing: 1px;
}

.btn-copy {
    background: white;
    border: 1px solid #E2E8F0;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--mariner-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-copy:hover {
    background: #F7FAFC;
    border-color: var(--mariner-blue);
}

.gradient-btn-3 {
    background: var(--gradient-3);
    color: white;
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(163, 228, 219, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.celebration-card {
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.highlight-blue {
    color: var(--mariner-blue);
    margin-bottom: 20px;
}

.celebration-content h2 {
    font-size: 2rem;
    font-weight: 700;
}

.celebration-content .description {
    line-height: 1.8;
    color: #4A5568;
    margin: 0 auto 30px auto;
    max-width: 500px;
}

.quote-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    box-shadow: var(--shadow-premium);
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 2.5rem;
    color: #BEE3F8;
    line-height: 1;
}

.quote-box p {
    font-size: 0.95rem;
    color: #718096;
    font-style: italic;
}

/* Footer */
.footer {
    padding: 60px 20px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 60px;
    height: auto;
    margin-bottom: 25px;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(40, 106, 205, 0.2));
}

.footer-logo:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #4A5568;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mariner-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.footer-links a:hover {
    color: var(--mariner-blue);
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-divider {
    width: 100%;
    max-width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(40, 106, 205, 0.2), transparent);
    margin-bottom: 25px;
}

.copyright {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
}

/* Utils */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none !important;
}

/* Lightbox - Advanced Slider */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
}

.lightbox-content img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    z-index: 2100;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .main-container {
        margin-top: 100px;
    }

    .hero-grid,
    .stats-row,
    .content-row,
    .donate-row {
        grid-template-columns: 1fr;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .timer-grid-custom {
        gap: 8px;
        /* Reduce gap on mobile */
    }

    .timer-box-new {
        padding: 15px 15px;
        /* Reduce side padding */
        max-width: 100%;
    }

    .timer-unit {
        min-width: 40px;
        /* Allow shrinking */
    }

    .timer-unit span {
        font-size: 1.5rem;
        /* Smaller clock numbers on mobile */
    }

    .timer-sep {
        font-size: 1.2rem;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        grid-template-areas: none;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        order: 1;
        padding: 4px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-slider {
        order: 2;
        width: 100%;
    }

    .hero-action-buttons {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .main-container {
        padding: 0 15px !important;
        /* Force equal side paddings */
        margin-top: 110px !important;
        /* Increase space from navbar */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center items */
    }

    .hero-section,
    .stats-container-row,
    .content-row,
    .donate-row {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-card,
    .stats-card,
    .latest-donations-card,
    .poster-card,
    .qr-card,
    .celebration-card {
        width: 100% !important;
        max-width: 100% !important;
        /* Ensure it never exceeds parent */
        margin: 0 0 15px 0 !important;
        padding: 15px 12px !important;
        /* Even less padding */
        box-sizing: border-box !important;
        border-radius: 18px !important;
    }

    .hero-text .event-info-container {
        margin: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

@media (max-width: 640px) {

    .nav-container {
        padding: 10px 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .btn-pink,
    .btn-blue {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .btn-pink2,
    .btn-blue2 {
        width: 300px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .stats-card {
        padding: 30px 20px;
    }

    .current-amount {
        font-size: 1.4rem !important;
        line-height: 1.2;
    }

    .target-amount {
        font-size: 1rem !important;
    }

    .countdown-box {
        padding: 12px 5px !important;
        /* Smaller padding */
        border-radius: 15px !important;
    }

    .timer-grid {
        gap: 8px !important;
        /* Narrower gap */
    }

    .timer-item {
        min-width: 45px !important;
    }

    .timer-item span {
        font-size: 1.3rem !important;
    }

    .timer-item small {
        font-size: 0.5rem !important;
        letter-spacing: 0.5px !important;
    }

    .separator {
        font-size: 1rem !important;
    }
}

.btn-map {
    display: inline-flex;
    align-items: center;
    background: var(--mariner-blue);
    color: white !important;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(40, 106, 205, 0.2);
    vertical-align: middle;
}

.btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 106, 205, 0.3);
}

/* Quote Marquee Section */
.quote-marquee-container {
    padding: 5px 0;
    overflow: hidden;
    background: transparent;
    width: 100%;
    margin-bottom: 5px;
}

.marquee-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto !important;
}

.marquee-wrapper::-webkit-scrollbar {
    display: none;
}

.marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
}



.quote-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    flex-shrink: 0;
}

.quote-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 25px 35px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.quote-text {
    color: #4A5568;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}

.quote-mark {
    position: absolute;
    color: #A3E4DB;
    font-size: 4rem;
    font-family: 'serif';
    line-height: 1;
    opacity: 0.6;
    user-select: none;
}

.quote-mark.left {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.quote-mark.right {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.quote-author {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #718096;
    font-weight: 700;
    opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .quote-card-wrapper {
        width: 280px;
    }

    .quote-card {
        height: 120px;
        padding: 20px 30px;
    }

    .quote-text {
        font-size: 0.85rem;
    }
}

.table-container th {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4A5568;
    padding: 12px 5px;
}

.table-container thead th {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #4A5568 !important;
    padding: 12px 5px !important;
}
/* Force smallest table headers */
.table-container table thead tr th {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    padding: 8px 4px !important;
}
