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

body {
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    font-size: 17px;
    color: rgba(96, 96, 96, 1);
    line-height: 30px;
    background-color: #fafafa;
}

.title-font {
    font-family: "Afacad", sans-serif !important;
    font-weight: 600 !important;
    font-size: 40px;
}

/* ==========================================================================
   Uniform Admin Dashboard UI
   ========================================================================== */

:root {
    --admin-primary: #F7B619;
    --admin-secondary: #00CFC1;
    --admin-bg: #fafafa;
    --admin-card-bg: #ffffff;
    --admin-border: #E5E7EB;
    --admin-radius: 12px;
    --admin-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --admin-text: #111827;
    --admin-text-muted: #6B7280;
}

/* Global Font Override */
* {
    font-family: 'Nunito', sans-serif !important;
}

input#media-lib-search {
    padding-left: 40px !important;
}

/* Icons styling in Font Awesome needs to respect their own font family */
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free" !important;
}

/* Cards & Containers */
.card-uniform,
.my-4.py-4 {
    background: var(--admin-card-bg) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: var(--admin-radius) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 1.5rem !important;
    overflow: visible;
}

.black-overlay {
    background: #00000025;
}

/* Section Headers */
.my-4.py-4>.px-5.py-4.border-b,
.my-4.py-4>div>.px-5.py-4.border-b {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 1rem 1.5rem !important;
}

.h-355 {
    height: 355px;
}

.my-4.py-4>.px-5.py-4.border-b h2,
.my-4.py-4>div>.px-5.py-4.border-b h2,
.my-4.py-4>.px-5.py-4.border-b h3,
.my-4.py-4>div>.px-5.py-4.border-b h3 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-4.py-4>.px-5.py-4.border-b h2::before,
.my-4.py-4>div>.px-5.py-4.border-b h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #1f2937;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Clone Sections (Banner Slider, Team Member, etc.) */
.clone-section {
    background: #fcfcfd !important;
    border: 1px solid #e5e7eb !important;
    border-left: 4px solid #1f2937 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    margin: 1rem 1.25rem !important;
    overflow: visible;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.clone-section:hover {
    border-left-color: #111827 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Clone section title (Banner Slider 1, Team Member 1, etc.) */
.clone-section h4 {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
    background: #f9fafb;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clone-section h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #1f2937;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Inner content box (non-clone) — remove border for clean look */
.my-4.py-4>.relative.m-5.rounded-2xl,
.my-4.py-4>.relative.m-5.overflow-hidden.rounded-2xl,
.my-4.py-4 .relative.m-5.overflow-hidden.rounded-2xl:not(.clone-section) {
    border: none !important;
    box-shadow: none !important;
    margin: 0 0.5rem !important;
    border-radius: 0 !important;
}

/* Remove top border-t from direct children of borderless inner boxes */
.my-4.py-4>.relative.m-5>.border-t,
.my-4.py-4 .relative.m-5.overflow-hidden:not(.clone-section)>.border-t {
    border-top: none !important;
}

/* Inputs & Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="url"],
textarea,
select {
    width: 100%;
    background-color: #fff !important;
    border: 1px solid #D1D5DB;
    border-radius: 8px !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    color: var(--admin-text) !important;
    transition: all 0.2s !important;
    outline: none !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Table Uniformity */
.tabulator,
.table-container table {
    border: none !important;
    border-radius: 0 !important;
    overflow: visible;
    background: #fff !important;
}

.tabulator-header,
thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: 1px solid #e2e8f0 !important;
}

.tabulator-row,
tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
    background-color: #fff !important;
}

.tabulator-row:hover,
tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Table Icons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 0 3px;
    border: 1px solid transparent;
}

.btn-edit-uniform {
    color: #f7b619;
    background: rgba(247, 182, 25, 0.08);
    border-color: rgba(247, 182, 25, 0.15);
}

.btn-edit-uniform:hover {
    background: #f7b619;
    color: #fff;
    border-color: #f7b619;
    box-shadow: 0 2px 8px rgba(247, 182, 25, 0.3);
}

.btn-delete-uniform {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.12);
}

.btn-delete-uniform:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Search Input Alignment moved to admin-components.css for higher specificity */

