/* Sovereign Data Defence - Polished Corporate Style Sheet v3 (Final) */

/* --- Font Import (from Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500&display=swap');

/* --- Variables --- */
:root {
    --primary-color: #0d1b2a; /* Deep Navy Blue */
    --secondary-color: #415a77; /* Slate Blue */
    --accent-color: #bfa15c; /* Muted Gold */
    --text-color: #333;
    --light-text-color: #e0e1dd;
    --background-color: #f8f9fa; /* Slightly off-white for a softer feel */
    --white-bg: #ffffff;
    --border-color: #dee2e6;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --container-width: 1200px;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- Global Resets & Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--primary-color); }

/* --- Header & Navigation --- */
.main-header {
    background: var(--white-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.main-nav {
    display: block; /* Show nav by default on desktop */
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 35px;
}

.main-nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.nav-button {
    background-color: var(--primary-color);
    color: var(--light-text-color) !important;
    padding: 12px 25px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* --- MOBILE NAVIGATION --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Section Styling --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 10px;
}

.section-title p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.hero {
    background: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 120px 0;
}

.hero h1 {
    color: var(--white-bg);
    font-size: 3.8rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 20px auto 40px auto;
    color: var(--light-text-color);
    opacity: 0.8;
}

/* --- Buttons --- */
.button-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 18px 40px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-heading);
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--accent-color);
}

