/* ===== Basic Reset & Defaults ===== */
:root {
    --primary-color: #4a69bd;
    --secondary-color: #6a89cc;
    --gold-accent: #FFD700;
    --light-grey: #f8f9fa;
    --medium-grey: #e9ecef;
    --dark-grey: #6c757d;
    --text-color: #343a40;
    --light-text-color: #f0f0f0;
    --border-color: #dee2e6;
    --white-color: #ffffff;
    --error-color: #dc3545;
    --success-color: #28a745;
    --info-color: #17a2b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; overflow: hidden; }

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--light-text-color);
    background-color: var(--dark-grey);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    position: relative;
}

/* body::before is in the HTML head style tag */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 25, 112, 0.55);
    z-index: -1;
}

a { text-decoration: none; color: var(--gold-accent); }
a:hover { color: var(--white-color); }

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2vh 20px 1vh 20px; /* UPDATED: Adjusted padding slightly */
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.page-header {
    margin-top: 3vh; /* UPDATED: Adjusted margin */
    margin-bottom: 1.5vh; /* UPDATED: Reduced margin to make space */
}
.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2em, 4.5vw, 3.5em); /* UPDATED: Slightly adjusted responsive font size */
    color: var(--white-color);
    margin-bottom: 8px; /* UPDATED */
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.page-header .sub-punchline {
    font-size: clamp(0.9em, 2.2vw, 1.2em); /* UPDATED */
    color: var(--light-text-color);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 10px auto; /* UPDATED */
}

/* NEW: SEO Descriptive Text Styling */
.seo-description {
    font-size: clamp(0.8em, 1.8vw, 1em); /* Responsive font size */
    color: var(--light-text-color);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 1.5vh auto; /* UPDATED: Adjusted margin */
    line-height: 1.5;
}
.seo-description p {
    margin-bottom: 0.5em;
}
.seo-description p:last-child {
    margin-bottom: 0;
}

/* UPDATED: Countdown Timer Styling */
.countdown-section {
    margin: 1vh 0 1.5vh 0; /* UPDATED: Reduced vertical margin */
}
#countdownTimer .timer {
    display: flex;
    justify-content: center;
    gap: 10px; /* UPDATED: Reduced gap */
    font-size: clamp(0.75em, 1.8vw, 1em); /* UPDATED: Reduced label font size */
}
#countdownTimer .timer div {
    background-color: rgba(0,0,0,0.25);
    padding: 8px 12px; /* UPDATED: Reduced padding */
    border-radius: 5px;
}
#countdownTimer .timer span {
    display: block;
    font-size: clamp(1.3em, 3vw, 1.8em); /* UPDATED: Reduced number font size */
    font-weight: 600;
    color: var(--white-color);
}

.subscription-trigger {
    margin: 2vh 0; /* UPDATED: Adjusted margin */
}
#openSubscribePopupBtn {
    padding: 10px 25px; /* UPDATED: Slightly reduced padding */
    background-color: var(--gold-accent);
    color: var(--text-color);
    border: none;
    border-radius: 30px;
    font-size: clamp(0.9em, 2vw, 1.1em); /* UPDATED */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#openSubscribePopupBtn:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
}

.bottom-content {
    width: 100%;
    max-width: 800px; /* UPDATED: Slightly reduced max-width for icons if needed */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5vh; /* UPDATED: Reduced margin */
}

.features-showcase-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px; /* UPDATED */
    padding: 8px 0; /* UPDATED */
    width: 100%;
    margin-bottom: 10px; /* UPDATED */
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.feature-icon-bottom {
    text-align: center;
    color: var(--light-text-color);
    flex: 1;
    max-width: 90px; /* UPDATED */
}
.feature-icon-bottom i {
    font-size: clamp(1.3em, 2.5vw, 1.8em); /* UPDATED */
    color: var(--gold-accent);
    margin-bottom: 5px; /* UPDATED */
    transition: transform 0.2s ease;
}
.feature-icon-bottom:hover i { transform: scale(1.1); }
.feature-icon-bottom span {
    font-size: clamp(0.55em, 1.3vw, 0.7em); /* UPDATED */
    display: block;
    opacity: 0.8;
}

.social-links {
    text-align: center;
    padding: 5px 0;
}
.social-links a {
    color: var(--light-text-color);
    font-size: clamp(1.1em, 2.2vw, 1.5em); /* UPDATED */
    margin: 0 8px; /* UPDATED */
    transition: color 0.3s ease, transform 0.2s ease;
    opacity: 0.8;
}
.social-links a:hover { color: var(--gold-accent); transform: translateY(-2px); opacity: 1; }

.page-footer {
    padding: 5px 0;
    text-align: center;
    font-size: clamp(0.7em, 1.5vw, 0.85em); /* UPDATED */
    color: var(--light-text-color);
    opacity: 0.7;
}
.page-footer p { margin: 0; }


/* ... (previous CSS: :root, resets, body, overlay, container, page-header, seo-description, countdown-section) ... */

/* UPDATED: subscription-trigger and NEW: blog-trigger styling */
.engagement-actions {
    margin: 2.5vh 0; /* Adjust overall margin for the action buttons block */
    display: flex;
    flex-direction: column; /* Stack buttons by default */
    align-items: center;
    gap: 15px; /* Space between subscribe and blog button if stacked */
}

