/* style/resources-thabet-kubet-analysis.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #f0f0f0;
    --register-login-bg: #C30808;
    --register-login-text: #FFFF00;
}

.page-resources-thabet-kubet-analysis {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Matches body background */
}

/* Hero Section */
.page-resources-thabet-kubet-analysis__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, var(--primary-color), #000000); /* Darker gradient for contrast */
    color: var(--text-light); /* Light text on dark background */
    overflow: hidden; /* Prevent content overflow */
}

.page-resources-thabet-kubet-analysis__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above image if image has z-index */
}

.page-resources-thabet-kubet-analysis__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-resources-thabet-kubet-analysis__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-resources-thabet-kubet-analysis__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources-thabet-kubet-analysis__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Enhance readability on image */
    line-height: 1.2;
}

.page-resources-thabet-kubet-analysis__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-thabet-kubet-analysis__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--register-login-bg); /* Use specific color for register/login */
    color: var(--register-login-text); /* Use specific color for register/login font */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-resources-thabet-kubet-analysis__cta-button:hover {
    background: #e62e2e; /* Slightly darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-thabet-kubet-analysis__cta-button--register {
    background: var(--register-login-bg);
    color: var(--register-login-text);
}


/* General Section Styling */
.page-resources-thabet-kubet-analysis__section {
    padding: 60px 20px;
    background-color: var(--secondary-color);
}

.page-resources-thabet-kubet-analysis__section:nth-of-type(odd) {
    background-color: #f8f8f8; /* Slightly different background for alternating sections */
}

.page-resources-thabet-kubet-analysis__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-resources-thabet-kubet-analysis__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-thabet-kubet-analysis__sub-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-thabet-kubet-analysis__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-resources-thabet-kubet-analysis__image-wrapper {
    margin: 30px auto;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-thabet-kubet-analysis__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-resources-thabet-kubet-analysis__image-wrapper--comparison img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Use contain for comparison charts */
    min-width: 200px;
    min-height: 200px;
}

.page-resources-thabet-kubet-analysis__feature-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    padding: 0;
    color: var(--text-dark);
}

.page-resources-thabet-kubet-analysis__feature-list .page-resources-thabet-kubet-analysis__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-resources-thabet-kubet-analysis__step-list {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
    padding: 0;
    color: var(--text-dark);
}

.page-resources-thabet-kubet-analysis__step-list .page-resources-thabet-kubet-analysis__list-item {
    margin-bottom: 15px;
    font-size: 1.05em;
    font-weight: bold;
}

.page-resources-thabet-kubet-analysis__step-list .page-resources-thabet-kubet-analysis__list-item strong {
    color: var(--primary-color);
}

.page-resources-thabet-kubet-analysis__button-group {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-resources-thabet-kubet-analysis__btn-primary,
.page-resources-thabet-kubet-analysis__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
    text-align: center;
}

.page-resources-thabet-kubet-analysis__btn-primary {
    background: var(--register-login-bg);
    color: var(--register-login-text);
    border-color: var(--register-login-bg);
}

.page-resources-thabet-kubet-analysis__btn-primary:hover {
    background: #e62e2e;
    border-color: #e62e2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-resources-thabet-kubet-analysis__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-resources-thabet-kubet-analysis__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


/* FAQ Section */
.page-resources-thabet-kubet-analysis__faq-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.page-resources-thabet-kubet-analysis__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources-thabet-kubet-analysis__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources-thabet-kubet-analysis__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-thabet-kubet-analysis__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-thabet-kubet-analysis__faq-question:active {
    background: #eeeeee;
}

.page-resources-thabet-kubet-analysis__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color); /* FAQ question title color */
}

.page-resources-thabet-kubet-analysis__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: color 0.3s ease; /* Removed transform transition */
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-thabet-kubet-analysis__faq-item.active .page-resources-thabet-kubet-analysis__faq-toggle {
    color: var(--primary-color); /* No transform, just text change by JS */
}

.page-resources-thabet-kubet-analysis__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: #f9f9f9; /* Answer background */
    color: var(--text-dark); /* Answer text color */
}

.page-resources-thabet-kubet-analysis__faq-item.active .page-resources-thabet-kubet-analysis__faq-answer {
    max-height: 2000px !important; /* Ensure content can fully expand */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-resources-thabet-kubet-analysis__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 1em;
    line-height: 1.6;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-thabet-kubet-analysis__hero-title {
        font-size: 2.2em;
    }
    .page-resources-thabet-kubet-analysis__hero-description {
        font-size: 1.1em;
    }
    .page-resources-thabet-kubet-analysis__section-title {
        font-size: 1.8em;
    }
    .page-resources-thabet-kubet-analysis__sub-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-resources-thabet-kubet-analysis__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-thabet-kubet-analysis__hero-image {
        margin-bottom: 20px;
    }

    .page-resources-thabet-kubet-analysis__hero-image img {
        border-radius: 4px;
    }

    .page-resources-thabet-kubet-analysis__hero-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-resources-thabet-kubet-analysis__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources-thabet-kubet-analysis__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        width: 100% !important;
        max-width: 300px !important; /* Constrain max width for better appearance */
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .page-resources-thabet-kubet-analysis__section {
        padding: 40px 15px;
    }

    .page-resources-thabet-kubet-analysis__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .page-resources-thabet-kubet-analysis__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-resources-thabet-kubet-analysis__text-block,
    .page-resources-thabet-kubet-analysis__feature-list .page-resources-thabet-kubet-analysis__list-item,
    .page-resources-thabet-kubet-analysis__step-list .page-resources-thabet-kubet-analysis__list-item,
    .page-resources-thabet-kubet-analysis__faq-answer p {
        font-size: 0.95em;
    }

    /* Images responsive */
    .page-resources-thabet-kubet-analysis img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size even on mobile */
        min-height: 200px !important;
    }

    .page-resources-thabet-kubet-analysis__section,
    .page-resources-thabet-kubet-analysis__container,
    .page-resources-thabet-kubet-analysis__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button group for mobile */
    .page-resources-thabet-kubet-analysis__button-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .page-resources-thabet-kubet-analysis__btn-primary,
    .page-resources-thabet-kubet-analysis__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Constrain max width for better appearance */
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ mobile */
    .page-resources-thabet-kubet-analysis__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-thabet-kubet-analysis__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-thabet-kubet-analysis__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-thabet-kubet-analysis__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-thabet-kubet-analysis__faq-item.active .page-resources-thabet-kubet-analysis__faq-answer {
        padding: 15px !important;
    }
}