/* style/blog-phdream-security-guide.css */

/* Custom Color Variables */
:root {
    --phdream-primary: #F2C14E;
    --phdream-secondary: #FFD36B;
    --phdream-btn-gradient-start: #FFD86A;
    --phdream-btn-gradient-end: #DDA11D;
    --phdream-card-bg: #111111;
    --phdream-background: #0A0A0A;
    --phdream-text-main: #FFF6D6;
    --phdream-border: #3A2A12;
    --phdream-glow: #FFD36B;
}

/* Base styles for the page content, ensuring contrast with body background */
/* Body background is #0A0A0A (dark), so text must be light #FFF6D6 */
.page-blog-phdream-security-guide {
    background-color: var(--phdream-background);
    color: var(--phdream-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

.page-blog-phdream-security-guide__section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-blog-phdream-security-guide__dark-section {
    background-color: var(--phdream-card-bg); /* Darker background for contrast sections */
    color: var(--phdream-text-main);
}

.page-blog-phdream-security-guide__container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-blog-phdream-security-guide__container--centered {
    text-align: center;
}

/* Hero Section */
.page-blog-phdream-security-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background-color: var(--phdream-background); /* Ensure background for hero */
}

.page-blog-phdream-security-guide__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for image wrapper */
    margin-bottom: 30px; /* Space between image and content */
}

.page-blog-phdream-security-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for hero image */
}

.page-blog-phdream-security-guide__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-blog-phdream-security-guide__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--phdream-primary);
    margin-bottom: 20px;
}

.page-blog-phdream-security-guide__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--phdream-text-main);
}

.page-blog-phdream-security-guide__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
}

/* Headings */
.page-blog-phdream-security-guide__heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--phdream-primary);
    margin-bottom: 30px;
    text-align: center;
}

.page-blog-phdream-security-guide__card-title,
.page-blog-phdream-security-guide__bullet-title,
.page-blog-phdream-security-guide__faq-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--phdream-secondary);
    margin-bottom: 15px;
}

/* Text Blocks */
.page-blog-phdream-security-guide__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--phdream-text-main);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-blog-phdream-security-guide__btn-primary,
.page-blog-phdream-security-guide__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;
    box-sizing: border-box; /* Important for mobile responsiveness */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-blog-phdream-security-guide__btn-primary {
    background: linear-gradient(180deg, var(--phdream-btn-gradient-start) 0%, var(--phdream-btn-gradient-end) 100%);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-blog-phdream-security-guide__btn-secondary {
    background: transparent;
    color: var(--phdream-primary); /* Primary color text for secondary button */
    border: 2px solid var(--phdream-primary);
}

.page-blog-phdream-security-guide__btn-secondary:hover {
    background-color: var(--phdream-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Images */
.page-blog-phdream-security-guide__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto; /* Center images by default */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-phdream-security-guide__image--center {
    margin-left: auto;
    margin-right: auto;
}

.page-blog-phdream-security-guide__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    max-width: 40%; /* Example for floating image */
}

.page-blog-phdream-security-guide__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 40%; /* Example for floating image */
}

/* Clearfix for floating images */
.page-blog-phdream-security-guide__container::after {
    content: "";
    display: table;
    clear: both;
}

/* Card Grid */
.page-blog-phdream-security-guide__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-blog-phdream-security-guide__card {
    background-color: var(--phdream-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--phdream-border);
    color: var(--phdream-text-main); /* Light text for dark card background */
}

.page-blog-phdream-security-guide__card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--phdream-text-main);
}

/* Lists */
.page-blog-phdream-security-guide__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-blog-phdream-security-guide__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--phdream-text-main);
}

.page-blog-phdream-security-guide__list li::before {
    content: '✓'; /* Checkmark icon */
    color: var(--phdream-primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.page-blog-phdream-security-guide__list--centered {
    text-align: center;
    padding-left: 0;
}

.page-blog-phdream-security-guide__list--centered li {
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px; /* Constrain width for centered list items */
}

.page-blog-phdream-security-guide__list--centered li::before {
    display: none; /* Hide checkmark for centered list */
}

/* Bullet Points (for User Best Practices) */
.page-blog-phdream-security-guide__bullet-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-blog-phdream-security-guide__bullet-item {
    background-color: var(--phdream-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--phdream-border);
    color: var(--phdream-text-main);
}

.page-blog-phdream-security-guide__bullet-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--phdream-text-main);
}

/* FAQ Section */
.page-blog-phdream-security-guide__faq-list {
    margin-top: 40px;
}

.page-blog-phdream-security-guide__faq-item {
    background-color: var(--phdream-card-bg);
    border: 1px solid var(--phdream-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog-phdream-security-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: var(--phdream-card-bg); /* Ensure background for question */
    color: var(--phdream-text-main);
    transition: background-color 0.3s ease;
}

.page-blog-phdream-security-guide__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Slight hover effect */
}

.page-blog-phdream-security-guide__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--phdream-primary);
    transition: transform 0.3s ease;
}

.page-blog-phdream-security-guide__faq-item.active .page-blog-phdream-security-guide__faq-toggle {
    transform: rotate(45deg); /* Rotate to form 'x' or use '-' */
}

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

.page-blog-phdream-security-guide__faq-item.active .page-blog-phdream-security-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 30px 30px; /* Adjust padding when open */
}

.page-blog-phdream-security-guide__faq-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--phdream-text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog-phdream-security-guide__image--left,
    .page-blog-phdream-security-guide__image--right {
        float: none;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-blog-phdream-security-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog-phdream-security-guide__section {
        padding: 40px 15px;
    }

    .page-blog-phdream-security-guide__hero-section {
        padding-bottom: 40px;
    }

    .page-blog-phdream-security-guide__hero-content {
        padding: 0 15px;
    }

    .page-blog-phdream-security-guide__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-blog-phdream-security-guide__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-blog-phdream-security-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-blog-phdream-security-guide__btn-primary,
    .page-blog-phdream-security-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-blog-phdream-security-guide__heading {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 20px;
    }

    .page-blog-phdream-security-guide__text-block {
        font-size: 0.95rem;
    }

    .page-blog-phdream-security-guide__card-grid,
    .page-blog-phdream-security-guide__bullet-points {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .page-blog-phdream-security-guide__card,
    .page-blog-phdream-security-guide__bullet-item {
        padding: 20px;
    }

    .page-blog-phdream-security-guide__card-title,
    .page-blog-phdream-security-guide__bullet-title,
    .page-blog-phdream-security-guide__faq-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .page-blog-phdream-security-guide__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

    .page-blog-phdream-security-guide__container {
        padding-left: 0px; /* Inner containers already have margin auto */
        padding-right: 0px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-blog-phdream-security-guide__faq-question {
        padding: 15px 20px;
    }

    .page-blog-phdream-security-guide__faq-answer {
        padding: 0 20px;
    }

    .page-blog-phdream-security-guide__faq-item.active .page-blog-phdream-security-guide__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Important: For video section, rely on body padding-top, only add small top padding */
    .page-blog-phdream-security-guide__video-section {
        padding-top: 10px !important;
    }
}