/*
Theme Name: HDP IT Services
Theme URI: https://hdp-it-services.co.uk
Author: Gemini
Author URI: https://gemini.google.com
Description: A modern, professional, and custom theme for HDP IT Services, an MSP specializing in cloud and cybersecurity.
Version: 2.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: it-services, msp, corporate, modern, purple
Text Domain: hdp-it-services
*/

/* --- Global Styles & Variables --- */
:root {
    --primary-purple: #5E35B1;
    --primary-purple-dark: #4527A0;
    --dark-grey: #212121;
    --medium-grey: #616161;
    --light-grey-bg: #F5F5F5;
    --white: #FFFFFF;
    --border-radius: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-grey);
    margin: 0;
    padding: 0;
    background-color: var(--white);
    font-size: 16px;
    line-height: 1.7;
}

body.mobile-menu-open {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark-grey);
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1rem;}
h2 { font-size: 2.5rem; margin-bottom: 1rem;}
h3 { font-size: 1.75rem; margin-bottom: 1rem;}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-purple-dark);
}



/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: center; /* Updated: Centers logo and menu */
    align-items: center;
    position: relative;
}

.site-title a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-grey);
}
.site-title a:hover {
    color: var(--primary-purple);
}

/* Move Logo to left absolute for centered menu layout */
.site-branding {
    position: absolute;
    left: 20px;
}

/* Desktop Navigation */
.main-navigation {
    display: none; /* Hidden by default */
}
@media (min-width: 769px) {
    .main-navigation {
        display: block; /* Shown on desktop */
    }
}
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}
.main-navigation li a {
    color: var(--medium-grey);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    letter-spacing: 0.5px;
}
/* Main Menu Underline (Thinner & Closer) */
.main-navigation li a:after {
    content: '';
    position: absolute;
    bottom: -2px; /* Moved closer to text */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-purple);
    transition: width 0.3s ease;
}
.main-navigation li a:hover:after,
.main-navigation li.current-menu-item a:after {
    width: 100%;
}
.main-navigation .contact-button a {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}
.main-navigation .contact-button a:hover {
    background-color: var(--primary-purple-dark);
}
.main-navigation .contact-button a:after {
    display: none;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: absolute; /* Absolute for centered layout */
    right: 20px;
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Shown on mobile */
    }
    .header-container {
        justify-content: center; /* Keep logo centered on mobile if desired, or space-between */
    }
    .site-branding {
        position: static; /* Reset for mobile flow */
        margin-right: auto; /* Push to left */
    }
}
.mobile-menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-grey);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}
body.mobile-menu-open .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}
.mobile-menu-container li a {
    color: var(--white);
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}
.mobile-menu-container .contact-button a {
    font-size: 1.2rem;
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn:hover {
    transform: translateY(-3px);
}
.btn-primary {
    background-color: var(--primary-purple);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-purple-dark);
    color: var(--white);
}

/* --- Homepage Specific Styles --- */
.hero {
    padding: 80px 0;
    text-align: center;
    background-color: #4527a0;
    background-image: linear-gradient(315deg, #4527a0 0%, #5e35b1 74%);
    color: var(--white);
}
.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
}
.hero .sub-headline {
    font-size: 1.25rem;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.hero .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-purple-dark);
}

.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.services-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.service-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.service-item svg {
    width: 50px;
    height: 50px;
    color: var(--primary-purple);
    margin-bottom: 20px;
}
.service-item h3 {
    font-size: 1.5rem;
}
.service-item p {
    color: var(--medium-grey);
}
.text-center { text-align: center; margin-top: 40px;}

