:root {
    --phdream-primary: #F2C14E;
    --phdream-secondary: #FFD36B;
    --phdream-card-bg: #111111;
    --phdream-background: #0A0A0A;
    --phdream-text-main: #FFF6D6;
    --phdream-border: #3A2A12;
    --phdream-glow: #FFD36B;
    --phdream-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-faq {
    background-color: var(--phdream-background);
    color: var(--phdream-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px 60px;
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px;
}

.page-faq__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    z-index: 1;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--phdream-primary);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-faq__intro-text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--phdream-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-faq__btn-primary {
    background: var(--phdream-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--phdream-primary);
    border: 2px solid var(--phdream-primary);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-faq__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__faq-section {
    padding: 60px 20px;
    background-color: var(--phdream-background);
    box-sizing: border-box;
    color: var(--phdream-text-main);
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--phdream-primary);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-faq__section-description {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--phdream-text-main);
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: var(--phdream-card-bg);
    border: 1px solid var(--phdream-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-item.active {
    box-shadow: 0 4px 20px rgba(242, 193, 78, 0.3);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--phdream-card-bg);
    color: var(--phdream-text-main);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-faq__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--phdream-primary);
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--phdream-text-main);
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important;
    padding: 15px 20px 20px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--phdream-text-main);
}

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-section {
    text-align: center;
    padding: 40px;
    margin-top: 50px;
    border-radius: 10px;
    background: var(--phdream-card-bg);
    border: 1px solid var(--phdream-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--phdream-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-faq__cta-description {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: var(--phdream-text-main);
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-faq__intro-text {
        font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    }
    .page-faq__faq-section {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 0 15px 30px;
    }
    .page-faq__hero-image {
        margin-bottom: 20px;
    }
    .page-faq__hero-content {
        padding: 0 10px;
    }
    .page-faq__main-title {
        font-size: 2rem;
    }
    .page-faq__intro-text {
        font-size: 0.9rem;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__faq-section {
        padding: 30px 10px;
    }
    .page-faq__container {
        padding: 0 10px;
    }
    .page-faq__section-title {
        font-size: 1.6rem;
    }
    .page-faq__section-description {
        font-size: 0.85rem;
    }
    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 10px 15px 15px;
    }
    .page-faq__faq-answer p {
        font-size: 0.9rem;
    }
    .page-faq__cta-section {
        padding: 30px 20px;
    }
    .page-faq__cta-title {
        font-size: 1.3rem;
    }
    .page-faq__cta-description {
        font-size: 0.85rem;
    }

    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__faq-section,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}