/* =========================================
   GLOBAL WRAPPER STYLES
   ========================================= */
.site-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title-wrapper {
    margin-bottom: 20px;
}
.section-heading {
    margin: 0; /* Reset margins since wrapper handles it */
}

/* --- VISIBILITY TOGGLES --- */
.desktop-only { display: flex; } /* Default Desktop */
.mobile-only { display: none; }  /* Default Hide Mobile */

@media screen and (max-width: 767px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}

/* --- 1. MOBILE DEFAULT (SLICK SLIDER) --- */
.highlights-flex-wrapper {
    display: block; /* Standard block for slider */
    width: 100%;
    margin-bottom: 40px;
}

/* Individual Slide Item */
.highlight-item {
    margin: 0 8px; /* Gap between slides */
    outline: none;
}

/* Card Styling */
.highlight-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.highlight-card .img-link-wrapper,
.highlight-card .img-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

.highlight-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.highlight-card:hover .img-wrapper img {
    transform: scale(1.05);
}

/* Overlay Text */
.overlay-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    z-index: 2;
    box-sizing: border-box;
}
.overlay-content h3 {
    color: #fff; margin: 5px 0 0; font-size: 1.1rem; line-height: 1.3;
}
.overlay-content .cat-label {
    color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* --- 2. DESKTOP LAYOUT (CSS GRID) --- */
@media screen and (min-width: 768px) {
    
    .highlights-flex-wrapper {
        display: grid; 
        /* Columns: Left is 60%, Right is 40% */
        grid-template-columns: 1fr; 
        /* Rows: Two equal rows */
        grid-template-rows: 1fr 1fr;
        gap: 20px;
        height: 450px; 
    }

    /* Reset Mobile Margins */
    .highlight-item {
        margin: 0;
        height: 100%;
    }

    /* ITEM 1: MAIN CARD (Left Side) */
    .highlight-item.highlight-main {
        /* Span from Row 1 to Row 3 (taking up the whole left side) */
        grid-row: 1 / 3; 
        grid-column: 1 / 2;
    }

    /* ITEMS 2 & 3: SUB CARDS (Right Side) */
    .highlight-item.highlight-sub {
        /* They naturally flow into the right column */
        grid-column: 2 / 3;
    }
    
    /* Make Main Card title bigger */
    .highlight-item.highlight-main h3 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width:767px) {
    .overlay-content .title-wrapper {
        max-width: 90%;
    }
}

/*lick dots*/

/* --- Fix for Slick Slider Dots (The "1 2 3" issue) --- */

/* 1. Reset the list style */
.highlights-flex-wrapper .slick-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 15px 0 0 0; /* Space above dots */
    padding: 0;
    width: 100%;
}

/* 2. Space between dots */
.highlights-flex-wrapper .slick-dots li {
    margin: 0 4px;
    padding: 0;
}

/* 3. Style the buttons (The actual dots) */
.highlights-flex-wrapper .slick-dots li button {
    font-size: 0;         /* Hide the numbers "1, 2, 3" */
    line-height: 0;
    display: block;
    width: 8px;          /* Dot Size */
    height: 8px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: #D1D5DB;  /* Inactive Color (Light Gray) */
    border-radius: 50%;   /* Make them round */
    transition: background-color 0.3s ease;
}

/* 4. Active Dot Color (Blue) */
.highlights-flex-wrapper .slick-dots li.slick-active button {
    background: #007bff;
    border-radius: 50px;
    width: 30px;
}


/* =========================================
   MEGA MENU STYLING
   ========================================= */

/* The Main Container */
.mega-menu-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-width: 800px; /* Adjust based on your mega menu width */
    padding: 20px;
    box-sizing: border-box;
}

/* Columns (1, 2, 3) */
.mega-menu-col {
    flex: 1; /* Equal width */
    padding: 0 15px;
}

.mega-menu-col:last-child {
    border-right: none;
}

/* Category Headings */
.category-heading {
    font-size: 14px;
    color: #4293F7; /* The Blue Color from screenshot */
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 20px;
    text-transform: capitalize;
}
/* Remove top margin for the first heading in a column */
.category-heading:first-child {
    margin-top: 0;
}

/* List Reset */
.category-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.category-list li {
    margin-bottom: 15px;
}

/* The Link Box (Icon + Text) */
.menu-item-box {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: #333; /* Dark text color */
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.menu-item-box:hover {
    color: #4293F7; /* Blue on hover */
}

/* The Icon Wrapper */
/* In your chester.css */

.icon-wrap {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0
}


.icon-wrap img {
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Ensures it fills without stretching */
}

/* Placeholder Icon */
.icon-wrap .dashicons {
    font-size: 20px; /* Shrink the font icon too */
    color: #4293F7;
    width: 20px;
    height: 20px;
}


.mm-sidebar-container {
    padding: 50px; 
    background-color: #f8fbff;
    height: 100%; 
    box-sizing: border-box;
    width: 100%;
    padding-top: 20px;
}


.mm-sidebar-title {
    color: #1a73e8;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.2;
}

/* The Description Text */
.mm-sidebar-text {
    color: #4a5568; 
    font-size: 15px;
    line-height: 1.6; 
    margin: 0;
    font-weight: 400;
}

@media screen and (max-width:767px) {
    h3.category-heading {
        color: #148DFB;
        font-family: Inter;
        font-size: 10px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    span.text-wrap {
        color: #0F2855;
        font-family: Inter;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: 17px; /* 141.667% */
    }
}



/* =========================================
   ALL ARTICLES SECTION
   ========================================= */

/* Filter Tabs */
.article-filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}
.article-filters-wrapper .filter-item a {
    text-decoration: none;
    color: #364156;
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
    padding: 8px 12px;
    border: 1px solid transparent;
}

.article-filters-wrapper .filter-item a:hover{
    color: #4293F7;
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px;
    border-radius: 100px;
    border: 1px solid transparent;
}

.article-filters-wrapper .filter-item a.active {
    color: #4293F7;
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px;
    border-radius: 100px;
    border: 1px solid #4293F7;
    background: #E8F4FF;
}

/* Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Card Styling */
.standard-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Pushes content down properly */
    background: #0F285508;
}