.bespoke-services {
    background-color: var(--light-grey-bg);
}
.bespoke-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.bespoke-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}
.bespoke-item h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.bespoke-item .sub-title {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.why-us {
    background-color: var(--white);
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.why-us-item {
    text-align: center;
}
.why-us-item h3 { font-size: 1.5rem; }
.why-us-item p { color: var(--medium-grey); }

/* --- Services Page Styles --- */
.page-header {
    background-color: #4527a0;
    background-image: linear-gradient(315deg, #4527a0 0%, #5e35b1 74%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.page-header p {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 60px;
    font-size: 0.95rem;
}
.services-table th, .services-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.services-table th {
    background-color: var(--light-grey-bg);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
}
.services-table thead th:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}
.services-table thead th:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}
.services-table td:first-child {
    font-weight: 600;
    color: var(--dark-grey);
}
.services-table td {
    color: var(--medium-grey);
    text-align: center;
}
.services-table .plan-name { text-align: center; }
.services-table .plan-price { font-size: 2rem; font-weight: 700; color: var(--dark-grey); display: block; }
.services-table .plan-period { font-size: 0.9rem; color: var(--medium-grey); }
.services-table .check {
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: bold;
}
.services-table .cross {
    color: #bdbdbd;
    font-size: 1.5rem;
}

.services-table .feature-category {
    background-color: #F5F5F5; /* Your light grey brand colour */
    font-weight: bold;
    text-align: left;
    padding-left: 15px;
}
/* Style for feature descriptions in services table */
.services-table .feature-cell strong {
    color: var(--dark-grey); /* Ensures title is dark */
}
.services-table .feature-description {
    color: var(--light-grey); /* Makes description slightly lighter */
    font-weight: lighter;
}

/* --- About Page --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.founder-profile {
    background-color: var(--light-grey-bg);
    padding: 40px;
    border-radius: var(--border-radius);
}
.founder-profile img {
    max-width: 150px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: block;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.founder-profile h3 { text-align: center; margin-bottom: 0.5rem; font-size: 1.75rem; }
.founder-profile .title { text-align: center; color: var(--primary-purple); font-weight: 600; margin-bottom: 20px; display: block; }
.founder-profile ul { list-style: none; padding: 0;}
.founder-profile ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}
.founder-profile ul li:before {
    content: '✔';
    color: var(--primary-purple);
    position: absolute;
    left: 0;
}


/* --- Blog Styles --- */
.blog-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.post-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.post-card-image a {
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
}
.post-card-content {
    padding: 30px;
}
.post-card-title a {
    color: var(--dark-grey);
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
}
.post-card-title a:hover {
    color: var(--primary-purple);
}
.post-meta {
    font-size: 0.9rem;
    color: var(--medium-grey);
    margin-bottom: 15px;
}
.post-excerpt p {
    color: var(--medium-grey);
}
.read-more-link {
    font-weight: 600;
}
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}
.single-post-content .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}
.single-post-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}


/* --- Contact Page --- */
.contact-form-section {
    background-color: var(--light-grey-bg);
}
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--primary-purple);
    border-color: var(--primary-purple);
}
/* Use this class on the element that contains the shortcode */
.wpforms-container {
    margin: 0;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--dark-grey);
    color: #e0e0e0;
    padding: 40px 0 20px 0;
    text-align: center;
    margin-top: 80px;
}
.site-footer a {
    color: var(--white);
}
.site-footer a:hover {
    color: var(--primary-purple);
}

.social-media-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-media-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-media-links a:hover {
    transform: translateY(-3px);
}

.social-media-links svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
    transition: fill 0.3s ease;
}

.social-media-links a:hover svg {
    fill: var(--primary-purple);
}

/* --- Footer Legal Links --- */
.footer-legal-links {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--medium-grey);
}
.footer-legal-links span {
    margin: 0 10px;
}
.footer-legal-links a {
    color: #e0e0e0;
    text-decoration: none;
}
.footer-legal-links a:hover {
    text-decoration: underline;
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.8rem; }

    .about-content { grid-template-columns: 1fr; }
    .founder-profile { margin-top: 40px; }

    .services-overview { grid-template-columns: 1fr; }
    .bespoke-services-grid { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr; gap: 50px; }

    .services-table { font-size: 0.8rem; }
    .services-table th, .services-table td { padding: 10px 5px; }
}

/* --- High Conversion Contact Page Styles --- */

/* 1. Header Override for High Impact */
.page-header.high-impact {
    background-color: #0f172a; /* Keeps the Enterprise Dark Blue */
    text-align: center;
    padding: 80px 0;
}
.page-header.high-impact h1 {
    color: var(--white);
    margin-bottom: 1rem;
}
.page-header.high-impact p {
    color: #cbd5e1; /* Light grey for dark background */
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 2. Split Layout (Form Left, Sidebar Right) */
.contact-split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}
.contact-main {
    flex: 3; /* Form takes 60% width */
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}
.contact-sidebar {
    flex: 2; /* Sidebar takes 40% width */
    min-width: 300px;
}