/* Status Filter Select */
#status-filter {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

#status-filter:focus {
    outline: none;
    background-color: #fff;
    border-color: #f7b619;
    box-shadow: 0 0 0 3px rgba(247, 182, 25, 0.1);
}

#status-filter option {
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #374151;
    background: #fff;
}

#status-filter option:checked {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
}

#status-filter option:hover {
    background: #3b82f6;
    color: #fff;
}

/* Bottom Action Bar */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 240px;
    /* sidebar width */
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--admin-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1280px) {
    .bottom-action-bar {
        left: 0;
    }
}

/* Cloned Section Buttons */
.btn-add-section {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: #111827;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-add-section:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-remove-section,
.remove-section,
.remove-member,
.remove-gallery-event,
.remove-counter-item,
.remove-story-card,
.remove-report-card,
.remove-award-card,
.remove-volunteer-field,
.remove-overview-item,
.remove-init-card,
.remove-counter {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FEE2E2;
    color: #DC2626;
    border-radius: 8px;
    border: 1px solid #FECACA;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 13px;
    z-index: 5;
}

.btn-remove-section:hover,
.remove-section:hover,
.remove-member:hover,
.remove-gallery-event:hover,
.remove-counter-item:hover,
.remove-story-card:hover,
.remove-report-card:hover,
.remove-award-card:hover,
.remove-volunteer-field:hover,
.remove-overview-item:hover,
.remove-init-card:hover,
.remove-counter:hover {
    background: #DC2626;
    color: #fff;
    border-color: #DC2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
    transform: scale(1.05);
}

/* Add section buttons inside edit pages */
.my-4.py-4>.px-5.py-2 button,
.my-4.py-4>div>.px-5.py-2 button,
#add-banner-section,
#add-team-member,
#add-gallery-event,
#add-counter,
#add-highlight-item,
#add-story-card,
#add-report-card,
#add-award-card,
#add-init-card,
#add-banner-stat,
#add-overview-item,
#add-sdg-item,
#add-video-item,
#add-list-item {
    background: #111827 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.my-4.py-4>.px-5.py-2 button:hover,
.my-4.py-4>div>.px-5.py-2 button:hover,
#add-banner-section:hover,
#add-team-member:hover,
#add-gallery-event:hover {
    background: #1f2937 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px);
}

/* Standardized File Input & Preview */
.image-preview-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.image-preview-wrapper>div,
.new-image-preview {
    position: relative;
    width: fit-content;
    display: inline-block;
    overflow: visible !important;
}

.image-preview-wrapper img {
    width: 180px;
    height: 108px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s;
}

.image-preview-wrapper:hover img {
    border-color: #d1d5db;
}

.image-preview-wrapper .remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    background: #DC2626;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    transition: all 0.2s;
    border: 2px solid #fff;
    z-index: 2;
}

.image-preview-wrapper .remove-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* Ensure remove buttons are never clipped by overflow:hidden parents */
.new-image-preview,
.new-image-preview>div,
.flex-col>div:has(> .remove-btn),
div:has(> .remove-btn) {
    overflow: visible !important;
}

/* Clone sections & card containers must not clip remove buttons */
.clone-section,
.clone-section>div,
.my-4.py-4 .grid,
.my-4.py-4 .flex-col,
.relative.m-5,
.relative.m-5.overflow-hidden {
    overflow: visible !important;
}

/* Any Tailwind overflow-hidden that contains a remove button */
.overflow-hidden:has(.remove-btn) {
    overflow: visible !important;
}

/* Also style new-image-preview from JS */
.new-image-preview {
    position: relative;
    display: inline-block;
    margin-top: 8px;
}

.new-image-preview img {
    width: 180px !important;
    height: 108px !important;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.new-image-preview .remove-btn,
.new-image-preview .remove-new-preview {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3) !important;
    border: 2px solid #fff !important;
}

/* Custom upload button - hides native file input, shows clean button */
.file-input-uniform {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none;
}

/* Also hide native file inputs outside CKEditor */
input[type="file"]:not(.file-input-uniform):not(.ck-hidden):not([data-ck-upload]) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none;
}

