/* PortalPRO Blocks Styles */

:root {
    --portalpro-green: #008c58;
    --portalpro-green-hover: #007a4d;
    --portalpro-black: #1f232f;
    --portalpro-gray: #474747;
    --portalpro-light-gray: #f1f1f1;
    --portalpro-white: #ffffff;
    --portalpro-border-color: #ececec;
    --portalpro-border-gray: #d1d5db;
    
    --font-dm-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-manrope: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 80px;
    --spacing-5xl: 96px;
    
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
}


.portalpro-grid {
    display: grid;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .portalpro-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portalpro-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portalpro-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.portalpro-flex {
    display: flex;
}

.portalpro-flex-col {
    flex-direction: column;
}

.portalpro-items-center {
    align-items: center;
}

.portalpro-justify-center {
    justify-content: center;
}

.portalpro-text-center {
    text-align: center;
}

.portalpro-hidden {
    display: none;
}

@media (min-width: 1024px) {
    .portalpro-lg-block {
        display: block;
    }
}

/* Typography */
.portalpro-text-sm {
    font-size: 14px;
    line-height: 1.5;
}

.portalpro-text-base {
    font-size: 16px;
    line-height: 1.5;
}

.portalpro-text-lg {
    font-size: 18px;
    line-height: 1.5;
}

.portalpro-text-xl {
    font-size: 20px;
    line-height: 1.4;
}

.portalpro-text-2xl {
    font-size: 24px;
    line-height: 1.3;
}

.portalpro-text-3xl {
    font-size: 30px;
    line-height: 1.2;
}

.portalpro-text-4xl {
    font-size: 36px;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .portalpro-sm-text-lg {
        font-size: 18px;
    }
    
    .portalpro-sm-text-xl {
        font-size: 20px;
    }
    
    .portalpro-sm-text-2xl {
        font-size: 24px;
    }
    
    .portalpro-sm-text-3xl {
        font-size: 30px;
    }
}

@media (min-width: 1024px) {
    .portalpro-lg-text-xl {
        font-size: 20px;
    }
    
    .portalpro-lg-text-2xl {
        font-size: 24px;
    }
    
    .portalpro-lg-text-4xl {
        font-size: 36px;
    }
    
    .portalpro-lg-text-5xl {
        font-size: 48px;
    }
}

/* Feature Highlight Block (Hero) */
.portalpro-feature-highlight {
    position: relative;
    width: 100%;
    background-color: var(--portalpro-green);
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
}

.portalpro-feature-highlight__decorative {
    position: absolute;
    top: 0;
    right: 0;
    width: 828px;
    height: 586px;
    z-index: 1;
}

.portalpro-feature-highlight__circle {
    position: absolute;
    top: 300px;
    right: 380px;
    width: 475px;
    height: 475px;
    border: 1px solid var(--portalpro-white);
    border-radius: 50%;
    z-index: 1;
}

.portalpro-feature-highlight__content {
    position: relative;
    z-index: 10;
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .portalpro-feature-highlight__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3xl);
    }
    
    .portalpro-feature-highlight__decorative {
        display: block;
    }
    
    .portalpro-feature-highlight__circle {
        display: block;
    }
}

.portalpro-feature-highlight__text {
    order: 2;
}

@media (min-width: 1024px) {
    .portalpro-feature-highlight__text {
        order: 1;
    }
}

.portalpro-feature-highlight__image {
    order: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .portalpro-feature-highlight__image {
        order: 2;
        text-align: right;
    }
}

.portalpro-feature-highlight__title {
    font-family: var(--font-dm-sans);
    font-weight: 600;
    color: var(--portalpro-white);
    margin-bottom: var(--spacing-lg);
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.2;
}

.portalpro-feature-highlight__description {
    font-family: var(--font-dm-sans);
    font-weight: 400;
    color: var(--portalpro-white);
    margin-bottom: var(--spacing-xl);
    font-size: var(--spacing-md);
    line-height: 1.5;
}

.portalpro-feature-highlight__cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

.portalpro-feature-highlight__button {
    display: inline-block;
    background-color: var(--portalpro-white);
    color: var(--portalpro-black);
    font-family: var(--font-dm-sans);
    font-weight: 700;
    font-size: var(--spacing-md);
    padding: 12px var(--spacing-lg);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
    max-width: 297px;
    width: 100%;
}

.portalpro-feature-highlight__button:hover {
    background-color: #f3f4f6;
}