/* 3. Sidebar Icon Items */
.contact-method-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    background: #f0f9ff; /* Light Blue background */
    color: var(--primary-purple);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* 4. Process Timeline (The Vertical Line) */
.process-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}
.process-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 30px;
    border-left: 2px solid #e0e0e0;
}
.process-item:last-child {
    border-left: 2px solid transparent; /* Hide line for last item */
}
.process-item:before {
    content: ''; /* The Dot */
    position: absolute;
    left: -6px; /* Center dot on line */
    top: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary-purple);
    border-radius: 50%;
}
.process-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--dark-grey);
}
.process-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--medium-grey);
}

/* 5. Trust Note */
.trust-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--medium-grey);
    text-align: center;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .contact-split-layout {
        flex-direction: column;
    }
    .page-header.high-impact {
        padding: 40px 0;
    }
}

/* --- Competitor / Alternative Page Styles --- */

/* Badge Styling */
.comparison-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15); /* Translucent white */
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Two-Column Contrast Grid */
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contrast-column {
    padding: 30px;
    border-radius: var(--border-radius);
}

/* Left Column (Competitor) - Intentionally plainer */
.contrast-column.competitor {
    padding-right: 40px;
}
.contrast-column.competitor h3 {
    color: var(--medium-grey);
}

/* Right Column (HDP) - highlighted */
.contrast-column.hdp {
    background-color: var(--white);
    border: 2px solid var(--primary-purple);
    box-shadow: 0 15px 30px rgba(94, 53, 177, 0.1); /* Soft Purple Shadow */
}
.contrast-column.hdp h3 {
    color: var(--primary-purple);
}

/* List Styling */
.contrast-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contrast-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--medium-grey);
}
.contrast-list li strong {
    display: block;
    color: var(--dark-grey);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Icons */
.icon-cross, .icon-check {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.2rem;
    font-weight: bold;
}
.icon-cross { color: #d32f2f; } /* Red for bad */
.icon-check { color: var(--primary-purple); } /* Purple for good */

/* Mobile Responsive */
@media (max-width: 768px) {
    .contrast-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contrast-column.competitor {
        padding-right: 0;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 40px;
    }
}

/* --- Comparison Table Styles --- */
.comparison-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Soft shadow lift */
    margin: 0 auto;
    max-width: 900px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
}

.comparison-table th, 
.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
}

/* Header Row Styling */
.comparison-table thead tr {
    background-color: #f8fafc;
}
.comparison-table th {
    font-weight: 700;
    color: var(--dark-grey);
}

/* HDP Column (The "Hero" Column) */
.comparison-table .col-hdp {
    background-color: var(--primary-purple); /* Using your Brand Purple */
    color: var(--white);
    text-align: center;
    width: 30%;
}
.comparison-table .cell-hdp {
    background-color: #fdfbff; /* Very light purple tint */
    color: var(--primary-purple);
    font-weight: 700;
    text-align: center;
    border-left: 1px solid #ede7f6;
    border-right: 1px solid #ede7f6;
}

/* Competitor Column */
.comparison-table .col-competitor {
    color: var(--medium-grey);
    text-align: center;
    width: 30%;
}
.comparison-table .cell-competitor {
    color: var(--medium-grey);
    text-align: center;
}

/* Mobile Responsive Table */
@media (max-width: 768px) {
    .comparison-table th, 
    .comparison-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

/* --- Policy Library Styles --- */

/* Refine the grid for policies to ensure equal height cards */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .policy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }
}

/* Specific Card Styling */
.policy-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
    text-align: left; /* Professional document feel */
    background-color: var(--white);
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(94, 53, 177, 0.1); /* Soft Purple Shadow */
    border-color: var(--primary-purple);
}

.policy-card h3 {
    font-size: 1.25rem;
    margin-top: 15px;
    margin-bottom: 10px;
    min-height: 50px; /* Aligns titles */
}

