/* ==========================================================================
   Verses Theme Terms & Privacy Page Stylesheet
   ========================================================================== */

/* Page Wrapper */
.terms-page-wrapper {
    font-family: 'Noto Serif Bengali', serif;
    background: #fcfbf8;
    color: #2c2927;
    padding-bottom: 80px;
}

.terms-page-wrapper h1, 
.terms-page-wrapper h2, 
.terms-page-wrapper h3, 
.terms-page-wrapper h4, 
.terms-page-wrapper h5 {
    font-family: 'Noto Serif Bengali', serif;
    font-weight: 700;
    margin-top: 0;
}

/* Container */
.terms-page-wrapper .container {
    width: 90% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Breadcrumbs (Placed above banner) */
.terms-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #8c827a;
    padding: 24px 0 16px;
    margin-left: 20px;
}

.terms-breadcrumb a {
    color: #8c827a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-breadcrumb a:hover {
    color: #8c5a47;
    text-decoration: underline;
}

.terms-breadcrumb-sep {
    font-size: 10px;
    color: #8c827a;
    opacity: 0.6;
}

.terms-breadcrumb .current-page {
    color: #5d564f;
    font-weight: 600;
}

/* Hero Banner Section */
.terms-banner-card {
    position: relative;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    padding: 80px 60px;
    text-align: left;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(61, 41, 27, 0.03);
    border: 1px solid #ebdcb9;
}

.terms-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(252, 251, 248, 0.98) 0%, rgba(252, 251, 248, 0.9) 45%, rgba(252, 251, 248, 0) 100%);
    z-index: 1;
}

.terms-banner-content {
    position: relative;
    z-index: 2;
    max-width: 55%;
    text-align: left;
}

/* Banner Title & Subtitle */
.terms-title {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #4a2f26;
    letter-spacing: -0.5px;
}

.terms-subtitle {
    font-size: 15px;
    line-height: 1.6;
    max-width: 580px;
    margin: 0;
    color: #5d564f;
}

/* Main Layout Grid */
.terms-main-layout {
    position: relative;
    z-index: 10;
}

/* Tab Navigation */
.terms-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(61, 41, 27, 0.04);
    border: 1px solid #ebdcb9;
}

.tab-btn {
    flex: 1;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid transparent;
    color: #5d564f;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}

.tab-btn i {
    font-size: 18px;
}

.tab-btn:hover {
    background: #faf8f5;
    color: #8c5a47;
}

.tab-btn.active {
    background: #8c5a47;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(140, 90, 71, 0.25);
}

/* Grid Layout */
.terms-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

/* Sections Toggling */
.terms-section {
    display: none;
}

.terms-section.active {
    display: block;
}

/* Card Header inside Left Column */
.section-card-header {
    margin-bottom: 20px;
}

.section-card-header h3 {
    font-size: 20px;
    color: #111;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.section-card-header h3 i {
    color: #8c5a47;
    font-size: 22px;
    margin-left: 20px;
}

/* Accordion List */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: #ffffff;
    border: 1px solid #ebdcb9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(61, 41, 27, 0.02);
    transition: all 0.3s ease;
}

.accordion-item.expanded {
    border-color: #8c5a47;
    box-shadow: 0 8px 25px rgba(140, 90, 71, 0.06);
}

/* Accordion Header */
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background-color 0.2s ease;
    outline: none;
}

.accordion-header:hover {
    background-color: #fefcf9;
}

.accordion-title-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.accordion-icon {
    width: 44px;
    height: 44px;
    background: #fbf0e5;
    color: #8c5a47;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.accordion-item.expanded .accordion-icon {
    background: #8c5a47;
    color: #ffffff;
}

.accordion-title-text {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    transition: color 0.2s ease;
}

.accordion-item.expanded .accordion-title-text {
    color: #8c5a47;
}

.accordion-arrow {
    color: #8c827a;
    font-size: 14px;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.accordion-item.expanded .accordion-arrow {
    transform: rotate(180deg);
    color: #8c5a47;
}

/* Accordion Body */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.expanded .accordion-body {
    max-height: 1000px; /* large enough value */
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.accordion-body-content {
    padding: 0 20px 20px 80px; /* aligns with title text */
    font-size: 15px;
    line-height: 1.7;
    color: #5d564f;
    border-top: 1px dashed #f2ece4;
    padding-top: 16px;
}

.accordion-body-content p {
    margin: 0 0 12px;
}

.accordion-body-content p:last-child {
    margin-bottom: 0;
}

.accordion-body-content ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.accordion-body-content li {
    margin-bottom: 8px;
}

.accordion-body-content li:last-child {
    margin-bottom: 0;
}

.sub-clause-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 16px 0 6px;
}

.sub-clause-title:first-of-type {
    margin-top: 0;
}

/* Bottom Quote Card */
.terms-quote-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fdfbf7;
    border: 1px solid #ebdcb9;
    border-radius: 20px;
    padding: 24px 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(61, 41, 27, 0.01);
}

.quote-feather-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.quote-feather-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(-15deg);
}

.quote-content {
    flex: 1;
}

.quote-text {
    font-size: 15px;
    line-height: 1.6;
    color: #5d564f;
    margin: 0 0 8px;
    font-style: italic;
}

.quote-author {
    font-size: 13px;
    font-weight: 700;
    color: #8c5a47;
    display: block;
    text-align: right;
}

/* Sidebar Column */
.terms-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: #ffffff;
    border: 1px solid #f2ece4;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(61, 41, 27, 0.03);
}

.sidebar-title {
    font-size: 18px;
    color: #111;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #8c5a47;
}

