/*
 * SORETECH style.css
 * Version #
 *
 * Colour Palette:
 * Primary Blue: #447cd4
 * Darker Blue (Hover): #3867b3 / #2f65b2
 * Light Background: #f4f4f4
 * Policy/Cookie Highlight: #fffbe6 (Light Yellow)
 */

/* ====================================================================
   1. Form Styling and Containment
   ==================================================================== */
.contact-form-container {
    max-width: 500px; /* Constrain the width */
    margin: 20px auto; /* Centre the container and add vertical spacing */
    padding: 20px;
    border: 1px solid #ddd; /* Optional: Add a subtle border */
    border-radius: 8px;
    background-color: #f9f9f9;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
}

.contact-form-container label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea,
.contact-form-container select {
    width: 100%; /* Make them fill the 500px container */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't increase total width */
    font-size: 1em;
}

.contact-form-container textarea {
    resize: vertical;
}

.contact-form-container button[type="submit"] {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #447cd4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form-container button[type="submit"]:hover {
    background-color: #3867b3;
}

.contact-form-container .g-recaptcha,
.contact-form-area .g-recaptcha { /* Included contact-form-area for completeness */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.gdpr-note {
    font-size: 0.75em;
    color: #777;
    margin-top: 10px;
    text-align: center;
}

/* Specific styles for the contact page */
.contact-card {
    max-width: 400px;
    margin: 20px auto;
    position: relative;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: auto;
}

.contact-card h3 {
    margin-right: 70px;
}

/* ====================================================================
   2. Base and Layout Styling
   ==================================================================== */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #666;
}

.tabs-container,
.main-content-wrapper { /* UPDATED: Added new wrapper class */
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
}

.section {
    /* FIX 1: CHANGE TO RESTORE HORIZONTAL PADDING ON ALL PAGES */
    padding: 20px;
    /* border-bottom: 1px solid #eee; */
}

.section:last-child {
    border-bottom: none;
}

h1 {
    color: #447cd4;
    font-size: 2.5em;
    margin-bottom: 0;
}

h2 {
    color: #447cd4;
    font-size: 1.8em;
    /* Removed: border-bottom: 2px solid #447cd4; */
    padding-bottom: 5px; /* Keep this for spacing */
    margin-top: 0;
    margin-bottom: 20px;
}

.benefits-section h2 {
    margin-top: 5px;
}

h3 {
    color: #333;
    font-size: 1.2em;
}

/* ====================================================================
   3. Tab Navigation
   ==================================================================== */