.standard-card .card-img-top img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.standard-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-label-small > a {
    color:#0F2855;
    font-family: Inter;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none !important;
    opacity: 0.7;
}

.standard-card .meta-wrapper {
    font-size: 12px;
    color: #888;
}

.standard-card .title-wrapper h4 {
    display: -webkit-box;           /* Enables the clamp mode */
    -webkit-line-clamp: 2;          /* Number of lines to show */
    -webkit-box-orient: vertical;   /* Orientation */
    overflow: hidden;               /* Hides the rest of the text */
    text-overflow: ellipsis;        /* Adds the '...' */
    line-height: 1.4;               
    height: 2.8em;
    margin: 0;
}
.standard-card .title-wrapper a {
    color: #0F2855;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.4; 
    text-decoration: none;
}

.standard-card .cta-wrapper {
    margin-top: auto; /* Pushes button to bottom if heights vary */
}

.standard-card .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s ease;
    color: #4293F7;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
}

/* Style the SVG Icon */
.standard-card .read-more-btn svg {
    width: 14px;
    height: 14px;
    display: block;
    transition: transform 0.2s ease; /* For the hover effect */
}

/* HOVER EFFECTS */
.standard-card .read-more-btn:hover {
    color: #2a7de1; /* Slightly darker blue on hover */
}

