:root {
    --primary: hsl(22.26deg 91.7% 52.75%);
    --primary-rgb: 255, 138, 24;
    --secondary: hsl(1.3deg 73.02% 50.59%);
    --secondary-rgb: 220, 38, 38;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --info-rgb: 6, 182, 212;
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    padding-top: var(--total-header-height, 0);
}

main {
    flex-grow: 1;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary) !important;
}

.text-secondary-custom {
    color: var(--secondary) !important;
}

.text-info-custom {
    color: #2563EB !important;
}

.border-secondary-custom {
    border-color: var(--secondary) !important;
}

.btn-gradient-primary {
    background: linear-gradient(to right, var(--primary), #ffb347);
    border: none;
    color: var(--text-light);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-gradient-primary:hover {
    background: linear-gradient(to right, hsl(22.26deg 91.7% 45%), #ffa500);
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-gradient-secondary {
    background: linear-gradient(to right, var(--secondary), #ff6b6b);
    border: none;
    color: var(--text-light);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-gradient-secondary:hover {
    background: linear-gradient(to right, hsl(1.3deg 73.02% 40%), #ff4d4d);
    border-color: hsl(1.3deg 73.02% 40%);
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline-gradient-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), #ffb347);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.btn-outline-gradient-primary:hover {
    color: var(--text-light);
}

.btn-outline-gradient-primary:hover::before {
    transform: translateX(0);
}

.btn-gradient-purple-pink {
    background: linear-gradient(to right, #8a2be2, #ff69b4);
    border: none;
    color: var(--text-light);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-gradient-purple-pink:hover {
    background: linear-gradient(to right, #7a1ed2, #e65a9e);
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

header#header1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    background: transparent;
    border-bottom: none !important;
    transition: background-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar-custom {
    position: fixed;
    top: var(--header1-height);
    left: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: none;
    background-color: transparent;
    transition: background-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.scrolled-header {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg) !important;
}

.scrolled-header .navbar-nav .nav-link,
.scrolled-header .navbar-toggler-icon-open,
.scrolled-header .navbar-toggler-icon-close {
    color: var(--text-primary) !important;
}

.scrolled-header .navbar-nav .nav-link:hover,
.scrolled-header .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.scrolled-header .navbar-nav .nav-link::after {
    background-color: var(--primary) !important;
}

.navbar-custom .navbar-nav {
    display: flex;
    gap: 0.5rem;
}

.navbar-custom .nav-item {
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.navbar-custom .nav-item:hover {
    background-color: var(--bg-light);
}

.navbar-custom .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
}

.navbar-custom .nav-link i {
    margin-bottom: 0.1rem;
    font-size: 1.1rem;
}

.navbar-custom .nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0.1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    transition: width 0.3s ease-in-out;
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
}

.navbar-custom .nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.navbar-toggler-icon-open,
.navbar-toggler-icon-close {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.navbar-toggler .navbar-toggler-icon {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-open {
    display: none;
}

.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon-close {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-close {
    display: inline-block;
}

.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon-open {
    display: inline-block;
}

.card {
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px) scale(1.02);
}

.gallery-container {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.gallery-scroller {
    display: flex;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-scroller::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 250px;
    height: 180px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    scroll-snap-align: start;
}

.gallery-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.modal-content {
    border-radius: 1rem;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 0.75rem;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-nav-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-lg);
}

.gallery-nav-btn.left {
    left: 0;
}

.gallery-nav-btn.right {
    right: 0;
}

.gallery-nav-btn i {
    color: var(--primary);
    font-size: 1.2rem;
}

.carousel-section {
  margin: 0;
  padding: 0;
  width: 100%;
}

.carousel-item {
  width: 100%;
  height: 88vh;
  min-height: 500px;
  background: var(--bg-dark);
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-dark);
}

.carousel-caption {
  position: absolute;
  bottom: 15%;
  background: rgba(0,0,0,0.5);
  padding: 1rem 2rem;
  border-radius: .5rem;
}

.carousel-caption h5 {
  font-size: 2.5rem;
  font-weight: 700;
  animation: fadeInDown 1s ease-out;
}

.carousel-caption p {
  font-size: 1.2rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.carousel-control-custom {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 1;
}

.carousel-control-custom:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.carousel-control-custom .carousel-control-prev-icon,
.carousel-control-custom .carousel-control-next-icon {
    background-image: none;
    font-size: 2rem;
    color: white;
    display: block;
}

.carousel-control-prev-custom .carousel-control-prev-icon::before {
    content: "\f12e";
    font-family: "bootstrap-icons";
}

.carousel-control-next-custom .carousel-control-next-icon::before {
    content: "\f138";
    font-family: "bootstrap-icons";
}

/* Mobile Responsive Carousel */
@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .carousel-caption {
        bottom: 10%;
        padding: 0.75rem 1rem;
    }

    .carousel-caption h5 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .carousel-control-custom {
        width: 40px;
        height: 40px;
    }

    .carousel-control-custom .carousel-control-prev-icon,
    .carousel-control-custom .carousel-control-next-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 50vh;
        min-height: 350px;
    }

    .carousel-caption {
        bottom: 5%;
        padding: 0.5rem;
    }

    .carousel-caption h5 {
        font-size: 1.25rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }

    .carousel-control-custom {
        width: 35px;
        height: 35px;
    }

    .gallery-container {
        padding: 0 20px;
    }

    .gallery-item {
        width: 200px;
        height: 150px;
    }
}

.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--primary);
}

.footer p,
.footer li {
    color: var(--text-light) !important;
}

.announcement-bar {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: 0.75rem 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.announcement-bar marquee {
    padding: 0 1rem;
    width: 100%;
    display: block;
}

.header-gradient {
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
}

.header-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.header-logo-section img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-right: 1rem;
    margin-bottom: 0;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.header-text-info {
    text-align: left;
}

.header-text-info h5 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: var(--text-primary);
}

.header-text-info p {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--text-info);
}

.section-primary-full-width-bg {
    background: linear-gradient(to right, var(--primary), #ffb347);
    padding-left: 0;
    padding-right: 0;
}

.section-light-full-width-bg {
    background-color: var(--bg-light);
    padding-left: 0;
    padding-right: 0;
}

.section-white-full-width-bg {
    background-color: var(--bg-body);
    padding-left: 0;
    padding-right: 0;
}

.section-dark-full-width-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-left: 0;
    padding-right: 0;
}

.section-dark-full-width-bg h2,
.section-dark-full-width-bg h5,
.section-dark-full-width-bg p,
.section-dark-full-width-bg .text-secondary,
.section-dark-full-width-bg .text-muted {
    color: var(--text-light) !important;
}

.section-light-gray-gradient-full-width-bg {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding-left: 0;
    padding-right: 0;
    color: var(--text-primary);
}

.section-light-gray-gradient-full-width-bg h2,
.section-light-gray-gradient-full-width-bg h5,
.section-light-gray-gradient-full-width-bg p,
.section-light-gray-gradient-full-width-bg .text-secondary,
.section-light-gray-gradient-full-width-bg .text-muted {
    color: var(--text-primary) !important;
}

.section-light-pink-red-orange-gradient-full-width-bg {
    background: linear-gradient(to bottom, rgba(255, 240, 245, 0.3), rgba(255, 230, 230, 0.3), rgba(255, 220, 200, 0.3));
    padding-left: 0;
    padding-right: 0;
    color: var(--text-primary);
}

.section-light-pink-red-orange-gradient-full-width-bg h2,
.section-light-pink-red-orange-gradient-full-width-bg h5,
.section-light-pink-red-orange-gradient-full-width-bg p,
.section-light-pink-red-orange-gradient-full-width-bg .text-secondary,
.section-light-pink-red-orange-gradient-full-width-bg .text-muted {
    color: var(--text-primary) !important;
}

.section-light-blue-gradient-full-width-bg {
    background: linear-gradient(to right, #e0f2f7, #c1e7f0);
    padding-left: 0;
    padding-right: 0;
    color: var(--text-primary);
}

.section-light-blue-gradient-full-width-bg h2,
.section-light-blue-gradient-full-width-bg h5,
.section-light-blue-gradient-full-width-bg p,
.section-light-blue-gradient-full-width-bg .text-secondary,
.section-light-blue-gradient-full-width-bg .text-muted {
    color: var(--text-primary) !important;
}

.section-light-green-gradient-full-width-bg {
    background: linear-gradient(to right, #e6ffe6, #d4ffd4);
    padding-left: 0;
    padding-right: 0;
    color: var(--text-primary);
}

.section-light-green-gradient-full-width-bg h2,
.section-light-green-gradient-full-width-bg h5,
.section-light-green-gradient-full-width-bg p,
.section-light-green-gradient-full-width-bg .text-secondary,
.section-light-green-gradient-full-width-bg .text-muted {
    color: var(--text-primary) !important;
}

.section-light-purple-gradient-full-width-bg {
    background: linear-gradient(to right, #f2e6ff, #e0c1ff);
    padding-left: 0;
    padding-right: 0;
    color: var(--text-primary);
}

.section-light-purple-gradient-full-width-bg h2,
.section-light-purple-gradient-full-width-bg h5,
.section-light-purple-gradient-full-width-bg p,
.section-light-purple-gradient-full-width-bg .text-secondary,
.section-light-purple-gradient-full-width-bg .text-muted {
    color: var(--text-primary) !important;
}

.section-event-light-gradient-full-width-bg {
    background: linear-gradient(to right, #f0e6ff, #ffe6f0);
    padding-left: 0;
    padding-right: 0;
    color: var(--text-primary);
}

.section-event-light-gradient-full-width-bg h2,
.section-event-light-gradient-full-width-bg h5,
.section-event-light-gradient-full-width-bg p,
.section-event-light-gradient-full-width-bg .text-secondary,
.section-event-light-gradient-full-width-bg .text-muted {
    color: var(--text-primary) !important;
}

.section-gallery-light-gray-blue-gradient-full-width-bg {
    background: linear-gradient(to right, #f0f4f7, #e0eaf0);
    padding-left: 0;
    padding-right: 0;
    color: var(--text-primary);
}

.section-gallery-light-gray-blue-gradient-full-width-bg h2,
.section-gallery-light-gray-blue-gradient-full-width-bg h5,
.section-gallery-light-gray-blue-gradient-full-width-bg p,
.section-gallery-light-gray-blue-gradient-full-width-bg .text-secondary,
.section-gallery-light-gray-blue-gradient-full-width-bg .text-muted {
    color: var(--text-primary) !important;
}

.section-extra-light-primary-gradient-full-width-bg {
    background: linear-gradient(to right, #fff5e6, #ffeacc);
    padding-left: 0;
    padding-right: 0;
    color: var(--text-primary);
}

.section-extra-light-primary-gradient-full-width-bg h2,
.section-extra-light-primary-gradient-full-width-bg h5,
.section-extra-light-primary-gradient-full-width-bg p,
.section-extra-light-primary-gradient-full-width-bg .text-secondary,
.section-extra-light-primary-gradient-full-width-bg .text-muted {
    color: var(--text-primary) !important;
}

.section-about-memberhub-gradient-full-width-bg {
    background: linear-gradient(to right, #9333ea, #2563eb, #00b4d8);
    padding-left: 0;
    padding-right: 0;
    color: var(--text-primary);
}

.section-about-memberhub-gradient-full-width-bg h1,
.section-about-memberhub-gradient-full-width-bg p {
    color: var(--text-light) !important;
}

.pt-header-offset {
    padding-top: var(--total-header-height);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-gradient-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-gradient-footer .pagination {
    margin: 0;
}

.card-gradient-footer .page-item .page-link {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    margin: 0 2px;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card-gradient-footer .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-gradient-footer .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

@media (max-width: 576px) {
    .card-gradient-footer {
        padding: 0.75rem;
    }

    .card-gradient-footer .page-item .page-link {
        min-width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    #header1 h5 {
        font-size: 14px;
    }

    #header1 p {
        font-size: 12px;
    }

    #header1 img {
        max-width: 50px;
        height: auto;
    }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    background: conic-gradient(var(--primary), var(--secondary));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), black calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), black calc(100% - 4px));
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