.subscription-trigger #openSubscribePopupBtn { /* Maintaining previous ID styling */
    padding: 12px 30px;
    background-color: var(--gold-accent);
    color: var(--text-color);
    border: none;
    border-radius: 30px;
    font-size: clamp(1em, 2.2vw, 1.2em);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-block; /* To respect padding */
}
.subscription-trigger #openSubscribePopupBtn:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
}

.blog-trigger .btn-secondary { /* Styling for the blog button */
    display: inline-block;
    padding: 10px 25px;
    color: var(--light-text-color); /* Text color to stand out on overlay */
    background-color: transparent;
    border: 2px solid var(--gold-accent); /* Border with accent color */
    border-radius: 30px;
    font-size: clamp(0.9em, 1.8vw, 1.1em);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.blog-trigger .btn-secondary:hover {
    background-color: var(--gold-accent);
    color: var(--text-color); /* Dark text on gold hover */
    transform: translateY(-2px);
}


/* Media query to place buttons side-by-side on wider screens if desired */
@media (min-width: 600px) { /* Adjust breakpoint as needed */
    .engagement-actions {
        flex-direction: row; /* Buttons side-by-side */
        justify-content: center; /* Center them */
        gap: 20px; /* Space between buttons */
    }
}


/* ... (rest of your CSS: .bottom-content, .features-showcase-bottom, .social-links, .page-footer, modal styles, responsive styles for very short/narrow screens) ... */

/* Ensure in your main responsive media queries, these buttons are also considered for sizing/spacing if needed */



/* --- Popup Modal Styles (largely unchanged, ensure they work with new content flow) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0s;
}

.modal-content {
    background-color: var(--white-color);
    color: var(--text-color);
    padding: 30px 35px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 480px;
    position: relative;
    text-align: center;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease-in-out;
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
}
.modal-content p { margin-bottom: 20px; font-size: 1em; line-height: 1.6; }

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.2em;
    color: var(--dark-grey);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close-btn:hover { color: var(--text-color); }

.modal-content input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--text-color);
    background-color: #fff;
}
.modal-content input[type="email"]::placeholder { color: #aaa; }

.modal-content button[type="submit"] {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}
.modal-content button[type="submit"]:hover { background-color: var(--secondary-color); }

.modal-privacy-note { font-size: 0.8em; color: var(--dark-grey); }

.form-messages { width: 100%; }
.form-messages p { font-size: 0.9em; padding: 10px; border-radius: 4px; margin-bottom: 10px; text-align: left; }
.form-messages .msg-success { color: var(--success-color); background-color: rgba(40, 167, 69, 0.1); border-left: 3px solid var(--success-color); }
.form-messages .msg-error   { color: var(--error-color); background-color: rgba(220, 53, 69, 0.1); border-left: 3px solid var(--error-color); }
.form-messages .msg-info    { color: var(--info-color); background-color: rgba(23, 162, 184, 0.1); border-left: 3px solid var(--info-color); }

/* Responsive adjustments for very short heights or widths */
@media (max-height: 700px) { /* More aggressive adjustments for shorter screens */
    .container { padding: 1.5vh 20px 0.5vh 20px; }
    .page-header { margin-top: 2vh; margin-bottom: 1vh;}
    .page-header h1 { font-size: clamp(1.6em, 4vw, 2.8em); margin-bottom: 5px;}
    .page-header .sub-punchline { font-size: clamp(0.8em, 2vw, 1em); margin-bottom: 5px; }
    .seo-description { font-size: clamp(0.7em, 1.5vw, 0.9em); margin: 0.5vh auto 1vh auto; }
    .seo-description p { margin-bottom: 0.3em;}
    .countdown-section { margin: 0.5vh 0 1vh 0; }
    #countdownTimer .timer span { font-size: clamp(1.1em, 2.5vw, 1.6em); }
    #countdownTimer .timer div { padding: 6px 8px; }
    .subscription-trigger { margin: 1vh 0; }
    #openSubscribePopupBtn { padding: 8px 20px; font-size: clamp(0.8em, 1.8vw, 1em); }
    .features-showcase-bottom { padding: 5px 0; margin-bottom: 5px; gap: 5px;}
    .feature-icon-bottom i { font-size: clamp(1.1em, 2vw, 1.5em); margin-bottom: 2px; }
    .feature-icon-bottom span { font-size: clamp(0.5em, 1vw, 0.6em); }
    .social-links { padding: 3px 0;}
    .social-links a { font-size: clamp(1em, 1.8vw, 1.3em); margin: 0 6px; }
    .page-footer { padding: 3px 0; font-size: clamp(0.65em, 1.3vw, 0.8em); }
}

@media (max-width: 480px) { /* Example for very narrow screens */
    .container { padding-left: 10px; padding-right: 10px; }
    .page-header h1 { font-size: clamp(1.5em, 7vw, 2em); }
    .seo-description { font-size: clamp(0.7em, 2.5vw, 0.8em); }
    .features-showcase-bottom { flex-wrap: wrap; gap: 5px; justify-content: center; }
    .feature-icon-bottom { flex-basis: 22%; max-width: none;}
}