/* Move the arrow slightly to the right on hover for a nice touch */
.standard-card .read-more-btn:hover svg {
    transform: translateX(4px);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media screen and (max-width: 768px) {
    .highlights-flex-wrapper {
        flex-direction: column;
        height: auto; 
        max-height: none;
    }
    .highlights-right-col {
        height: auto;
    }
    .highlight-card.sub-feature {
        height: 250px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid .standard-card:nth-child(n+3) {
        display: none;
    }
}

/* =========================================
   SINGLE ARTICLE LAYOUT
   ========================================= */

/* Top Navigation (Back Button) */
.article-top-nav {
    margin: 20px 0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.back-link:hover { color: #000; }

/* Main Grid Layout */
.single-article-layout {
    display: grid;
    grid-template-columns: 40fr 13fr;
    gap: 30px;
    margin-bottom: 80px;
}

.div-article-writing .article-writing > p {
    color: #364156;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 23px;
}

.div-article-writing .article-writing > h3 {
    color:  #0F2855;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* --- LEFT COLUMN STYLES --- */

/* Meta Data Row */
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}
.meta-cat a {
    color: #666;
    text-decoration: none;
}

/* Title */
.entry-title {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a; /* Dark Navy */
    margin-bottom: 25px;
}

/* Pill Buttons (Tags) */
.article-tags-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.pill-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f3f4f6; /* Light Grey */
    border: 1px solid #f3f4f6; /* Blue Border */
    color: #555;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.pill-btn:hover, .pill-btn.active {
    background-color: #eff6ff; /* Light Blue Bg */
    color: #2563eb; /* Blue Text */
    border: 1px solid #bfdbfe; /* Blue Border */
}

/* Featured Image */
.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
}

/* Content Typography */
.entry-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

/* --- RIGHT COLUMN (SIDEBAR) STYLES --- */

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}
.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.view-all-link {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* --- SIDEBAR HEADER (Mobile & Desktop) --- */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.sidebar-header h3 {
    margin: 0;
    font-size: 18px; /* Matches your design */
    color: #0F2855;
}
.view-all-link {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* --- SIDEBAR LIST (MOBILE DEFAULT: SLIDER) --- */
.sidebar-list {
    display: block; /* Required for Slick */
    width: 100%;
}

/* Card Styling */
.sidebar-card {
    background: #0F285508;
    border-radius: 10px;
    overflow: hidden;
    /* Add margin for mobile slider spacing */
    margin: 0 8px; 
}

/* Images */
.sidebar-img-link img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Body Content */
.sidebar-card-body {
    padding: 15px;
}
.sidebar-cat, .sidebar-cat a {
    color: #0F2855 !important;
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-decoration: none;
}
.sidebar-card-body h4 {
    font-size: 15px;
    margin: 6px 0 10px 0;
    line-height: 1.4;
}
.sidebar-card-body h4 a {
    color: #0F2855;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.read-more-simple {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* --- DESKTOP OVERRIDE (VERTICAL STACK) --- */
/* Applies only when screen is wider than 767px */
@media (min-width: 768px) {
    
    .article-sidebar-col {
        position: -webkit-sticky;
        position: sticky;
        top: 20px; /* Added some breathing room from top */
        align-self: start; 
        z-index: 10;
    }

    .sidebar-list {
        display: flex; /* Switch back to Flex */
        flex-direction: column; /* Vertical Stack */
        gap: 25px; /* Vertical gap */
    }

    .sidebar-card {
        margin: 0; /* Remove the slider side-margins */
    }
}

@media screen and (max-width:767px) {
    .single-article-layout {
        display: flex;
        flex-direction: column;
    }
}
/*home loan*/

.section-calculator.e-con-full {
    margin-bottom: -3%;
    transition: margin-bottom 0.4s ease-out; /* Makes the movement smooth */
}
/* =========================================
   LEFT SIDE: CALCULATOR FORM
   ========================================= */

/* The White Card Container */
.df-calc-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 530px; /* Prevents it from getting too wide on large screens */
    margin: 0 auto;   /* Centers it */
}

/* Input Group Spacing */
.df-input-group {
    margin-bottom: 20px;
}

/* Labels */
.df-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6; /* Light Blue Label Color */
    margin-bottom: 8px;
}

.home-loan-title > h1 {
    max-width: 530px;
    margin: auto;
    margin-top: 60px;
}

/* Input Wrappers (Grey Backgrounds) */
.input-wrapper, 
.input-wrapper-split {
    display: flex;
    align-items: center;
    background-color: #f3f4f6; /* Light Grey Input Bg */
    border-radius: 8px;
    padding: 5px 15px;
    transition: box-shadow 0.2s;
}

/* Focus State */
.input-wrapper:focus-within, 
.input-wrapper-split:focus-within {
    box-shadow: 0 0 0 2px #3b82f6; /* Blue ring on click */
    background-color: #fff;
}

/* The Input Field Itself */
.df-calc-box input[type="number"],
.df-calc-box input[type="text"]
 {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    padding: 10px 10px;
    outline: none;
}
/* Remove Arrows from Number Inputs */
.df-calc-box input[type="number"]::-webkit-inner-spin-button, 
.df-calc-box input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; margin: 0; 
}

/* Prefixes (RM) and Suffixes (Years, %) */
.prefix {
    margin-right: 10px;
    color: #64748b;
    font-weight: 500;
}
.suffix {
    margin-left: 10px;
    color: #0F2855;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6; 
}

/* --- The Down Payment Toggle (% vs Amt) --- */
.input-wrapper-split {
    padding: 5px; /* Less padding so buttons fit nicely */
}
.input-wrapper-split input {
    padding-left: 10px;
}

.toggle-btns {
    display: flex;
    gap: 5px;
}
.tgl-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.tgl-btn:hover {
    background: #f1f5f9;
}
/* Active Toggle State */
.tgl-btn.active {
    background: #dbeafe; /* Light Blue Bg */
    color: #2563eb;      /* Blue Text */
    border-color: #bfdbfe;
}

/* --- Split Row (Period & Interest) --- */
.df-row-split {
    display: flex;
    gap: 20px;
}
.df-row-split .df-input-group {
    flex: 1; /* 50/50 width */
}

/* --- Calculate Button --- */
.df-btn-primary {
    width: 100%;
    background-color: #1a73e8; /* Google Blue */
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.df-btn-primary:hover {
    background-color: #1557b0;
}

@media screen and (max-width:767px) {
    .home-loan-title > h1 {
        max-width: 530px;
        margin: auto;
        margin-top: 0;
    }
}

@media screen and (max-width:480px) {
    .home-loan-title > h1 {
        font-family: Inter;
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin-top: 0px;
    }
    
}

/* =========================================
   NAVIGATION CARD (Below Calculator)
   ========================================= */

.df-calc-nav-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px; /* Rounded corners */
    padding: 15px 20px;
    margin-top: 20px; /* Space from the main calc box */
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #1e293b; /* Dark Text */
    cursor: pointer;
    max-width: 530px;
    margin: 20px auto;
}

.df-calc-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Icon Wrapper (Light Blue Square) */
.nav-card-icon {
    width: 45px;
    height: 45px;
    background-color: #eef7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-card-icon img {
    width: 45px !important;
    height: 40px;
    object-fit: contain;
}

/* Text */
.nav-card-text {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

/* Arrow */
.nav-card-arrow {
    color: #3b82f6; /* Blue Arrow */
    display: flex;
    align-items: center;
}

/* Mobile Fix for Left Side */
@media (max-width: 600px) {
    .df-row-split { flex-direction: column; gap: 0; }
}


/* =========================================
   RIGHT SIDE: RESULT DASHBOARD
   ========================================= */

.df-result-box {
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 45px;
}

/* --- Top Section (Text + Donut) --- */
.df-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.df-result-text {
    flex: 1;
}

.df-result-text h3 {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
    color: white;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.label-monthly {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
    font-weight: 500;
    color: #FFD84B;
}

.df-description p {
    color:#FFF;
    font-family: Inter;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.df-watermark {
    margin-top: 24px;
}

.result-big {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1;
}

@media screen and (max-width:767px) {
    .mobile-only {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .df-result-title {
        display: flex;
        justify-content: space-between;
    }

    .df-result-box {
        padding-top: 0px;
    }
}

/* Legend (Principal / Interest dots) */
/* =========================================
   LEGEND ALIGNMENT FIX
   ========================================= */

.df-legend {
    display: flex;
    align-items: center;
    gap: 25px; /* Space between the two groups */
    margin-bottom: 20px;
    flex-wrap: wrap; /* Safe wrapping for mobile */
}

/* The Wrapper for [Dot + Text + %] */
.legend-item {
    display: flex;
    align-items: center; /* THIS IS THE KEY FIX: Centers dot vertically */
    gap: 8px; /* Space between dot and text */
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* The Dots */
.dot-principal, 
.dot-interest {
    width: 12px;  /* Fixed size */
    height: 12px; /* Fixed size */
    border-radius: 50%; /* Perfect Circle */
    display: block; /* Ensures it acts as a box, not text */
    flex-shrink: 0; /* Prevents squishing */
}

/* Dot Colors */
.dot-principal { background-color: #00498B; }
.dot-interest { background-color: #F6BC2B; }

/* The Percentage Text */
.legend-val {
    font-weight: 700; /* Bolder for emphasis */
    opacity: 0.9;
}

/* Donut Chart Wrapper */
.df-chart-donut-wrapper {
    width: 280px;
    height: 280px;
    position: relative; /* For centering text */
    margin: 0 auto;
}

.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none; /* Let clicks pass through to chart */
}
.donut-center-text span {
    display: block;
    line-height: 1.2;
}
.donut-center-text span:first-child { font-size: 12px; opacity: 0.8; }
.donut-center-text span:last-child { font-size: 18px; font-weight: 700; }


/* --- Bottom Section (Payment Schedule Card) --- */
.df-result-bottom-card {
    padding: 25px;
    border-radius: 18px;
    background: #FFF;
    box-shadow: 0 23px 28.6px 0 rgba(0, 0, 0, 0.03);
}

.df-result-box.is-inactive .df-result-bottom-card {
    padding: 25px 25px 50px;
}

.df-result-bottom-card h3 {
    color:  #0F2855;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.df-result-bottom-card p {
    color: #364156;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 20px;
}

.df-chart-line-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for line chart */
    position: relative;
}


@media screen and (max-width:480px) {
    .df-result-title.mobile-only .df-watermark {
        margin: auto 0;
    }
}

/* =========================================
   AMORTIZATION TABLE
   ========================================= */

/* CARD 2: AMORTIZATION TABLE */

#df-amortization-section {
    /* Make this its own White Card */
    background: #ffffff;
    border-radius: 8px;
    margin-top: 20px; /* The gap between Chart and Table */
    
    /* Remove internal padding so header touches edges */
    padding: 0; 
    
    /* styling */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden; /* Clips the header corners */
    display: none;    /* Hidden by default */
}

/* Wrapper for scrolling on mobile */
.df-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* --- Table Styling --- */
.df-amort-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #334155;
}

/* Header: Dark Navy Background */
.df-amort-table th {
    background-color: #1F5B91; 
    color: #ffffff;
    padding: 18px 20px;
    text-align: left;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
}
.df-amort-table th:last-child { text-align: right; }

/* Body: Clean rows */
.df-amort-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.df-amort-table td:last-child { text-align: right; font-weight: 700; color: #1e293b; }

/* Zebra Striping */
.df-amort-table tr:nth-child(even) {
    background-color: #F0F6FD;
}

/* Hidden Rows */
.df-amort-table tr.row-hidden {
    display: none;
}

/* --- Show More Button (Card Footer Style) --- */
#df-show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    
    /* Make it look like the footer of the card */
    background: #ffffff; 
    border: none;
    border-top: 1px solid #f1f5f9;
    
    /* Text */
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    
    padding: 20px 0;
    transition: all 0.2s;
}

#df-show-more-btn:hover {
    background: #f8fafc; /* Slight grey on hover */
    color: #1d4ed8;
}

#df-show-more-btn.is-expanded svg {
    transform: rotate(180deg);
}

/* =========================================
   EMPTY STATE STYLING
   ========================================= */

/* When the result box is inactive */
.df-result-box.is-inactive {
    opacity: 0.5; /* Dim the whole section */
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevent clicking/hovering on empty charts */
    filter: grayscale(0.5); /* Optional: desaturates slightly for a disabled look */
}

/* When active (after clicking calculate), bring it back to life */
.df-result-box.is-active {
    opacity: 1;
    pointer-events: all;
    filter: none;
}

/* Ensure the parent wrapper allows positioning */
.df-chart-line-wrapper {
    position: relative; 
    width: 100%;
    height: 300px; /* Ensure enough height for chart + legend + logo */
}

/* The Watermark Container */
.chart-watermark {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    opacity: 0.9; 
    pointer-events: none; 
}

/* The Logo Image Size */
.chart-watermark img {
    height: 35px; /* Adjust based on your logo size */
    width: 70%;
    display: block;
    margin-left: auto;

}

.df-result-box.is-inactive .df-result-bottom-card .chart-watermark{
    bottom: -40px;
}

/* Mobile Tweak: Make it smaller on phones */
@media (max-width: 480px) {
    .df-result-box.is-inactive {
        display: none ;
    }
    
    .chart-watermark img {
        height: 25px;
    }
}


/* --- Mobile Fix for Right Side --- */
@media (max-width: 767px) {
    .df-result-top {
        flex-direction: column; /* Stack chart on top or bottom */
        text-align: left;
        gap: 30px;
    }
    .df-legend {
        justify-content: flex-start;
    }
}
/*home loan*/


/* =========================================
   SLICK SLIDER - OTHER CALCULATORS
   ========================================= */

.other-calcs-section {
    margin: 60px 0;
    width: 100%;
    position: relative; /* Context for arrows */
}

/* 1. RESET THE GRID (Crucial for Slick) */
.other-calcs-grid {
    display: block !important; /* Slick requires block, NOT flex */
    margin: 0 -10px; /* Offset the padding on items */
}

/* 2. THE CARD (Adjusted for Slick) */
.other-calc-card {
    /* Slick wraps items in divs, so we style the anchor block */
    display: block; 
    margin: 10px; /* Spacing between slides */
    height: 100%; /* Ensure uniform height */
    
    background: #ffffff;
    border: 1px solid #f0f7ff;
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.15);
}

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

/* 3. CUSTOM ARROW STYLING */
.slick-custom-next,
.slick-custom-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #eee;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    transition: all 0.2s;
}