/* Key Points Widget */
.key-points-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.key-point-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.point-icon {
    width: 38px;
    height: 38px;
    background: #fbf0e5;
    color: #8c5a47;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.point-text h5 {
    font-size: 14.5px;
    color: #111;
    margin: 0 0 4px;
    font-weight: 700;
}

.point-text p {
    margin: 0;
    font-size: 13px;
    color: #8c827a;
    line-height: 1.4;
}

/* Contact Widget Box */
.contact-widget-box {
    background: #faf8f5;
    border-color: #ebdcb9;
}

.contact-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #5d564f;
    margin: 0 0 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    color: #8c5a47;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.detail-link {
    font-size: 14.5px;
    color: #2c2927;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.detail-link:hover {
    color: #8c5a47;
    text-decoration: underline;
}

.contact-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #8c5a47;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(140, 90, 71, 0.2);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-submit-btn:hover {
    background: #754a39;
    box-shadow: 0 6px 20px rgba(140, 90, 71, 0.3);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 991px) {
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .terms-banner-card {
        padding: 60px 30px;
        background-position: right center;
    }

    .terms-banner-content {
        max-width: 70%;
    }

    .terms-title {
        font-size: 30px;
    }

    .terms-tabs-nav {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .tab-btn {
        width: auto;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .terms-banner-card {
        padding: 50px 20px;
        text-align: center;
        background-position: center;
    }

    .terms-banner-content {
        max-width: 100%;
        text-align: center;
    }

    .terms-title {
        font-size: 26px;
    }

    .terms-subtitle {
        margin: 0 auto;
    }

    .terms-banner-overlay {
        background: linear-gradient(180deg, rgba(252, 251, 248, 0.95) 0%, rgba(252, 251, 248, 0.9) 100%);
    }

    body.dark-mode .terms-banner-overlay {
        background: linear-gradient(180deg, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.9) 100%);
    }

    .terms-tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .accordion-body-content {
        padding-left: 20px; /* reduces left spacing on mobile */
    }

    .terms-quote-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .quote-feather-icon {
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   Dark Mode Overrides
   ========================================================================== */

body.dark-mode .terms-page-wrapper {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .terms-breadcrumb {
    color: #a0a0a0;
}

body.dark-mode .terms-breadcrumb a {
    color: #a0a0a0;
}

body.dark-mode .terms-breadcrumb a:hover {
    color: #bb86fc;
}

body.dark-mode .terms-breadcrumb .current-page {
    color: #ffffff;
}

body.dark-mode .terms-banner-card {
    border-color: #2c2c2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .terms-banner-overlay {
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.98) 0%, rgba(18, 18, 18, 0.9) 45%, rgba(18, 18, 18, 0) 100%);
}

body.dark-mode .terms-title {
    color: #ffffff;
}

body.dark-mode .terms-subtitle {
    color: #e0e0e0;
}

body.dark-mode .terms-tabs-nav {
    background: #1e1e1e;
    border-color: #2c2c2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tab-btn {
    background: #1e1e1e;
    color: #a0a0a0;
}

body.dark-mode .tab-btn:hover {
    background: #252525;
    color: #bb86fc;
}

body.dark-mode .tab-btn.active {
    background: #bb86fc;
    color: #121212;
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.25);
}

body.dark-mode .section-card-header h3 {
    color: #ffffff;
}

body.dark-mode .section-card-header h3 i {
    color: #bb86fc;
}

body.dark-mode .accordion-item {
    background: #1e1e1e;
    border-color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .accordion-item.expanded {
    border-color: #bb86fc;
}

body.dark-mode .accordion-header {
    background: #1e1e1e;
}

body.dark-mode .accordion-header:hover {
    background-color: #242424;
}

body.dark-mode .accordion-icon {
    background: #2c2c2c;
    color: #bb86fc;
}

body.dark-mode .accordion-item.expanded .accordion-icon {
    background: #bb86fc;
    color: #121212;
}

body.dark-mode .accordion-title-text {
    color: #ffffff;
}

body.dark-mode .accordion-item.expanded .accordion-title-text {
    color: #bb86fc;
}

body.dark-mode .accordion-arrow {
    color: #a0a0a0;
}

body.dark-mode .accordion-item.expanded .accordion-arrow {
    color: #bb86fc;
}

body.dark-mode .accordion-body-content {
    color: #a0a0a0;
    border-top-color: #2c2c2c;
}

body.dark-mode .sub-clause-title {
    color: #ffffff;
}

body.dark-mode .terms-quote-box {
    background: #1c1816;
    border-color: #2d2623;
}

body.dark-mode .quote-text {
    color: #a0a0a0;
}

body.dark-mode .quote-author {
    color: #bb86fc;
}

body.dark-mode .sidebar-box {
    background: #1e1e1e;
    border-color: #2c2c2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .sidebar-title {
    color: #ffffff;
}

body.dark-mode .sidebar-title::after {
    background: #bb86fc;
}

body.dark-mode .point-icon {
    background: #2c2c2c;
    color: #bb86fc;
}

body.dark-mode .point-text h5 {
    color: #ffffff;
}

body.dark-mode .point-text p {
    color: #a0a0a0;
}

body.dark-mode .contact-widget-box {
    background: #1d1a18;
    border-color: #332b27;
}

body.dark-mode .contact-desc {
    color: #a0a0a0;
}

body.dark-mode .detail-link {
    color: #ffffff;
}

body.dark-mode .detail-link:hover {
    color: #bb86fc;
}

body.dark-mode .contact-submit-btn {
    background: #bb86fc;
    color: #121212;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.2);
}

body.dark-mode .contact-submit-btn:hover {
    background: #a370db;
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.3);
}
