/*
Theme Name: Integrated Human Theme
Author: Fred Baker
Description: A custom theme for Integrated Human.Consulting, designed to be fast, accessible, and professional.
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.4
Tags: custom-background, custom-logo, custom-menu, accessibility-ready, responsive-layout, one-column
Text Domain: integrated-human-theme
*/

/* ==========================================================================
   1. CSS Variables & Global Styles
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-dark-blue: #00334D;
    --secondary-blue: #005A87;
    --accent-gold: #F2A900;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --font-header: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --monday-purple: #6161FF;
    --monday-pink: #FF6F6F;
    --monday-green: #00D647;
    --monday-orange: #FDAB3D;
}

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 112.5%; /* Sets base font to 18px from 16px for sitewide increase */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--primary-dark-blue);
    background-color: var(--white); /* Default background */
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-blue);
}

a:hover {
    text-decoration: underline;
}

a[onclick] {
    cursor: pointer;
}

section {
    padding: 3rem 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-header);
    color: var(--primary-dark-blue);
    font-weight: 700;
    line-height: 1.2;
}

h1 { 
    font-size: 2rem; 
    margin-bottom: 1rem; 
}

h2 { 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
    text-align: center; 
}

h3 { 
    font-size: 1.2rem; 
    margin-bottom: 0.5rem; 
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   2. Reusable Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    width: 100%;
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
}

.btn-primary:hover {
    background-color: #004a70;
    border-color: #004a70;
}

.btn-accent {
    background: var(--accent-gold);
    color: var(--primary-dark-blue);
    border-color: var(--accent-gold);
}

.btn-accent:hover {
    background: #e09800;
    border-color: #e09800;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark-blue);
}

.btn-accent:hover, .btn-monday:hover {
    text-decoration: none;
}

/* Native Forms */
.native-form .form-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* This adds space between form elements */
}

.native-form input[type="text"],
.native-form input[type="email"],
.native-form input[type="tel"],
.native-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: inherit;
}

.native-form input:focus,
.native-form textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 2px rgba(0, 90, 135, 0.2);
}

.native-form textarea {
    min-height: 100px;
    resize: vertical;
}

.native-form .form-disclaimer {
    font-size: 0.85rem;
    color: inherit;
    text-align: center;
    line-height: 1.4;
}

/* Icon List (replaces deliverables-list, package-features, etc.) */
.icon-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    text-align: left;
}

.icon-list li {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    color: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-list li:last-child {
    border-bottom: none;
}

.icon-list li::before {
    position: absolute;
    left: 0;
    font-family: "Font Awesome 5 Free";
    font-weight: 900; /* Required for solid icons */
    font-size: 1.1rem;
    color: var(--accent-gold);
    transition: color 0.3s ease;
}

.icon-list.checklist li::before {
    content: '\f00c'; /* Font Awesome check icon */
}

.icon-list.arrow-list li::before {
    content: '\f061'; /* Font Awesome arrow-right icon */
}

.monday-page .icon-list.checklist li::before {
    color: var(--monday-green);
}

/* Process Timeline */
.timeline-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    height: 100%;
    width: 2px;
    background: var(--secondary-blue);
    opacity: 0.3;
}

.process-timeline.services-page .timeline-step::before,
.process-timeline.monday-page .timeline-step::before {
    /* This style is now applied via the base .timeline-step::before */
    /* This empty rule is for backward compatibility if needed, can be removed */
}

.timeline-step:last-child::before {
    display: none;
}
/* Navigation - Mobile First */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: transparent; /* Let the header control the background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;    z-index: 1000;
}

/* Sticky Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white); /* Set the default background here */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1001; /* Ensure it's above other content */
}

/* Scrolled state for sticky header */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
}

.navbar .logo img {
    height: 60px; /* Default mobile height */
    width: auto; /* Add this to maintain aspect ratio */
    transition: height 0.3s ease; /* Add transition for smooth shrinking */
}

.navbar .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    list-style: none;
    text-align: center;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
}

/* Add margin to main content to account for header height */
main {
    transition: margin-top 0.3s ease;
}

.navbar .nav-links.active {
    display: flex;
}

.navbar .nav-links li {
    padding: 1rem 0;
}

.navbar .nav-links a {
    text-decoration: none;
    color: var(--primary-dark-blue);
    font-weight: 700; 
    font-size: 1.1rem; 
}

.hamburger { 
    display: block; 
    cursor: pointer; 
    background: transparent;
    border: none;
    padding: 0;
}

.bar { 
    display: block; 
    width: 25px; 
    height: 3px; 
    margin: 5px auto; 
    transition: all 0.3s ease-in-out; 
    background-color: var(--primary-dark-blue); 
}

.navbar .nav-links a:hover {
    text-decoration: none;
}

.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Active Navigation Link */
.nav-links > li.current-page > a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* Active Footer Link */
.footer-links li.current-page a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* Dropdown - Hidden on Mobile */
.dropdown-content {
    display: none;
}

.timeline-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--secondary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1.5rem;
    z-index: 1;
}

.timeline-content p {
    color: inherit;
    font-size: 0.95rem;
}

/* ==========================================================================
   3. Shared Page Components
   ========================================================================== */

/* Page Hero (for subpages) */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    min-height: auto;
    position: relative; /* Contain pseudo-elements */
    overflow: hidden;   /* Prevent pseudo-elements from spilling out */
}

.page-hero h1,
.page-hero p {
    color: var(--white);
}

.page-hero .container {
    position: relative;
    z-index: 1; /* Ensures content is above pseudo-elements */
}

/* ==========================================================================
   4. Page-Specific Sections
   ========================================================================== */

/* Hero Section - Mobile First */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding: 2rem 1rem;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 93, 138, 0.8) 0%, rgba(0, 51, 77, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
}

.hero h1 { 
    color: var(--white);
    font-size: 2rem;
}

.hero p { 
    font-size: 1rem; 
    margin: 0 auto 2rem; 
}

.hero-stats {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.hero-stats h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    line-height: 1;
}