.policy-card p {
    font-size: 0.95rem;
    color: var(--medium-grey);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Icon Styling */
.policy-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-purple);
    background-color: #f3e5f5; /* Very light purple bg */
    padding: 8px;
    border-radius: 8px;
    display: inline-block;
}

/* Download Button Tweak */
.btn-download {
    width: 100%;
    text-align: center;
    background-color: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    padding: 10px;
}

.btn-download:hover {
    background-color: var(--primary-purple);
    color: var(--white);
}

/* --- Refined Navigation Styling (Replaces Old Dropdowns) --- */

/* 1. Refined Dropdowns (Tighter & Cleaner) */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Softer shadow */
    border-top: 2px solid var(--primary-purple); /* Thinner purple top */
    border-radius: 0 0 4px 4px;
    padding: 5px 0;
    width: auto; /* Auto width based on text */
    min-width: 180px; /* Don't let it get too small */
    white-space: nowrap; /* Keeps text on one line */
    z-index: 999;
}

/* Show Sub-Menu on Hover */
.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul {
    display: flex; /* Show it */
    flex-direction: column;
}

/* Parent Menu Item */
.main-navigation ul li {
    position: relative;
    transition: all 0.3s ease;
}

/* 2. Sub-Menu Items (Remove the wide lines) */
.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul li a {
    display: block;
    padding: 8px 20px;
    color: var(--dark-grey);
    font-size: 0.9rem;
    border-bottom: none; /* Removed the "underling" inside dropdown */
    transition: all 0.2s ease;
}

.main-navigation ul ul li a:hover {
    background-color: #f5f3ff; /* Very light purple bg on hover */
    color: var(--primary-purple);
    padding-left: 25px; /* Subtle movement */
}

/* Ensure sub-menu items NEVER have the underline */
.main-navigation ul ul li a:after {
    display: none !important;
}

/* --- Executive Assessment & Quiz Styles (Added back in) --- */

.quiz-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    min-height: 500px;
}

.quiz-progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.scenario-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.scenario-text {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--dark-grey);
    margin-bottom: 30px;
}

/* Options */
.q-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-option {
    background: var(--light-grey-bg);
    color: var(--dark-grey);
    text-align: left;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
    transition: all 0.2s;
    white-space: normal;
}

.btn-option:hover {
    background: #ede7f6;
    border-color: var(--primary-purple);
}

.btn-option.correct {
    background: #d1e7dd;
    border-color: #0f5132;
    color: #0f5132;
}

.btn-option.wrong {
    background: #f8d7da;
    border-color: #842029;
    color: #842029;
}

/* Feedback Box */
.feedback-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    animation: fadeIn 0.5s ease;
}

.feedback-box.success {
    background-color: #e8f5e9;
    border-left: 5px solid #2e7d32;
    color: #1b5e20;
}

.feedback-box.failure {
    background-color: #ffebee;
    border-left: 5px solid #c62828;
    color: #b71c1c;
}

.feedback-box strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
    text-decoration: underline;
}

.next-btn {
    margin-top: 20px;
    width: 100%;
}

/* Score Section */
.score-box {
    background: var(--light-grey-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin: 20px 0;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-purple);
    display: block;
    line-height: 1;
}

.score-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

/* --- Certificate Styling --- */
.certificate-container {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 10px solid var(--primary-purple);
    position: relative;
    text-align: center;
    color: var(--dark-grey);
}

.certificate-border {
    border: 2px solid #ddd;
    padding: 20px;
}

.certificate-header h3 {
    font-family: 'Poppins', serif;
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-purple-dark);
    letter-spacing: 2px;
}

.cert-name-input input {
    font-size: 1.8rem;
    text-align: center;
    border: none;
    border-bottom: 2px solid #ccc;
    width: 80%;
    font-family: cursive; /* Fallback for signature style */
    color: var(--primary-purple);
    margin: 10px 0;
}

