.dropdown-menu .dropdown-submenu>.dropdown-menu {
    display: none;
    position: absolute;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
    left: 100%;
    top: 0;
    min-width: 220px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu:last-child>.dropdown-menu {
    top: auto;
    bottom: 0;
}

/* =====================
   MOBILE / TABLET (click)
   ===================== */
@media (max-width: 768px) {

    .dropdown-submenu>.dropdown-menu {
        display: none;
        position: static !important;
        width: 100%;
        left: 0;
        top: 0;
        margin-top: 0.25rem;
    }

    .dropdown-submenu.open>.dropdown-menu {
        display: block;
        position: static !important;
        width: 100%;
        left: 0;
        top: 0;
        margin-top: 0.25rem;
    }

    .dropdown-submenu>.submenu-toggle::after {
        content: "▼";
        float: right;
        font-size: 12px;
    }
}

.post_content,
.calculator_content {
    line-height: 1.75;
    color: #2d2d2d;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.post_content p {
    margin-bottom: 1rem;
}

.post_content h2 {
    font-size: 28px;
    margin: 10px 0 8px;

}

.post_content h3 {
    font-size: 20px;
}

.post_content h5 {
    font-weight: 600;
}

#container {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 40px;
}

.title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.list {
    padding-left: 0;
}

.list li {
    list-style: none;
    margin-bottom: 8px;
}

.list a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.list a:hover {
    text-decoration: underline;
}

.post_content ul li {
    margin-left: 15px;
}

.post_content ol li {
    margin-left: 15px;
}

.faq-section {
    margin: 2rem auto;
    font-family: Arial, sans-serif;
}

.faq-section h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.accordion_item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}


/* Accordion */
.accordion-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0.5rem;
}

.accordion-title {
    cursor: pointer;
    padding: 1rem;
    background: #f9f9f9;
    margin: 0;
    position: relative;
    font-size: 1rem;
    transition: background 0.3s;
}

.accordion-title::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-weight: bold;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-title::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0.5rem 1rem 1rem 1rem;
    background: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =====================
   IMAGE FIX (ALL DEVICES)
   ===================== */

.image_wrap {
    display: block;
    /* span → block */
    width: 100%;
}

.center-banner {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image responsive fix */
.wp-image-custom {
    max-width: 100%;
    display: block;
    border-radius: 6px;
}

/* Mobile specific tuning */
@media (max-width: 768px) {

    .wp-image-custom {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .module.image {
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 768px) {

    .page-header h1 {
        font-size: 35px;
        /* instead of display-3 */
    }

    .breadcrumb-item.active {
        width: 100%;
    }
}

.calculator_content h4 {
    color: #0a0a0a;
    font-family: Spirits-Soft;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: .4px;
    margin-bottom: 10px;
}

.gratuity-chart-container {
    padding: 20px;
    background: #ebe8f5;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.sip-result {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
}

.gratuity-chart-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.donut-chart-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.gratuity-result {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    align-items: center;
    margin-top: 5px;
}

.result-item {
    margin-top: 5px;
}

.result-item .amount {
    font-weight: 600;
}

.calculation-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: gap .4s ease-in-out;
}

.calculation-title {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
    margin-top: 5px;
}

.calculation-details {
    padding: 20px 25px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-text {
    color: #d4d4cf;
    text-align: center;

}

.donut-chart-wrapper {
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

#gratuityChart {
    width: 100% !important;
    height: 100% !important;
}

.getStartedSpan {
    color: #000;
    display: flex;
    font-family: Inter, sans-serif;
    justify-content: center;
}

.rightArr {
    position: absolute;
    right: 20px;
    font-size: 22px;
    font-weight: bold;
    color: #555;
}

.video-wrapper {
    max-width: 1083px;
    border-radius: 12px;
    overflow: hidden;
}

/* Scrollable section */
.milestones-module-section {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.milestones-module-section::-webkit-scrollbar {
    display: none;
}

.milestones-module-topItems {
    display: flex;
    gap: 120px;
    padding-right: 120px;
    align-items: center;
}

.milestones-module-bottomItems {
    display: flex;
    gap: 120px;
    padding-right: 120px;
    align-items: center;
    margin-left: 100px;
}

.milestones-module-item {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: auto;
}

.milestones-module-item .card {
    width: 100%;
    min-height: 170px;
}

.milestones-module-month {
    margin: 20px 0;
    font-weight: 600;
}

.milestones-module-verticalBar-topitem,
.milestones-module-verticalBar-bottomitem {
    background: #222027;
    height: 52px;
    opacity: .05;
    width: 8px;
}

.milestones-module-bar {
    width: 180%;
    height: 8px;
    background: #222027;
    opacity: .05;
    margin: 0;
}