.stat-description {
    color: var(--white);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.hero-buttons .btn {
    width: auto;
}

.hero .secondary-cta { 
    color: var(--white); 
    text-decoration: underline; 
    font-weight: 500;
    display: block;
    margin-top: 1rem;
}

.hero .secondary-cta:hover {
    color: var(--accent-gold);
}

/* Problem Section - Mobile First */
.problem-section {
    background: var(--white);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

.problem-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- Consolidated Card Alignment Fix --- */
/* This block handles the symmetrical alignment for all similar card components. */

.problem-card i,
.who-we-help-page .industry-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

.problem-card h3,
.who-we-help-page .industry-card h3 {
    min-height: 2.5em; /* Accommodates 2 lines of heading text, responsive to font-size changes */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.problem-card p,
.who-we-help-page .industry-card p {
    margin-top: auto; /* Pushes the description to the bottom of the card */
    font-size: 0.9rem; /* Ensures consistent paragraph font size */
    color: inherit; /* Inherits text color from the card */
    /* The following rules ensure the paragraph block has a consistent height and its content is centered, creating vertical symmetry. */
    min-height: 3.2em; /* Accommodates 2 lines of text (font-size * line-height * 2) */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Solutions Section - Mobile First */
.solutions-section {
    background: var(--light-gray);
    padding: 3rem 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.solutions-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-dark-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.solutions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-left-color: var(--secondary-blue);
}
.btn-reset {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.solutions-card h3 .btn-reset, .faq-question.btn-reset {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.solutions-card h3 .btn-reset {
    padding: 0;
}

/* Style placeholder text */
.native-form ::placeholder {
    color: #777;
}

.solutions-card h3 {
    display: block;
    margin-bottom: 1rem;
}

.solutions-card .expand-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--secondary-blue);
}

.solutions-card.expanded .expand-icon {
    transform: rotate(45deg);
}

.solutions-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.solutions-details p {
    margin-top: 1rem;
}

.solutions-card.expanded .solutions-details {
    max-height: 500px;
}

/* Newsletter Section */
#newsletter {
    background-color: var(--primary-dark-blue);
    color: var(--white);
    padding: 3rem 1rem;
}

#newsletter h2 { 
    color: var(--white); 
}

#newsletter .form-container {
    max-width: 650px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.monday-form-embed {
    max-width: 100%;
    border-radius: 8px;
}

.form-success-message {
    text-align: center;
    color: var(--primary-dark-blue);
    background: #d4edda;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    display: none; /* Initially hidden */
}


/* ROI Section - Mobile First */
.roi-section { 
    background-color: var(--light-gray);
    padding: 4rem 0;
    border: 0;
}

.roi-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.roi-numbers { 
    text-align: center; 
    padding-top: 1rem;
}

.roi-numbers .large-text { 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: var(--primary-dark-blue); 
    line-height: 1; 
}

.roi-numbers .small-text { 
    font-size: 0.9rem; 
    margin-bottom: 1.5rem; 
}

.roi-highlight-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 2rem; /* Add space on mobile */
}

/* ROI Calculator */
#roi-calculator-section {
    background-color: var(--accent-gold);
    padding: 3rem 1rem;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.input-group label {
    flex: 1;
    font-weight: 500;
    color: #555;
}

.input-group input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
}

.input-group span {
    width: 60px;
    text-align: left;
    padding-left: 0.5rem;
    font-size: 0.9rem;
}

.savings-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Final CTA Section */
.final-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.final-cta-content .profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: var(--primary-dark-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
}

.footer .footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
    margin: 2rem auto;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-blue);
}

.footer .footer-column {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    text-align: center;
}

.footer .footer-column h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.2rem;
}

.footer .footer-column ul {
    list-style: none;
    padding: 0;
}

.footer .footer-column li {
    margin-bottom: 0.5rem;
}

.footer .footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-column a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-header);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.social-icons {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.4rem;
    border: 1px solid var(--white);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--white);
    color: var(--primary-dark-blue);
    text-decoration: none;
}

.footer .copyright {
    margin-top: 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: var(--white); /* Changed from transparent */
    width: 90%;
    max-width: 500px; /* Default max-width for smaller modals */
    border-radius: 15px;
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden; /* This is key to contain the child elements */
}

.modal-content.large-modal {
    max-width: 900px;
    
}

.modal-content iframe {
    width: 100%;
    border-radius: 10px;
    border: 0;
}

.modal-content iframe {
    opacity: 0;
    transition: opacity 0.4s 0.1s ease-in-out; /* Delay allows parent to render */
}
.modal-content iframe[src]:not([src='about:blank']) {
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;    font-size: 1.75rem; /* Was 28px */
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    background: transparent;
    border: none;
    padding: 0;
}

.close-modal:hover,
.close-modal:focus { 
    color: var(--primary-dark-blue); 
    outline: none; /* Removes the focus rectangle */
}

/* Quote Modal */
#quote-form-container {
    padding: 2rem;
    overflow-y: auto;
}

#quote-form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.quote-step {
    display: none;
    animation: fadeIn 0.5s;
}

.quote-step.active {
    display: block;
}

.quote-step h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.quote-step > p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: inherit;
}