.certificate-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* --- Plan Promotion Card (Results) --- */
.promo-box {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.recommended-plan-card {
    background: #fafafa;
    border: 2px solid var(--primary-purple);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 450px;
    margin: 30px auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(94, 53, 177, 0.1);
}

.plan-tag {
    background: var(--primary-purple);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 15px;
    border-radius: 20px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.recommended-plan-card h4 {
    font-size: 1.6rem;
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.plan-desc {
    font-size: 0.95rem;
    color: var(--medium-grey);
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 20px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.plan-features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--dark-grey);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.plan-price small {
    font-size: 0.9rem;
    color: var(--medium-grey);
    font-weight: 400;
}

/* Social Share Button */
.share-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

.share-btn.linkedin {
    background-color: #0077b5;
    color: white;
}
.share-btn.linkedin:hover {
    background-color: #005582;
}

@media print {
    body * { visibility: hidden; }
    #certificate-view, #certificate-view * { visibility: visible; }
    #certificate-view { position: absolute; left: 0; top: 0; width: 100%; border-width: 5px; }
    .btn, .site-header, .site-footer { display: none !important; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Email Gate Modal Styles (Fixed Overlay) --- */

.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed !important; /* FORCE overlay */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75); /* Dark semi-transparent background */
    z-index: 999999; /* Higher than everything else */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px); /* Professional blur effect */
}

.modal-overlay.active {
    display: flex !important; /* Force display when active */
}

.modal-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
    border-top: 5px solid var(--primary-purple);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--medium-grey);
    cursor: pointer;
    line-height: 1;
}

.modal-header h3 {
    margin-bottom: 10px;
    color: var(--dark-grey);
}

.modal-body input {
    width: 100%;
    padding: 15px;
    margin: 20px 0 10px 0;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

.modal-body input:focus {
    outline: 2px solid var(--primary-purple);
    border-color: var(--primary-purple);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
    background-color: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
}

.btn-full:hover {
    background-color: var(--primary-purple-dark);
}

.gate-error {
    color: #d32f2f;
    font-size: 0.9rem;
    display: none; /* Hidden unless error */
    margin-bottom: 10px;
    text-align: left;
}

.small-print {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
}

/* --- FIXED Testimonial Styles --- */

.testimonial-section {
    background-color: #f8fafc; /* Light grey strip */
    padding: 80px 0;
}

.testimonial-card-centered {
    background-color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.06); /* Premium soft shadow */
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

/* Green top border for "Trust" signal */
.testimonial-card-centered:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #00b67a; /* Trustpilot Green */
}

.trust-header {
    margin-bottom: 30px;
}

.trust-score {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--medium-grey);
}

.trust-quote {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem; /* Larger, readable text */
    line-height: 1.6;
    color: var(--dark-grey);
    font-weight: 500;
    margin: 0 0 40px 0;
    position: relative;
    z-index: 2;
}

.trust-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
    margin-top: 30px;
}

.author-img-container img {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Forces circle */
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.author-meta {
    text-align: left;
    line-height: 1.3;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--dark-grey);
    font-size: 1rem;
}

.author-link {
    font-size: 0.9rem;
    color: var(--primary-purple);
    text-decoration: none;
}

.author-link:hover {
    text-decoration: underline;
}

/* --- BEAUTIFIED Partner Portal Styles --- */

/* 1. Enhanced Partner Cards */
.service-item.partner-card {
    background-color: var(--white);
    padding: 40px 30px;
    border: 1px solid #f0f0f0;
    border-top: 4px solid var(--primary-purple); /* Premium Accent */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); /* Soft Shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(94, 53, 177, 0.15); /* Purple Glow Lift */
}

/* Circular Icon Container */
.icon-circle {
    width: 70px;
    height: 70px;
    background-color: #f3e5f5; /* Light Purple Background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
}

.icon-circle svg {
    width: 35px;
    height: 35px;
    color: var(--primary-purple);
    margin: 0; /* Override default svg margin */
}

/* 2. Partner Persona Grid (The "Who is this for" section) */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-type-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-type-card h4 {
    color: var(--primary-purple);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.partner-type-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--medium-grey);
}

/* 3. Horizontal Process Steps */
.step-process-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    flex: 1;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    max-width: 300px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-purple);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.step-arrow {
    align-self: center;
    font-size: 2rem;
    color: #cbd5e1;
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: 1fr;
    }
    
    .step-process-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-arrow {
        transform: rotate(90deg); /* Point down on mobile */
        margin: 10px 0;
    }
}