/* -------------------------------- */
/* 1. Global Base Styles            */
/* -------------------------------- */
* {
    box-sizing: border-box;
    font-family: "Manrope", sans-serif;
    margin: 0;
    padding: 0;
    /* user-select: none; */
}

/* Global Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

/* -------------------------------- */
/* 2. CSS Variables & Themes        */
/* -------------------------------- */
:root {
    --bg-color-body: #E2E8F0;
    --bg-color-sidebar: #E2E8F0;
    --bg-color-navbar: #E2E8F0;
    --bg-color-primary: #52a9f4;
    --bg-color-secondary: #45556c;
    --text-color-body: #212529;
    --text-color-sidebar: #212529;
    --text-color-navbar: #212529;
    --text-color-primary: #E2E8F0;
    --text-color-secondary: #E2E8F0;

    --input-color: #f1f5f9;
    --border-color: #cccccc;
    --scrollbar-color: #0b89a8;
    --active-color: #288be7;
    --hover-color: #f1f5f9;
    --box-shadow: rgba(0, 0, 0, 0.1);

    --color-primary: #7688a5;
    --color-secondary: #45556c;
    --color-accent: #288be7;
    --color-warning: #ffc107;
    --color-info: #0d6efd;
    --color-success: #198754;
    --color-danger: #dc3545;
    --color-muted: #888;
    --color-light: #fafafa;
    --color-dark: #000000;
}

[data-theme='dark'] {
    --bg-color-body: #1D293D;
    --bg-color-sidebar: #1D293D;
    --bg-color-navbar: #1D293D;
    --bg-color-primary: #52a9f4;
    --bg-color-secondary: #45556c;
    --text-color-body: #E2E8F0;
    --text-color-sidebar: #E2E8F0;
    --text-color-navbar: #E2E8F0;
    --text-color-primary: #E2E8F0;
    --text-color-secondary: #E2E8F0;

    --input-color: #45556c;
    --border-color: #666666;
    --scrollbar-color: #555555;
    --active-color: #288be7;
    --hover-color: #45556c;
    --box-shadow: rgba(255, 255, 255, 0.1);
}

/* -------------------------------- */
/* 3. HTML Element Defaults         */
/* -------------------------------- */
body {
    /* background: var(--bg-color-body);
    color: var(--text-color-body); */
    scroll-behavior: smooth;
    /* overflow: hidden; */
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
    margin: 0 !important;
    padding: 0 !important;
}

a,
a:hover {
    text-decoration: none;
    color: var(--text-color-body);
}

ul {
    list-style: none;
}

input,
select,
button {
    background: transparent;
    border: transparent;
    outline: transparent;
}

button {
    background: transparent;
}

input[type='checkbox'] {
    cursor: pointer;
}

/* -------------------------------- */
/* 4. Input & Form Controls         */
/* -------------------------------- */
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
input[type="color"] {
    background: var(--input-color);
    color: var(--text-color-body);
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background: var(--color-primary);
    border: none;
    outline: none;
}

input::placeholder,
textarea::placeholder,
select option[disabled] {
    color: var(--text-color-body) !important;
    opacity: 0.5 !important;
}

/*  */
.bg-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-light) !important;
}

.badge {
    background-color: var(--color-primary) !important;
    color: var(--color-light) !important;
}


/*  */

.no-focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.no-focus:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.badge {
    padding: 0.5rem !important;
}

/* Pagination container */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

/* Page links */
.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    color: var(--color-primary);
    border: 1px solid var(--border-color);
}

/* Hover effect */
.pagination .page-link:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
}

/* Active page */
.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
    font-weight: 600;
    padding: 6px 14px !important;
}

/* Disabled link */
.pagination .page-item.disabled .page-link {
    color: var(--color-muted);
    pointer-events: none;
    cursor: not-allowed;
    background-color: var(--color-light);
    padding: 6px 14px !important;
    cursor: not-allowed;
}

/* Previous/Next arrows */
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
    font-weight: bold;
}

/*  */

.z-index-1 {
    z-index: 1;
}

.z-index-10 {
    z-index: 10;
}

.z-index-100 {
    z-index: 100;
}

.z-index-1000 {
    z-index: 1000;
}

.z-index-10000 {
    z-index: 10000;
}

.-z-index-10000 {
    z-index: -10000;
}

.-z-index-1000 {
    z-index: -1000;
}

.-z-index-100 {
    z-index: -100;
}

.-z-index-10 {
    z-index: -10;
}

.-z-index-1 {
    z-index: -1;
}

.z-index-0 {
    z-index: 0;
}

/*  */
.page-header {
    background: var(--color-primary);
    color: #fff;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.page-header h2 {
    color: #fff;
    font-weight: 700;
    position: relative;
    z-index: 5;
}

.page-header img {
    position: relative;
    z-index: 5;
}

/* Animated layered shapes */
.page-header .decor-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.page-header .shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    animation: floatShape 10s ease-in-out infinite;
}

/* Shape variations */
.page-header .shape.circle {
    border-radius: 50%;
}