.quote-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.quote-option {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-option:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.quote-option i {
    font-size: 2rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.quote-option h4 {
    margin-bottom: 0.5rem;
}

.quote-option p {
    color: inherit;
    font-size: 0.9rem;
    margin: 0;
}

.quote-options.vertical {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.quote-options.vertical .quote-option {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.step-back {
    background: none;
    border: none;
    color: var(--secondary-blue);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.quote-step label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

.quote-step select {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.quote-result {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.quote-result h4 {
    color: var(--primary-dark-blue);
}

.quote-result .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-blue);
    margin: 0.5rem 0 1rem;
}

.quote-result p {
    color: inherit;
    margin-bottom: 1.5rem;
}

.quote-result .icon-list {
    text-align: left;
    max-width: 300px;
    margin: 1.5rem auto;
}

.quote-action-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.quote-action-form .form-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.quote-action-form .form-success-message .btn {
    margin-top: 1rem;
    width: auto;
    display: inline-block;
}

/* Case Study Modal */
#case-study-content-wrapper {
    padding: 2rem;
    overflow-y: auto;
}

.case-study-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.case-study-header i {
    font-size: 2rem;
    color: var(--secondary-blue);
    width: 40px;
    text-align: center;
}

.case-study-header h2 {
    margin-bottom: 0;
    text-align: left;
    font-size: 1.5rem;
}

.case-study-body h4 {
    color: var(--primary-dark-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.case-study-body p {
    color: inherit;
    line-height: 1.7;
}

.case-study-highlight {
    background: rgba(242, 169, 0, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 1rem;
    margin-top: 0.5rem !important;
    radius: 0 5px 5px 0;
    font-weight: 500;
    color: var(--primary-dark-blue) !important;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.benefits-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.benefits-list li i {
    position: absolute;
    left: 0;
    top: 4px; /* Adjust for vertical alignment */
    font-size: 1.1rem;
}

.modal-split-layout {
    display: flex;
    flex-direction: column;
}

.modal-left-pane h2 {
    color: var(--white);
}

.modal-left-pane {
    background-color: var(--primary-dark-blue);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 15px 15px 0 0; /* On mobile (stacked), round the top corners */
}

.modal-left-pane .benefits-list i,
.newsletter-signup-section .benefits-list i,
.blog-signup-section .benefits-list i {
    color: var(--accent-gold);
}

.modal-right-pane {
    padding: 2rem;
    background-color: var(--white); /* This is the key fix */
    border-radius: 0 0 15px 15px; /* On mobile (stacked), round the bottom corners */
    overflow-y: auto; /* Allows scrolling inside the pane if form is too tall */
}

.modal-right-pane .placeholder {
    background-color: var(--white);
    text-align: center;
    margin-top: 1.5rem;
}

.modal-right-pane .placeholder p {
    margin: 0;
    font-weight: 500;
    color: #888;
}

.form-embed-wrapper {
    margin-top: 1.5rem;
    padding: 0;
}


@keyframes slideIn {
    from { transform: translateY(-50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Tablet Styles - 768px and up */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.3rem; }
    
    section {
        padding: 4rem 0;
    }

    .navbar {
        padding: 1rem 2rem;
    }

    .navbar .logo img {
        height: 80px;
    }

    .btn {
        width: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    #newsletter .form-container {
        flex-direction: row;
        justify-content: center;
    align-items: stretch;
    gap: 1rem;
    }

    #newsletter .form-container input {
        flex: 1;
    }
    #newsletter .form-container button {
        flex-shrink: 0;
    }

    .roi-content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .roi-numbers {
        flex: 1;
        padding-top: 2rem;
    }

    .roi-text {
        flex: 1;
    }
    .roi-highlight-box {
        margin-top: 0; /* Remove mobile-only margin */
    }

    .roi-numbers .large-text {
        font-size: 3rem;
    }

    .calculator-container {
        padding: 2.5rem;
    }

    .input-group {
        max-width: 500px;
        margin: 0 auto;
    }

    .input-group input {
        width: 80px;
        padding: 10px;
    }

    .input-group span {
        width: 80px;
        padding-left: 1rem;
    }

    .savings-display {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .quote-options {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Special layout for the last item in a 2-column grid if it's odd (e.g. 5th item) */
    .quote-options .quote-option:last-child:nth-child(odd) {
        grid-column: 1 / -1; /* Span full width */
    }

    .quote-result .price {
        font-size: 3rem;
    }

    .final-cta-content {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }

    .final-cta-content .profile-image {
        width: 200px;
        height: 200px;
    }

    .modal-split-layout {
        flex-direction: row;
    }
    .modal-left-pane,
    .modal-right-pane {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .modal-profile-header {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    .modal-profile-header .profile-image-modal {
        flex-shrink: 0; /* Prevents image from shrinking */
    }
}

/* Desktop Styles - 1024px and up */
@media (min-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
    h3 { font-size: 1.4rem; }

    .navbar .logo img {
        height: 100px;
    }

    /* Shrink logo on desktop when scrolled */
    header.scrolled .navbar .logo img {
        height: 70px; /* The new, smaller height */
    }

    header.scrolled + main {
        margin-top: -30px; /* (100px - 70px) - Pulls the main content up */
    }

    .navbar {
        padding: 1rem 2rem 1rem 2.4rem;
    }

    .hamburger {
        display: none;
    }

    .navbar .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        box-shadow: none;
    }

    .navbar .nav-links li {
        padding: 0 1rem;
    }

    /* Dropdown Menu for Desktop */
    .dropdown {
        position: relative;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 450px; /* Adjusted width */
        background-color: var(--white);
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        border-radius: 8px;
        z-index: 100;
        overflow: hidden;
    }

    .dropdown:hover .dropdown-content {
        display: flex;
    }
    
    .dropdown-content .dropdown-left {
        padding: 1.5rem; /* Adjusted padding */
        background-color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    .dropdown-content .dropdown-left img {
        max-width: 150px;
        height: auto;
    }

    .dropdown-content .dropdown-right {
        padding: 1.5rem; /* Adjusted padding */
        background-color: var(--primary-dark-blue);
        flex: 1.2;
    }

    .dropdown-content .dropdown-right ul {
        list-style: none;
        padding: 0; /* Align left fix */
    }

    .dropdown-content .dropdown-right li {
        padding: 0.2rem 0; /* Reduced vertical padding */
    }

    .dropdown-content .dropdown-right a {
        color: var(--white);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.75rem; /* Increased gap for alignment */
        padding: 0.3rem 0.5rem; /* Add padding for better hover area */
        text-align: left; /* Ensure left alignment */
    }

    .dropdown-content .dropdown-right a img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .dropdown-content .dropdown-right a i {
        color: var(--accent-gold);
        font-size: 1.2rem;
        width: 25px;
        text-align: center;
    }

    .dropdown-content .dropdown-right a:hover {
        color: #ccc;
    }
 
    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 700px;
    }

    .hero-stats {
        padding: 2rem;
        margin: 3rem 0;
    }

    .hero-stats h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-description {
        font-size: 1rem;
    }

    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .problem-card i {
        font-size: 3rem;
    }

    .solutions-section {
        padding: 5rem 0;
    }

    .solutions-grid {
        margin-top: 3rem;
    }

    .solutions-card {
        padding: 2rem;
    }

    .roi-content {
        gap: 4rem;
    }

    .roi-numbers .large-text {
        font-size: 3.5rem;
    }

    .roi-numbers .small-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* =================================== */
/* ===== SERVICES PAGE STYLES ======== */
/* =================================== */

.services-page .page-hero::before,
.smartsocial-page .page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 169, 0, 0.1) 0%, transparent 70%);
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.services-page .service-overview {
    background: var(--white);
    padding: 3rem 0;
}

.services-page .overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.services-page .overview-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    flex-direction: column;
    min-height: 350px;
}

.services-page .overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--accent-gold));
}

.services-page .overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.services-page .overview-card i {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.services-page .overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.services-page .overview-card p {
    color: inherit;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Ensures paragraphs take up available space, aligning arrows */
}

.services-page .overview-card .card-arrow {
    align-self: flex-end; /* Aligns arrow to the right within the flex container */
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.services-page .overview-card:hover .card-arrow {
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
    transform: translateX(5px);
}

.services-page .service-detail {
    padding: 4rem 0;
}

.services-page .service-detail:nth-child(even) {
    background: var(--light-gray);
}

.services-page .service-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.services-page .service-text {
    flex: 1;
}

.services-page .service-visual {
    flex: 1;
    width: 100%;
    max-width: 500px;
}

.services-page .service-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.services-page .icon-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.services-page .icon-item:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 90, 135, 0.12);
}

.services-page .icon-item i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.services-page .icon-item:hover i {
    color: var(--secondary-blue);
}

.services-page .icon-item span {
    font-size: 0.9rem;
    color: inherit;
    font-weight: 500;
}

.services-page .process-timeline,
.monday-page .process-timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 0;
}
.services-page .benefits-section {
    background: linear-gradient(135deg, rgba(0, 51, 77, 0.05), rgba(242, 169, 0, 0.05));
}

.services-page .benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.services-page .benefit-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%; /* Ensures card fills the grid row for perfect alignment */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-page .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.services-page .benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-page .benefit-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.services-page .benefit-text h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-dark-blue);
}

.services-page .benefit-text p {
    font-size: 0.9rem;
    color: inherit;
    margin: 0;
}

.services-page .packages-section {
    background: var(--white);
}

.services-page .packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.services-page .package-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.services-page .package-card.featured {
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

.services-page .package-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--primary-dark-blue);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.services-page .package-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.services-page .package-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.services-page .package-hours {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-blue);
    margin: 1rem 0;
}

.services-page .package-description {
    color: inherit;
    margin: 1rem 0;
    min-height: 60px;
}

.services-page .cta-section {
    background: var(--primary-dark-blue);
    color: var(--white);
    text-align: center;
}

.services-page .cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.services-page .cta-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.services-page .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-page .page-hero {
        min-height: 40vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .services-page .overview-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablet */
    }
    .services-page .service-content {
        flex-direction: row;
        gap: 3rem;
    }
    .services-page .service-detail:nth-child(even) .service-content {
        flex-direction: row-reverse;
    }
    .services-page .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
    }
    .services-page .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-page .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    /* Staggered animations for tablet and up */
    .services-page .overview-card:nth-child(2) { transition-delay: 0.1s; }
    .services-page .overview-card:nth-child(3) { transition-delay: 0.2s; }
    .services-page .overview-card:nth-child(4) { transition-delay: 0.3s; }

    .services-page .benefit-card:nth-child(2) { transition-delay: 0.1s; }
    .services-page .benefit-card:nth-child(3) { transition-delay: 0.2s; }
    .services-page .benefit-card:nth-child(4) { transition-delay: 0.3s; }
    .services-page .benefit-card:nth-child(5) { transition-delay: 0.4s; }
    .services-page .benefit-card:nth-child(6) { transition-delay: 0.5s; }
}