.tab-buttons {
    display: flex;
    justify-content: flex-start;
    background-color: #447cd4;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999; /* UPDATED: Increased z-index to ensure it is always on top */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tab-button {
    background-color: transparent;
    color: #fff;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

.tab-button:hover:not(.active) {
    background-color: #3867b3;
}

.tab-button.active {
    background-color: #fff;
    color: #447cd4;
    border-bottom: 3px solid #447cd4;
}

/* Tab Content Styling */
.tab-content {
    padding: 20px;
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ====================================================================
   4. Hero & CTA Section
   ==================================================================== */
.hero-section {
    max-width: 900px;
    margin: 0 auto 0 auto;
    padding: 10px 20px;
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.logo-text {
    color: #447cd4;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 5px;
}

/* Styles for the CTA text and button in the Hero Section (default link style) */
.hero-section > p {
    max-width: 800px;
    margin: 10px auto;
    font-size: 1.1em;
}

.hero-section > p a {
    display: inline-block;
    background-color: #447cd4;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.hero-section > p a:hover {
    background-color: #3867b3;
}

.hero-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 1rem;
}

/* CONSOLIDATED: Dedicated styles for the half-width, centred CTA button on the Home tab */
.home-cta-button {
    display: block;
    width: 50%; /* Desktop half width */
    max-width: 100%; /* Mobile safety */
    margin: 15px auto 20px auto; /* Centres the block element */
    text-align: center;
}

.home-cta-button a {
    /* Define the main button look once */
    display: inline-block;
    color: white; /* Ensure text is white in all states */
    text-decoration: none;
    background-color: #447cd4;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    
    /* Constraints for ellipsis and sizing */
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-cta-button a:hover,
.home-cta-button a:visited,
.home-cta-button a:active {
    color: white; /* Ensure text stays white on interaction */
}

.home-cta-button a:hover {
    background-color: #3867b3; /* Consistent hover state */
}
/* ====================================================================
   Call to Action (CTA) Button Styling
   ==================================================================== */

.cta-button {
    /* Visual Styling */
    display: inline-block; /* Allows padding and width/height controls */
    padding: 15px 30px;
    
    /* Colour and Text */
    background-color: #447cd4; /* Primary Blue colour */
    color: #ffffff; /* White text */
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none; /* Remove underline from link */
    
    /* Shape and Effect */
    border: none;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.2s ease, transform 0.1s ease; /* Smooth transitions */
    cursor: pointer;
}

/* Hover State for User Feedback */
.cta-button:hover {
    background-color: #2f65b2; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

/* Ensure the button element (if used instead of <a>) also looks correct */
button[type="submit"] {
    /* Inherit base styling from the general CTA button or define specifically */
    background-color: #447cd4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px; /* Add spacing below the form fields */
}

button[type="submit"]:hover {
    background-color: #2f65b2;
}
/* ====================================================================
   5. Benefits, Services, and Pricing Cards
   ==================================================================== */

/* Benefits Section Styling */
.benefits-section {
    max-width: 900px;
    margin: 0 auto 20px auto;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-icon {
    font-size: 2em;
    margin-right: 15px;
}

.benefits-list li h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.benefits-list li p {
    margin: 0;
}

/* --- SERVICES & PRICING CARD STYLING --- */

.pricing-cards-container,
.service-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* General styling for both card types */
.pricing-card,
.service-card {
    background-color: #fff;
    border: 2px solid #ccc; /* More prominent border (from enhancement) */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* More prominent shadow (from enhancement) */
    padding: 20px; /* Reduced padding (from mobile tweak) */
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Pricing card specifics */
.pricing-card-logo img {
    max-width: 100px; /* Slightly smaller logo (from mobile tweak) */
    height: auto;
    margin-bottom: 0.8em;
}

.pricing-card-header h3 {
    color: #447cd4;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 5px;
}

/* Make price bigger, bold, and black */
.pricing-card-header .price {
    font-size: 1.8em; /* Adjusted size (from mobile tweak) */
    font-weight: bold;
    color: #000;
    margin: 0.3em 0; /* Tightened spacing (from mobile tweak) */
}

.pricing-card .description {
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 1.2em;
}

/* Reduce gap above "What's Included" */
.pricing-card-body h4 {
    margin-top: 8px; /* Reduced gap (from mobile tweak) */
    margin-bottom: 8px; /* Reduced gap (from mobile tweak) */
    font-size: 1em; /* Adjusted size (from mobile tweak) */
    font-weight: bold;
}

.pricing-card-body {
    flex-grow: 1;
    text-align: left;
    margin: 20px 0;
}

/* Switch to bullet list style, compact spacing */
.pricing-card-body ul {
    list-style-type: disc;
    padding-left: 1.2em; /* Adjusted size (from mobile tweak) */
    margin-bottom: 1em;
}

.pricing-card-body ul li {
    padding: 3px 0; /* Compact spacing (from mobile tweak) */
    border-bottom: none;
    font-size: 0.9em; /* Adjusted size (from mobile tweak) */
}

.pricing-card-cta {
    margin-top: auto;
}

.pricing-card-cta a {
    display: block;
    background-color: #447cd4;
    color: #fff;
    padding: 10px 16px; /* Slightly smaller padding (from mobile tweak) */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    font-size: 0.95em; /* Adjusted size (from mobile tweak) */
}

.pricing-card-cta a:hover {
    background-color: #3867b3;
}

/* Service Card specifics */
.service-card h3 {
    color: #447cd4;
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* ====================================================================
   6. Accordion Styling
   ==================================================================== */
.accordion-controls {
    text-align: right;
    margin-bottom: 10px;
}

.accordion-controls button {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    transition: background-color 0.3s;
    font-weight: bold;
}

.accordion-button:hover {
    background-color: #f1f1f1;
}

.accordion-button[aria-expanded="true"] {
    background-color: #e6e6e6;
    color: #447cd4;
}

/* --- ACCORDION ICON FIX START --- */
.accordion-button {
    display: flex;
    justify-content: space-between; /* Push text to left, icon to right */
    align-items: center;
    padding: 15px;
}

.accordion-button::after {
    content: '+'; /* Default state (collapsed) */
    font-size: 1em; /* DECREASED FROM 1.2em to 1em */
    font-weight: normal; /* Less bold than the button text */
    color: #447cd4; /* Primary colour */
    margin-left: 15px; /* Spacing between text and icon */
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevents the icon from shrinking */
}

.accordion-button[aria-expanded="true"]::after {
    content: '–'; /* Change to a minus sign (dash) when expanded */
    color: #447cd4;
}
/* --- ACCORDION ICON FIX END --- */

/* FIX 2A: Set padding to 0 on the collapsible element for smooth animation */
.accordion-content {
    padding: 0;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* FIX: Ensure content shows when expanded using the 'open' class */
.accordion-content.open {
  max-height: 5000px; /* Increased for safety to handle longer content */
}

/* FIX 2B: Add all desired padding (vertical and horizontal) to the inner paragraph element */
.accordion-content p {
    padding: 20px 20px;
    margin: 0;
}

/* ====================================================================
   7. Policy Document Styling (.contract and .aup)
   ==================================================================== */

/* CONSOLIDATED: Apply common styles to both policy types */
.contract,
.aup {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: #222;
}

.contract h1,
.aup h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5rem;
}

.contract h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.contract h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.contract p,
.aup p {
    margin-bottom: 1rem;
}

.contract ul,
.aup ul {
    margin: 0.5rem 0 1.5rem 1.5rem;
    padding-left: 1rem;
    list-style-type: disc;
}

.contract li,
.aup li {
    margin-bottom: 0.5rem;
}

.contract a,
.aup a {
    color: #0066cc;
    text-decoration: underline;
}

.contract a:hover,
.aup a:hover {
    text-decoration: none;
}

/* Unique policy blocks */
.party {
    margin-bottom: 1rem;
    background: #f9f9f9;
    padding: 0.75rem;
    border-left: 4px solid #ccc;
}

.service-tier {
    margin-bottom: 1.5rem;
}

/* ====================================================================
   8. Utility and Footer
   ==================================================================== */

.responsive-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Ensure the service agreement content has the same padding as other sections */
.service-agreement {
    padding: 20px;
}

.stripe-button-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em 0;
}

/* Spinner for form submission */
.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #447cd4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* FIX: Footer Styling for Correct Colour and Centering */
footer {
    text-align: center; /* Ensures content is centred */
    padding: 20px;
    background-color: #447cd4; /* MATCHES PRIMARY MENU BAR COLOUR */
    color: #fff;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
    text-align: center; /* Ensure paragraphs inside are also centred */
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #f0f6ff;
}

/* ====================================================================
   9. Cookie Banner and Modal (Latest Preferred Styles)
   ==================================================================== */

/* Cookie Banner (latest preferred version) */
.cookie-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 420px;
    width: 90%;
    background: #fffbe6; /* Light yellow background */
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 15px;
    z-index: 9999;
    font-family: system-ui, sans-serif;
}

.cookie-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #333;
}

.cookie-box button {
    margin-top: 8px;
    background: #0078d4;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cookie-box a {
    margin-left: 12px;
    font-size: 13px;
    color: #0078d4;
    text-decoration: underline;
}

.cookie-box a:hover {
    text-decoration: none;
}

.cookie-preferences {
    background: #f9f9f9;
    padding: 1em;
    border-left: 4px solid #ccc;
    margin-top: 1.5em;
    font-size: 0.95em;
}

.cookie-reset-btn {
    margin-top: 0.5em;
    background: #0078d4;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Modal backdrop and layout */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Modal content box */
.modal-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: system-ui, sans-serif;
}

/* Modal headings and labels */
.modal-content h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #333;
}

.modal-content label {
    display: block;
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

/* Modal buttons */
.modal-content button {
    margin-top: 1rem;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-content button[type="submit"] {
    background-color: #0078d4;
    color: white;
}

.modal-content button[type="button"] {
    background-color: #ccc;
    color: #333;
}

/* --- CSP FIX: Initial Hidden State for Banner and Modal --- */

/* The cookie banner is hidden by default. */
#cookie-banner {
    display: none;
}

/* The modal is hidden by default, but uses flex to centre content when visible. */
.modal {
    /* Kept this block for clarity, though modal display is defined above */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* ====================================================================
   10. Standalone Message Pages (Thank You / Error)
   ==================================================================== */
#thank-you-message,
#error-message {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    text-align: center;
    padding: 60px 20px;
    color: #333;
}

#thank-you-message .logo-container,
#error-message .logo-container {
    margin-bottom: 30px;
}

#thank-you-message .logo,
#error-message .logo {
    display: block;
    margin: 0 auto;
    max-width: 120px;
    height: auto;
}

#thank-you-message h1 {
    color: #447cd4; /* Blue colour for success message */
    font-size: 2em;
    margin-top: 0;
}

#error-message h1 {
    color: #d44c4c; /* Red colour for error message */
    font-size: 2em;
    margin-top: 0;
}

