/* Raveo Font Face Definitions */
@font-face {
    font-family: "Raveo";
    src: url("/assets/fonts/raveo-font-family/Raveo-Thin-BF6747d9ec6326a.otf")
        format("opentype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raveo";
    src: url("/assets/fonts/raveo-font-family/Raveo-ExtraLight-BF6747d9ebd3126.otf")
        format("opentype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raveo";
    src: url("/assets/fonts/raveo-font-family/Raveo-Light-BF6747d9ec1ad72.otf")
        format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raveo";
    src: url("/assets/fonts/raveo-font-family/Raveo-Regular-BF6747d9ec29915.otf")
        format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raveo";
    src: url("/assets/fonts/raveo-font-family/Raveo-Medium-BF6747d9ec1b58a.otf")
        format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raveo";
    src: url("/assets/fonts/raveo-font-family/Raveo-SemiBold-BF6747d9ec62778.otf")
        format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raveo";
    src: url("/assets/fonts/raveo-font-family/Raveo-Bold-BF6747d9eaa1e80.otf")
        format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raveo";
    src: url("/assets/fonts/raveo-font-family/Raveo-ExtraBold-BF6747d9ebd3131.otf")
        format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raveo";
    src: url("/assets/fonts/raveo-font-family/Raveo-Black-BF6747d9ea4acb7.otf")
        format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Raveo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    /* overflow-x: hidden; */
    max-width: 100vw;
}

/* Force Raveo font on all elements */
* {
    font-family: "Raveo", sans-serif !important;
}

/* Cursor pointer utility class */
.cursor-pointer {
    cursor: pointer !important;
}

/* Specific Bootstrap overrides */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
button,
input,
textarea,
select {
    font-family: "Raveo", sans-serif !important;
}

.accent-color {
    color: #181e4b !important;
}

.accent-color-2 {
    color: #02abec !important;
}

.accent-color-3 {
    color: #5e6282 !important;
}

.accent-color-background {
    background-color: #181e4b !important;
}

.accent-color-background-2 {
    background-color: #02abec !important;
}

.accent-color-background-2-faded {
    background-color: #e0f7ff !important;
}

.primary-color-background-faded {
    background-color: #cce0f7;
}

.success-color-background-faded {
    background-color: #c7e9d3;
}

.accent-color-background-3 {
    background-color: #5e6282 !important;
}

.bg-shadow {
    box-shadow: -2px 9px 60px rgba(214, 41, 36, 0.56) !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

/* BMI Hero Section Styles */
.object-fit-cover {
    object-fit: cover;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Hero content padding */
.hero-content-padding {
    padding-left: 70px !important;
    padding-right: 70px !important;
}

/* Navbar content padding */
.navbar-content-padding {
    padding-left: 70px !important;
    padding-right: 70px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1050;
}

/* About section content padding */
.about-content-padding {
    padding-left: 70px !important;
    padding-right: 70px !important;
}

/* Hero content max-width for readability */
.hero-content-wrapper {
    max-width: 100%;
}

/* About Us Section */
.about-left-content {
    min-height: fit-content;
    gap: 50px;
}

/* Responsive styles for hero section */
@media (max-width: 1400px) {
    .hero-content-padding {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }

    .navbar-content-padding {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }

    .about-content-padding {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}

@media (max-width: 1200px) {
    .hero-content-padding {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }

    .navbar-content-padding {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }

    .about-content-padding {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

@media (max-width: 992px) {
    .hero-content-padding {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .navbar-content-padding {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .about-content-padding {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh !important;
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
        font-weight: 500;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
    }

    .hero-section .row {
        align-items: end !important;
        min-height: calc(100vh - 80px);
    }

    .hero-section .col-lg-12 {
        padding-bottom: 60px !important;
    }

    .hero-content-padding {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .navbar-content-padding {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .about-content-padding {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    /* About section responsive adjustments */
    .about-section {
        padding: 3rem 0 !important;
    }

    .about-section h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
    }

    .about-section .fs-5 {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }

    /* Force images to stay side by side */
    .about-section .row.g-3 .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .about-section .row.g-3 {
        gap: 0.75rem !important;
    }
    
    /* Global mobile description text size - same as about us */
    section p,
    .section p,
    .hero-section p,
    .services-section p,
    .workflow-section p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* Section spacing improvements */
    .py-10 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-md-14 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    /* Improve gap spacing */
    .g-6 {
        gap: 1.5rem !important;
    }

    .g-md-10 {
        gap: 2rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 100vh !important;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    .h-60px {
        height: 45px !important;
    }

    .hero-section .row {
        min-height: calc(100vh - 70px);
    }

    .hero-section .col-lg-12 {
        padding-bottom: 40px !important;
    }

    .hero-content-padding {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .navbar-content-padding {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .about-content-padding {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* About section mobile adjustments */
    .about-section {
        padding: 2.5rem 0 !important;
    }

    .about-section h2 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    .about-section .fs-5 {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.25rem !important;
    }

    .about-section .row.g-3 {
        gap: 0.5rem !important;
    }

    /* Force images to stay side by side on mobile */
    .about-section .row.g-3 .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Global mobile description text size - same as about us */
    section p,
    .section p,
    .hero-section p,
    .services-section p,
    .workflow-section p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* Mobile specific improvements */
    .badge {
        font-size: 0.7rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* Section spacing for mobile */
    .py-10 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .py-md-14 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Mobile gap improvements */
    .g-6 {
        gap: 1rem !important;
    }

    .g-md-10 {
        gap: 1.5rem !important;
    }

    /* Mobile container improvements */
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Animation for scroll indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Transparent Navbar Styles */
.navbar-transparent {
    background-color: transparent !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1050;
    width: 100%;
    max-width: 100vw;
    box-shadow: none;
    border: none;
}

/* Navbar Hide/Show Animation */
.navbar-transparent {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.navbar-transparent.navbar-hidden {
    transform: translateY(-100%) !important;
    -webkit-transform: translateY(-100%) !important;
    transition: transform 0.3s ease-in-out !important;
    -webkit-transition: -webkit-transform 0.3s ease-in-out !important;
}

.navbar-transparent.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    color: #000000 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-transparent.scrolled.navbar-hidden {
    transform: translateY(-100%) !important;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease, color 0.3s ease !important;
}

.navbar-transparent.scrolled .nav-link-transparent {
    color: #000000 !important;
}

.navbar-transparent.scrolled .nav-link-transparent:hover {
    color: rgba(0, 0, 0, 0.7) !important;
}

.navbar-transparent.scrolled .nav-link-transparent.active {
    background-color: #00AAEC !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
}

.navbar-transparent.scrolled .navbar-logo-default {
    display: none !important;
}

.navbar-transparent.scrolled .navbar-logo-scrolled {
    display: block !important;
}

.nav-link-transparent {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-link-transparent:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link-transparent.active {
    background-color: #00AAEC !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
}

/* Remove any pseudo-element indicators */
.nav-link-transparent.active::before,
.nav-link-transparent.active::after {
    display: none !important;
}

/* Custom navbar toggler for white icon */
.navbar-toggler-icon-white {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transition: all 0.3s ease;
}

.navbar-transparent.scrolled .navbar-toggler-icon-white {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Nav logo sizing */
.h-45px {
    height: 45px !important;
}

/* Mobile navbar adjustments */
@media (max-width: 991px) {
    .navbar-content-padding {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .navbar-transparent {
        min-height: 70px;
        padding: 0.5rem 0;
    }

    .navbar-transparent .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1.5rem;
        max-width: calc(100vw - 40px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 1051;
    }

    .navbar-transparent .navbar-collapse .nav-link-transparent {
        color: #1f2937 !important;
        font-weight: 600;
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin-bottom: 0.25rem;
    }

    .navbar-transparent .navbar-collapse .nav-link-transparent:hover {
        color: #02abec !important;
        background-color: rgba(2, 171, 236, 0.1);
        transform: translateX(5px);
    }

    .navbar-transparent .navbar-collapse .nav-link-transparent.active {
        background-color: #02abec !important;
        color: #ffffff !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(2, 171, 236, 0.3);
    }

    .navbar-transparent .navbar-nav {
        gap: 0.25rem;
    }

    /* Mobile dropdown improvements */
    .navbar-transparent .dropdown-menu {
        background-color: rgba(248, 250, 252, 0.95) !important;
        border: none !important;
        border-radius: 8px !important;
        margin-top: 0.5rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        padding: 0.5rem 0 !important;
    }

    .navbar-transparent .dropdown-item {
        color: #6b7280 !important;
        padding: 0.5rem 1.5rem !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
    }

    .navbar-transparent .dropdown-item:hover {
        background-color: rgba(2, 171, 236, 0.1) !important;
        color: #02abec !important;
        transform: translateX(5px);
    }
}

/* Menghilangkan default button style */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1rem;
    font-size: 1rem;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hover di area pertanyaan */
.faq-question:hover {
    background-color: #fafafa;
}

/* Jika pertanyaan sedang terbuka (bukan collapsed), warnai teks menjadi merah */
.faq-question:not(.collapsed) {
    color: #dc3545; /* meniru .text-danger */
}

/* Ikon panah, rotasi saat item dibuka */
.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question:not(.collapsed) i {
    transform: rotate(90deg);
}

/* Jawaban: border kiri merah, sedikit padding */
.faq-answer {
    padding: 1rem;
    border-left: 4px solid #dc3545;
    margin-left: 0.5rem; /* agar sedikit bergeser ke kanan */
}

.faq-item.border-bottom {
    border-color: #eee !important;
}

.nav-logo {
    height: 80px;
}

@media only screen and (max-width: 600px) {
    .nav-logo {
        height: 60px;
    }
}

.banner-header {
    font-size: 5rem;
    letter-spacing: -2px;
    line-height: 1.2 !important;
    font-weight: 800;
}

@media only screen and (max-width: 600px) {
    .banner-header {
        font-size: 3rem;
        letter-spacing: -1px;
    }
}

.banner-subtitle {
    width: 73%;
}

@media only screen and (max-width: 600px) {
    .banner-subtitle {
        width: 100%;
    }
}

.countdown-card {
    background-color: #fff;
    border-radius: 4rem 20rem 4rem 4rem !important;
    overflow: hidden;
}

@media only screen and (max-width: 600px) {
    .countdown-card {
        border-radius: 2rem !important;
    }
}

.news-card {
    border-radius: 1.2rem;
    overflow: hidden;
    min-height: 500px;
    padding: 25px;
}

@media only screen and (max-width: 600px) {
    .news-card {
        min-height: 300px;
        padding: 25px;
    }
}

.galeri-card {
    width: 100%;
    border-radius: 30px;
}

@media only screen and (max-width: 600px) {
    .galeri-card {
        border-radius: 16px;
    }
}

/* List Misi */
.misi-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #b02a37; /* Warna merah KONI */
    margin-bottom: 12px;
}

/* Icon Misi */
.misi-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: #d62924;
    color: white;
    font-weight: bold;
    border-radius: 50%;
}

/* Kartu Struktur Organisasi */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.team-pic {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 150px 40px 16px 16px;
}

.shape-svg {
    width: 100%;
    height: 550px;
    position: absolute;
    object-fit: cover;
}

/* Layer Overlay */
.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* SVG Shape */
.shape-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    top: -35px;
    z-index: 1;
}

/* Teks di atas SVG */
.team-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: white;
}

/* Statistik Card */
.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: #b02a37;
}

.stat-card p {
    margin: 0;
    font-size: 14px;
}

/* Section Atlet Berprestasi */
.athlete-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.athlete-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.athlete-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
}

/* Overlay Atlet */
.athlete-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(176, 42, 55, 0.9);
    color: white;
    padding: 12px;
    text-align: left;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.athlete-overlay h5 {
    font-size: 16px;
    font-weight: bold;
}

.athlete-overlay p {
    font-size: 14px;
    margin: 0;
}

/* Filter Buttons */
.filter-btn {
    background: rgba(214, 41, 36, 0.1);
    color: #b02a37;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.filter-btn.active {
    background: #d62924;
    color: white;
}

.filter-btn:hover {
    background: #d62924;
    color: white;
}

/* Hide elements by default */
.filter-item {
    display: none;
}

/* Show all elements by default */
.filter-item.show {
    display: block;
}

/* KONI Provinsi Card Hover Effects */
.koni-provinsi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: #d62924 !important;
}

.koni-provinsi-card img {
    transition: transform 0.3s ease;
}

.koni-provinsi-card:hover img {
    transform: scale(1.1);
}

/* Organisasi Fungsional Card Hover Effects */
.org-fungsional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: #d62924 !important;
}

.org-fungsional-card img {
    transition: transform 0.3s ease;
}

.org-fungsional-card:hover img {
    transform: scale(1.1);
}

/* Gallery Cards */
.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

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

.gallery-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(176, 42, 55, 0.9);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.header-banner {
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-card {
    position: relative;
    z-index: 2;
    margin: 30px 0;
}

.banner-content {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.banner-label {
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 100px;
    display: inline-block;
    position: absolute;
    top: 20px;
    left: 20px;
}

.pon-logo {
    max-height: 150px;
    margin-top: 25px;
}

.event-details {
    padding: 20px 30px 30px;
}

.event-details h1 {
    color: #12263f;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 20px;
}

.event-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #5e6e82;
}

.event-info i {
    color: #2c7be5;
    margin-right: 10px;
}

.mascot-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.pon-mascot {
    max-height: 300px;
    position: relative;
    z-index: 1;
}

.bubble-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle, #fdd1d1 10%, transparent 10%),
        radial-gradient(circle, #fdd1d1 10%, transparent 10%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.3;
    z-index: 0;
}

.sponsors-container {
    padding: 3rem 0;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sponsor-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sponsor-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-logo-2 {
    max-width: 100px;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sponsor-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .sponsor-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    .sponsor-logo-container {
        height: 80px;
    }
    .sponsor-card {
        padding: 1rem;
    }
}

/* CKEditor Content Styling - Fix image overflow */
.fs-5.text-gray-800.mb-1.fw-semibold.accent-color-3.fs-4 img,
.accent-color-3.fw-semibold img,
article img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Article content general styling */
.fs-5.text-gray-800.mb-1.fw-semibold.accent-color-3.fs-4,
.accent-color-3.fw-semibold,
article {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ensure all content within article stays within bounds */
.fs-5.text-gray-800.mb-1.fw-semibold.accent-color-3.fs-4 *,
.accent-color-3.fw-semibold *,
article * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Style tables in CKEditor content */
.fs-5.text-gray-800.mb-1.fw-semibold.accent-color-3.fs-4 table,
.accent-color-3.fw-semibold table,
article table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
    border-collapse: collapse;
    margin: 15px 0;
}

.fs-5.text-gray-800.mb-1.fw-semibold.accent-color-3.fs-4 table td,
.fs-5.text-gray-800.mb-1.fw-semibold.accent-color-3.fs-4 table th,
.accent-color-3.fw-semibold table td,
.accent-color-3.fw-semibold table th,
article table td,
article table th {
    padding: 8px 12px;
    border: 1px solid #ddd;
    white-space: normal;
}

/* Style videos and iframes in CKEditor content */
.fs-5.text-gray-800.mb-1.fw-semibold.accent-color-3.fs-4 iframe,
.fs-5.text-gray-800.mb-1.fw-semibold.accent-color-3.fs-4 video,
.accent-color-3.fw-semibold iframe,
.accent-color-3.fw-semibold video,
article iframe,
article video {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 10px 0;
}

/* Mobile text alignment for section subtitles */
@media (max-width: 768px) {
    .text-mobile-start {
        text-align: left !important;
    }
}

/* Services section styles */
.services-section {
    background-color: #ffffff;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    text-align: start;
    background: url('/assets/img/card_pattern.svg') center/cover no-repeat;
    background-position: -90px center;
    background-size: 200%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-arrow {
    display: absolute;
    top: 0;
    height: 24px;
}

/* Workflow section styles */
.workflow-section {
    background-color: #ffffff;
    min-height: 600px;
}

.workflow-bg-shape {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #02abec 0%, #0284c7 100%);
    clip-path: polygon(0 100%, 100% 100%, 100% 60%, 0 100%);
    z-index: 1;
}

.workflow-step {
    position: relative;
}

.workflow-step p {
    width: 75% !important;
}

.step-number {
    width: fit-content;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    line-height: 1;
    border-bottom: 2px solid #02abec;
    padding-bottom: 14px;
}

.workflow-ship-container {
    position: absolute !important;
    z-index: 0 !important;
    max-width: 700px !important;
    bottom: -120px !important;
    right: -200px !important;
    transform: translateY(10%);
}
.workflow-ship {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* Workflow section responsive adjustments */
@media (max-width: 992px) {
    .workflow-ship-container {
        max-width: 500px !important;
        bottom: -60px !important;
        right: -320px !important;
        z-index: 0 !important;
    }

    .workflow-bg-shape {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .workflow-section h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    .workflow-section .fs-5 {
        font-size: 1rem !important;
    }

    .workflow-step {
        margin-bottom: 2rem;
    }

    .workflow-step h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
    }

    .workflow-step p {
        font-size: 0.75rem !important;
    }

    .step-number {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .workflow-ship-container {
        max-width: 400px !important;
        bottom: -40px !important;
        right: -260px !important;
        z-index: 0 !important;
    }

    .workflow-bg-shape {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .workflow-section h2 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
    }

    .workflow-section .fs-5 {
        font-size: 0.95rem !important;
    }

    .workflow-section .row.g-5 {
        gap: 1rem !important;
    }

    .workflow-step h2 {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .workflow-step p {
        font-size: 0.7rem !important;
    }

    .step-number {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
    }

    .workflow-ship-container {
        display: none;
        max-width: 300px !important;
        bottom: -30px !important;
        right: -80px !important;
        z-index: 0 !important;
    }

    .workflow-bg-shape {
        height: 100px;
    }
}

/* BMI Global Advantage section styles */
.advantage-section {
    background: #01ABEC;
    min-height: 800px;
    margin-top: -50px;
    padding-top: 120px !important;
}

.advantage-wave-top {
    top: 0;
    left: 0;
    z-index: 1;
    transform: translateY(-99%);
}

.advantage-wave-top img {
    display: block;
    width: 100%;
    height: auto;
}

.advantage-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background: transparent !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.advantage-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    background-color: rgba(255, 255, 255, 0.2) !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Advantage section responsive adjustments */
@media (max-width: 992px) {
    .advantage-section h2 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .advantage-section h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .advantage-section .fs-5 {
        font-size: 1rem !important;
    }
    
    .advantage-card {
        margin-bottom: 12px;
    }
    
    .advantage-image img {
        height: 150px !important;
    }
}

@media (max-width: 576px) {
    .advantage-section h2 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
    }
    
    .advantage-section .fs-5 {
        font-size: 0.95rem !important;
    }
    
    .advantage-card {
        margin-bottom: 6px;
    }
    
    .advantage-image img {
        height: 120px !important;
    }
    
    .advantage-card h5 {
        font-size: 1.1rem !important;
    }
    
    .advantage-card p {
        font-size: 0.8rem !important;
    }
}

/* Services section responsive adjustments */
@media (max-width: 768px) {
    .services-section h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    .services-section .fs-5 {
        font-size: 1rem !important;
    }

    .service-card {
        min-height: 200px;
    }

    .service-card h5 {
        font-size: 1rem !important;
    }

    .service-card p {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .services-section h2 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
    }

    .services-section .fs-5 {
        font-size: 0.95rem !important;
    }

    .service-card {
        min-height: 180px;
        padding: 1rem !important;
    }

    .service-card h5 {
        font-size: 0.9rem !important;
    }

    .service-card p {
        font-size: 0.75rem !important;
    }
}

/* Products Section Styles */
.products-section {
    background-color: #ffffff;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-height: 350px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-arrow {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.product-card:hover .product-arrow {
    transform: scale(1.1);
    background-color: #02ABEC !important;
}

.product-card:hover .product-arrow svg {
    stroke: #ffffff !important;
}

/* Product section responsive adjustments */
@media (max-width: 768px) {
    .products-section h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    .products-section .fs-5 {
        font-size: 1rem !important;
    }

    .product-card {
        min-height: 250px !important;
    }

    .product-card h3 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .product-card p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    .product-card .p-6,
    .product-card .p-md-8 {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .products-section h2 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
    }

    .products-section .fs-5 {
        font-size: 0.95rem !important;
    }

    .product-card {
        min-height: 220px !important;
    }

    .product-card h3 {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
    }

    .product-card p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    .product-card .p-6,
    .product-card .p-md-8 {
        padding: 1.25rem !important;
    }

    .product-arrow {
        width: 40px !important;
        height: 40px !important;
    }

    .product-arrow svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* News Section Styles */
.news-section {
    background-color: #ffffff;
}

.news-article-card {
    cursor: pointer;
}

.news-image-container {
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
}

.news-article-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.news-article-card:hover .news-article-image {
    transform: scale(1.05);
}

.news-content h3 {
    transition: color 0.3s ease;
}

.news-article-card:hover .news-content h3 {
    color: #02ABEC !important;
}

/* News section responsive adjustments */
@media (max-width: 768px) {
    .news-section h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    .news-section .fs-5 {
        font-size: 1rem !important;
    }

    .news-image-container {
        height: 180px;
    }

    .news-article-card h5 {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }

    .news-article-card .fs-7 {
        font-size: 0.8rem !important;
    }

}

@media (max-width: 576px) {
    .news-section h2 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
    }

    .news-section .fs-5 {
        font-size: 0.95rem !important;
    }

    .news-image-container {
        height: 160px;
    }

    .news-article-card h5 {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .news-article-card .fs-7 {
        font-size: 0.75rem !important;
    }


    .news-section .row.g-6 {
        gap: 1.5rem !important;
    }
}

/* Contact Section Styles */
.contact-section {
    background: url('/assets/img/gradient.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.contact-section .container-fluid {
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
}

.contact-btn {
    background-color: #ffffff;
    color: #1e3a8a;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.contact-btn:hover {
    background-color: #f8fafc;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Contact section responsive adjustments */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }

    .contact-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 2rem !important;
    }

    .contact-section .col-lg-4,
    .contact-section .col-md-5 {
        text-align: center !important;
    }

    .contact-btn {
        min-width: 180px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 2.5rem 0;
    }

    .contact-title {
        font-size: 1.75rem;
        line-height: 1.4;
        text-align: center;
    }

    .contact-btn {
        min-width: 160px;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem !important;
    }
}

/* Footer Section Styles */
.footer-section {
    background: url('/assets/img/footer_pattern.svg') center/cover no-repeat;
}

/* Footer with border for contact page (when contact section is hidden) */
.footer-section.footer-with-border {
    border-top: 1px solid #e5e7eb;
}

.footer-main {
    background-color: transparent;
    position: relative;
}

.footer-main .container-fluid {
    position: relative;
    z-index: 2;
}

.footer-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2937;
}

.footer-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    width: 65%;
}

.footer-btn {
    border: 1.5px solid #02ABEC !important;
    padding: 8px 32px !important;
    background-color: transparent;
    color: #02ABEC;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background-color: #02ABEC;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 171, 236, 0.3);
}

.office-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.office-info p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info p {
    color: #4b5563;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-info svg {
    color: #6b7280;
    flex-shrink: 0;
}

.footer-bottom {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-logo {
    height: 40px;
}

.footer-company-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.9rem;
}

.contact-link {
    color: inherit;
    text-decoration: underline;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.contact-link:hover {
    color: #3b82f6 !important;
}

.contact-link::after {
    content: "↗";
    font-size: 0.75rem;
    opacity: 0.7;
    display: inline-block;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
}

.contact-link:hover::after {
    transform: translate(2px, -2px);
    -webkit-transform: translate(2px, -2px);
}

.contact-info p svg {
    transition: color 0.3s ease !important;
    -webkit-transition: color 0.3s ease !important;
}

.contact-info p:hover svg {
    color: #3b82f6 !important;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0;
    }

    .footer-title {
        font-size: 2rem;
        line-height: 1.3;
        text-align: center;
    }

    .footer-description {
        text-align: center;
        font-size: 0.95rem;
    width: 100%;
    }

    .footer-btn {
        display: block;
        text-align: center;
        margin: 0 auto;
        max-width: 200px;
        margin-bottom: 10px;
    }

    .office-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .office-info p,
    .contact-info p {
        font-size: 0.85rem;
    }

    .footer-bottom .col-lg-6,
    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin-bottom: 1rem;
    }

    .footer-bottom .col-lg-6:last-child,
    .footer-bottom .col-md-6:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 2.5rem 0;
    }

    .footer-title {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem !important;
    }

    .office-title {
        font-size: 1.3rem;
    }

    .office-info p,
    .contact-info p {
        font-size: 0.8rem;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-company-name {
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}