.slick-custom-next { right: -10px; }
.slick-custom-prev { left: -10px; }

.slick-custom-next:hover,
.slick-custom-prev:hover {
    background: #f8fbff;
    color: #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* Disable disabled arrows */
.slick-disabled { opacity: 0; pointer-events: none; }

/* Keep existing Icon/Text Styles */
.oc-icon-wrap {
    width: 45px;
    height: 45px;
    background-color: #eef7ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.oc-icon-wrap img { width: 40px; height: 24px; object-fit: contain; }
.oc-title { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 10px 0; }
.oc-desc { font-size: 13px; line-height: 1.5; color: #64748b; margin: 0; }

.other-calcs-grid .slick-track {
    display: flex !important;
}

.other-calcs-grid .slick-slide {
    height: auto;
    display: flex;       /* Allows the card inside to expand */
    height: auto;        /* Let it grow */
    align-items: stretch; /* Force stretch */
}

.other-calc-card {
    height: 100%;
    display: flex;       
    flex-direction: column; /* Stack title/desc vertically */
    justify-content: flex-start;
}


/*CONTENT*/

.right-div-content {
    h2 {
        font-family: Inter;
        font-size: 28px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    h3 {
        color: #0F2855;
        font-family: Inter;
        font-size: 20px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }

    p {
        color: #364156;
        font-family: Inter;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 1.6;
    }

    .image-content > img {
        width: 100%;
    }
}



/* =========================================
   INFO CARD (Principal/Interest Explanation)
   ========================================= */

/* Main Card Container */
.df-info-card {
    background-color: #E7F2FF; 
    border-radius: 14px;       /* Rounded corners */
    padding: 20px;             /* Internal spacing */
    color: #1E293B;            /* Default text color (dark blue/grey) */
    max-width: 620px;
}

/* Main Title */
.df-info-card h3 {
    color: #1E293B;
    margin-top: 0;
    margin-bottom: 25px;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px; /* 137.5% */
}

/* List Container */
.df-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between items */
}

/* Individual List Item Wrapper */
.df-info-item {
    display: flex;
    align-items: flex-start; 
    gap: 15px;               
}

/* The Number Circle */
.df-num-circle {
    background-color: #148DFB; 
    color: #ffffff;            
    width: 40px;
    height: 40px;
    border-radius: 50%;        
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;            
    line-height: 1.4;
    padding-bottom: 2px;      
}

/* Text Content Wrapper */
.df-info-text {
    flex-grow: 1;
}

/* Item Heading (Principal/Interest) */
.df-info-text h4 {
    color: #1E293B;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0; /* Tight spacing below */
    line-height: 1.2;
}

/* Item Description */
.df-info-text p {
    color: #334155;   /* Slightly lighter text for description */
    font-size: 16px;
    line-height: 1.5;
    margin: 0;        /* Remove default paragraph margins */
}

/* =========================================
   STATS CARDS (BLR & Max Loan)
   ========================================= */

/* The Container holding both cards side-by-side */
.df-stats-container {
    display: flex;
    gap: 25px;
    margin-bottom: 30px; 
    flex-wrap: wrap;
    width:75%;
}

/* Individual Card Style */
.df-stat-card {
    flex: 1; 
    min-width: 250px;
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px; 
    padding: 30px;
}

/* Card Title */
.df-stat-card h5 {
    color: #1E293B; /* Dark slate text */
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Big Value Text */
.df-stat-value {
    color: #148DFB; /* Bright Blue */
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: baseline; /* Aligns the smaller text nicely with the big number */
    flex-wrap: wrap;
    gap: 8px;
}

/* Smaller suffix text (e.g., "of property price") */
.stat-suffix {
    font-size: 16px;
    font-weight: 300;
    color: #148DFB; /* Keep it blue, or use #64748b for grey */
    margin: auto;
}


/*ABOUT US*/

.post-234.page .page-header,
.page-id-688 .page-header {
    display: none;
}


/*POPUP REPORT AN ISSUE*/

/* --- Container & Typography --- */
.custom-issue-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* --- Header Styling --- */
.custom-issue-popup .popup-header h2 {
    color: #2575fc; /* Bright Blue Title */
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 0;
}

/* --- Form Group Styling --- */
.custom-issue-popup .form-group {
    margin-bottom: 20px;
}

.custom-issue-popup label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.custom-issue-popup .required {
    color: #e74c3c; /* Red Asterisk */
    margin-left: 2px;
}

/* --- Inputs & Select Styling --- */
.custom-issue-popup input[type="text"],
.custom-issue-popup input[type="email"],
.custom-issue-popup select,
.custom-issue-popup textarea {
    width: 100%;
    background-color: #F3F3F3; 
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    font-family: Inter;
    color: #6C757D;
    box-sizing: border-box; 
    transition: all 0.3s ease;
}

div#popmake-259 {
    top: 70px !important;
}

/* Input Focus State */
.custom-issue-popup input:not(.submit-btn):focus,
.custom-issue-popup select:focus,
.custom-issue-popup textarea:focus {
    background-color: #ffffff;
    border-color: #cbd5e0;
    outline: none;
}

/* --- Dropdown Specifics --- */
.custom-issue-popup .select-wrapper {
    position: relative;
}

/* Remove default appearance for cleaner look (Optional) */
.custom-issue-popup select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234a5568%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

/* --- Submit Button Styling --- */
.custom-issue-popup .submit-btn {
    width: 100%;
    background-color: #1a73e8; /* Button Blue */
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.custom-issue-popup .submit-btn:hover {
    background-color: #155bb5; /* Darker blue on hover */
}


/* --- CF7 Success Message Styling --- */
.custom-issue-popup .wpcf7-response-output {
    border: none !important;      /* Remove default border */
    background: #ecfdf5;          /* Very light green background */
    color: #059669;               /* Darker green text */
    text-align: center;           /* Center the text */
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
}

/* Optional: Style the error message too (Red) */
.custom-issue-popup .wpcf7-response-output.wpcf7-validation-errors {
    background: #fef2f2;
    color: #dc2626;
}

/* --- MOBILE POPUP WIDTH ADJUSTMENT --- */
@media (max-width: 767px) {
    
    /* Target the specific popup ID (from your inspector screenshot) */
    #popmake-259 {
        /* 1. Calculate width: 100% of screen minus 20px Left and 20px Right */
        width: calc(100% - 40px) !important;
        
        /* 2. Force Centering */
        left: 50% !important;
        transform: translateX(-50%) !important;
        
        /* 3. Adjust Top Position (Optional: fits better on small screens) */
        top: 20px !important;
        
        /* 4. Reset margins that might interfere */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Optional: Adjust INNER padding on mobile if the text feels too squished */
    #popmake-259 .pum-content {
        padding: 20px !important; 
    }
}
/* =========================================
   ELIGIBILITY CALCULATOR STYLES
   ========================================= */

/* Section Labels (Input Side) */
.df-section-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 500;
}

.df-divider {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 20px 0;
}

/* --- RESULT SIDE STYLES --- */

/* Wrapper adjustment */
.df-eligibility-result {
    position: relative;
    padding-top: 40px; /* Space for the header */
}

/* The Watermark Icon (Top Right) */
.result-watermark-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.3;
}
.result-watermark-icon img {
    width: 100px; /* Adjust based on your logo */
    height: auto;
}

.label-highlight {
    color: #ffd700; /* Gold/Yellow text from screenshot */
    font-weight: 600;
    margin-bottom: 5px;
}

/* The Blue Split Card */
.df-result-blue-card {
    background: rgba(255, 255, 255, 0.15); /* Glass effect */
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    text-align: center;
}

.df-result-blue-card .df-col {
    flex: 1;
}

.df-result-blue-card p {
    font-size: 13px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.df-result-blue-card h4 {
    font-size: 24px;
    margin: 5px 0;
    color: #fff;
    font-weight: 700;
}

.df-result-blue-card .sub-label {
    font-size: 12px;
    opacity: 0.7;
}

.df-divider-vertical {
    width: 1px;
    height: 50px;
    background-color: rgba(255,255,255,0.2);
    margin: 0 15px;
}

/* Disclaimer Text */
.df-disclaimer {
    margin-top: 30px;
    font-size: 11px;
    opacity: 0.6;
    line-height: 1.5;
}

/* =========================================
   BANK RATES TABLE CARD
   ========================================= */

.df-bank-table-card {
    background: #ffffff;
    width: 100%;
    margin-bottom: 30px;
    font-family: inherit; /* Inherit theme font */
}

/* Title Styling */
.df-bank-title {
    color: #0f172a; /* Dark Navy */
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

/* The Thick Blue Line under Title */
.df-title-divider {
    width: 100%;
    height: 3px;
    background-color: #3b82f6; /* Bright Blue */
    margin-bottom: 0;
}

/* Table Wrapper (Scrolls on mobile) */
.df-bank-table-wrapper {
    overflow-x: auto;
}

/* Table Structure */
.df-bank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: #334155; /* Slate Text */
}

/* Table Header */
.df-bank-table th {
    text-align: left;
    padding: 15px 20px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap; /* Keeps header on one line */
}

/* Sort Icon (Little Triangle) */
.sort-icon {
    display: inline-block;
    margin-left: 5px;
    opacity: 0.7;
    vertical-align: middle;
}

/* Table Cells */
.df-bank-table td {
    padding: 18px 20px;
}

.df-bank-table tr:nth-child(even) {
    background-color: #f8fafc; /* Very light blue-grey */
}
.df-bank-table tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Footer Section */
.df-bank-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-top: 10px;
}

.df-last-updated {
    font-size: 13px;
    color: #64748b; /* Light Grey text */
}

.df-footer-logo {
    height: 25px; /* Adjust logo size */
    max-width: 110px !important;
}

/* The Thin Blue Line at the very bottom */
.df-bottom-divider {
    width: 100%;
    height: 1px;
    background-color: #3b82f6;
    margin-top: 5px;
}

/* Mobile Tweak */
@media (max-width: 767px) {
    .df-bank-footer {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }
}

/* =========================================
   SIDEBAR TOC (Table of Contents)
   ========================================= */

.df-sidebar-wrapper {
    position: sticky;
    top: 100px; /* Sticks to top when scrolling */
}

/* The List Container */
.df-toc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

/* The Individual Buttons */
.df-toc-item {
    display: block;
    padding: 12px 20px;
    background-color: #F8FAFC; /* Light Grey */
    border: 1px solid transparent;
    border-radius: 8px;
    
    color: #64748B; /* Slate Text */
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    
    transition: all 0.2s ease;
}

.df-toc-item:hover {
    background-color: #F1F5F9;
    color: #3B82F6;
}

/* Active State (Selected) */
.df-toc-item.active {
    background-color: #EFF6FF; /* Very Light Blue */
    border-color: #3B82F6;     /* Blue Border */
    color: #3B82F6;            /* Blue Text */
    font-weight: 600;
}

/* --- Promo Card (The image below) --- */
.df-promo-card {
    text-align: center;
    margin-top: 40px;
}

.df-promo-card p {
    font-size: 14px;
    color: #3B82F6;
    margin-bottom: 15px;
    font-weight: 500;
}

.promo-image-box img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* =========================================
   FAQ ACCORDION DESIGN
   ========================================= */

.df-faq-container {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between cards */
}

/* Individual FAQ Card */
.df-faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9; /* Subtle border */
    transition: box-shadow 0.2s;
}