.button-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --- Three-Column Info Grid --- */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.info-card {
    background: var(--white-bg);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.info-card .icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.info-card h3 {
    margin-top: 20px;
}

.info-card p {
    font-size: 0.95rem;
}

/* --- Services Page --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent-color);
}

.service-card .card-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-card .best-for {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.service-card ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-card li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}

.service-card li::before {
    content: '\f058';
    /* Font Awesome Check Circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.service-card .button-primary {
    align-self: flex-start;
}

/* --- Booking Page & Contact Form --- */
.booking-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.booking-form {
    flex: 2;
    background: var(--white-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.live-estimate {
    flex: 1;
    position: sticky;
    top: 120px;
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 30px;
    border-radius: 8px;
}

.booking-form fieldset {
    border: none;
    padding: 0;
    margin-bottom: 30px;
}

.booking-form legend {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form input[type="number"],
.booking-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(191, 161, 92, 0.2);
    outline: none;
}

.live-estimate h3 {
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    color: var(--white-bg);
}

.estimate-item,
.estimate-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.1rem;
}

.estimate-total {
    font-size: 1.4rem;
    border-top: 1px solid var(--secondary-color);
    margin-top: 10px;
}

.live-estimate small {
    opacity: 0.7;
}

/* --- Footer --- */
.main-footer {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 40px 0;
    text-align: center;
}

.main-footer .container {
    opacity: 0.8;
}

.footer-nav a {
    color: var(--light-text-color);
    margin: 0 10px;
}

.footer-nav a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- About Us Page Enhancements --- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 for text, 1/3 for card */
    gap: 60px;
    align-items: center;
}

.founder-card {
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.founder-card .icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.founder-card .highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-top: 10px;
}

.methodology-section {
    background: var(--primary-color);
    color: var(--light-text-color);
}

.methodology-section .section-title h2,
.methodology-section .section-title p {
    color: var(--white-bg);
    opacity: 0.9;
}

.methodology-section .info-card {
    background: var(--secondary-color);
    border: 1px solid #5a7da0;
    /* Slightly lighter border */
}

.methodology-section .info-card h3 {
    color: var(--white-bg);
}

.methodology-section .info-card p {
    color: var(--light-text-color);
    opacity: 0.8;
}

/* --- Contact Form Layout & Select Styling --- */
.form-row {
    display: flex;
    gap: 30px;
}

.form-row .form-group {
    flex: 1;
}

.booking-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    /* Removes default OS styling */
    -moz-appearance: none;
    appearance: none;
    background-color: var(--white-bg);
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23415a77%22%2F%3E%3C%2Fsvg%3E');
    /* Adds a custom dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
}

/* --- Service Details Section Enhancements --- */
.service-details {
    padding-top: 100px;
    border-top: 1px solid var(--border-color);
}

.service-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.service-feature:last-child {
    margin-bottom: 0;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.feature-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.feature-content h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.feature-process-list {
    list-style: none;
    padding-left: 0;
}

.feature-process-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-process-list .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px; /* Ensures text alignment is consistent */
    text-align: center;
}

.feature-process-list p {
    margin-bottom: 0;
}

/* Modifier class to alternate the layout */
.service-feature.layout-right .feature-image {
    order: 2;
}
.service-feature.layout-right .feature-content {
    order: 1;
}

/* --- Responsive stacking for the Service Details section --- */
/* This rule needs to be added inside the @media (max-width: 992px) block */
@media (max-width: 992px) {
    .service-feature,
    .service-feature.layout-right {
        grid-template-columns: 1fr;
    }
    .service-feature.layout-right .feature-image,
    .service-feature.layout-right .feature-content {
        order: initial; /* Reset order for stacking */
    }
    .feature-image {
        margin-bottom: 40px;
    }
}

/* --- Spam Honeypot Field Styling --- */
.hp-field {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    left: -5000px;
    /* Send it far off-screen */
}

/* --- Legal Page Formatting Enhancements --- */
.legal-page {
    background: var(--white-bg);
    /* Give it a clean, paper-like background */
    padding: 80px 0;
}

.legal-page h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    /* Adds clear separation before each new section heading */
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Add a little space before the first heading to balance the page */
.legal-page h4:first-of-type {
    margin-top: 0;
}

.legal-page p {
    line-height: 1.8;
    /* More spacing for better readability of long text */
    margin-bottom: 20px;
}

/* This is the fix for the messy bullet points */
.legal-page ul {
    list-style: none;
    /* Remove the default ugly bullet */
    padding-left: 0;
    margin-bottom: 20px;
}

.legal-page li {
    padding-left: 30px;
    /* Create space for our custom bullet */
    position: relative;
    margin-bottom: 15px;
    /* Spacing between list items */
    line-height: 1.8;
}

.legal-page li::before {
    content: '\2022';
    /* The standard '•' bullet character */
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    position: absolute;
    left: 5px;
    top: -3px;
    /* Fine-tune vertical alignment */
}


/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        /* Hide nav by default on mobile */
        position: absolute;
        top: 91px;
        /* Height of the header */
        left: 0;
        right: 0;
        background-color: var(--white-bg);
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }

    .main-nav.nav-open {
        display: block;
        /* Show nav when it gets the .nav-open class */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0;
    }

    .main-nav ul li {
        margin: 0;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav ul li a::after {
        display: none;
        /* Hide underline effect on mobile */
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .nav-button {
        display: block;
        margin: 15px;
    }

    .mobile-nav-toggle {
        display: block;
        /* Show the hamburger button */
    }

    .booking-wrapper {
        flex-direction: column;
    }

    .live-estimate {
        position: static;
        margin-top: 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Service Details Section Enhancements --- */
.service-details {
    padding-top: 100px;
    border-top: 1px solid var(--border-color);
}

.service-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.service-feature:last-child {
    margin-bottom: 0;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.feature-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.feature-content h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.feature-process-list {
    list-style: none;
    padding-left: 0;
}

.feature-process-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-process-list .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px; /* Ensures text alignment is consistent */
    text-align: center;
}

.feature-process-list p {
    margin-bottom: 0;
}

/* Modifier class to alternate the layout */
.service-feature.layout-right .feature-image {
    order: 2;
}
.service-feature.layout-right .feature-content {
    order: 1;
}

/* Responsive stacking for the new section */
@media (max-width: 992px) {
    .service-feature,
    .service-feature.layout-right {
        grid-template-columns: 1fr;
    }
    .service-feature.layout-right .feature-image,
    .service-feature.layout-right .feature-content {
        order: initial; /* Reset order for stacking */
    }
    .feature-image {
        margin-bottom: 40px;
    }
}
/* --- Bespoke Services Section --- */
.bespoke-services {
    padding-top: 100px;
}

.bespoke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.bespoke-card {
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.bespoke-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.bespoke-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.bespoke-card p {
    font-size: 0.95rem;
    flex-grow: 1; /* Ensures cards have equal height */
    margin-bottom: 25px;
}

.bespoke-card .button-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-block;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.bespoke-card .button-secondary:hover {
    background: var(--secondary-color);
    color: var(--white-bg);
}
/* --- Articles Hub & Single Article Page Styling --- */

/* Article Hub Page */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.article-card {
    background: var(--white-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.article-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.article-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.article-card-category {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    flex-grow: 1;
}
.article-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
}
.article-card .button-secondary { align-self: flex-start; }

/* Single Article Page */
.article-header {
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--white-bg);
}
.article-header h1 {
    color: var(--white-bg);
    max-width: 900px;
}
.article-meta {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    opacity: 0.8;
}
.article-content {
    background: var(--white-bg);
    padding: 80px 0;
}
.article-body {
    max-width: 800px;
    margin: 0 auto;
}
.article-body h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
}
.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 30px;
    margin: 40px 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--secondary-color);
}
.article-cta {
    background: var(--light-gray-bg);
    padding: 60px;
    border-radius: 8px;
    text-align: center;
    margin-top: 80px;
}
/* --- Our Process Page Styling --- */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0 auto;
}
/* The central line of the timeline */
.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.process-step {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
/* The circle on the timeline */
.process-step::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: var(--white-bg);
    border: 4px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
/* Steps on the left */
.process-step.left {
    left: 0;
    text-align: right;
}
.process-step.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--white-bg);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--white-bg);
}
/* Steps on the right */
.process-step.right {
    left: 50%;
}
.process-step.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--white-bg);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white-bg) transparent transparent;
}
.process-step.right::after {
    left: -12.5px;
}
.process-content {
    padding: 20px 30px;
    background-color: var(--white-bg);
    position: relative;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.process-content .step-number {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    font-family: var(--font-heading);
}
.process-content h3 { font-size: 1.4rem; margin-top: 5px; }

/* --- Client Verticals Section (with Hover Effect) --- */
.verticals-section { background: var(--light-gray-bg); }

.verticals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vertical-card {
    background: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    padding: 40px 30px;
    transition: all 0.3s ease;
    display: flex; /* Use Flexbox for alignment */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
}

.vertical-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-color);
}