@media (min-width: 992px) {
    .services-page h2 {
        font-size: 2.5rem;
    }
    .services-page .page-hero {
        min-height: 50vh;
    }
    .services-page h3 {
        font-size: 1.5rem;
    }
    .services-page .service-overview .container {
        max-width: 1280px;
    }
    .services-page .overview-grid {
        grid-template-columns: repeat(4, 1fr); /* 4-across on desktop */
    }
    .services-page .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   5. Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================== */
/* ===== SMARTSOCIAL PAGE STYLES ===== */
/* =================================== */

.smartsocial-page .problem-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
}

.smartsocial-page .problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.smartsocial-page .problem-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(242, 169, 0, 0.1); /* Light accent gold */
    color: var(--accent-gold);
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.smartsocial-page .problem-card:hover i {
    background-color: var(--accent-gold);
    color: var(--white);
}

.smartsocial-page .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.smartsocial-page .hero-logo-wrapper {
    display: inline-block;
    background: var(--white);
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 51, 77, 0.15);
    margin: 0 auto 1rem;
}

.smartsocial-page .hero-logo {
    display: block;
    height: 90px;
    width: auto;
}
.smartsocial-page .problem-section { 
    background: var(--light-gray); 
}

.smartsocial-page .problem-grid { 
    margin-top: 2rem; 
}

.smartsocial-page .how-it-works-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    margin-top: 3rem; 
}

