/* =================================================================
   1. HERO SECTION
   ================================================================= */


   .service-package h2 {
    text-align: center; /* Center package titles */
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-package h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem;
    text-align: left; /* Center subheadings */
}

.service-package p {
    font-size: 1rem;
    margin: 1rem;
    text-align: center;
}

.service-package .price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00aaff;
    text-align: center;
    margin-bottom: 1rem;
}


/* =================================================================
   2. MAIN CONTENT & PACKAGE CONTAINER
   ================================================================= */

.service-package { display: none; }
.service-package.active { display: block; }

.package-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem; /* Standard mobile padding */
}

.service-package {
    display: none; /* Hidden by default, controlled by JS */
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-in-out; /* Subtle fade-in effect */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-package h2 {
    text-align: center; /* Center package titles */
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-package h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem;
    text-align: left; /* Center subheadings */
}

.service-package p {
    font-size: 1rem;
    margin: 1rem;
    text-align: center;
}

.service-package .price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00aaff;
    text-align: center;
    margin-bottom: 1rem;
}

.guidance-notice {
    background-color: #fffbe6; /* A soft, attention-grabbing yellow */
    border: 1px solid #ffeeba;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.guidance-notice p {
    margin: 0;
    font-size: 0.95rem;
    color: #856404; /* A dark yellow/brown for good contrast */
}

/* Make the link inside the notice stand out */
.guidance-notice a {
    color: #4a90e2;
    font-weight: 600;
    text-decoration: underline;
}

.included h3,
.what-we-need h3,
.what-next-section h3 {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 1rem;
    padding-top: 1rem;
    text-align: center;
}

.what-next-section p {
    font-size: 1rem;
    margin: 1rem;
    text-align: left;
}



/* =================================================================
   3. TAB NAVIGATION (Mobile-First)
   ================================================================= */
.package-tabs {
    display: grid; /* Use CSS Grid */
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 2.5rem;
    background-color: #fff;
    align-items: stretch;
}

.tab-link {
    display: flex;
    justify-content: center; 
    
    /* Add align-items: center to vertically center the text */
    align-items: center; 
    
    /* Add text-align: center as a fallback and for multi-line text */
    text-align: center; 

    padding: 0.8rem 0.5rem;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.tab-link.active {
    color: #001430;
    font-weight: 600;
    border-left: 4px solid #00aaff;
    background-color: #f8f9fa;
}


/* =================================================================
   4. COMPLIANCE & FEATURE BOXES
   ================================================================= */
.compliance-notice, 
.compliance-feature,
.subscription-notice  {
    background-color: #f8f9fa;
    border-left: 5px solid #c09c2c;
    padding: 0.75rem;
    margin-top: 2rem;
    border-radius: 5px;
}

.compliance-notice p,
.compliance-feature p,
.subscription-notice p {
text-align: left;
}

.compliance-feature h4,
.compliance-notice h4 {
font-size: 1.3rem;
font-weight: 700;
margin-left: 1rem
}

.compliance-notice li,
.compliance-feature li {
    padding: 0.5rem;
    margin-left: 2rem;
    margin-right: 1rem;
}

.compliance-feature {
    border-left-color: #c09c2c;
}

.compliance-feature.info-style {
    border-left-color: #00aaff;
}

.feature-list li {
    margin-left: 2rem;
    margin-right: 1rem;
}



/* =================================================================
   5. RESPONSIVE DATA TABLE
   ================================================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 1rem;
}

.data-table thead {
    display: none; /* hide headers on small screens */
}

.data-table tr {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
}

.data-table td {
    display: block;
    padding: 0.5rem 0;
    border: none;
}

.data-table td:before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    color: #555;
}

.data-table .price-cell {
    font-size: 1.1rem;
    font-weight: 700;
    color: #001430;
}


/* ============================================================ */
/* STYLES FOR THE MIGRATION & REBUILD SECTION (ADJUSTED)       */
/* ============================================================ */

/* --- Base styles for the main container (from your old styles) --- */
.migration-service-box {
    background-color: #eef7ff;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 2.5rem;
    text-align: center;
}

/* --- Styles for the main icon and heading --- */
.migration-service-box .migration-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* This is the new main heading "Moving Your Existing Website?" */
.migration-service-box h3 {
    color: var(--primary-color);
    font-size: 1.8rem; /* Making it slightly larger than the pathway headings */
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* --- Styles for the horizontal separator line --- */
.migration-service-box hr {
    border: 0;
    height: 1px;
    background-color: var(--accent-color); /* Using your accent color for consistency */
    opacity: 0.5; /* Softens the line slightly */
    margin: 2rem auto;
    width: 80%;
}

/* --- Styles for each pathway (A and B) --- */

/* This is for the "Pathway A" and "Pathway B" headings */
.migration-service-box h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0; /* Resetting margin-top as the <hr> provides space */
    margin-bottom: 0.5rem;
}

/* This is for the price text, e.g., "From £195" */
.migration-service-box .migration-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* --- General paragraph styles within the box (from your old styles) --- */
.migration-service-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0; /* Resetting margin for more specific control below */
}

