/* Remove Owl arrows */
.owl-nav {
    display: none !important;
}

/* Resize hero text on mobile */
@media (max-width: 576px) {

    .mobile_h1 {
        font-size: 24px !important;
        line-height: 1.3;
        font-weight: bold;
    }

    .mobile_h2 {
        font-size: 20px !important;
        line-height: 1.2;
        font-weight: bold;

    }

    .mobile_h4 {
        font-size: 18px !important;
        font-weight: bold;

    }

    .mobile_p {
        font-size: 13px !important;
    }

    .mobile_cta {
        padding: 10px 10px !important;
        font-size: 13px !important;
    }

    .mobile_box {
        padding: 10px 18px !important;
    }

}



/* Toast alert styling */
.toast-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #cdffe8;
    color: #124b31;
    padding: 14px 22px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    z-index: 9999;
    animation: slideIn .4s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* Mission cards styling */
.mission-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
    transition: 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.mission-card h3 {
    color: #0d3b66;
    margin-bottom: 12px;
    font-weight: 600;
}

.mission-card p {
    margin-bottom: 0;
    font-size: 15px;
    color: #555;
}

/* extra spacing on small screens */
@media (max-width: 768px) {
    .mission-card {
        padding: 30px 20px;
    }
}

/* ================= HERO OVAL IMAGE ================= */

.oval-frame {
    width: 260px;
    height: 380px;
    /* taller than width = vertical oval */
    margin: auto;
    border-radius: 50% / 40%;
    /* creates vertical oval */
    overflow: hidden;

    border: 6px solid #ffffff;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 0 8px rgba(255, 255, 255, 0.15);

    background: #fff;

    transition: 0.4s ease;
}

/* image inside */
.oval-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* hover effect */
.oval-frame:hover {
    transform: translateY(-8px) scale(1.03);
}

/* responsive */
@media (max-width: 768px) {
    .oval-frame {
        width: 200px;
        height: 300px;
    }
}

/* partner image container */
.partner-card {
    overflow: hidden;
    border-radius: 12px;
    /* optional nicer look */
}

/* image */
.partner-card .card-img-top {
    height: 200px;
    object-fit: cover;
    /* transition: transform 0.5s ease; */
    transition: transform 0.6s cubic-bezier(.22, .61, .36, 1);

}

/* ONLY zoom image */
.partner-card:hover .card-img-top {
    transform: scale(1.2);
}

/* remove card movement completely */
.partner-card {
    transition: box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.partner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: 0.3s;
}

.partner-card:hover::after {
    background: rgba(0, 0, 0, 0.05);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
}

/* button background */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #000;
    border-radius: 50%;

    padding: 18px;
    background-size: 55%;
}

.carousel-control-prev-icon {
    margin-left: 40px;
}

.carousel-control-next-icon {
    margin-right: 20px;
}


/* ===== Officers Gallery ===== */

.officer-card {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    transition: 0.4s ease;
    border: 10px solid #fff;
}

/* image */
.officer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* zoom on hover */
.officer-card:hover img {
    transform: scale(1.12);
}

/* info overlay */
.officer-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 14px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    color: #fff;
}

/* name */
.officer-info h5 {
    font-weight: 600;
    font-size: 16px;
    color: aliceblue;
}

/* position */
.officer-info small {
    font-size: 13px;
    opacity: 0.9;
}

/* subtle lift on hover */
/* Base card */
.structure-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;


    transition: all .3s ease;
    text-align: center;
    height: 100%;
}

.structure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* 🔵 FIXED WIDTH (Top hierarchy) */
.structure-card-fixed {
    width: 260px;
    max-width: 90%;
}

/* 🟢 FLEXIBLE (Districts + Commanderies) */
.structure-card-flex {
    width: 100%;
}


/* Flexible cards fill nicely */
.structure-card-flex {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    /* keeps height consistent */
}


/* Image */
.structure-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #0d6efd20;
    margin-bottom: 15px;
}

/* Arrow */
.arrow-down {
    font-size: 38px;
    color: #0d6efd;
    margin: 25px 0;
    font-weight: bold;
}

/* Better spacing for row grids */
.row .structure-card-flex {
    padding: 18px 12px;
}


/* Reduce board image height */
.team-photo {
    height: 240px;
    width: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 12px 12px 0 0;
}

/* About */
.about-img img {
    max-width: 100%;
    min-height: 550px;
    border-radius: 12px;
}

/* Highlight image */
.highlight-img {
    height: 350px;
    object-fit: cover;
}

/* Activtiies */
.highlight-img {
    height: 350px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.event-highlight {
    border-radius: 12px;
}



/* Category cards hover */
.category-card {
    transition: .3s;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 15px;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* Calendar list */
.calendar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 15px;

}

.calendar-date {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    width: 70px;
}

.calendar-date span {
    display: block;
    font-size: 12px;
    color: #6c757d;
}

.calendar-info {
    flex: 1;
    margin-left: 20px;
}

/* Gallery */
/* Gallery Card */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

/* Image */
.gallery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.5s ease;
}