.smartsocial-page .step-card { 
    background: var(--white); 
    padding: 2rem; 
    border-radius: 10px; 
    text-align: center; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    position: relative; /* Added for pseudo-element */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smartsocial-page .step-card:not(:last-child)::after {
    content: '\f063'; /* Font Awesome arrow-down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 50%;
    bottom: -1.75rem;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: var(--accent-gold);
    opacity: 0.5;
    z-index: -1;
}

.smartsocial-page .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.smartsocial-page .step-number { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--white); 
    background: var(--secondary-blue); 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1.5rem; 
}

.smartsocial-page .features-section { 
    background: var(--light-gray); 
}

.smartsocial-page .features-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1rem; 
    margin-top: 2rem; 
}

.smartsocial-page .feature-item { 
    background: var(--white); 
    padding: 1.5rem; 
    border-radius: 10px;
    display: flex; 
    align-items: flex-start;
    gap: 1rem; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smartsocial-page .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.smartsocial-page .feature-icon { 
    font-size: 1.5rem; 
    color: var(--accent-gold); 
    width: 40px; 
}

.smartsocial-page .feature-item p { 
    margin: 0; 
    color: inherit; 
}

.smartsocial-page .pricing-card { 
    background: var(--white); 
    border: 2px solid var(--accent-gold); 
    border-radius: 15px; 
    padding: 2rem; 
    text-align: center; 
    max-width: 400px; 
    margin: 2rem auto; 
    box-shadow: 0 10px 30px rgba(242, 169, 0, 0.2); 
}

.smartsocial-page .pricing-card .price { 
    font-size: 3rem; 
    font-weight: 700; 
    color: var(--primary-dark-blue); 
    margin: 1rem 0; 
}

.smartsocial-page .pricing-card .price-term { 
    color: inherit; 
}

.smartsocial-page .trial-info { 
    font-weight: 700; 
    color: var(--secondary-blue); 
    margin: 1rem 0 2rem; 
}

.smartsocial-page .faq-grid { 
    max-width: 800px; 
    margin: 2rem auto; 
}

.smartsocial-page .faq-item { 
    background: var(--white); 
    margin-bottom: 1rem; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.smartsocial-page .faq-question.btn-reset { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem; 
    cursor: pointer; 
    font-weight: 700; 
}

.smartsocial-page .faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease; 
    padding: 0 1rem; 
    color: inherit; 
}

.smartsocial-page .faq-item.active .faq-answer { 
    max-height: 200px; 
    padding: 1rem; 
}

.smartsocial-page .faq-icon { 
    transition: transform 0.3s ease; 
}

.smartsocial-page .faq-item.active .faq-icon { 
    transform: rotate(45deg); 
}

.smartsocial-page .final-cta { 
    background: var(--primary-dark-blue); 
    color: var(--white); 
    text-align: center; 
    padding: 4rem 1rem; 
}

.smartsocial-page .final-cta h2 { 
    color: var(--white); 
}

.smartsocial-page .final-cta .btn { 
    max-width: 300px; 
    margin: 2rem auto 0; 
}

@media (min-width: 768px) {
    .smartsocial-page h1 { font-size: 2.8rem; }
    .smartsocial-page h2 { font-size: 2rem; }
    .smartsocial-page .hero-logo {
        height: 120px;
    }
    .smartsocial-page .problem-grid { grid-template-columns: repeat(2, 1fr); }
    .smartsocial-page .how-it-works-grid { grid-template-columns: repeat(2, 1fr); }
    .smartsocial-page .features-grid { grid-template-columns: repeat(2, 1fr); }

    .smartsocial-page .step-card:not(:last-child)::after {
        content: '\f061'; /* Font Awesome arrow-right */
        top: 50%;
        right: -1.5rem;
        bottom: auto;
        left: auto;
        transform: translateY(-50%);
        font-size: 2.2rem;
        z-index: 1;
    }

    /* For 2-col grid, hide arrows on even items */
    .smartsocial-page .step-card:nth-child(2n)::after {
        display: none;
    }
}

@media (min-width: 1024px) {
    .smartsocial-page h1 { font-size: 3.2rem; }
    .smartsocial-page h2 { font-size: 2.5rem; }
    .smartsocial-page .problem-grid { grid-template-columns: repeat(4, 1fr); }
    .smartsocial-page .problem-grid { gap: 1rem; }
    .smartsocial-page .how-it-works-grid { grid-template-columns: repeat(4, 1fr); }

    /* For 4-col grid, show all arrows again... */
    .smartsocial-page .step-card:not(:last-child)::after {
        display: block;
    }
    /* ...except the very last one. */
    .smartsocial-page .step-card:last-child::after {
        display: none;
    }
}

/* =================================== */
/* ======= LEGAL PAGES STYLES ======== */
/* =================================== */

.legal-page .last-updated { font-size: 1rem; opacity: 0.9; margin-top: 0.5rem; }
.legal-page .content-section { padding: 2rem 0; }
.legal-page .content-wrapper { background: var(--white); padding: 2rem 1rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-top: -2rem; position: relative; z-index: 10; max-width: 900px; margin-left: auto; margin-right: auto; }
.legal-page h1 { font-size: 2rem; margin-bottom: 0.5rem; text-align: center; }
.legal-page .content-wrapper h2 { font-size: 1.5rem; margin: 2rem 0 1rem 0; border-bottom: 2px solid var(--secondary-blue); padding-bottom: 0.5rem; text-align: left; }
.legal-page .content-wrapper h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem 0; color: var(--primary-dark-blue); text-align: left; }
.legal-page .content-wrapper h4 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem 0; text-align: left; }
.legal-page p { margin-bottom: 1rem; line-height: 1.7; }
.legal-page .content-wrapper a { color: var(--secondary-blue); }
.legal-page .content-wrapper a:hover { text-decoration: underline; }
.legal-page .content-wrapper ul, .legal-page .content-wrapper ol { margin: 1rem 0 1rem 1.5rem; }
.legal-page .content-wrapper li { margin-bottom: 0.5rem; }
.legal-page .highlight-box { background: var(--light-gray); border-left: 4px solid var(--secondary-blue); padding: 1rem; margin: 1.5rem 0; border-radius: 5px; }
.legal-page .highlight-box p { margin-bottom: 0; }
.legal-page .warning-box { background: #fff3cd; border-left: 4px solid var(--accent-gold); padding: 1rem; margin: 1.5rem 0; border-radius: 5px; }
.legal-page .warning-box p { margin-bottom: 0; }
.legal-page .notice-box { background: #d4edda; border-left: 4px solid #28a745; padding: 1rem; margin: 1.5rem 0; border-radius: 5px; }
.legal-page .notice-box p { margin-bottom: 0; }
.legal-page .contact-info { background: var(--primary-dark-blue); color: var(--white); padding: 1.5rem; border-radius: 10px; text-align: center; margin: 2rem 0; }
.legal-page .contact-info h3 { color: var(--white); margin-bottom: 1rem; }
.legal-page .contact-info a { color: var(--accent-gold); font-weight: 500; }
.legal-page .contact-info p { margin-bottom: 0.5rem; }

@media (min-width: 768px) {
    .legal-page h1 { font-size: 2.5rem; }
    .legal-page .content-wrapper h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; }
    .legal-page .content-wrapper h3 { font-size: 1.4rem; margin: 2rem 0 1rem 0; }
    .legal-page .content-wrapper h4 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem 0; }
    .legal-page .content-wrapper ul, .legal-page .content-wrapper ol { margin: 1rem 0 1rem 2rem; }
    .legal-page .header-section { padding: 4rem 2rem; }
    .legal-page .last-updated { font-size: 1.1rem; }
    .legal-page .content-section { padding: 3rem 0; }
    .legal-page .content-wrapper { padding: 2.5rem; }
    .legal-page .highlight-box, .legal-page .warning-box, .legal-page .notice-box { padding: 1.5rem; margin: 2rem 0; }
    .legal-page .contact-info { padding: 2rem; margin: 3rem 0; }
}