/* --- Specific paragraph styles for better spacing --- */

/* The main intro paragraph under the H3 */
.migration-service-box h3 + p {
    margin-bottom: 1.5rem;
}

/* The descriptive paragraphs under each pathway's price */
.migration-service-box .migration-price + p {
    max-width: 500px; /* Keeps line length readable */
    margin: auto;
    margin-bottom: 1.5rem; /* Adds space before the CTA button */
}

/* --- CTA Button Styles --- */

/* Ensures the CTA wrappers don't have extra margin if not needed */
.migration-service-box .cta-wrapper {
    margin-top: 0;
}

/* You should already have a style for .cta-button-secondary.
   If not, here is a simple one that complements your existing design. */
  
   .cta-button-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: #fff; /* White text on hover */
}


/* =================================================================
   7. CALL-TO-ACTION BUTTONS
   ================================================================= */
    
   .service-package .cta-button {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 0 auto;
    text-align: center;
}

.governing-agreements {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid #001430;
    background: #f9f9fb;
    border-radius: 4px;
}

.governing-agreements h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #001430;
    text-align: left;
}

.governing-agreements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.governing-agreements li {
    margin: 0.25rem 0;
}

.governing-agreements a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    word-wrap: break-word;
}

.governing-agreements a:hover,
.governing-agreements a:focus {
    color: #003366;
    text-decoration: underline;
}

.cross-link-section .cta-button-secondary {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: var(--cta-border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    line-height: 1.4;
    box-sizing: border-box;
}

.cross-link-section .cta-button-secondary:hover,
.cross-link-section .cta-button-secondary:focus {
    background-color: #c09c2c;
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.secondary-cta {
    display: inline-block;
    margin-top: 1rem;
    color: #0056b3;
    font-weight: 500;
    text-decoration: underline;
    transition: var(--transition);
}

.secondary-cta:hover,
.secondary-cta:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.cta-recommended {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transform: scale(1.02);
}

.cta-recommended:hover,
.cta-recommended:focus {
    background-color: #c09c2c;
    color: var(--light-text);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.04) translateY(-2px);
}


/* =================================================================
   8. CROSS-LINK SECTION (Fixed block under services)
   ================================================================= */
.cross-link-section {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    background: #f5f7fa;
    border-top: 2px solid #e0e4e8;
    text-align: center;
}

.cross-link-section h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #001430;
}

.cross-link-section p {
    max-width: 600px;
    margin: 0 auto 1.25rem auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}


/* =================================================================
   9. TABLET & DESKTOP STYLES (768px and wider)
   ================================================================= */
@media (min-width: 768px) {
.hero-section h1 {
  font-size: 2.2rem;
  margin-top: 30px;
  margin-bottom: 40px;
}


.hero-subheading {

  font-size: 1.3rem;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.service-package h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-package h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 1.5rem;
}

.service-package p {
    font-size: 1rem;
    margin: 1rem;
}

.service-package .price {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
    .package-container {
        padding: 0 1rem;
    }

    /* --- DESKTOP TABS --- */
    .package-tabs {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        border-bottom: 1px solid #ddd;
    }

    .tab-link {
        border: none;
        border-radius: 0;
        background-color: transparent !important; 
        color: #333;            
        font-weight: 500;       
        padding: 2rem;
        text-align: center;
        border-bottom: 3px solid transparent;
    }

    .tab-link.active {
        color: var(--primary-color);
        font-weight: 600;
        border-bottom-color: #00aaff;
        background-color: transparent !important;
    }

    .tab-link:hover {
        background-color: #f5f5f5;
        color: var(--primary-color);
    }

    /* --- DESKTOP DATA TABLE --- */
    .data-table {
        display: table;
    }

    .data-table thead {
        display: table-header-group;
        background: #f7f7f7;
    }

    .data-table tr {
        display: table-row;
        border: none;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #ddd;
    }

    .data-table td, 
    .data-table th {
        display: table-cell;
        padding: 0.75rem 1rem;
        text-align: left;
        vertical-align: top;
    }

    .data-table tbody tr:last-child td {
        border-bottom: none;
    }

    .data-table td:before {
        display: none;
    }

    .migration-service-box {
        padding: 2.5rem;
    }

    .migration-service-box h3 {
        font-size: 2rem;
    }

    .governing-agreements {
        margin-top: 1.5rem;
        padding: 1rem 1.25rem;
        border-left: 4px solid #001430;
        border-radius: 6px;
    }

    .feature-list li {
        font-size: 1.05rem;
    }

    .cta-recommended {
        transform: scale(1.05);
    }

    .governing-agreements h4 {
        font-size: 1.1rem;
    }

    .cross-link-section {
        padding: 2.5rem 1.5rem;
    }

    .cross-link-section h3 {
        font-size: 1.5rem;
    }

    .cross-link-section p {
        font-size: 1.05rem;
    }
}

@media (min-width: 996px) {
.hero-section h1 {
  margin-top: 20px;
}

.service-package h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-package h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1.5rem;
}

.service-package p {
    font-size: 1.1rem;
    margin: 1rem;
}

.service-package .price {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
}