/*
  Main Stylesheet for HiPSP - Modern Design v6 (Cleaned & Final)
  Author: HiPSP AI Assistant
*/

/**
 * --------------------------------------------------------------------------------
 * 1. General Styles & Variables
 * --------------------------------------------------------------------------------
 */
:root {
  --color-default: #212529;
  --color-primary: #4154f1;
  --color-secondary: #717ff5;
  --color-background: #ffffff;
  --color-light: #f6f9ff;
  --color-dark: #012970;
  --font-default: 'Vazirmatn', sans-serif;
}

body {
  font-family: var(--font-default);
  color: var(--color-default);
  background-color: var(--color-background);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-default);
  font-weight: 700;
}

section {
  padding: 80px 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  padding-bottom: 40px;
}

.section-header h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0;
  color: var(--color-primary);
  text-transform: uppercase;
}

.section-header p {
  margin: 10px 0 0 0;
  padding: 0;
  font-size: 38px;
  line-height: 42px;
  font-weight: 700;
  color: var(--color-dark);
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .section-header p { font-size: 28px; line-height: 32px; }
}

/**
 * --------------------------------------------------------------------------------
 * 2. Header, Navigation, Hero
 * --------------------------------------------------------------------------------
 */
.header {
  transition: all 0.5s;
  z-index: 997;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dee2e6;
}
.header.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}
.header .logo { line-height: 1; }
.header .logo img { max-height: 40px; margin-left: 8px; }
.header .logo span { font-size: 30px; font-weight: 700; color: var(--color-dark); }