.vertical-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.vertical-card:hover .icon {
    color: var(--accent-color);
}

.vertical-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0; /* Remove bottom margin to sit flush */
}

/* This is the new style for the text that appears on hover */
.vertical-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.5;
    max-height: 0; /* Hidden by default */
    opacity: 0; /* Hidden by default */
    margin-top: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.4s ease;
}

/* This triggers the animation when hovering the PARENT card */
.vertical-card:hover .vertical-text {
    opacity: 1;
    max-height: 100px; /* Animate to this height */
    margin-top: 15px; /* Add space between title and text */
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .process-timeline::after { left: 31px; }
    .process-step { width: 100%; padding-left: 70px; padding-right: 25px; }
    .process-step::before { left: 60px; border: medium solid var(--white-bg); border-width: 10px 10px 10px 0; border-color: transparent var(--white-bg) transparent transparent; }
    .process-step.left::after, .process-step.right::after { left: 18px; }
    .process-step.right { left: 0%; }
    .process-step.left { text-align: left; }
}
/* --- FAQ Page Enhancements --- */
.faq-container {
    max-width: 900px;
    margin: 60px auto 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}
.faq-question:hover {
    color: var(--accent-color);
}
.faq-question .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
/* Style for the question when the answer is open */
.faq-question.active {
    color: var(--accent-color);
}
.faq-question.active .icon {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
    padding: 0 20px;
}
.faq-answer p {
    margin-bottom: 25px;
    line-height: 1.8;
}
/* --- Featured Article on Hub Page --- */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Image takes 1/3, content takes 2/3 */
    align-items: center;
    gap: 0; /* No gap as image touches the content area */
    background: var(--white-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 80px; /* Space between feature and grid below */
    overflow: hidden; /* Ensures image corners are rounded */
    transition: all 0.3s ease;
}
.featured-article:hover {
    transform: translateY(-5px);
}
.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.featured-article-content {
    padding: 50px;
}
.featured-article-content h3 {
    font-size: 1.8rem;
}
.featured-article-content p {
    font-size: 1.05rem;
}
.featured-article-content .button-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive adjustments for the featured article */
@media (max-width: 992px) {
    .featured-article {
        grid-template-columns: 1fr; /* Stack image on top of content */
    }
    .featured-article-image img {
        height: 250px; /* Give a fixed height to the image on mobile */
    }
    .featured-article-content {
        padding: 40px;
    }
}
/* --- Article Content List Formatting --- */
.article-body .article-list {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
}
.article-body .article-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.article-body .article-list .icon {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 25px; /* Ensures consistent text alignment */
    text-align: center;
}
.article-body .article-list p {
    margin-bottom: 0;
    flex: 1;
}
/* --- Authority Banner on Homepage --- */
.authority-banner-section {
    background: var(--light-gray-bg);
}

