/* ════════════════════════════════════════════════════════════
   CALCULATORS SECTION CSS
   Circuit Brilliance — Calculators & Resources Section
   ════════════════════════════════════════════════════════════ */



/* corrected code  */


/* --- Layout & Container Grids --- */
.calc-sec-padding {
    padding: 70px 0;
    background-color: var(--light-bg);
}

.suite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.calc-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

/* --- Suite Cards (Overview Page) --- */
.suite-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.suite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--blue);
    opacity: 0.8;
}

.suite-card.live-suite::before {
    background: var(--green);
}

.suite-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-h);
    border-color: rgba(11, 95, 190, 0.2);
}

.suite-card.live-suite:hover {
    border-color: rgba(36, 180, 126, 0.3);
}

.suite-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.suite-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
}

.suite-count-badge {
    background: rgba(11, 95, 190, 0.08);
    color: var(--blue);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.suite-card.live-suite .suite-count-badge {
    background: rgba(36, 180, 126, 0.08);
    color: var(--green);
}

.suite-desc {
    font-size: 14.5px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.suite-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.suite-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--gray-bg);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
}

.suite-action {
    margin-top: auto;
}

.btn-suite-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.3s ease;
    text-align: center;
    border: 1.5px solid var(--blue);
    color: var(--blue);
    background: transparent;
}

.btn-suite-explore:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.suite-card.live-suite .btn-suite-explore {
    border-color: var(--green);
    color: var(--green);
}

.suite-card.live-suite .btn-suite-explore:hover {
    background: var(--green);
    color: var(--white);
}

/* Coming Soon Overlay and Styles */
.suite-card.coming-soon-suite {
    background: rgba(248, 250, 252, 0.95);
    border-style: dashed;
}

.suite-card.coming-soon-suite::before {
    background: var(--text-light);
}

.suite-card.coming-soon-suite .suite-title {
    color: var(--text-light);
}

.coming-soon-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: #e2e8f0;
    color: var(--text-mid);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
}

/* --- Calculator Cards --- */
.calc-card {
    background: var(--white);
    border: 1px solid var(--navy);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.calc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-h);
}

.calc-card-left {
    padding: 30px 30px; /* Reduced from 40px */
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(12, 43, 66, 0.08);
}

.calc-card-right {
    padding: 30px 30px; /* Reduced from 40px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.calc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px; /* Reduced from 24px */
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px; /* Reduced from 12px */
    line-height: 1.3;
}

.calc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px; /* Reduced from 25px */
}

.calc-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--blue);
    background: rgba(11, 95, 190, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
}

.calc-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 15px;
    /* flex-grow: 1; */
}

.calc-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 85%; /* Increased from 70% */
    background: var(--gray-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 5px;
    aspect-ratio: 16 / 7; /* Changed from default (was taller) - makes image shorter */
}

.calc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
    transition: transform 0.5s ease;
}

.calc-card:hover .calc-img-wrapper img {
    transform: scale(1.03);
}

.calc-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
}

.calc-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 260px;
    padding: 15px 30px;
    background: var(--green);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(36, 180, 126, 0.15);
}

.calc-download-btn:hover {
    background: #1e9664;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 180, 126, 0.3);
    color: var(--white);
}

.calc-file-info {
    text-align: left;
    font-size: 12.5px;
    color: var(--text-light);
    margin-top: 12px;
    margin-left: 4px;
}

/* Coming Soon Calculator Card */
.calc-card.coming-soon-calc {
    border-color: var(--border-light);
    background: var(--gray-bg);
    opacity: 0.85;
}

.calc-card.coming-soon-calc .calc-title {
    color: var(--text-light);
}

.calc-card.coming-soon-calc .calc-tag {
    color: var(--text-light);
    background: rgba(123, 132, 161, 0.08);
}

.calc-card.coming-soon-calc .calc-img-wrapper img {
    filter: blur(5px);
    opacity: 0.6;
}