.df-faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Header (The Clickable Part) */
.df-faq-header {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 25px 30px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Question Text */
.df-faq-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b; /* Dark Navy text */
    padding-right: 20px;
}

/* The Round Icon */
.df-faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #3b82f6; /* Blue Border */
    color: #3b82f6;            /* Blue Icon */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.df-faq-icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

/* Content Area (Hidden) */
.df-faq-content {
    display: none;
    background-color: #ffffff;
}

.df-faq-inner {
    padding: 0 30px 30px 30px; /* Indented content */
    color: #475569; /* Slate Grey text */
    font-size: 15px;
    line-height: 1.6;
}

.df-faq-inner p {
    margin: 0;
    text-align: justify;
}

/* --- ACTIVE STATE --- */
.df-faq-item.is-active .df-faq-icon {
    color: #3b82f6;
}

/* Rotate the Plus into a Cross/Minus visually (Optional) */
/* Or replace SVG in PHP to minus if preferred. Rotating 45deg turns + to x */
.df-faq-item.is-active .df-faq-icon svg {
    transform: rotate(45deg); 
}
/* If you want a straight minus, use this instead of rotate: */
/* transform: rotate(0); content: url(minus.svg); */

/* =========================================
   RECOMMENDED READINGS SLIDER LAYOUT
   ========================================= */