.authority-banner {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 60px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.authority-banner h3 {
    color: var(--white-bg);
    font-size: 2rem;
}

.authority-banner p {
    color: var(--light-text-color);
    opacity: 0.9;
    max-width: 700px;
    margin: 20px auto 30px auto;
    font-size: 1.1rem;
}

.authority-banner .button-secondary {
    border-color: var(--accent-color);
    color: var(--accent-color);
    padding: 15px 30px;
    font-size: 1rem;
}

.authority-banner .button-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}
/* --- Homepage Cohesion Redesign --- */
.why-us-section {
    background: var(--primary-color);
}
.why-us-section .section-title h2,
.why-us-section .section-title p {
    color: var(--white-bg);
}
.why-us-content-full {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.why-us-content-full h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.why-us-content-full p {
    color: var(--light-text-color);
    opacity: 0.9;
    font-size: 1.1rem;
}

/* This is the base style for secondary buttons on light backgrounds */
.button-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-block;
    transition: all 0.3s ease;
}
.button-secondary:hover {
    background: var(--secondary-color);
    color: var(--white-bg);
}

/* This is the NEW modifier class for buttons on dark backgrounds */
.button-secondary.on-dark {
    margin-top: 20px;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.button-secondary.on-dark:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}
/* Responsive adjustments for the new sections */
@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: 1fr; /* Stack the two columns */
        gap: 80px;
    }
}
@media (max-width: 576px) {
    .why-us-verticals .verticals-grid {
        grid-template-columns: 1fr; /* Stack vertical cards on smallest screens */
    }
}
/* --- Informational Tooltip Styling --- */
.info-icon {
    display: inline-block;
    position: relative;
    margin-left: 8px;
    color: var(--secondary-color);
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: left;
    border-radius: 6px;
    padding: 15px;
    position: absolute;
    z-index: 10;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    margin-left: -140px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400; /* Use body font weight */
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Arrow at the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

/* Show the tooltip when hovering over the icon */
.info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
/* --- Homepage Integration & Polishing --- */

/* For the new subtitles in the info cards */
.info-card h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-top: -15px; /* Pulls it up closer to the heading */
    margin-bottom: 20px;
}

/* Polishing styles for your new sections */
.why-us-content-full {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.vertical-card p.vertical-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
    padding: 0 10px;
}
.button-secondary.on-dark {
    border-color: var(--accent-color);
    color: var(--accent-color);
    margin-top: 20px;
}
.button-secondary.on-dark:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}
/* --- Disclaimer & Detail Text Styling --- */
.disclaimer-text {
    display: block;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--secondary-color);
    opacity: 0.9;
    margin-top: 15px;
    padding-left: 30px; /* Aligns with list items */
}
/* --- Polished Footer Formatting --- */
.main-footer .container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.footer-socials {
    margin-bottom: 25px; /* Space below the icon */
}

.footer-socials a {
    color: var(--light-text-color);
    font-size: 1.8rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.footer-nav {
    margin-bottom: 25px;
}

.footer-nav a {
    color: var(--light-text-color);
    margin: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--white-bg);
    text-decoration: underline;
}

p.footer-copyright {
    margin: 0;
    opacity: 0.8;
}

p.footer-holding-company {
    margin: 0px 0 0 0;
    font-size: 0.8em;
    opacity: 0.6;
}