.navbar { padding: 0; }
.navbar ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
.navbar a, .navbar a:focus { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 10px 30px; font-size: 16px; font-weight: 700; color: #013289; white-space: nowrap; transition: 0.3s; }
.navbar a:hover, .navbar .active { color: var(--color-primary); }
.navbar .getstarted { background: var(--color-primary); padding: 8px 25px; margin-right: 30px; border-radius: 50px; color: #fff; }

.mobile-nav-toggle { color: var(--color-dark); font-size: 28px; cursor: pointer; display: none; }
@media (max-width: 991px) { .mobile-nav-toggle { display: block; } .navbar ul { display: none; } }
body.mobile-nav-active { overflow: hidden; }
.navbar-mobile { position: fixed; overflow: hidden; top: 0; right: 0; left: 0; bottom: 0; background: rgba(1, 22, 61, 0.9); transition: 0.3s; }
.navbar-mobile .mobile-nav-toggle { position: absolute; top: 15px; right: 15px; color: #fff; }
.navbar-mobile ul { display: block; position: absolute; top: 55px; right: 15px; bottom: 15px; left: 15px; padding: 10px 0; background-color: #fff; overflow-y: auto; transition: 0.3s; }
.navbar-mobile a, .navbar-mobile a:focus { padding: 10px 20px; color: var(--color-dark); }

.hero { width: 100%; height: 100vh; background: url(../img/hero-bg.png) top center no-repeat; background-size: cover; }
.hero h1 { margin: 0; font-size: 48px; font-weight: 700; color: var(--color-dark); }
.hero h2 { color: #444444; margin: 15px 0 0 0; font-size: 24px; }
.hero .btn-get-started { margin-top: 15px; line-height: 0; padding: 15px 40px; border-radius: 4px; transition: 0.5s; color: #fff; background: var(--color-primary); box-shadow: 0px 5px 30px rgba(65, 84, 241, 0.4); }
.hero .btn-get-started span { font-weight: 600; font-size: 16px; }
.hero .btn-get-started i { margin-right: 5px; font-size: 18px; transition: 0.3s; }
.hero .btn-get-started:hover i { transform: translateX(-5px); }
.hero .btn-watch-video { margin-top: 15px; background: none; border: 2px solid var(--color-primary); color: var(--color-primary); transition: 0.5s; font-weight: 600; font-size: 16px; padding: 13px 20px; border-radius: 4px; }
.hero .btn-watch-video i { font-size: 20px; margin-left: 8px; }
.hero .btn-watch-video:hover { background: var(--color-primary); color: #fff; }
@media (max-width: 991px) { .hero { height: auto; padding: 120px 0 60px 0; } .hero .hero-img { text-align: center; margin-top: 80px; } }
@media (max-width: 768px) { .hero h1 { font-size: 32px; } .hero h2 { font-size: 20px; } }

/**
 * --------------------------------------------------------------------------------
 * 3. Standard Sections (Clients, About, Stats, etc.)
 * --------------------------------------------------------------------------------
 */
.clients { padding: 40px 0; background-color: var(--color-light); }
.clients .clients-slider .swiper-slide img { opacity: 0.5; transition: 0.3s; filter: grayscale(100); }
.clients .clients-slider .swiper-slide img:hover { opacity: 1; filter: none; }
.about .content { background-color: var(--color-light); padding: 40px; border-radius: 5px; }
.about h3 { font-size: 14px; font-weight: 700; color: var(--color-secondary); }
.about h2 { font-size: 28px; font-weight: 700; color: var(--color-dark); }
.stats { padding: 60px 0; background: var(--color-light); }
.stats .stats-box { padding: 30px; width: 100%; background: #fff; border-radius: 8px; box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08); text-align: center; }
.stats .stats-box span { font-size: 36px; display: block; font-weight: 700; color: var(--color-dark); }
.how-it-works .step-box { padding: 30px; position: relative; overflow: hidden; background: var(--color-light); border-radius: 10px; text-align: center; }
.how-it-works .step-box span { font-size: 48px; font-weight: 700; color: var(--color-primary); opacity: 0.2; }
.how-it-works .step-box h4 { font-size: 22px; font-weight: 700; color: var(--color-dark); }
@media (min-width: 992px) { .how-it-works .col-lg-4:not(:last-child) .step-box::after { content: ""; position: absolute; top: 50%; left: -50%; transform: translateY(-50%); width: 100%; height: 1px; border-top: 2px dotted #ddd; } }

/**
 * --------------------------------------------------------------------------------
 * 4. Changelog Section
 * --------------------------------------------------------------------------------
 */
.changelog { background-color: var(--color-light); }
#changelog-timeline { position: relative; padding: 20px 0; }
#changelog-timeline::before { content: ''; position: absolute; top: 0; right: 50%; transform: translateX(50%); width: 3px; height: 100%; background: #e0e0e0; border-radius: 2px; }
.changelog-item { margin-bottom: 40px; position: relative; }
.changelog-item::after { content: ''; display: table; clear: both; }
.changelog-content { position: relative; width: 45%; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); }
.changelog-item:nth-child(odd) .changelog-content { float: right; }
.changelog-item:nth-child(even) .changelog-content { float: left; }
.changelog-version { font-size: 20px; font-weight: 700; color: var(--color-primary); }
.changelog-date { font-size: 14px; color: #777; margin-bottom: 10px; display: block; }
.changelog-changes { list-style: none; padding-right: 20px; margin: 0; }
.changelog-changes li { padding: 5px 0; position: relative; }
.changelog-changes li::before { content: '✓'; color: #15be56; position: absolute; right: 0; top: 5px; }
.changelog-dot { position: absolute; top: 15px; right: 50%; transform: translateX(50%); width: 18px; height: 18px; background: var(--color-primary); border: 3px solid #fff; border-radius: 50%; z-index: 1; box-shadow: 0 0 0 4px var(--color-light); }
@media (max-width: 768px) { #changelog-timeline::before { right: 9px; } .changelog-item .changelog-content { width: calc(100% - 40px); float: right; margin-right: 30px; } .changelog-dot { right: 9px; } }

/**
 * --------------------------------------------------------------------------------
 * 5. Visual Features, Platforms, Testimonials
 * --------------------------------------------------------------------------------
 */
.features-showcase { background-color: var(--color-light); }
.features-showcase .nav-tabs { border: 0; }
.features-showcase .nav-link { border: 0; padding: 15px; margin: 0 5px; transition: 0.3s; font-weight: 600; font-size: 16px; color: var(--color-dark); border-radius: 8px !important; display: flex; align-items: center; justify-content: center; }
.features-showcase .nav-link i { font-size: 20px; margin-left: 8px; }
.features-showcase .nav-link:hover { color: var(--color-primary); }
.features-showcase .nav-link.active { color: #fff; background: var(--color-primary); }
.features-showcase .tab-content { margin-top: 30px; }
.features-showcase .feature-item { padding: 30px; background-color: #fff; border-radius: 8px; box-shadow: 0 3px 15px rgba(0,0,0,0.05); }
.features-showcase .feature-item h3 { font-size: 26px; }
.features-showcase .feature-item ul { list-style: none; padding: 0; }
.features-showcase .feature-item ul li { padding-bottom: 10px; display: flex; align-items: flex-start; }
.features-showcase .feature-item ul i { font-size: 20px; color: #15be56; margin-left: 8px; line-height: 1; }
.features-showcase .swiper { border-radius: 10px; }
.features-showcase .swiper-pagination-bullet { background: var(--color-primary); opacity: 0.5; }
.features-showcase .swiper-pagination-bullet-active { opacity: 1; }
.features-showcase .swiper-button-next, .features-showcase .swiper-button-prev { color: var(--color-primary); background-color: rgba(255, 255, 255, 0.7); width: 40px; height: 40px; border-radius: 50%; }
.features-showcase .swiper-button-next::after, .features-showcase .swiper-button-prev::after { font-size: 20px !important; font-weight: bold; }

.platforms { background-color: var(--color-light); }
.platforms .platform-box { padding: 40px 30px; text-align: center; border-radius: 8px; background: #fff; box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08); transition: all 0.3s; height: 100%; }
.platforms .platform-box .icon { margin: 0 auto 20px; width: 64px; height: 64px; background: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; }
.platforms .platform-box .cta-btn { display: inline-block; padding: 8px 30px; border-radius: 50px; color: var(--color-primary); border: 1px solid var(--color-primary); font-weight: 600; }
.platforms .platform-box:hover { transform: translateY(-10px); }
.platforms .platform-box:hover .cta-btn { background: var(--color-primary); color: #fff; }

.testimonials { padding: 80px 0; background: url("../img/testimonials-bg.jpg") no-repeat center center; background-size: cover; position: relative; }
.testimonials::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.9); }
.testimonials .section-header { margin-bottom: 40px; position: relative; }
.testimonials .section-header h2 { color: var(--color-primary); }
.testimonials .section-header p { color: var(--color-dark); }
.testimonials .testimonial-item { text-align: center; position: relative; }
.testimonials .testimonial-item .testimonial-img { width: 100px; border-radius: 50%; border: 6px solid #fff; margin: 0 auto; box-shadow: 0px 5px 15px rgba(0,0,0,0.1); }
.testimonials .testimonial-item h3 { font-size: 20px; font-weight: bold; margin: 10px 0 5px; }
.testimonials .testimonial-item h4 { font-size: 14px; color: #999; margin: 0; }
.testimonials .testimonial-item p { font-style: italic; margin: 0 auto 30px; padding: 20px; background: #fff; position: relative; border-radius: 6px; box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1); max-width: 600px; }
.testimonials .swiper-pagination { margin-top: 20px; position: relative; }

/**
 * --------------------------------------------------------------------------------
 * 6. Pricing & Comparison Table
 * --------------------------------------------------------------------------------
 */
.pricing .pricing-toggle-container span { font-weight: 600; }
.pricing .pricing-toggle-container .form-switch .form-check-input { width: 4em; height: 2em; cursor: pointer; }
.pricing .box { padding: 40px 20px; background: #fff; text-align: center; box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08); border-radius: 4px; transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.pricing .box:hover { transform: scale(1.05); }
.pricing .featured { border: 2px solid var(--color-primary); }
.pricing .price { font-size: 48px; font-weight: 700; color: var(--color-dark); }
.pricing ul { padding: 0; list-style: none; line-height: 26px; margin-bottom: 25px; flex-grow: 1; }
.pricing .btn-buy { display: inline-block; padding: 10px 40px; border-radius: 50px; color: var(--color-primary); font-size: 16px; font-weight: 600; border: 1px solid var(--color-secondary); }
.pricing .btn-buy:hover { background: var(--color-primary); color: #fff; }
.pricing .featured .btn-buy { background: var(--color-primary); color: #fff; }
.pricing .comparison-table { text-align: center; }
.pricing .comparison-table thead { background-color: var(--color-light); }
.pricing .comparison-table tbody td:first-child { text-align: right; }
.pricing .comparison-table .bi-check-circle-fill { color: #059652; font-size: 22px; }
.pricing .comparison-table .bi-x-circle-fill { color: #e80368; font-size: 22px; }

/**
 * --------------------------------------------------------------------------------
 * 7. Inner Page, FAQ, Contact, Footer & Modals
 * --------------------------------------------------------------------------------
 */
.header-inner-page { background: var(--color-light); box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1); }
.breadcrumbs { padding: 20px 0; background: var(--color-light); }
.breadcrumbs h2 { font-size: 28px; font-weight: 500; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.breadcrumbs ol li+li { padding-right: 10px; }
.breadcrumbs ol li+li::before { display: inline-block; padding-left: 10px; color: #6c757d; content: "/"; }
#changelog-summary .btn-get-started { padding: 10px 30px; border-radius: 50px; color: var(--color-primary); transition: 0.3s; font-size: 16px; font-weight: 600; background: #fff; border: 1px solid var(--color-primary); box-shadow: 0 2px 10px rgba(65, 84, 241, 0.1); }
#changelog-summary .btn-get-started:hover { background: var(--color-primary); color: #fff; }

.faq .accordion-button:not(.collapsed) { color: var(--color-primary); background-color: var(--color-light); }
.contact .info-box { background: var(--color-light); padding: 30px; border-radius: 5px; height: 100%; }
.contact .php-email-form { background: var(--color-light); padding: 30px; border-radius: 5px; height: 100%; }
.footer { background: var(--color-light); padding: 30px 0; font-size: 14px; }
.back-to-top { position: fixed; visibility: hidden; opacity: 0; right: 15px; bottom: 15px; z-index: 999; background: var(--color-primary); width: 40px; height: 40px; border-radius: 4px; transition: all 0.4s; }
.back-to-top.active { visibility: visible; opacity: 1; }

.modal-content { border: none; border-radius: 10px; }
.modal-header { border-bottom: none; }
.exit-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1050; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.exit-popup.visible { display: flex; opacity: 1; }
.exit-popup-content { background: #fff; padding: 40px; border-radius: 10px; text-align: center; max-width: 500px; position: relative; transform: scale(0.9); transition: transform 0.3s ease; }
.exit-popup.visible .exit-popup-content { transform: scale(1); }
.exit-popup-close { position: absolute; top: 10px; right: 15px; font-size: 28px; background: none; border: none; cursor: pointer; color: #aaa; }

/**
 * --------------------------------------------------------------------------------
 * 8. Smart Workflow & Portal Page Styles (Cleaned & Final)
 * --------------------------------------------------------------------------------
 */
/* Teaser on Homepage */
.smart-workflow { background: var(--color-light); }
.smart-workflow .workflow-box.smart-way { background: linear-gradient(45deg, var(--color-primary) 0%, var(--color-secondary) 100%); color: #fff; box-shadow: 0 10px 30px rgba(65, 84, 241, 0.3); border-radius: 10px; }
.smart-workflow .smart-way .workflow-title { font-size: 24px; font-weight: 700; color: #fff; }
.smart-workflow .smart-way .smart-description { font-size: 16px; margin-bottom: 20px; }
.smart-workflow .smart-way .smart-benefits { list-style: none; padding: 0; }
.smart-workflow .smart-way .smart-benefits li { margin-bottom: 10px; display: flex; align-items: flex-start; }
.smart-workflow .smart-way .smart-benefits i { color: #fff; font-size: 20px; margin-left: 10px; line-height: 1.5; }
.smart-workflow .btn-learn-more { background: #fff; color: var(--color-primary); padding: 10px 25px; border-radius: 50px; font-weight: 600; transition: 0.3s; display: inline-flex; align-items: center; }
.smart-workflow .btn-learn-more i { transition: 0.3s transform; margin-right: 5px; }
.smart-workflow .btn-learn-more:hover { background: var(--color-light); transform: translateY(-2px); }
.smart-workflow .btn-learn-more:hover i { transform: translateX(-5px); }

/* Portal Page: General */
.portal-hero, .portal-problem, .portal-features, .portal-benefits { padding: 60px 0; }

/* Portal Page: Hero & Problem */
.portal-hero { background: var(--color-light); }
.portal-hero h1 { font-size: 42px; color: var(--color-dark); line-height: 1.4; }
.portal-hero .lead { font-size: 18px; color: #555; line-height: 1.8; }
.portal-hero .btn-get-started { margin-top: 20px; }

/* Portal Page: Core Features */
.portal-features { background-color: #fff; }
.portal-features .feature-box-detailed { padding: 30px; border-radius: 10px; background: var(--color-light); height: 100%; transition: 0.3s; }
.portal-features .feature-box-detailed:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.portal-features .feature-box-detailed .feature-icon { width: 64px; height: 64px; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.portal-features .feature-box-detailed h3 { font-size: 22px; color: var(--color-dark); margin-bottom: 15px; }
.portal-features .feature-box-detailed ul { list-style: none; padding-right: 20px; margin-top: 15px; }
.portal-features .feature-box-detailed ul li { position: relative; padding-bottom: 10px; }
.portal-features .feature-box-detailed ul li::before { content: "•"; position: absolute; right: -10px; color: var(--color-primary); font-weight: bold; }

/* Portal Page: Benefits */
.portal-benefits { background-color: var(--color-light); }
.portal-benefits .benefit-box { padding: 30px; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-radius: 10px; text-align: center; height: 100%; }
.portal-benefits .benefit-box i { font-size: 42px; color: var(--color-primary); margin-bottom: 20px; }
.portal-benefits .benefit-box h3 { font-size: 22px; color: var(--color-dark); }
.portal-benefits .benefit-box ul { list-style: none; padding: 0; text-align: right; margin-top: 20px; }
.portal-benefits .benefit-box ul li { padding-bottom: 10px; }

/* Portal Page: Final CTA */
.portal-cta { background: linear-gradient(rgba(65, 84, 241, 0.9), rgba(113, 127, 245, 0.9)), url(../img/cta-bg.jpg) fixed center center; background-size: cover; padding: 100px 0; color: #fff; }
.portal-cta h3 { font-size: 32px; font-weight: 700; }
.portal-cta p { margin: 20px 0; }
.portal-cta .cta-btn { font-weight: 600; font-size: 16px; display: inline-block; padding: 12px 40px; border-radius: 50px; transition: 0.5s; margin: 10px; border: 2px solid #fff; color: #fff; }
.portal-cta .cta-btn:hover { background: #fff; color: var(--color-primary); }

/**
 * --------------------------------------------------------------------------------
 * 9. Portal Page - Masterpiece Version
 * --------------------------------------------------------------------------------
 */
/* General */
.portal-hero, .portal-before, .portal-pillars, .roi-calculator, .security, .portal-testimonial {
    padding: 80px 0;
}

/* Portal Hero */
.portal-hero { background: var(--color-light); }
.portal-hero h1 { font-size: 42px; color: var(--color-dark); line-height: 1.4; }
.portal-hero .lead { font-size: 18px; color: #555; line-height: 1.8; }
.portal-hero .btn-get-started { margin-top: 20px; }
.portal-hero .btn-get-started i { transition: transform 0.3s; }
.portal-hero .btn-get-started:hover i { transform: translateX(-5px); }

/* Before Section */
.portal-before { background: #fff; }
.portal-before .before-box { padding: 20px; }
.portal-before .before-box img { max-height: 100px; margin-bottom: 20px; }
.portal-before .before-box h3 { color: var(--color-dark); font-size: 22px; }
.portal-before .before-box p { color: #6c757d; }

/* Pillars Section */
.portal-pillars { background: var(--color-light); }
.portal-pillars .pillar-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.07);
    height: 100%;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.portal-pillars .pillar-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(65, 84, 241, 0.15);
}
.portal-pillars .pillar-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.portal-pillars .pillar-box h3 { font-size: 24px; color: var(--color-dark); }

/* ROI Calculator */
.roi-calculator { background: #fff; }
.roi-calculator .calculator-box {
    background: var(--color-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.roi-calculator .form-range {
    --bs-range-track-bg: #d4d8f8;
    --bs-range-thumb-bg: var(--color-primary);
}
.roi-calculator .result-box {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}
.roi-calculator .result-box h4 {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}
.roi-calculator .result-value {
    font-size: 48px;
    font-weight: 700;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.roi-calculator .result-value i { margin-left: 15px; }
.roi-calculator .result-note { font-size: 14px; opacity: 0.8; }

/* Security Section */
.security { background-color: var(--color-light); }
.security .security-icon {
    font-size: 64px;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.security h2 { color: var(--color-dark); }

/* Focused Testimonial Section */
.portal-testimonial { background-color: #fff; }
.portal-testimonial .testimonial-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.portal-testimonial .testimonial-box img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--color-light);
}
.portal-testimonial blockquote {
    font-size: 22px;
    font-style: italic;
    line-height: 1.8;
    color: #333;
    border: none;
    padding: 0;
}
.portal-testimonial blockquote footer {
    margin-top: 15px;
    font-size: 18px;
    font-style: normal;
    color: var(--color-dark);
}

/* Final CTA */
.portal-cta { background: linear-gradient(rgba(1, 41, 112, 0.9), rgba(1, 22, 61, 0.9)), url(../img/cta-bg.jpg) fixed center center; background-size: cover; padding: 100px 0; color: #fff; }
.portal-cta h3 { font-size: 32px; font-weight: 700; }
.portal-cta p { margin: 20px 0; }
.portal-cta .cta-btn { font-weight: 600; font-size: 16px; display: inline-block; padding: 12px 40px; border-radius: 50px; transition: 0.5s; margin: 10px; border: 2px solid #fff; color: #fff; }
.portal-cta .cta-btn:hover { background: #fff; color: var(--color-primary); }

/**
 * --------------------------------------------------------------------------------
 * 10. Portal Page - Empower Agents Section
 * --------------------------------------------------------------------------------
 */
.empower-agents {
    background-color: #fff;
    padding: 80px 0;
}

.empower-agents .empower-content {
    padding-left: 30px;
}

.empower-agents .empower-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.empower-agents .empower-item i {
    font-size: 32px;
    color: #fff;
    background: var(--color-primary);
    width: 60px;
    height: 60px;
    min-width: 60px; /* Ensure icon box doesn't shrink */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    transition: 0.3s;
}

.empower-agents .empower-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(65, 84, 241, 0.3);
}

.empower-agents .empower-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.empower-agents .empower-item p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.7;
}

@media (max-width: 991px) {
    .empower-agents .empower-content {
        padding-left: 0;
        margin-top: 30px;
    }
}

/**
 * --------------------------------------------------------------------------------
 * 10. Portal Page - Masterpiece V2 Styles
 * --------------------------------------------------------------------------------
 */
/* Before Section */
.portal-before { background: #fff; }
.portal-before .before-box { padding: 20px; }
.portal-before .before-box img { max-height: 100px; margin-bottom: 20px; }
.portal-before .before-box h3 { color: var(--color-dark); font-size: 22px; }
.portal-before .before-box p { color: #6c757d; }

/* Transformation Section */
.portal-transformation {
    background: var(--color-light);
    padding: 60px 0;
}
.portal-transformation .transformation-icon {
    font-size: 64px;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.portal-transformation h2 {
    color: var(--color-dark);
    font-weight: 700;
}

/* Pillars Section */
.portal-pillars { background: #fff; }
.portal-pillars .pillar-box {
    background: var(--color-light);
    padding: 40px 30px;
    border-radius: 10px;
    height: 100%;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.portal-pillars .pillar-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(65, 84, 241, 0.15);
}
.portal-pillars .pillar-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.portal-pillars .pillar-box h3 { font-size: 24px; color: var(--color-dark); margin-bottom: 15px; }

/* Walkthrough Section */
.walkthrough { padding: 80px 0; background: #fff; }
.walkthrough h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
}
.walkthrough p {
    font-size: 16px;
    line-height: 1.7;
    color: #6c757d;
}
.walkthrough .img-fluid {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ROI Calculator */
.roi-calculator { background: var(--color-light); }
.roi-calculator .calculator-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.roi-calculator .form-range { --bs-range-track-bg: #d4d8f8; --bs-range-thumb-bg: var(--color-primary); }
.roi-calculator .result-box { background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); color: #fff; padding: 30px; border-radius: 10px; text-align: center; }
.roi-calculator .result-box h4 { font-size: 18px; font-weight: 500; opacity: 0.9; }
.roi-calculator .result-value { font-size: 48px; font-weight: 700; margin: 10px 0; display: flex; align-items: center; justify-content: center; }
.roi-calculator .result-value i { margin-left: 15px; }
.roi-calculator .result-note { font-size: 14px; opacity: 0.8; }

/* Security Section */
.security { background-color: var(--color-light); }
.security .security-icon { font-size: 64px; color: var(--color-primary); margin-bottom: 20px; }
.security h2 { color: var(--color-dark); }

/* Focused Testimonial */
.portal-testimonial { background-color: #fff; }
.portal-testimonial .testimonial-box { max-width: 800px; margin: 0 auto; text-align: center; }
.portal-testimonial .testimonial-box img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 5px solid var(--color-light); }
.portal-testimonial blockquote { font-size: 22px; font-style: italic; line-height: 1.8; color: #333; border: none; padding: 0; }
.portal-testimonial blockquote footer { margin-top: 15px; font-size: 18px; font-style: normal; color: var(--color-dark); }


/**
 * --------------------------------------------------------------------------------
 * 11. Global Fixes and Inner Page Enhancements
 * --------------------------------------------------------------------------------
 */

/*
 * FIX 1: Add top padding to the main content area on all pages
 * This pushes the content down below the fixed header.
 */
main {
  margin-top: 80px; /* Adjust this value based on your header's height */
}

/*
 * FIX 2: Ensure breadcrumbs are styled correctly and are readable.
 */
.breadcrumbs {
  padding: 25px 0; /* Increased padding for better spacing */
  background: var(--color-light);
  min-height: auto; /* Removed min-height to let content define height */
}

.breadcrumbs h2 {
  font-size: 28px;
  font-weight: 700; /* Made it bolder */
  color: var(--color-dark); /* Ensured dark color for high contrast */
  margin: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0; /* Added margin-top to separate from h2 */
  font-size: 16px;
}

.breadcrumbs ol li+li {
  padding-right: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-left: 10px;
  color: #6c757d;
  content: "/";
}

/* 
 * FIX 3: Ensure long text in the h2 tag wraps correctly on mobile.
 */
@media (max-width: 768px) {
  .breadcrumbs h2 {
    font-size: 24px;
    word-wrap: break-word; /* Ensure words break if needed */
  }
}



/**
 * --------------------------------------------------------------------------------
 * 12. Smart Workflow Section - V2 (New UI)
 * --------------------------------------------------------------------------------
 */
.smart-workflow-v2 {
  background: var(--color-light);
}

.smart-workflow-v2 .workflow-card {
  position: relative;
  background: linear-gradient(135deg, #4f63f3 0%, #6a7cfa 100%);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px -10px rgba(65, 84, 241, 0.4);
  overflow: hidden;
  transition: transform 0.3s;
}

.smart-workflow-v2 .workflow-card:hover {
  transform: translateY(-5px);
}

.smart-workflow-v2 .workflow-img {
  max-width: 110%;
  position: relative;
  z-index: 2;
  margin-top: -50px;
  margin-bottom: -50px;
}

.smart-workflow-v2 .card-content {
  color: #fff;
  padding: 30px;
  position: relative;
  z-index: 1;
}

.smart-workflow-v2 .card-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
}

.smart-workflow-v2 .card-description {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 30px;
}

.smart-workflow-v2 .benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.smart-workflow-v2 .benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.smart-workflow-v2 .benefit-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.smart-workflow-v2 .benefit-item i {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
}

.smart-workflow-v2 .btn-discover {
  background: #fff;
  color: var(--color-primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.smart-workflow-v2 .btn-discover i {
  transition: transform 0.3s;
  margin-right: 8px;
}

.smart-workflow-v2 .btn-discover:hover {
  background: var(--color-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.smart-workflow-v2 .btn-discover:hover i {
  transform: translateX(-5px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .smart-workflow-v2 .workflow-img {
    max-width: 80%;
    margin: -30px auto 20px auto;
  }
  .smart-workflow-v2 .card-content {
    text-align: center;
  }
  .smart-workflow-v2 .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/**
 * --------------------------------------------------------------------------------
 * Final CTA Section (Sign Up)
 * --------------------------------------------------------------------------------
 */
.signup-cta {
  background: linear-gradient(rgba(1, 41, 112, 0.9), rgba(1, 22, 61, 0.9)), url(../img/cta-bg.jpg) fixed center center;
  background-size: cover;
  padding: 100px 0;
}

.signup-cta h3 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}

.signup-cta p {
  color: #fff;
  opacity: 0.9;
  margin: 20px auto 30px auto;
  max-width: 700px;
}

.signup-cta .cta-btn {
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid #fff;
  color: #fff;
}

.signup-cta .cta-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}