.df-rec-slider-section {
    margin: 60px 0;
    position: relative;
}

.df-rec-slider-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
}

/* Slick Layout Fixes */
.df-rec-slider {
    display: block !important;
    margin: 0 -15px; /* Offset margins */
}

/* Individual Slide Wrapper */
.df-slide-item {
    padding: 15px; /* Spacing between cards */
    height: 100%;  /* For equal height */
}

/* Ensure the card fills the height of the slide */
.df-slide-item .standard-card {
    height: 100%;
    /* Your existing .standard-card CSS handles the rest! */
}

/* Reuse your Arrow Styles? */
/* If the arrows look weird here, add specific overrides: */
.df-rec-slider .slick-custom-next { right: -10px; }
.df-rec-slider .slick-custom-prev { left: -10px; }

/* =========================================
   STICKY CALCULATOR (LEFT SIDE)
   ========================================= */

.left-div {
    position: sticky !important;
    top: 75px; 
    z-index: 10;

    height: auto !important; 
    
    align-self: flex-start !important; 
}

.section-calculator {
    overflow: visible !important;
}

/* =========================================
   PARALLAX SCROLL FINISH (Layering Fix)
   ========================================= */

/* 1. Calculator Section (Bottom Layer) */
.section-calculator {
    position: relative;
    z-index: 1; /* Lower layer */
    /* Ensure the background stays visible during the overlap */
    background-attachment: scroll !important; 
}