/* ====================================================================
   11. Media Queries for Responsiveness (CONSOLIDATED)
   ==================================================================== */

@media (max-width: 768px) {
    .tab-button {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .hero-section {
        margin: 0 auto;
        max-width: 100%;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .about-flex-container {
        flex-direction: column;
        gap: 20px;
    }

    /* FIX: Ensure cards stack vertically on mobile */
    .pricing-cards-container,
    .service-cards-container {
        grid-template-columns: 1fr;
    }

    /* FIX: Make the Home CTA button wider on tablet/mobile */
    .home-cta-button {
        width: 90%;
    }
}

@media (max-width: 600px) {
    /* Specific adjustments for smaller phones (600px breakpoint) */
    
    /* Hero CTA container padding */
    .hero-cta-container {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .hero-cta-container .cta-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    /* Tab bar tweaks */
    .tab-buttons {
        padding-left: 12px;
        padding-right: 12px;
        justify-content: space-around;
    }

    .tab-button {
        padding: 14px 16px;
        font-size: 1em; /* Matches body size for consistency */
    }
    
    /* Body and content readability improvements */
    body {
        font-size: 1.05em; /* Slightly larger than default */
        line-height: 1.6; /* Improves readability */
    }

    .tab-content {
        font-size: 1.05em;
    }
}
.contact-icon-img {
  height: 2em !important; /* Forces the height to 16px */
  width: auto !important;  /* Ensures aspect ratio is maintained */
  vertical-align: middle;
}

.contact-link {
  color: #447cd4;
  text-decoration: none;
}
.contact-link:hover {
  text-decoration: underline;
}
/* Quick links box */
.quick-links-section {
  margin-top: 20px;
  padding: 15px;
}

/* Highlighted email text */
.highlighted-email {
  color: #447cd4;
  font-weight: bold;
}

/* Figure styling for Raspberry Pi image */
.centered-figure {
  text-align: center;
  margin: 20px 0;
}

.raspberry-img {
  max-width: 66%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.figure-caption-bold {
  font-weight: bold;
}
/* --- CSP FIX: Email Text Styling --- */
.highlighted-email {
    color: #447cd4; 
    font-weight: bold;
}

/* --- CSP FIX: Raspberry Pi Figure Styling --- */
.centered-figure {
    text-align: center;
    margin: 20px 0;
}

.raspberry-img {
    max-width: 66%;
    height: auto;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.figure-caption-bold {
    font-weight: bold;
}
/* ====================================================================
   Spinner Styling for Form Submissions (Add this to style.css)
   ==================================================================== */
.spinner {
    /* Visuals of the spinning circle */
    border: 4px solid #f3f3f3; /* Light grey border */
    border-top: 4px solid #447cd4; /* Primary Blue colour */
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    
    /* Centering and positioning */
    margin: 10px auto; /* Centres horizontally and adds vertical space */
}

/* The animation definition */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Spinner visibility */
.spinner.hidden { display: none; }
.spinner.show { display: inline-block;

}
/* ====================================================================
   12. Anchor Scroll Fixes
   ==================================================================== */
/* Fixes the issue where the sticky menu (tab-buttons) is covered when scrolling 
   to any anchor link on any page. This replaces the specific ID with a general 
   selector [id] to affect all anchor targets. */
[id] {
    scroll-margin-top: 60px; /* Offset the scroll by the height of the sticky menu */
}