@media (min-width: 1024px) {
    .legal-page .content-section { padding: 4rem 0; }
    .legal-page .content-wrapper { padding: 3rem; }
}


/* =================================== */
/* ===== MONDAY.COM PAGE STYLES ====== */
/* =================================== */

.monday-page .btn-monday { background: linear-gradient(135deg, var(--monday-purple), var(--monday-pink)); color: var(--white); border: none; font-weight: 700; }
.monday-page .btn-monday:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(97, 97, 255, 0.3); }
.monday-page .page-hero { position: relative; overflow: hidden; }
.monday-page .page-hero::before { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(97, 97, 255, 0.1) 0%, transparent 70%); animation: float 20s infinite linear; }
.monday-page .hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.monday-page .partner-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,0.15); padding: 0.75rem 1.5rem; border-radius: 30px; margin-bottom: 2rem; backdrop-filter: blur(10px); }
.monday-page .partner-badge img { height: 40px; margin-right: 1rem; }
.monday-page .monday-logo-wrapper {
    display: inline-block;
    background: var(--white);
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 51, 77, 0.15);
    margin: 2rem 0;
}
.monday-page .monday-logo-hero { 
    height: 60px; 
    width: auto;
    margin: 0; 
    display: block; 
}
.monday-page .trust-indicators { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; text-align: center; }
.monday-page .trust-stat { background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 10px; backdrop-filter: blur(10px); }
.monday-page .trust-stat .number { font-size: 1.8rem; font-weight: 700; color: var(--accent-gold); }
.monday-page .trust-stat .label { font-size: 0.9rem; opacity: 0.9; }
.monday-page .why-choose { background: var(--white); }
.monday-page .why-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
.monday-page .why-card { text-align: center; padding: 1.5rem; }
.monday-page .why-card i { font-size: 2.5rem; color: var(--monday-purple); margin-bottom: 1rem; }
.monday-page .why-card h3 { margin-bottom: 1rem; }
.monday-page .process-section { background: var(--light-gray); }
.monday-page .timeline-number {
    background: var(--monday-purple);
}
.monday-page .platforms-section { background: var(--white); }
.monday-page .platform-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 2rem 0; }
.monday-page .platform-tab { padding: 0.75rem 1.5rem; background: var(--light-gray); border: 2px solid transparent; border-radius: 25px; cursor: pointer; transition: all 0.3s ease; font-weight: 700; }
.monday-page .platform-tab.active { background: var(--white); border-color: var(--monday-purple); color: var(--monday-purple); }
.monday-page .platform-content { display: none; animation: fadeIn 0.5s; }
.monday-page .platform-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.monday-page .platform-detail { max-width: 800px; margin: 0 auto; text-align: center; padding: 2rem 1rem; }
.monday-page .platform-logo { 
    height: 80px; 
    width: auto;
    margin-bottom: 1.5rem; 
}
.monday-page .platform-features { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2rem 0; text-align: left; }
.monday-page .platform-feature { display: flex; align-items: center; padding: 1rem; background: var(--light-gray); border-radius: 10px; }
.monday-page .platform-feature i { font-size: 1.5rem; margin-right: 1rem; color: var(--monday-purple); }
.monday-page .services-section { background: linear-gradient(135deg, rgba(97, 97, 255, 0.05), rgba(255, 111, 111, 0.05)); }
.monday-page .service-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
.monday-page .service-card { background: var(--white); border-radius: 15px; padding: 2rem; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: all 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.monday-page .service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--monday-purple), var(--monday-pink)); }
.monday-page .service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.monday-page .service-badge { display: inline-block; background: var(--accent-gold); color: var(--primary-dark-blue); padding: 0.25rem 0.75rem; border-radius: 15px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.monday-page .service-card .btn {
    margin-top: auto; /* Pushes button to the bottom */
    align-self: center; /* Centers button horizontally */
}
.monday-page .success-section { background: var(--white); }
.monday-page .success-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
.monday-page .success-card { background: var(--light-gray); padding: 2rem; border-radius: 15px; text-align: center; }
.monday-page .success-metric { font-size: 2.5rem; font-weight: 700; color: var(--monday-purple); display: block; margin-bottom: 0.5rem; }
.monday-page .success-description { color: inherit; margin-bottom: 1rem; }
.monday-page .success-industry { display: inline-block; background: var(--white); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.85rem; color: var(--primary-dark-blue); }
.monday-page .cta-section {
    margin-top: 0;
    background: var(--primary-dark-blue);
    color: var(--white);
    text-align: center;
}
.monday-page .cta-section h2,
.monday-page .cta-section p {
    color: var(--white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.monday-page .cta-section p {
    margin-bottom: 2rem;
}
.monday-page .cta-buttons { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; margin: 2rem auto; }
@media (min-width: 768px) {
    .monday-page .page-hero { padding: 4rem 2rem; }
    .monday-page .trust-indicators { grid-template-columns: repeat(3, 1fr); }
    .monday-page .why-grid { grid-template-columns: repeat(2, 1fr); }
    .monday-page .platform-features { grid-template-columns: repeat(2, 1fr); }
    .monday-page .service-cards { grid-template-columns: repeat(2, 1fr); }
    .monday-page .success-grid { grid-template-columns: repeat(2, 1fr); }
    .monday-page .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}
@media (min-width: 1024px) {
    .monday-page h2 { font-size: 2.5rem; }
    .monday-page h3 { font-size: 1.5rem; }
    .monday-page .page-hero { padding: 5rem 2rem; min-height: 60vh; display: flex; align-items: center; }
    .monday-page .partner-badge img { height: 50px; }
    .monday-page .monday-logo-hero { height: 100px; }
    .monday-page .why-grid { grid-template-columns: repeat(4, 1fr); }
    .monday-page .service-cards { grid-template-columns: repeat(3, 1fr); }
    .monday-page .success-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =================================== */
/* ===== WHO WE HELP PAGE STYLES ===== */
/* =================================== */

.who-we-help-page .hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.who-we-help-page .about-section { background: var(--white); }
.who-we-help-page .about-content { display: flex; flex-direction: column; gap: 2rem; align-items: center; max-width: 900px; margin: 0 auto; }
.who-we-help-page .about-text { flex: 1; text-align: center; }
.who-we-help-page .about-values { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
.who-we-help-page .value-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--light-gray); border-radius: 10px; transition: transform 0.3s ease, box-shadow 0.3s ease; }

.who-we-help-page .value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.who-we-help-page .value-icon { flex-shrink: 0; width: 40px; height: 40px; background: var(--accent-gold); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.who-we-help-page .value-item p {
    font-size: 0.9rem;
    margin: 0;
}
.who-we-help-page .ideal-client { background: var(--light-gray); }
.who-we-help-page .client-profile-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
.who-we-help-page .client-profile { background: var(--white); border-radius: 15px; padding: 2rem; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.who-we-help-page .client-profile {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.who-we-help-page .profile-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--light-gray); }
.who-we-help-page .profile-icon { width: 60px; height: 60px; background: var(--secondary-blue); color: var(--white); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.who-we-help-page .profile-title h3 { margin-bottom: 0.25rem; }
.who-we-help-page .profile-title p { color: inherit; font-size: 0.9rem; }
.who-we-help-page .client-profile .icon-list.checklist li:hover {
    transform: translateX(5px);
    color: var(--primary-dark-blue);
    cursor: default;
}

.who-we-help-page .client-profile .icon-list.checklist li:hover::before {
    color: var(--secondary-blue);
}

.who-we-help-page .client-profile .icon-list.checklist {
    flex-grow: 1; /* Allow the list to grow and fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Evenly space the list items */
}
.who-we-help-page .industries-section { background: var(--white); }
.who-we-help-page .industries-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
.who-we-help-page .industry-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.who-we-help-page .industry-card:hover { border-color: var(--secondary-blue); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.who-we-help-page .signs-section { background: linear-gradient(135deg, rgba(0, 51, 77, 0.05), rgba(242, 169, 0, 0.05)); }
.who-we-help-page .signs-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.who-we-help-page .sign-item {
    background-color: transparent;
    min-height: 180px;
    perspective: 1000px;
    border: none;
    box-shadow: none;
    padding: 0;
    transition: none;
    cursor: pointer;
}
.who-we-help-page .sign-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.who-we-help-page .sign-item:hover .sign-item-inner,
.who-we-help-page .sign-item:focus .sign-item-inner,
.who-we-help-page .sign-item:focus-within .sign-item-inner {
    transform: rotateY(180deg);
}
.who-we-help-page .sign-item-front,
.who-we-help-page .sign-item-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.who-we-help-page .sign-item-front { background: var(--white); border-left: 4px solid var(--accent-gold); color: var(--primary-dark-blue); }
.who-we-help-page .sign-item-back { background: var(--primary-dark-blue); color: var(--white); transform: rotateY(180deg); }
.who-we-help-page .sign-item h4 { margin-bottom: 0; font-size: 1.25rem; }
.who-we-help-page .sign-item p { color: #ddd; font-size: 1.05rem; margin: 0; }
.who-we-help-page .success-metrics { background: var(--white); }
.who-we-help-page .metrics-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; text-align: center; }
.who-we-help-page .metric-card { padding: 1.5rem; }
.who-we-help-page .metric-number { font-size: 2.5rem; font-weight: 700; color: var(--secondary-blue); display: block; margin-bottom: 0.5rem; }
.who-we-help-page .metric-label { font-weight: 600; margin-bottom: 0.5rem; }
.who-we-help-page .metric-description { color: inherit; font-size: 0.9rem; }
.who-we-help-page .cta-section { background: var(--primary-dark-blue); color: var(--white); text-align: center; }
.who-we-help-page .cta-section h2 { color: var(--white); }
.who-we-help-page .cta-section p { max-width: 700px; margin: 0 auto 2rem; }
.who-we-help-page .cta-buttons { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; margin: 0 auto; }
@media (min-width: 768px) {
    .who-we-help-page .page-hero { padding: 4rem 2rem; }
    .who-we-help-page .client-profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .who-we-help-page .about-values { grid-template-columns: repeat(3, 1fr); }
    .who-we-help-page .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .who-we-help-page .signs-grid { grid-template-columns: repeat(2, 1fr); }
    .who-we-help-page .metrics-grid { grid-template-columns: repeat(3, 1fr); }
    .who-we-help-page .cta-buttons { flex-direction: row; justify-content: center; }
}
@media (min-width: 1024px) {
    .who-we-help-page h2 { font-size: 2.5rem; }
    .who-we-help-page h3 { font-size: 1.5rem; }
    .who-we-help-page .industries-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =================================== */
/* ====== CONTACT PAGE STYLES ======== */
/* =================================== */

.contact-page body { background: var(--light-gray); }
.contact-page h2 { font-size: 1.5rem; }
.contact-page .page-hero p { 
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;
}
.contact-page .contact-section { padding: 3rem 1rem; background: var(--white); margin: 2rem auto; border-radius: 15px; max-width: 1100px; }
.contact-page .contact-content { display: flex; flex-direction: column; gap: 3rem; }
.contact-page .contact-info { flex: 1; }
.contact-page .contact-info > p {
    margin-bottom: 2rem;
}
.contact-page .contact-form { flex: 1; }
.contact-page .contact-form > p {
    margin-bottom: 1.5rem;
}
.contact-page .contact-methods { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-page .contact-method { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; background: var(--light-gray); border-radius: 10px; transition: all 0.3s ease; }
.contact-page .contact-method:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.contact-page .contact-icon { flex-shrink: 0; width: 50px; height: 50px; background: var(--secondary-blue); color: var(--white); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.contact-page .contact-details h3 { margin-bottom: 0.25rem; }
.contact-page .contact-details p { color: inherit; margin: 0; }
.contact-page .contact-details a { color: var(--secondary-blue); text-decoration: none; font-weight: 500; }
.contact-page .contact-details a:hover { color: var(--accent-gold); }
.contact-page .quick-links-section { padding-top: 0; padding-bottom: 3rem; }
.contact-page .quick-links { padding: 2rem; background: linear-gradient(135deg, rgba(0, 51, 77, 0.05), rgba(242, 169, 0, 0.05)); border-radius: 10px; }
.contact-page .quick-links h3 { text-align: center; margin-bottom: 1.5rem; }
.contact-page .links-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.contact-page .quick-link { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--white); border-radius: 8px; text-decoration: none; color: var(--primary-dark-blue); transition: all 0.3s ease; }
.contact-page .quick-link:hover { transform: translateX(5px); box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.contact-page .quick-link i { color: var(--accent-gold); font-size: 1.2rem; }
.contact-page .office-hours { margin-top: 2rem; padding: 1.5rem; background: var(--white); border-left: 4px solid var(--accent-gold); border-radius: 8px; }
.contact-page .office-hours p {
    margin-top: 1rem;
    font-size: 0.9rem;
}
.contact-page .office-hours p i {
    color: var(--accent-gold);
    margin-right: 0.5rem;
}
.contact-page .office-hours h3 { margin-bottom: 1rem; }
.contact-page .hours-list { list-style: none; padding: 0; }
.contact-page .hours-list li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--light-gray); }
.contact-page .hours-list li:last-child { border-bottom: none; }
.contact-page .hours-list .day { font-weight: 500; }
.contact-page .hours-list .time { color: inherit; }
@media (min-width: 768px) {
    .contact-page h2 { font-size: 1.8rem; }
    .contact-page .page-hero { padding: 4rem 2rem; }
    .contact-page .contact-content { flex-direction: row; gap: 4rem; align-items: flex-start; }
    .contact-page .links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .contact-page h2 { font-size: 2rem; }
    .contact-page .hero h1 { font-size: 3rem; }
    .contact-page .contact-section { padding: 4rem 2rem; }
}

/* For visually hiding labels while keeping them accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* For making buttons in the footer look like links */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit; /* Inherits font-family, weight, etc. */
    font-size: 0.9rem; /* Overrides size to match other .btn elements */
    color: #ddd; /* Match footer link color */
    cursor: pointer;
    text-decoration: none;
    display: inline;
    text-align: left;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--white); /* Match footer link hover color */
    text-decoration: none;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark-blue);
    color: var(--white);
    padding: 8px;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Global Focus Ring for Accessibility */
:focus-visible {
    outline: 3px solid var(--secondary-blue);
    outline-offset: 2px;
    border-radius: 5px; /* Optional: makes the outline rounded */
}

/* --- Blog & Newsletter Styles --- */
.blog-page .page-hero, .newsletter-page .page-hero, .blog-post-page .page-hero, .newsletter-archive-page .page-hero {
    background: var(--light-gray);
    padding: 4rem 1rem;
}

.blog-grid, .newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.blog-page .page-hero h1, .blog-page .page-hero p,
.newsletter-page .page-hero h1, .newsletter-page .page-hero p {
    color: var(--primary-dark-blue);
}


.blog-card, .newsletter-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover, .newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content, .newsletter-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3, .newsletter-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.blog-card-content h3 a, .newsletter-card-content h3 a {
    color: var(--primary-dark-blue);
    text-decoration: none;
}
.blog-card-content h3 a:hover, .newsletter-card-content h3 a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.blog-card-meta, .newsletter-card-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-card-excerpt, .newsletter-card-excerpt {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    color: #555;
}

.blog-card .btn, .newsletter-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Newsletter Page Specifics */
.newsletter-signup-section {
    padding: 3rem 1rem;
    background: var(--white);
}

.newsletter-signup-section .modal-split-layout {
    background: var(--primary-dark-blue);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.newsletter-signup-section .modal-left-pane {
    border-radius: 0;
}

.newsletter-signup-section .modal-right-pane {
    background: var(--light-gray);
    border-radius: 0;
}

/* Blog Page Specifics */
.blog-signup-section {
    padding: 3rem 1rem;
    background: var(--white);
}

.blog-signup-section .modal-split-layout {
    background: var(--primary-dark-blue);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-signup-section .modal-right-pane {
    background: var(--light-gray);
}

.newsletter-archive-section,
.blog-archive-section {
    padding: 3rem 0;
    background: var(--light-gray);
}

.newsletter-controls,
.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#newsletter-search,
#blog-search {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-filter {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter:hover, .tag-filter.active {
    background: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
}

/* --- Content Page Styles (Blog Posts & Newsletter Issues) --- */
.content-section {
    background: var(--white);
    padding: 3rem 0;
}
.article-content {
    max-width: 800px;
    margin: 0 auto;
}
.article-content h1 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.article-content .meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2.5rem;
    display: block;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.article-content h2 {
    text-align: left;
    margin: 2.5rem 0 1rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}
.article-content p, .article-content li {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333;
}
.article-content ul, .article-content ol {
    padding-left: 1.5rem;
}
.article-content a {
    color: var(--secondary-blue);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.article-content a:hover {
    color: var(--accent-gold);
}
.article-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}
.article-content .content-cta {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
    border: 2px solid var(--accent-gold);
}
.article-content .content-cta h2 {
    border-bottom: none;
    text-align: center;
    margin-top: 0;
}
.article-content .back-link {
    display: inline-block; 
    margin-top: 2rem;
    font-weight: 700;
}
.article-content .back-link:hover {
    text-decoration: none;
    transform: translateX(-4px);
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {
    .newsletter-controls,
    .blog-controls {
        flex-direction: row;
        align-items: center;
    }

    /* WordPress Search Form Styling */
    .blog-controls .search-form {
        flex-grow: 1;
        position: relative;
    }
    .blog-controls .search-form .search-field {
        width: 100%;
        padding: 12px 15px;
        font-size: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
    }
    .blog-controls .search-form .search-submit {
        display: none; /* Hide the default submit button */
    }

    /* WordPress Category Filter Styling */
    .filter-tags ul {
        list-style: none;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }
    .filter-tags .cat-item {
        margin: 0;
        padding: 0;
    }
    .filter-tags .tag-filter.current-cat > a,
    .filter-tags a.tag-filter.active {
        background: var(--secondary-blue);
        color: var(--white);
        border-color: var(--secondary-blue);
    }
    .filter-label {
        font-weight: 500;
        color: #555;
        margin-right: 0.5rem;
        white-space: nowrap;
    }
}