/* 2. The Calculator Sidebar (Sticky Element) */
.left-div {
    position: sticky !important;
    top: -10px; /* Adjust to match your header height */
    z-index: 1; /* Must be lower than the next section */
    padding-bottom: 30px;
    /* Force it to stop stretching so it can stick */
    height: auto !important; 
    align-self: flex-start !important;
}

/* 3. The Next Section (Top Layer - The Curtain) */
.section-other-calculators {
    position: relative;
    z-index: 20; /* Higher layer: Slides OVER the calculator */
    background-color: #ffffff; /* Must have solid background (White/Blue) to hide what's behind */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05); /* Optional: Shadow to enhance the depth effect */
}

.div-sticky-sidebar {
    position: sticky !important;
    top: 40px;
    z-index: 1;
    height: auto !important;
    align-self: flex-start !important;
}

@media (max-width: 767px) {
    .left-div {
        position: relative !important;
        top: auto;
        width: 100%;
    }

    .div-sticky-sidebar {
        position: relative !important;
        top: 40px;
        z-index: 1;
        height: auto !important;
        align-self: flex-start !important;
    }
}

/* =========================================
   MOBILE TOC & RESPONSIVENESS
   ========================================= */

/* Desktop / Mobile Visibility Helpers */
.mobile-only { display: none !important; }
.desktop-only { display: block; }

@media (max-width: 767px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; } /* Buttons usually flex */
}