.calc-coming-soon-overlay {
    height: 120px;
    background: rgba(226, 232, 240, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px dashed var(--border-light);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-mid);
    text-align: center;
    padding: 20px;
}

/* --- Accordion (How to Use) --- */
.accordion-sec {
    margin-top: 80px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--shadow);
}

.accordion-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 35px;
    text-align: center;
}

.calc-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.calc-acc-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.calc-acc-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.calc-acc-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    cursor: pointer;
    transition: color 0.3s ease;
}

.calc-acc-trigger:hover {
    color: var(--blue);
}

.calc-acc-icon {
    font-size: 14px;
    color: var(--blue);
    transition: transform 0.3s ease;
}

.calc-acc-item.open .calc-acc-icon {
    transform: rotate(180deg);
}

.calc-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-acc-content {
    padding-bottom: 25px;
    font-size: 15.5px;
    color: var(--text-mid);
    line-height: 1.76;
}

.calc-acc-content p {
    margin: 0;
}

/* --- Framework Badges Strip --- */
.related-fw-sec {
    margin-top: 80px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.fw-strip-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

.fw-badge-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.fw-calc-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: rgba(11, 95, 190, 0.05);
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 800;
    border-radius: 50px;
    border: 1px solid rgba(11, 95, 190, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.fw-calc-badge:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 95, 190, 0.15);
}

.fw-strip-text {
    font-size: 14.5px;
    color: var(--text-mid);
    max-width: 75ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Bottom CTA Strip --- */
.calc-cta-sec {
    background: linear-gradient(145deg, #1A5276 0%, #0c2b42 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.calc-cta-sec::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.calc-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.calc-cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.25;
}

.calc-cta-title span {
    color: #4db8ff;
}

.calc-cta-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

.calc-cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-calc-cta-primary {
    background: var(--blue);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    padding: 16px 36px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(11, 95, 190, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-calc-cta-primary:hover {
    background: var(--white);
    color: var(--blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(11, 95, 190, 0.4);
}

.btn-calc-cta-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 34px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-calc-cta-secondary:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* --- No-Image Card Layout Modifier --- */
.calc-card.no-image,
.calc-card:not(:has(.calc-img-wrapper)) {
    grid-template-columns: 1fr;
}

.calc-card.no-image .calc-card-left,
.calc-card:not(:has(.calc-img-wrapper)) .calc-card-left {
    border-right: none;
    border-bottom: 1px solid rgba(12, 43, 66, 0.08);
    padding-bottom: 20px;
}

.calc-card.no-image .calc-card-right,
.calc-card:not(:has(.calc-img-wrapper)) .calc-card-right {
    padding-top: 20px;
}

/* Flex-wrap buttons for no-image cards */
.calc-card.no-image .calc-action-wrapper,
.calc-card:not(:has(.calc-img-wrapper)) .calc-action-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

/* PDF button style override for no-image cards */
.calc-card.no-image .calc-download-btn,
.calc-card:not(:has(.calc-img-wrapper)) .calc-download-btn {
    background: #e74c3c; /* PDF Red */
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    min-width: unset; /* Allow button to wrap/shrink */
    padding: 12px 22px; /* Smaller padding for row layout */
    font-size: 14px;
}

.calc-card.no-image .calc-download-btn:hover,
.calc-card:not(:has(.calc-img-wrapper)) .calc-download-btn:hover {
    background: #c0392b; /* Darker PDF Red */
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .suite-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-card {
        grid-template-columns: 1fr;
    }
    
    .calc-card-left {
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid rgba(12, 43, 66, 0.08);
    }
    
    .calc-card-left .calc-img-wrapper {
        margin-top: 20px;
    }
    
    .calc-card-right {
        padding: 30px;
    }
    
    .calc-download-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .suite-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .accordion-sec {
        padding: 30px 20px;
    }
    
    .related-fw-sec {
        padding: 30px 20px;
    }
}