/* Never hide file inputs inside CKEditor */
.ck input[type="file"],
.ck-editor input[type="file"],
.ck-body input[type="file"],
.ck-content input[type="file"] {
    position: static !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

/* Hide upload-btn created inside CKEditor by accident */
.ck .upload-btn,
.ck-editor .upload-btn,
.ck-body .upload-btn,
.ck-balloon-panel .upload-btn {
    display: none !important;
}

/* Hide manual upload button - only Media Library should show */
.upload-btn {
    display: none !important;
}

.upload-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.upload-btn i {
    font-size: 1.125rem;
    color: #6b7280;
}


.title-font span {
    color: rgba(247, 182, 25, 1);
}

label.error {
    color: #ef4444;
    font-size: 12px;
    line-height: 1.3;
    margin: 4px 0 0;
    display: block;
    font-weight: 500;
}

/* ==========================================
   Edit Page — Section & Field Enhancements
   ========================================== */

/* Main section outer cards - better spacing */
.pb-24>.my-4.py-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 1rem !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
}

/* Alternate section coloring for visual separation */
.pb-24>.my-4.py-4:nth-child(even) {
    background: #fefefe !important;
}

.pb-24>.my-4.py-4:nth-child(odd) {
    background: #ffffff !important;
}

/* Field labels inside edit forms */
.clone-section label,
.my-4.py-4 .grid label {
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-bottom: 0.375rem !important;
}

/* Inner grid (fields area) - clean padding */
.clone-section .grid.grid-cols-1 {
    padding: 1rem 1.25rem !important;
}

/* Gallery dropzone styling */
.dropzone-gallery {
    border: 2px dashed #d1d5db !important;
    border-radius: 12px !important;
    background: #fafafa !important;
    padding: 1.5rem !important;
    transition: all 0.25s;
}

.dropzone-gallery:hover {
    border-color: #9ca3af !important;
    background: #f9fafb !important;
}

.dropzone-gallery .dz-message {
    color: #6b7280;
}

/* Media gallery grid items */
.media-preview {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
    cursor: grab;
}

.media-preview:active {
    cursor: grabbing;
}

.media-preview:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Sortable drag states */
.sortable-ghost {
    opacity: 0.3;
    border: 2px dashed #9ca3af !important;
}

.sortable-chosen {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.02);
    z-index: 10;
}

.sortable-drag {
    opacity: 0.9;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Flex gap for image previews within wrapper */
.image-preview-wrapper .flex.gap-2 {
    gap: 12px !important;
}

/* Inner border-t sections within clone sections */
.clone-section .border-t.border-gray-200,
.clone-section .border-t.border-gray-100 {
    border-top-color: #f0f0f0 !important;
}


p {
    line-height: 27px;
}

/* ==========================================================================
   CMS / WYSIWYG Content Styling
   Restores heading, list, and paragraph styles stripped by Tailwind's reset.
   Wrap CKEditor output with .cms-content to apply these styles.
   ========================================================================== */
.cms-content h1 {
    font-family: "Afacad", sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 16px;
}

.cms-content h2 {
    font-family: "Afacad", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: #111827;
    margin-bottom: 14px;
}

.cms-content h3 {
    font-family: "Afacad", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 12px;
}

.cms-content h4 {
    font-family: "Afacad", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    margin-bottom: 10px;
}

.cms-content p {
    font-family: "Nunito", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 27px;
    color: rgba(96, 96, 96, 1);
    margin-bottom: 12px;
}

.cms-content ul {
    list-style-type: disc;
    padding-left: 24px;
    margin-bottom: 14px;
}

.cms-content ol {
    list-style-type: decimal;
    padding-left: 24px;
    margin-bottom: 14px;
}

.cms-content li {
    font-family: "Nunito", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 27px;
    color: rgba(96, 96, 96, 1);
    margin-bottom: 6px;
}

.cms-content strong,
.cms-content b {
    font-weight: 700;
    color: #111827;
}

.cms-content a {
    color: #f7b619;
    text-decoration: underline;
}

.cms-content a:hover {
    color: #d4990e;
}

.cms-content blockquote {
    border-left: 4px solid #f7b619;
    padding-left: 16px;
    margin: 16px 0;
    font-style: italic;
    color: #4b5563;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.cms-content th,
.cms-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
    font-size: 16px;
}

.cms-content th {
    background-color: #f9fafb;
    font-weight: 700;
    color: #111827;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cms-content h1 {
        font-size: 30px;
    }

    .cms-content h2 {
        font-size: 24px;
    }

    .cms-content h3 {
        font-size: 20px;
    }

    .cms-content h4 {
        font-size: 18px;
    }

    .cms-content p,
    .cms-content li {
        font-size: 15px;
        line-height: 25px;
    }
}

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes scroll-down {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0%);
    }
}