/* --- THE FLOATING BUTTON (Fixed & Stable) --- */
.df-mobile-toc-btn {
    /* 1. POSITIONING */
    position: fixed !important;
    bottom: 30px !important;    /* Standard fixed bottom */
    right: 30px !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 2147483647 !important; /* Max Z-Index possible */
    
    /* 2. STYLE */
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    cursor: pointer;

    /* 3. HARDWARE ACCELERATION (Fixes Jitter) */
    /* Use will-change to put it on its own GPU layer */
    will-change: transform, opacity, visibility;
    -webkit-backface-visibility: hidden;

    /* 4. EXIT STATE (Hidden) */
    opacity: 0;
    visibility: hidden;
    
    /* COMBINED TRANSFORM: Move Down + GPU Hack */
    transform: translateY(20px) translateZ(0); 
    -webkit-transform: translateY(20px) translateZ(0);

    /* Transition with Delay on Visibility for smooth exit */
    transition: 
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
        visibility 0s linear 0.3s; 
}

/* 5. ACTIVE STATE (Visible) */
.df-mobile-toc-btn.is-visible {
    opacity: 1;
    visibility: visible;
    
    /* COMBINED TRANSFORM: Reset Position + GPU Hack */
    transform: translateY(0) translateZ(0);
    -webkit-transform: translateY(0) translateZ(0);
    
    /* Instant Visibility on entry */
    transition: 
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
        visibility 0s linear 0s; 
}

.df-mobile-toc-btn:active {
    transform: scale(0.95) translateZ(0);
}

/* --- THE MOBILE MODAL (Bottom Sheet Style) --- */
.df-mobile-toc-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000;
    visibility: hidden; /* Hidden by default */
    opacity: 0;
    transition: all 0.3s;
}

/* When Active (Class added by JS) */
.df-mobile-toc-modal.is-open {
    visibility: visible;
    opacity: 1;
}

/* The Overlay (Dark Background) */
.df-mobile-overlay {
    position: absolute;
    top: 0; left: 0; width: 90%; height: 100%;
    background: rgba(0,0,0,0.5);
}

/* The White Box (Slides up from bottom) */
.df-mobile-toc-content {
    position: absolute;
    box-sizing: border-box;
    margin: 0;
    bottom: 0; left: 0; width: 100%;
    max-height: 70vh; /* Takes up 70% of screen max */
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 25px;
    overflow-y: auto;
    
    transform: translateY(100%); /* Start pushed down */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

/* Slide Up Animation */
.df-mobile-toc-modal.is-open .df-mobile-toc-content {
    transform: translateY(0);
}

/* Header inside Modal */
.df-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.df-mobile-header h3 {
    margin: 0;
    font-size: 18px;
    color: #3b82f6;
}

.df-close-btn {
    background: none; border: none;
    font-size: 28px; color: #888;
    cursor: pointer;
    line-height: 1;
}

.wp-theme-calculator.wp-child-theme-calculator-child {
    overflow-x: hidden;
}

/* =========================================
   CAR LOAN RESULT HEADER (Specific Page Only)
   ========================================= */

/* Main Container: Reset flex specific to Car Loan page */
.page-car-loan-calculator .df-result-box,
.page-personal-loan-calculator .df-result-box {
    display: none;       /* JS toggles this */
    background: transparent; /* Override default white wrapper */
    box-shadow: none;    
}

.page-car-loan-calculator .df-result-box.is-active,
.page-personal-loan-calculator .df-result-box.is-active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* The Blue Header Strip */
.page-car-loan-calculator .df-result-header,
.page-personal-loan-calculator .df-result-header {
    border-radius: 16px;       /* Rounded corners */
    padding: 30px 40px;        /* Spacious padding */
    display: flex;
    justify-content: space-between;
    align-items: center;       /* Center vertical alignment */
    color: #ffffff;
    margin-bottom: 30px;       /* Space before the chart card */
    position: relative;
    overflow: hidden;
}

/* Left Side: Title & Logo */
.page-car-loan-calculator .header-left h3,
.page-personal-loan-calculator .header-left h3  {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.page-car-loan-calculator .df-header-watermark img,
.page-personal-loan-calculator .df-header-watermark img {
    height: 24px;         /* Adjust logo size */
    opacity: 0.8;         /* Make it subtle against blue */
    filter: brightness(0) invert(1); /* Turns black logo to white */
    margin-top: 5px;
}

/* Right Side: Money */
.page-car-loan-calculator .header-right,
.page-personal-loan-calculator .header-right {
    text-align: right;
}

.page-car-loan-calculator .header-right .label-monthly,
.page-personal-loan-calculator .header-right .label-monthly {
    display: block;
    font-size: 14px;
    color: #cbd5e1;       /* Light blue-grey */
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-car-loan-calculator .header-right .result-big,
.page-personal-loan-calculator .header-right .result-big {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1;
}

/* Mobile Responsiveness for Car Loan Page */
@media (max-width: 768px) {
    .page-car-loan-calculator .df-result-header,
    .page-personal-loan-calculator .df-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px;
    }
    
    .page-car-loan-calculator .header-right,
    .page-personal-loan-calculator .header-right {
        text-align: left; /* Align left on mobile */
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 20px;
    }
}

/* Hide CF7 line breaks */
.wpcf7 form .wpcf7-form-control-wrap br,
.wpcf7 form br {
    display: none !important;
}

/* Remove default margin from the auto-generated paragraphs */
.wpcf7 form p {
    margin-bottom: 0;
    margin-top: 0;
}