.portalpro-feature-highlight__app-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.portalpro-feature-highlight__app-button {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.portalpro-feature-highlight__app-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.portalpro-feature-highlight__app-button img {
    display: block;
    height: auto;
    max-width: 100%;
}

.portalpro-feature-highlight__app-store {
    max-width: 287px;
    width: 100%;
    height: auto;
}

.portalpro-feature-highlight__phone-image {
    width: 100%;
    max-width: 638px;
    height: auto;
    object-fit: contain;
}

/* Program Overview Block */
.portalpro-program-overview {
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.portalpro-program-overview__title {
    font-family: var(--font-dm-sans);
    font-weight: 700;
    color: var(--portalpro-black);
    margin-bottom: var(--spacing-xl);
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.2;
}

.portalpro-program-overview__grid {
    display: grid;
    gap: var(--spacing-lg);
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .portalpro-program-overview__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .portalpro-program-overview__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.portalpro-program-overview__card {
    background-color: var(--portalpro-white);
    border-radius: var(--border-radius-xl);
    box-shadow: 5px 8px 20px rgba(191, 191, 191, 0.25);
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
}

.portalpro-program-overview__icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    margin-bottom: 0;
}

.portalpro-program-overview__icon {
    max-height: 53px;
    width: auto;
    object-fit: contain;
}

.portalpro-program-overview__card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
}

.portalpro-program-overview__card-title {
    font-family: var(--font-manrope);
    font-weight: 600;
    color: var(--portalpro-black);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.3;
    margin-bottom: 0;
}

.portalpro-program-overview__card-description {
    font-family: var(--font-manrope);
    font-weight: 400;
    color: var(--portalpro-gray);
    font-size: var(--spacing-md);
    line-height: 1.5;
    flex: 1;
}

/* Service Description Block */
.portalpro-service-description {
    width: 100%;
    background-color: var(--portalpro-light-gray);
    padding: var(--spacing-xl) 0;
}

@media (min-width: 768px) {
    .portalpro-service-description {
        padding: var(--spacing-3xl) 0;
    }
}

.portalpro-service-description__content {
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .portalpro-service-description__content {
        grid-template-columns: 2fr 1fr;
    }
}

.portalpro-service-description__text {
    margin-bottom: var(--spacing-lg);
}

.portalpro-service-description__title {
    font-family: var(--font-dm-sans);
    font-weight: 500;
    color: var(--portalpro-black);
    margin-bottom: var(--spacing-lg);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
}

.portalpro-service-description__title--highlight {
    color: var(--portalpro-green);
}

.portalpro-service-description__button {
    display: inline-block;
    background-color: var(--portalpro-green);
    color: var(--portalpro-white);
    font-family: var(--font-dm-sans);
    font-weight: 700;
    font-size: var(--spacing-md);
    padding: 14px var(--spacing-xl);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
    width: 100%;
}

@media (min-width: 640px) {
    .portalpro-service-description__button {
        width: auto;
    }
}

.portalpro-service-description__button:hover {
    background-color: var(--portalpro-green-hover);
}

.portalpro-service-description__image-container {
    text-align: center;
}

@media (min-width: 1024px) {
    .portalpro-service-description__image-container {
        text-align: right;
    }
}

.portalpro-service-description__image {
    width: 100%;
    max-width: 179px;
    height: auto;
}

/* App Download Block */
.portalpro-app-download {
    padding: var(--spacing-3xl) 0;
}

.portalpro-app-download__grid {
    display: grid;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .portalpro-app-download__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }
}

.portalpro-app-download__card {
    border: 1px solid var(--portalpro-border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.portalpro-app-download__icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70px;
    margin-bottom: 0;
}

.portalpro-app-download__icon {
    max-height: 62px;
    width: auto;
    object-fit: contain;
}

.portalpro-app-download__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
    width: 100%;
}

.portalpro-app-download__title {
    font-family: var(--font-dm-sans);
    font-weight: 700;
    color: var(--portalpro-black);
    font-size: 20px;
    line-height: 1.1;
    margin-bottom: 0;
}

.portalpro-app-download__description {
    font-family: var(--font-manrope);
    font-weight: 400;
    color: var(--portalpro-gray);
    font-size: var(--spacing-md);
    line-height: 1.5;
    flex: 1;
}

/* FAQ Block */
.portalpro-faq {
    padding: var(--spacing-1xl) 0;
}

.portalpro-faq__title {
    font-family: var(--font-dm-sans);
    font-weight: 700;
    color: var(--portalpro-black);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-size: clamp(20px, 3vw, 36px);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .portalpro-faq__title {
        text-align: left;
    }
}

.portalpro-faq__accordion {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

@media (min-width: 640px) {
    .portalpro-faq__accordion {
        gap: var(--spacing-lg);
    }
}

.portalpro-faq__item {
    border-bottom: 1px solid var(--portalpro-border-gray);
    width: 100%;
}

.portalpro-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-dm-sans);
    font-weight: 700;
    color: var(--portalpro-black);
    text-align: left;
    padding: 12px 0;
    cursor: pointer;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.4;
    transition: color 0.2s ease;
}

@media (min-width: 640px) {
    .portalpro-faq__question {
        padding: var(--spacing-md) 0;
    }
}

.portalpro-faq__question:hover {
    text-decoration: none;
}

.portalpro-faq__question-text {
    flex: 1;
    margin-right: var(--spacing-md);
}

.portalpro-faq__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.portalpro-faq__icon--expanded {
    transform: rotate(180deg);
}

.portalpro-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.portalpro-faq__answer--expanded {
    max-height: 1000px;
}

.portalpro-faq__answer-content {
    font-family: var(--font-dm-sans);
    font-weight: 400;
    color: var(--portalpro-gray);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    padding: 0 0 var(--spacing-md) 0;
    max-width: 877px;
    white-space: pre-line;
}

@media (min-width: 640px) {
    .portalpro-faq__answer-content {
        padding: 0 0 var(--spacing-lg) 0;
    }
}

/* Responsive image utilities */
.portalpro-responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility classes for spacing */
.portalpro-mt-0 { margin-top: 0; }
.portalpro-mb-0 { margin-bottom: 0; }
.portalpro-p-0 { padding: 0; }

/* Button focus states for accessibility */
.portalpro-feature-highlight__button:focus,
.portalpro-service-description__button:focus,
.portalpro-faq__question:focus {
    outline: 2px solid var(--portalpro-white);
    outline-offset: 2px;
}

.portalpro-service-description__button:focus {
    outline-color: var(--portalpro-green);
}