.animate-scroll-up {
    animation: scroll-up 15s linear infinite;
}

.animate-scroll-down {
    animation: scroll-down 15s linear infinite;
}

.sidebar-link.active {
    border-left: 4px solid #06b6d4;
    color: #1f2937;
    font-weight: 600;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

/* Make pagination dots visible and styled */
.swiper-pagination-bullet {
    width: 18px;
    height: 18px;
    background: rgb(17 13 13 / 95%);
    /* Make them visible */
    margin: 0 4px;
    border-radius: 9999px;
    transition: background-color 0.3s;
}

.swiper-pagination-bullet-active {
    background-color: rgba(81, 81, 81, 1);
    /* Active dot color */
}

.trustee-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgb(17 13 13 / 95%);
    /* Make them visible */
    margin: 0 4px;
    border-radius: 9999px;
    transition: background-color 0.3s;
}

.trustee-pagination-bullet-active {
    background-color: rgba(81, 81, 81, 1);
    /* Active dot color */
}

.border-custom-gray {
    border-color: rgba(228, 222, 222, 1);
}

.split {
    opacity: 0;

    letter-spacing: 0.05rem;
    will-change: transform;
    color: white;
}

.split * {
    will-change: transform;
}

.circle {
    position: relative;
    text-align: center;
}

.circle strong {
    position: absolute;
    top: 28px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 22px;
    color: #111;
}

.circle span {
    font-size: 12px;
}

/* Optional: Slow spin utility for any use */
@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #919191;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #717171;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #919191 #f1f1f1;
}

.no-scrollbar::-webkit-scrollbar {
    display: block;
}

.no-scrollbar {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
}

/* Skeleton Loader Styles */
.skeleton-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    /* Adjusted to match horizontal card */
    gap: 24px;
    padding: 24px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #EBEBEB;
    width: 100%;
}