/* Hover Zoom */
.gallery-card:hover img {
    transform: scale(1.1);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 18px;
    text-align: center;
    color: #fff;

    /* default (light) */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.25),
            transparent);

    transition: all 0.4s ease;
}

/* Hover → darker */
.gallery-card:hover .gallery-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95),
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.4));
}

/* Title */
.gallery-overlay h5 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    transition: 0.3s;
}

/* Optional nice effect (lift text slightly) */
.gallery-card:hover .gallery-overlay h5 {
    transform: translateY(-3px);
}

/* Aspirant Form */
/* INFO CARD */
.info-card {
    border-radius: 14px;
    background: #c9e0ff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    /* prevents shrinking */
    min-height: 48px;
    border-radius: 50%;
    background: #f3f8ff;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fd950d;
    flex-shrink: 0;
    /* VERY IMPORTANT */
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.form-card {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.form-control {
    padding: 12px 14px;
    border-radius: 10px;
    outline: none;
}

/* Partnership Card */
.partner-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.partner-card .price {
    font-weight: 800;
    font-size: 32px;
}

.partner-card.featured {
    border: 2px solid #0d6efd;
    transform: scale(1.05);
}

.partner-card ul li {
    margin-bottom: 10px;
}

/* Responsive */
@media(max-width:768px) {
    .partner-card.featured {
        transform: none;
    }
}

/* Charity Cards */
.charity-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.charity-card img {
    height: 220px;
    object-fit: cover;
}

.charity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Donation Box */
.donation-box {
    background: #f8fbff;
}

/* Account Card */
.account-card {
    background: #fff;
    border: 2px dashed #0d6efd;
}

/* Login Card */
.login-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 500px;
    border-radius: 18px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Icon circle */
.portal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e7f1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    color: #0d6efd;
    font-size: 28px;
}

/* Member profile  */
.sidebar {
    height: 100vh;
    background: #0d1b2a;
    color: white;
    position: fixed;
    width: 250px;
}

.sidebar a {
    color: #ccc;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    border-radius: 8px;
    margin: 5px 10px;
}

.sidebar a:hover,
.sidebar a.active {
    background: #1b263b;
    color: white;
}

.main-content {
    margin-left: 250px;
    padding: 30px;
}

.profile-card {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}


.info-label {
    font-weight: 600;
    color: #555;
}

.rank-badge {
    background: #0d6efd;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}



@media(max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Profile image */
.profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #eee;
}

.profile-image-wrapper {
    position: relative;
}

.image-edit-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: .2s;
}

.image-edit-btn:hover {
    transform: scale(1.1);
}

.item_label {
    display: inline-block;
    width: 120px;
}

/* Partnership form */

.select-plan {
    cursor: pointer;
}

.partner_plan_box {
    transition: box-shadow 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: #fff;
    border-radius: 10px;
}

.partner_plan_box:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-color: #f3f3f3;

}

.partner_plan_box.active {
    border: 3px solid #0d6efd;
    transform: scale(1.03);
}


/* Card for Grand commandery events */
.event-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

.event-img {
    height: 200px;
    overflow: hidden;
}

.event-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.event-card .card-title {
    font-size: 16px;
    font-weight: 600;
}

.event-meta {
    font-size: 13px;
}

/* Grand Event Detail Page */
.grand_event .event-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-bottom: 4px solid #0d6efd;
}

.grand_event .event-meta span {
    margin-right: 20px;
    font-size: 14px;
    color: #555;
}

.grand_event .event-meta i {
    margin-right: 5px;
}

.grand_event .event-description {
    line-height: 1.8;
    font-size: 16px;
    margin-top: 20px;

}

.grand_event .event-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

.grand_event .event-card h5 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Partners */
.partner-card {
    position: relative;
    overflow: hidden;
    border: none;
}

.partner-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay */
.partner-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Center content */
.partner-card .card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 2;
}

/* Hide extra content initially */
.partner-card .card-extra {
    opacity: 0;
    transform: translateY(15px);
    transition: all .3s ease;
}

/* Show on hover */
.partner-card:hover .card-extra {
    opacity: 1;
    transform: translateY(0);
}

.partner-card .overlay {
    background: rgba(0, 0, 0, 0.5);
    transition: .3s;
}

.partner-card:hover .overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* Circular logo */
.partner-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #c9c9c9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 3px solid #fff;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

}

/* Small screens (mobile) */
@media (max-width: 768px) {

    .partner-logo {
        position: static;
        width: 40px;
        height: 40px;
        margin: 0 auto 10px auto;
        display: block;
    }

    .partner-card .card-content {
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

}