/* *{border: 1px solid red;} */

:root {
    --bs-primary: #2f3e5d;
    --bs-primary-rgb: 47, 62, 93;

    --bs-secondary: #ec1f24;
    --bs-secondary-rgb: 236, 31, 36;

    --bs-middle: #ea4649;
    --nav-color: #001133;
}


.btn-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-secondary {
    background-color: var(--bs-secondary) !important;
}

.btn-outline-secondary {
    --bs-btn-color: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-secondary);
    --bs-btn-active-border-color: var(--bs-secondary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-secondary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-secondary);
    --bs-gradient: none;
}

#mainNavbar {
    background-color: var(--nav-color) !important;
    backdrop-filter: blur(10px);
    z-index: 1030;
}

#mainNavbar .nav-link {
    /* font-weight: bold; */
    color: var(--bs-light);
}

#mainNavbar .nav-link.active {
    font-weight: bold;
    color: var(--bs-secondary);
    border-bottom: 1px solid var(--bs-secondary);
}

.offcanvas {
    z-index: 1055 !important;
    height: 100vh;
}

.offcanvas .offcanvas-header {
    background-color: var(--bs-primary);
}

.footer-section {
    background-color: #f8f9fa;
}

.footer-section a:hover {
    color: var(--bs-primary) !important;
}


.fullscreen-carousel,
.fullscreen-carousel .carousel-inner,
.fullscreen-carousel .carousel-item {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.fullscreen-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .fullscreen-carousel,
    .fullscreen-carousel .carousel-inner,
    .fullscreen-carousel .carousel-item {
        height: calc(100vh - var(--navbar-height, 90px));
    }
}


.about-section {
    background-color: #f8f9fa;
}

.about-image-wrapper img {
    transition: transform 0.4s ease;
    cursor: pointer;
}

.about-image-wrapper img:hover {
    transform: scale(1.03);
}

.mission-vision-section {
    background-color: #ffffff;
}

.mv-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.faq-section .accordion-button {
    background-color: #ffffff;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: rgba(10, 26, 94, 0.05);
    color: var(--bs-primary);
}

.faq-section .accordion-item {
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}


.member-form-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.member-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.member-image-wrapper img {
    transition: transform 0.4s ease;
}

.member-image-wrapper img:hover {
    transform: scale(1.03);
}

.member-image-wrapper .member-image {
    width: 60% !important;
}


/* CSS */
.button-main {
    margin: 10px;
    padding: 15px 30px;
    text-align: center;
    text-transform: uppercase;
    text-wrap: nowrap;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    border-radius: 10px;
    display: block;
    border: 0px;
    font-weight: 700;
    background-image: linear-gradient(45deg, var(--bs-primary) 0%, var(--bs-middle) 51%, var(--bs-secondary) 100%);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-main:hover {
    background-position: right center;
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 8px 8px 14px -7px var(--bs-primary);
}

.button-main-outline {
    margin: 10px;
    padding: 15px 30px;
    text-align: center;
    text-transform: uppercase;
    text-wrap: nowrap;
    transition: 0.5s;
    background-size: 200% auto;

    color: var(--bs-primary);
    border-radius: 10px;
    display: block;

    border: 2px solid transparent;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(45deg, var(--bs-primary) 0%, var(--bs-middle) 51%, var(--bs-secondary) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    font-weight: 700;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-main-outline:hover {
    background-position: right center;
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 8px 8px 14px -7px var(--bs-primary);

    background-image:
        linear-gradient(45deg, var(--bs-primary) 0%, var(--bs-middle) 51%, var(--bs-secondary) 100%),
        linear-gradient(45deg, var(--bs-primary) 0%, var(--bs-middle) 51%, var(--bs-secondary) 100%);
}


.page-header {
    background: var(--bs-primary);
    border-radius: 0 0 50px 50px;
}

.manifesto-section img {
    transition: transform 0.4s ease;
}

.manifesto-section img:hover {
    transform: scale(1.03);
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.event-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.event-body {
    padding: 20px;
}

.event-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bs-secondary);
    margin-bottom: 8px;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--bs-primary);
}

.event-text {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
}


.leader-card {
    height: 100%;
    background: #fff;
    padding: 25px 20px 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.other-leader-card {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}


.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.leader-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid var(--bs-primary);
}

.other-leader-card .leader-img {
    margin-bottom: 0 !important;
}

.leader-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 5px;
}

.leader-role {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bs-secondary);
}

.membership-form {
    background: #fff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-weight: 800;
    color: var(--bs-primary);
}

.form-heading {
    font-weight: 700;
    color: var(--bs-secondary);
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 15px;
}

.declaration-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.declaration-box .form-check {
    margin-bottom: 10px;
}

.contact-card,
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.contact-title {
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 8px;
}

.contact-text {
    color: #6c757d;
    font-size: 0.95rem;
}

.form-title {
    font-weight: 800;
    color: var(--bs-secondary);
}

.map-section iframe {
    width: 100%;
    height: 380px;
    border: 0;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-secondary));
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
    z-index: 9999;
}

.back-to-top:hover {
    transform: scale(1.1);
}