.skeleton-image {
    width: 22%;
    height: 300px;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.skeleton-text {
    background-color: #f0f0f0;
    margin-bottom: 12px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    height: 15px;
}

.skeleton-title {
    width: 40%;
    height: 28px;
    margin-bottom: 24px;
}

.skeleton-excerpt {
    width: 100%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-excerpt:last-child {
    width: 80%;
}

.skeleton-footer {
    width: 200px;
    height: 45px;
    margin-top: auto;
    align-self: flex-end;
    border-radius: 4px;
}

.shimmer::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(255, 255, 255, 0.7) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 1.5s infinite;
    content: '';
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-modal {
    animation: modalFade 0.35s ease-out;
}

@media (min-width: 768px) {
    .bg-transparent {
        background-color: transparent;
    }
}

@media (min-width: 1280px) {
    .activities-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
        /* gap-10 */
        transform: none !important;
    }

    .activities-swiper .swiper-slide {
        width: auto !important;
    }
}


@media (max-width: 768px) {
    .skeleton-card {
        flex-direction: column;
    }

    .bg-black-50 {
        background-color: #00000080;
    }

    .skeleton-image {
        width: 100%;
        height: 200px;
    }

    .skeleton-footer {
        align-self: flex-start;
    }
}


@media screen and (max-width: 768px) {
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Impact Stories Page Styles */
.description-container p {
    margin-bottom: 0;
}

.story-card,
.report-card {
    border-radius: 25.61px;
    background: #FFFFFF;
    box-shadow: 0px 6.4px 9.6px -6.4px #0000001A;
    transition: all 0.5s ease;
    overflow: hidden;
}

.story-card:hover,
.report-card:hover {
    box-shadow: 0px 16px 24.01px -4.8px #0000001A;
}

.story-card {
    border-top: 0.98px solid #0000001A;
}

/* Skeleton Specific Styles for Impact Page */
.skeleton-impact-story {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #EBEBEB;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skeleton-report-card {
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid #EBEBEB;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skeleton-image-box {
    height: 250px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.skeleton-report-image-box {
    height: 280px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.skeleton-text-line {
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-title-line {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(40px) scale(0.96);
    }
}

/* ==========================================================================
   SweetAlert2 Custom Popup Styles
   ========================================================================== */
.swal-custom-popup {
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem 1rem !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    font-family: 'Nunito', sans-serif !important;
    max-width: 340px !important;
    width: 340px !important;
    border: none !important;
}

.swal-custom-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

.swal-custom-popup .swal2-title {
    display: none !important;
}

.swal-custom-popup .swal2-icon {
    display: none !important;
}

.swal-custom-actions {
    gap: 8px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.swal-confirm-btn {
    border-radius: 10px !important;
    padding: 9px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: 'Nunito', sans-serif !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.swal-confirm-btn:hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-1px) !important;
}

.swal-cancel-btn {
    border-radius: 10px !important;
    padding: 9px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: 'Nunito', sans-serif !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease !important;
}

.swal-cancel-btn:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
}

/* ==========================================================================
   Force Light Mode — Override all dark: Tailwind classes
   ========================================================================== */

/* Override dark backgrounds on all elements */
@media (prefers-color-scheme: dark) {

    *,
    *::before,
    *::after {
        --tw-bg-opacity: 1 !important;
        --tw-text-opacity: 1 !important;
        --tw-border-opacity: 1 !important;
        color-scheme: light !important;
    }

    /* Force light backgrounds */
    .dark\:bg-gray-800,
    .dark\:bg-gray-900,
    .dark\:bg-dark-900,
    .dark\:bg-\[\#0a0a0a\],
    [class*="dark:bg-gray-8"],
    [class*="dark:bg-gray-9"],
    [class*="dark:bg-dark"] {
        background-color: #fff !important;
        background: #fff !important;
    }

    /* Force light borders */
    .dark\:border-gray-700,
    .dark\:border-gray-600,
    [class*="dark:border-gray-7"],
    [class*="dark:border-gray-6"] {
        border-color: #D1D5DB !important;
    }

    /* Force dark text (not white) */
    .dark\:text-white\/90,
    .dark\:text-white,
    .dark\:text-gray-400,
    .dark\:text-gray-300,
    [class*="dark:text-white"],
    [class*="dark:text-gray-"] {
        color: #1f2937 !important;
    }

    /* Force light placeholder text */
    .dark\:placeholder\:text-white\/30::placeholder,
    [class*="dark:placeholder:text-white"]::placeholder {
        color: #9CA3AF !important;
    }

    /* Force light body */
    body {
        background-color: #fafafa !important;
        color: #1D1D1D !important;
    }

    /* Force light inputs */
    input,
    textarea,
    select {
        background-color: #fff !important;
        color: #111827 !important;
        border-color: #D1D5DB !important;
    }

    /* Force light cards and containers */
    .rounded-xl,
    .rounded-2xl,
    .rounded-lg {
        background-color: inherit;
    }

    /* Clone sections light */
    .clone-section {
        background: #fcfcfd !important;
    }

    /* Force dropzone light */
    .dropzone-gallery {
        background: #fafafa !important;
        border-color: #d1d5db !important;
    }

    /* Media gallery container light */
    .media-gallery-container {
        background: #f9fafb !important;
        border-color: #D1D5DB !important;
    }

    /* YouTube links section light */
    .youtube-links-section {
        background: #f9fafb !important;
        border-color: #D1D5DB !important;
    }

    /* Menu item rows */
    .menu-item-row {
        background: #fff !important;
        border-color: #e5e7eb !important;
    }

    /* Table rows */
    .tabulator-row,
    tbody tr {
        background-color: #fff !important;
    }

    /* Table header */
    .tabulator-header,
    thead th {
        background-color: #f8fafc !important;
    }
}

h1.title-font .line {
    font-family: "Afacad" !important;
}
/* Dropdown menu white background fix */
header nav .group > ul,
nav .group > ul {
    background-color: #ffffff !important;
}