.page-header .shape.hex {
    clip-path: polygon(50% 0%,
            93% 25%,
            93% 75%,
            50% 100%,
            7% 75%,
            7% 25%);
}

/* Individual shapes */
.page-header .shape:nth-child(1) {
    top: -30px;
    left: -20px;
    width: 140px;
    height: 140px;
    animation-delay: 0s;
}

.page-header .shape:nth-child(2) {
    bottom: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    animation-delay: 2s;
    border-color: rgba(255, 255, 255, 0.15);
}

.page-header .shape:nth-child(3) {
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    animation-delay: 4s;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-header .shape:nth-child(4) {
    bottom: 20%;
    left: 15%;
    width: 120px;
    height: 120px;
    animation-delay: 6s;
    border-color: rgba(255, 255, 255, 0.1);
}

.page-header .shape:nth-child(5) {
    top: 10%;
    left: 50%;
    width: 60px;
    height: 60px;
    animation-delay: 1s;
    border-color: rgba(255, 255, 255, 0.3);
}

.page-header .shape:nth-child(6) {
    bottom: 15%;
    right: 40%;
    width: 80px;
    height: 80px;
    animation-delay: 3s;
    border-color: rgba(255, 255, 255, 0.25);
}

.page-header .shape:nth-child(7) {
    top: 60%;
    left: 10%;
    width: 50px;
    height: 50px;
    animation-delay: 5s;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-header .shape:nth-child(8) {
    top: 30%;
    right: 60%;
    width: 70px;
    height: 70px;
    animation-delay: 7s;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Animation */
@keyframes floatShape {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1) rotate(15deg);
        opacity: 0.3;
    }
}

/* Blog card: baseline 1rem font size */
.blog-card,
.blog-card * {
    font-size: 1rem !important;
}

/* Card styling */
.blog-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform .22s ease, box-shadow .22s ease;
    min-height: 320px;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* Thumbnail */
.blog-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Excerpt */
.blog-excerpt {
    color: #555;
    line-height: 1.5;
}

/* Share dropdown */
.share-dropdown {
    position: relative;
}

.share-box {
    display: none;
    right: 0;
    bottom: calc(100% + 8px);
    min-width: 180px;
    z-index: 50;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    padding: .4rem;
}

.share-dropdown.active .share-box {
    display: block;
}

.blog-card .btn-sm {
    padding: .25rem .4rem;
    font-size: .95rem;
}

/*  */

/* Event card: baseline font-size 1rem for everything inside */
.event-card,
.event-card * {
    font-size: 1rem !important;
    /* enforce minimum font-size */
}

/* Card visuals */
.event-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform .22s ease, box-shadow .22s ease;
    min-height: 320px;
    /* optional consistent height */
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* Thumbnail */
.event-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Excerpt styling */
.event-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: .75rem;
}

/* Footer share box - opens upward */
.share-dropdown {
    position: relative;
}

.share-box {
    display: none;
    right: 0;
    bottom: calc(100% + 8px);
    /* show above the toggle button */
    min-width: 180px;
    z-index: 50;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    padding: .4rem;
}

.share-dropdown.active .share-box {
    display: block;
}

/* make buttons small and tight */
.event-card .btn-sm {
    padding: .25rem .4rem;
    font-size: .95rem;
}

/* responsive tweaks */
@media (max-width: 767.98px) {
    .event-card {
        min-height: auto;
    }

    .event-thumb {
        height: 160px;
    }
}


/* Modal CSS */
.modal {
    background: transparent;
}

.modal-content {
    background: var(--bg-color-body) !important;
    color: var(--text-color-body) !important;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.modal-header,
.modal-footer {
    border-color: var(--border-color);
}

.modal.zoom .modal-dialog {
    opacity: 0 !important;
    transform: scale(0.7) !important;
    transition: transform 0.3s ease;
}

.modal.zoom.show .modal-dialog {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.modal.fade.zoom .modal-dialog {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/*  */

/* =========================
   Post Card Common Styles
   ========================= */
.post-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.post-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.post-card img {
    object-fit: cover;
    max-height: 220px;
    width: 100%;
}

.post-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-card .share-box {
    bottom: 100%;
    right: 0;
    display: none;
    z-index: 20;
    min-width: 160px;
}

.post-card .share-box.show {
    display: block;
}

/* Select2 Component CSS*/

.select2-container {
    display: block;
    border-radius: 4px !important;
}

.select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px !important;
    border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 6px !important
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: #6c757d;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.select2-container--default .select2-results__option {
    background: var(--input-color);
    color: var(--text-color-body);
}

.select2-selection.select2-selection--multiple {
    color: var(--text-color-body) !important;
    background: var(--input-color) !important;
    overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding-right: 0.5rem;
    margin: 4px;
    color: var(--text-color-body) !important;
    background: var(--bg-color-body) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    font-size: 24px;
    top: -0.2rem;
    right: 0.4rem;
    margin: 0 !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin: 6px 12px;
}