/* Universal styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

:root {
    --header-height: 65px;

    --colour-1: #e6f1f5;
    --colour-2: #9bcdd6;
    --colour-3: #627260;
    --colour-4: #e5ab78;
    --colour-5: #ffffffcd;
    --colour-6: #606b72;

    --white: #ffffff;
    --text-dark: #333;
    --success-bg: #28a745;
    --success-border: #218838;
    --error-bg: #dc3545;
    --error-border: #c82333;
}

body {
    background: var(--colour-1);
    padding-top: var(--header-height);
    transition: padding-top 0.6s ease;
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    margin-top: 5%;
}

/* Alert Messages */
.messages-container {
    padding: 1rem 6rem;
    position: relative;
    z-index: 10;
}

.alert-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-message p {
    margin: 0;
}

.alert-message.success {
    background-color: var(--success-bg);
    color: var(--white);
    border: 1px solid var(--success-border);
}

.alert-message.error {
    background-color: var(--error-bg);
    color: var(--white);
    border: 1px solid var(--error-border);
}

/*------- DASHBOARD -------*/

.dashboard {
    margin-top: 2%;
    padding-left: 6rem;
    padding-right: 6rem;
}

.dashboard h2 {
    font-family: serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    margin-top: 20px;
    color: var(--colour-6);
    text-transform: capitalize;
}

.dashboard h5 {
    font-size: 0.8em;
    color: var(--colour-6);
    text-transform: capitalize;
}

.container-dashboard {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    padding: 0;
    display: grid;
    grid-template-columns: 14rem auto;
    gap: 1rem;
    background: var(--colour-1);
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid var(--colour-2);
}

.dashboard main {
    margin-left: 1rem;
    margin-right: 1.5rem;
    max-height: calc(100vh - var(--header-height) - 95px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 15px;
    box-sizing: border-box;
}

.dashboard main::-webkit-scrollbar {
    width: 8px;
}

.dashboard main::-webkit-scrollbar-track {
    background: var(--colour-1);
    border-radius: 10px;
}

.dashboard main::-webkit-scrollbar-thumb {
    background: var(--colour-2);
    border-radius: 10px;
    border: 2px solid var(--colour-1);
}

.dashboard main::-webkit-scrollbar-thumb:hover {
    background: var(--colour-3);
}

.table-responsive {
    overflow-x: auto;
    padding-bottom: 10px;
}

.dashboard main table th,
.dashboard main table td {
    word-wrap: break-word;
    max-width: 250px;
}

.dashboard main table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.dashboard main table th {
    background: var(--colour-4);
    padding: 0.8rem;
    color: var(--white);
}

.dashboard main table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--colour-6);
}

.dashboard main table tr:hover td {
    background-color: #6272604c;
    color: var(--colour-6);
    cursor: default;
    transition: all 300ms ease;
}

.dashboard aside a {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.6rem;
    min-height: 60px;
}

.container-dashboard aside {
    align-self: start;
    max-height: 100%;
    overflow-y: auto;
}

/* Sidebar Styling (.icons) */
.dashboard aside.icons {
    background: var(--colour-2);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--colour-2);
}

.dashboard aside.icons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard aside.icons ul li a {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.6rem;
    color: var(--colour-3);
    transition: all 0.2s ease-in-out;
    z-index: 1;
    position: relative;
}

.dashboard aside.icons ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

/* Active Link Styling */
.dashboard aside.icons ul li a.active {
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 1.6rem;
}

.dashboard aside.icons ul li:not(:last-child) a {
    border-bottom: 1px solid var(--colour-6);
}

.main-content {
    flex-grow: 1;
    padding: 30px;
    background-color: var(--colour-4);
}

.main-content h1 {
    color: var(--colour-4);
    margin-bottom: 25px;
    font-size: 2em;
    border-bottom: 1px solid var(--colour-3);
    padding-bottom: 15px;
}

/* Form Styling */
.main-content form {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    margin-left: 6px;
    margin-top: 13px;
    font-weight: bold;
    color: var(--colour-3);
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    margin-bottom: 15px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--colour-2);
    border-radius: 5px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(80, 80, 62, 0.25);
    border-color: var(--colour-3);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group span {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--colour-2);
}

.btn.primary {
    background-color: var(--success-bg);
    color: var(--white);
}

.btn.primary:hover {
    background-color: var(--success-border);
}

.btn.secondary {
    background-color: var(--error-bg);
    color: var(--white);
    margin-left: 10px;
}

.btn.secondary:hover {
    background-color: var(--error-border);
}

/* Button Styling */
.btn {
    display: inline-block;
    width: fit-content;
    background-color: var(--colour-2);
    border-radius: 5px;
    cursor: pointer;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px 20px;
    text-align: center;
}

section.action-btn {
    margin-bottom: 15px;
    margin-top: 10px;
}

.action-btn-container {
    margin-bottom: 15px;
    margin-top: 20px;
}

.btn.sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn.sm.primary:hover {
    background: #3e5446e3;
    color: var(--white);
}

.btn.sm.cancel:hover {
    background: #ad5e5ee3;
    color: var(--white);
}

.btn.sm.add:hover {
    background: #589871e3;
    color: var(--white);
}

.btn.sm.primary {
    background: var(--colour-3);
    color: var(--white);
    margin-right: 10px;
}

.btn.sm.add {
    background: #237c3a;
    color: var(--white);
    margin-right: 10px;
}

.btn.sm.cancel {
    background: #ac303d;
    color: var(--white);
}

.btn.sm.danger {
    background: #ac303d;
}


.current-image-thumbnail {
    max-width: 100px;
    height: auto;
}

/*------- BLOG -------*/

.blogs {
    background: var(--colour-5);
    overflow: hidden;
    padding: 30px 50px; /* Original desktop margin */
    width: auto;
    box-sizing: border-box;
}

.blog-bottom {
    padding-bottom: 40px;
    background: var(--colour-5);
}

.container-blog {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Original desktop: 4 columns */
    gap: 12px;
    padding-top: 25px;
    align-items: stretch;
}

/* Style individual blog articles - Flat design (no card shadows/backgrounds) */
.container-blog .blog {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    text-align: left; /* Original desktop alignment */
    transition: opacity 0.3s ease;
    border: 1px solid var(--colour-3);
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 50px; /* Original desktop padding */
    display: flex;
    flex-direction: column;
}

.container-blog .blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    outline: none;
}

.blog-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--colour-6);
}

.blog-img {
    width: 100%;
    padding-top: 65%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 8px;
}

.blog-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.blog-img img:hover {
    transform: scale(1.03);
    filter: none;
}

.blog-info {
    padding: 0;
    width: 100%;
}

.blog-info .category-button {
    background: var(--colour-2);
    color: var(--colour-5);
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.75rem;
    margin-bottom: 6px;
    text-transform: capitalize;
    font-weight: normal;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.blog-info .category-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--colour-6);
}

.blog-info .category-button:hover {
    color: var(--colour-5);
    background: var(--colour-3);
}

.blog-info .blog-title {
    font-family: sans-serif;
    font-size: 1em; /* Original desktop font size */
    text-transform: capitalize;
    color: var(--colour-3);
    margin-bottom: 5px;
    line-height: 1.2;
}

.blog-info .blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-info .blog-overview {
    font-family: sans-serif;
    font-size: 0.85em;
    color: #333;
    line-height: 1.5;
    margin-bottom: 0;
}

.pagination-arrows {
    position: relative;
    width: 100%;
    padding-top: 20px;
    margin-bottom: 20px;
}

.pagination-container {
    display: flex;
    justify-content: flex-end; /* Original desktop alignment */
    align-items: center;
    gap: 15px;
    padding-right: 20px; /* Original desktop padding */
}

.pagination-arrow-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--colour-3);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pagination-arrow-link i.bx {
    color: var(--colour-3);
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.pagination-arrow-link i.bx:hover {
    color: var(--colour-5);
}

.pagination-arrow-link:hover {
    border-color: var(--colour-4);
    background-color: var(--colour-2);
}

.pagination-arrow-link.disabled {
    background-color: #f2f2f2;
    border-color: var(--colour-3);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-arrow-link.disabled i.bx {
    color: #555;
}

section {
    margin-top: 0;
}


.container-category-button {
    width: fit-content;
    display: flex;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 30px;
    max-width: 80%; /* Original desktop max-width */
    flex-wrap: wrap;
    justify-content: center;
}

.buttons .category-button { /* This still targets the potentially problematic `.buttons` */
    background: var(--colour-2);
    color: var(--colour-5);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 18px;
    text-align: center;
    font-weight: normal;
    text-transform: capitalize;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--colour-2);
    white-space: nowrap;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.buttons .category-button:hover {
    background: var(--colour-3);
    color: var(--colour-5);
    border-color: var(--colour-3);
}

.read-more {
    font-size: 0.8em;
    color: var(--colour-6);
    text-decoration: underline;
    font-weight: normal;
    margin-top: auto;
    padding-top: 5px;
    display: inline-block;
    transition: color 0.3s ease;
    font-family: var(--secondary-font);
    margin-top: 15px;
}

.read-more:hover {
    color: var(--colour-4);
}

.header-section {
    background-color: var(--colour-1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* Original desktop height */
    border-bottom: 1px solid var(--colour-3);
}

.title-overview {
    display: flex;
    flex-direction: row; /* Original desktop: side-by-side */
    width: 100%;
    align-items: flex-start;
    /* No text-align here, handled by sub-elements */
}

.right-overview {
    flex: 1;
    text-align: left; /* Original desktop alignment */
    padding-left: 8%; /* Original desktop padding */
    padding-right: 22%; /* Original desktop padding */
    padding-top: 7%; /* Original desktop padding */
}

.right-overview h2 {
    text-transform: capitalize;
    color: var(--colour-3);
    font-family: serif;
    font-weight: 300;
    font-size: 25px; /* Original desktop font size */
    margin-bottom: 100px;
}

.left-overview {
    flex: 2;
    text-align: left; /* Original desktop alignment */
    padding-top: 2%; /* Original desktop padding */
}

.left-overview h1 {
    font-size: 3em; /* Original desktop font size */
    font-family: serif;
    font-weight: 400;
    text-transform: capitalize;
    max-width: 450px; /* Original desktop max-width */
    color: var(--colour-3);
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.left-overview p {
    padding-left: 3px; /* Original desktop padding */
    line-height: 1.5;
    font-size: 0.8em;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    color: #555;
    max-width: 400px; /* Original desktop max-width */
    padding-bottom: 75px; /* Original desktop padding */
}

/* Styles for the ACTIVE button */
.category-button.active-category-button {
    background-color: var(--colour-6);
    color: var(--colour-5);
    border-color: var(--colour-6);
    font-weight: bold;
}

/* Optional: To make sure active state isn't overridden by hover */
.category-button.active-category-button:hover {
    background-color: var(--colour-6);
    color: var(--colour-5);
    border-color: var(--colour-6);
}

.container-singlepost {
 width: 55%;
    background: var(--colour-5);
    padding: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
    display: block;
}

.singlepost-img img {
    margin: 1.5rem auto 1rem;
    width: 100%;
    display: block;
}

.container-singlepost h2 {
  font-family: serif;
    font-weight: bold;
    margin-top: 27px;
    margin-bottom: 20px;
    font-size: 2rem;
    text-transform: capitalize;
    color: var(--colour-6);
    padding-left: 35px ;
}

.container-singlepost p {
    margin-top: 1rem;
    line-height: 1.5;
    padding: 10px 40px;
    color: var(--colour-6);
}

.blog-author {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.blog-author .author-img img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 3px;
    overflow: hidden;
}

.contain{
    border: 1px solid var(--colour-2);
    padding: 30px;
}

.category-title {
    height: 10rem; /* Original desktop height */
    background: var(--colour-5);
    display: grid;
    place-items: center;
}

.category-title h2 {
    font-size: 2rem; /* Original desktop font size */
    font-family: serif;
    color: var(--colour-6);
}

.buttons-selection {
    padding-top: 30px; /* Original desktop padding */
    border-bottom: 1px solid var(--colour-3);
    display: flex;
    background-color: var(--colour-1);
    padding-left: 30px; /* Original desktop padding */
}

.category-button-selection {
    width: fit-content;
    display: flex;
    gap: 20px; /* Original desktop gap */
    margin-bottom: 30px;
    max-width: 90%;
    flex-wrap: wrap;
    justify-content: center;
}

.buttons-selection .category-button {
    background: var(--colour-1);
    color: var(--colour-6);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 18px;
    text-align: center;
    font-weight: normal;
    text-transform: capitalize;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--colour-2);
    white-space: nowrap;
    font-size: 0.8em;
}

.buttons-selection .category-button:hover {
    background: var(--colour-2);
    color: var(--colour-5);
    border-color: var(--colour-3);
}



/* ----- Media Quries ------- */
/*---- DASHBOARD ----*/

@media screen and (max-width: 1024px) {
    .dashboard {
        padding: 0 2rem;
    }

    .messages-container {
        padding: 1rem 2rem;
    }

    .container-dashboard {
        grid-template-columns: 12rem auto;
        gap: 1.5rem;
        width: 95%;
    }

    .dashboard h2 {
        font-size: 2rem;
    }

    .dashboard aside.icons ul li a {
        padding: 0.8rem 1rem;
    }

    .dashboard aside.icons ul li a.active {
        padding-left: 1.5rem;
    }

    .dashboard aside.icons ul li a h5 {
        font-size: 0.75em;
    }

    .dashboard main table th,
    .dashboard main table td {
        padding: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    .dashboard {
        padding: 0 1rem;
    }

    .messages-container {
        padding: 1rem;
    }

    .container-dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
        border-radius: 8px;
    }

    .dashboard aside.icons {
        border-bottom: 1px solid var(--colour-6);
        border-right: none;
        box-shadow: none;
        border-radius: 8px 8px 0 0;
        padding-bottom: 0.5rem;
    }

    .dashboard aside.icons ul {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard aside.icons ul::-webkit-scrollbar {
        height: 6px;
    }

    .dashboard aside.icons ul::-webkit-scrollbar-thumb {
        background: var(--colour-2);
        border-radius: 5px;
    }

    .dashboard aside.icons ul::-webkit-scrollbar-thumb:hover {
        background: var(--colour-6);
    }

    .dashboard aside.icons ul li {
        flex-shrink: 0;
        border-bottom: none !important;
    }

    .dashboard aside.icons ul li a {
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.8rem 0.6rem;
        min-width: 90px;
        text-align: center;
    }

    .dashboard aside.icons ul li a i {
        font-size: 1.3rem;
    }

    .dashboard aside.icons ul li a h5 {
        font-size: 0.65em;
    }

    .dashboard aside.icons ul li a.active {
        padding-left: 0.6rem;
        border-left: none;
        border-bottom: 3px solid var(--colour-4);
    }

    .dashboard main {
        padding: 1.5rem;
        max-height: none;
        overflow-y: visible;
        padding-right: 1.5rem;
    }

    .dashboard h2 {
        font-size: 1.8rem;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .dashboard main table {
        font-size: 0.9rem;
    }

    .dashboard main table th,
    .dashboard main table td {
        padding: 0.7rem;
        max-width: 200px;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn.sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Mobile Phones (smaller screens) */
@media screen and (max-width: 480px) {
    .dashboard {
        padding: 0 0.5rem;
    }

    .messages-container {
        padding: 0.5rem;
    }

    .alert-message {
        font-size: 0.85rem;
        padding: 0.8rem;
    }

    .container-dashboard {
        margin-bottom: 2rem;
        border-radius: 5px;
    }

    .dashboard h2 {
        font-size: 1.5rem;
        margin-top: 10px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .dashboard main {
        padding: 1rem;
    }

    .dashboard main table {
        font-size: 0.8rem;
    }

    .dashboard main table th,
    .dashboard main table td {
        padding: 0.5rem;
        max-width: 150px;
    }

    .form-group label {
        font-size: 0.7em;
        margin-bottom: 5px;
    }

    .form-group input[type="text"],
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .form-group textarea {
        min-height: 90px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .btn.secondary {
        margin-left: 0.5rem;
    }

    .action-btn-container {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn.sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}



/* --- BLOGS PAGE --- */

/* Large screens (e.g., min-width: 993px - Desktops & up) */
@media (min-width: 993px) {
    /* No changes needed here usually, as base styles cover large desktop */
}

/* Medium Devices (e.g., max-width: 992px - Tablets landscape, small laptops) */
@media (max-width: 992px) {
    .blogs {
        margin: 30px 40px; /* Adjust margin for medium screens */
    }

    .container-blog {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablets/laptops */
        gap: 20px;
    }

    .header-section {
        min-height: 250px; /* Adjust height */
        padding: 30px; /* Adjust padding */
    }

    .title-overview {
        max-width: 900px; /* Constrain width */
        margin: 0 auto; /* Center the content */
        /* Keep flex-direction: row from base for this size */
    }

    .left-overview h1 {
        font-size: 2.5em; /* Smaller title size for medium screens */
    }

    .left-overview p {
        padding-bottom: 50px; /* Adjust padding */
    }

    .pagination-container {
        padding-right: 40px; /* Match new blog margin */
    }

    .buttons-selection {
        justify-content: flex-start; /* Align buttons to the left */
        padding-bottom: 20px; /* Adjust padding */
    }

    .container-category-button {
        gap: 15px; /* Adjust gap */
        margin-left: 0; /* Remove auto-margins to stick to left */
        margin-right: 0;
    }

    .container-singlepost {
        width: 70%; /* Wider for medium screens */
        padding: 1rem 2rem 2.5rem;
    }

    .container-singlepost h2 {
        font-size: 1.8rem;
    }

    .container-singlepost p {
        padding-left: 20px; /* Adjust padding */
        padding-right: 15px; /* Adjust padding */
    }
}


/* Small Devices (e.g., max-width: 767px - Phones landscape, small tablets) */
/* This targets screens up to 767px wide */
@media (max-width: 767px) {
    .blogs {
        margin: 20px 15px; /* Even less margin on sides for small screens */
    }

    .container-blog {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for small screens */
        gap: 10px;
    }

    .container-blog .blog {
        padding: 15px; /* Less padding for individual posts */
        padding-bottom: 30px; /* Adjust bottom padding if needed */
    }

    .blog-info .blog-title {
        font-size: 0.9em; /* Smaller blog title for small cards */
    }

    .header-section {
        min-height: 180px; /* Shorter height for mobile */
        padding: 15px;
    }

    .title-overview {
        flex-direction: column; /* Stack columns */
        align-items: center; /* Center the main content block within the header */
        margin-top: 2%; /* Adjust top margin */
        width: 90%; /* Ensure content doesn't stretch too wide */
        margin-left: auto; /* Center the block itself */
        margin-right: auto;
        padding-right: 0; /* Remove explicit padding, let children handle it */
        padding-left: 0;
    }

    .left-overview {
        width: 100%; /* Take full width of parent */
        text-align: left; /* Keep the main title/paragraph left-aligned */
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .left-overview h1 {
        font-size: 2em; /* Smaller font size for mobile */
        max-width: 100%; /* Allow full width */
        margin-bottom: 15px; /* Adjust margin */
    }

    .left-overview p {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%; /* Allow full width */
        padding-bottom: 30px; /* Adjust bottom padding */
    }

    .right-overview {
        width: 100%; /* Take full width of parent */
        padding-top: 3%; /* Adjust top padding */
        padding-left: 0; /* Remove original left padding */
        padding-right: 0; /* Remove original right padding */
        text-align: right; /* Ensure text within this block aligns right */
        align-self: flex-end; /* !!! NEW: Push THIS SPECIFIC ITEM to the right !!! */
    }

    .right-overview h2 {
        font-size: 1.2em; /* Smaller font for mobile heading */
        /* Removed float and explicit text-align: left from here.
           It will now inherit text-align: right from .right-overview */
    }

    .pagination-container {
        justify-content: center; /* Center pagination arrows */
        padding-right: 0;
    }

    .buttons-selection {
        padding-left: 0; /* Remove fixed padding */
        justify-content: center; /* Center the buttons container */
        padding-bottom: 15px; /* Adjust padding */
    }

    .category-button-selection {
        width: 95%; /* Wider for mobile to accommodate buttons */
        gap: 8px; /* Smaller gap for mobile buttons */
        max-width: 95%;
        justify-content: center; /* Ensure buttons wrap and center */
    }

    .buttons-selection .category-button {
        padding: 4px 8px; /* Even smaller padding for mobile buttons */
        font-size: 0.7em; /* Smaller font size */
        margin-bottom: 8px; /* Adjust margin */
    }

    .container-singlepost {
        width: 95%; /* Even wider for small mobile screens */
        padding: 1rem 1rem 1.5rem; /* Adjusted padding */
        margin: 1rem auto;
    }

    .container-singlepost h2 {
        font-size: 1.5rem; /* Smaller for mobile */
        text-align: center; /* Center title */
    }

    .container-singlepost p {
        padding: 0 10px; /* Adjust padding */
    }

    .blog-author {
        justify-content: center; /* Center author info */
    }

    .category-title {
        height: 6rem; /* Shorter height for mobile */
    }

    .category-title h2 {
        font-size: 1.5rem; /* Smaller for mobile */
    }
}


/* Extra Small Devices (e.g., max-width: 575px - Portrait phones) */
/* This targets very small screens, often for stacking all elements */
@media (max-width: 575px) {
    .container-blog {
        grid-template-columns: repeat(1, 1fr); /* Stack blog posts into 1 column */
        gap: 15px; /* Adjust gap */
    }

    .blogs {
        margin: 15px 10px; /* Even tighter margins */
    }

    .header-section {
        min-height: 150px;
    }

    .title-overview {
        padding-right: 0; /* Clear padding from parent */
        padding-left: 0;
        width: 95%; /* Adjust width for very small screens */
    }

    .left-overview h1 {
        font-size: 1.8em;
    }

    .left-overview p {
        font-size: 0.75em;
        padding-bottom: 20px;
    }

    .right-overview h2 {
        font-size: 1.1em; /* Adjust font size for very small screens */
    }

    .container-singlepost {
        width: 98%;
        padding: 0.8rem;
    }

    .container-singlepost h2 {
        font-size: 1.3rem;
    }

    .container-singlepost p {
        font-size: 0.9em;
        padding: 0 5px;
    }

    .category-title h2 {
        font-size: 1.3rem;
    }
}

/*------- SERVICES -------*/

/* General styling for the main content area */
.services-main-content {
    padding: 40px 0; /* Adjust overall vertical padding */
}

/* --- Main Therapist Introduction Section --- */
.main-therapy-introduction {
    background-color: var(--colour-background-light); /* A light background for the intro */
    padding: 40px 5%;
    text-align: center;
    margin-bottom: 30px;
}

.main-therapist-info {
    max-width: 800px; /* Limit width for readability */
    margin: 0 auto;
}

.main-therapist-name {
    font-size: 3em; /* Prominent name */
    color: var(--colour-3);
    margin-bottom: 10px;
    font-weight: lighter; /* Elegant font weight */
    font-family: serif;
}

.main-therapist-tagline {
    font-size: 1.2em;
    color: var(--colour-2);
    font-style: italic;
    margin-bottom: 30px;
}

.main-therapist-description {
    line-height: 1.8;
    color: #555;
    font-size: 1.05em;
    max-width: 700px;
    margin: 0 auto; /* Center description */
}

/* General Styling for the section */
.therapy-pricing-section {
    background-color: var(--colour-5);
    padding: 60px 20px;
    text-align: center;
}

.pricing-container {
    max-width: 1200px; /* This is important. Make sure this is wide enough for 4 items + gaps */
    margin: 0 auto;
}

.pricing-main-title {
    font-size: 2.4em;
    font-weight: 400;
    font-family: serif;
    color: var(--colour-6);
    margin-bottom: 10px;
}

.pricing-intro {
    font-size: 1.1em;
    color: var(--colour-6);
    margin-bottom: 40px;
}

/* Styling for the pricing grid (to make cards and button next to each other) */
.pricing-grid {
    display: flex; /* Keep as flex */
    justify-content: center; /* Center the items horizontally */
    align-items: stretch; /* Make sure items stretch to fill the height of the tallest item */
    gap: 30px; /* Space between the items */
    flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens */
    /* No margin-bottom here, as all items are now within this flex container */
}

/* Styling for individual pricing cards AND the book call section */
.pricing-card,
.book-call-section { /* Apply these styles to BOTH the cards and the button container */
    background-color: var(--colour-5); /* Card background, will be overridden for button */
    padding: 50px 30px; /* Padding for cards, will be adjusted for button */
    flex: 1; /* Allows them to grow and shrink */
    min-width: 260px; /* Slightly reduced min-width to help fit 4 on one row */
    max-width: 300px; /* Slightly reduced max-width for better fit */
    display: flex;
    flex-direction: column; /* Stack content vertically within each item */
    justify-content: space-between; /* Space out content within each item */
    text-align: left;
    border: 1px solid var(--colour-3);
    box-sizing: border-box; /* Crucial: ensures padding and border are included in width/height calculations */
}

/* Specific styling for pricing cards */
.pricing-card h3 {
    font-size: 1.8em;
    font-family: serif;
    font-weight: 400;
    color: var(--colour-3);
    margin-bottom: 15px;
    text-align: center;
}

.pricing-card .pricing-details {
    margin-top: 20px;
    width: 100%;
}

.pricing-card .price-item {
    font-size: 1.2em;
    color: var(--colour-6);
    margin-bottom: 10px;
    line-height: 1.5;
    font-family: monospace;
}


/* Styling for the book call section (now a flex item) */
.book-call-section {
    background-color: transparent; /* No background color for the overall section */
    box-shadow: none; /* No shadow for the overall section */
    border: none; /* No border for the overall section */
    padding: 0; /* No padding for the overall section */
    display: flex; /* Ensure it's a flex container for the button */
    justify-content: center; /* Center the button horizontally within its space */
    align-items: center; /* Center the button vertically within its space */
    /* Keep min/max width and flex: 1 from the shared rule above */
}

.book-call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px; /* Fixed width for the circular button itself */
    height: 200px; /* Fixed height for the circular button itself */
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--colour-3);
    color: var(--colour-3);
    font-size: 1em;
    font-weight: 300;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-align: center;
    line-height: 1.2;
    padding: 20px;
    box-sizing: border-box;
    /* Ensure the button doesn't shrink more than its size */
    flex-shrink: 0;
}

.book-call-button:hover {
    background-color: var(--colour-3);
    color: var(--colour-1);
    transform: translateY(-2px);
}


/* Media Queries for Responsiveness */
@media (max-width: 1250px) { /* Adjust this breakpoint if 4 columns don't fit */
    /* No change needed here if flex-wrap handles it, but you could adjust gap */
}

@media (max-width: 992px) { /* Tablet size, maybe 2 items per row */
    .pricing-card,
    .book-call-section {
        min-width: 300px; /* Give them more space when fewer items per row */
        max-width: 45%; /* Allows two items per row with gap */
    }
    /* REMOVE THE .pricing-grid grid-template-columns here */
}

@media (max-width: 768px) { /* Mobile size, stack all items */
    .pricing-grid {
        flex-direction: column; /* Stack all items (cards and button) vertically */
        align-items: center; /* Center them horizontally when stacked */
    }

    .pricing-card,
    .book-call-section {
        max-width: 90%; /* Allow items to take up more width on smaller screens */
        margin-bottom: 20px; /* Add space between stacked items */
        min-width: unset; /* Remove min-width when stacking to allow full width usage */
    }

    /* Adjust padding for cards when stacked */
    .pricing-card {
        padding: 25px;
    }

    .book-call-button {
        width: 200px;
        height: 200px;
        font-size: 1.2em;
    }

    /* REMOVE THE .pricing-grid grid-template-columns here */
}

@media (max-width: 480px) {
    .pricing-main-title {
        font-size: 2em;
    }

    .pricing-intro {
        font-size: 1em;
    }

    .pricing-card {
        padding: 20px;
    }

    .pricing-card h3 {
        font-size: 1.5em;
    }

    .price-item {
        font-size: 1em;
    }

    .book-call-button {
        width: 180px;
        height: 180px;
        font-size: 1em;
    }
    /* REMOVE THE .pricing-grid grid-template-columns here */
}

/*------- WELLNESS MAP (Existing Styles) -------*/
/* Kept as is. If it also has conflicting display types, you'd fix it similarly. */
.custom-wellness-map {
    text-align: center;
    margin: 90px 15% 90px 15%; /* Adjust as needed */
}

.custom-wellness-map h1 {
    font-size: 2.4em; /* Adjust as needed */
    font-family: serif;
    color: var(--colour-3); /* Adjust as needed */
    font-weight: lighter;
    width: 55%;
    text-align: left;
    margin-bottom: 30px;
}

.custom-wellness-map h2 {
    font-size: 1em; /* Adjust as needed */
    font-family: serif;
    color: var(--colour-3); /* Adjust as needed */
    margin-bottom: 15px;
    text-transform: capitalize;
    font-style: italic;
    text-align: left;
}

.wellness-areas {
    border-top: 2px solid var(--colour-3);
    padding-top: 30px;
    display: grid; /* This is fine if you intend to use Grid here */
    grid-template-columns: repeat(3, 1fr); /* Creates three equal columns */
    gap: 50px 70px; /* Increased vertical gap, standard horizontal gap */
}

.wellness-item {
    padding: 0;
    border: none;
    border-radius: 0;
    text-align: left;
}

.wellness-item h3 {
    font-size: 0.8em;
    color: #555;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wellness-item p {
    font-size: 0.85em;
    color: #777;
    line-height: 1.6;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .service-overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    /* REMOVED: .pricing-grid grid-template-columns here */
}

@media (max-width: 768px) {
    .main-therapy-introduction, .therapy-service-overview, .therapy-pricing-section {
        padding-left: 2%;
        padding-right: 2%;
    }
    .main-therapy-introduction {
        padding-top: 60px;
        padding-bottom: 60px;
        margin-bottom: 60px;
    }
    .main-therapist-portrait {
        width: 150px;
        height: 150px;
    }
    .main-therapist-name {
        font-size: 2.5em;
    }
    .main-therapist-tagline {
        font-size: 1.1em;
    }
    .main-therapist-description {
        font-size: 1em;
    }

    .therapy-service-overview {
        padding-top: 40px;
        padding-bottom: 40px;
        margin-bottom: 60px;
    }
    .overview-title {
        font-size: 2.2em;
    }
    .overview-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .service-overview-item {
        padding: 25px;
    }
    .service-overview-item h3 {
        font-size: 1.4em;
    }
    .service-overview-item p {
        font-size: 0.9em;
    }

    .therapy-pricing-section {
        padding-top: 60px;
        padding-bottom: 60px;
        margin-bottom: 60px;
    }
    .pricing-main-title {
        font-size: 2.2em;
    }
    .pricing-intro {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .pricing-card {
        padding: 25px;
    }
    .pricing-card h3 {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
    .price-item {
        font-size: 1em;
    }

    /* Wellness Map adjustments */
    .custom-wellness-map {
        margin: 60px 5% 60px 5%;
        padding: 0;
    }
    .custom-wellness-map h1 {
        width: 100%;
        text-align: center;
        font-size: 2em;
    }
    .custom-wellness-map h2 {
        text-align: center;
    }
    .wellness-areas {
        grid-template-columns: 1fr;
        gap: 25px 0;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .main-therapy-introduction {
        padding-top: 40px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    .main-therapist-portrait {
        width: 120px;
        height: 120px;
    }
    .main-therapist-name {
        font-size: 2em;
    }

    .therapy-service-overview {
        padding-top: 30px;
        padding-bottom: 30px;
        margin-bottom: 40px;
    }
    .service-overview-grid { /* REMOVED .pricing-grid here */
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-overview-item {
        padding: 20px;
    }
    .service-overview-item h3 {
        font-size: 1.3em;
    }

    .therapy-pricing-section {
        padding-top: 40px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    .pricing-card {
        padding: 20px;
    }
    .pricing-card h3 {
        font-size: 1.2em;
    }
}













/*------- CONTACT -------*/

section.contact {
    margin-top: 5%;
    background: var(--colour-1); /* Very light blue/grey background */
    color: var(--colour-3); /* Muted green/grey for main text */
}

.contact-wrapper {
    display: flex;
    max-width: 1000px; /* Adjust as needed */
    margin: auto;
    padding-bottom: 50px;
}

.contact-info {
    flex: 0 0 35%; /* Adjust width as needed */
    padding-right: 60px;
    border-right: 1.5px solid var(--colour-2); /* Light teal/blue vertical separator */
}

.contact-info h1 {
    font-family: 'serif';
    font-size: 2.2em;
    font-weight: 400;
    color: var(--colour-6); /* Darker muted blue/grey for prominent headings */
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 0.9em;
    line-height: 1.7;
    color: var(--colour-3); /* Muted green/grey for paragraph text */
    margin-bottom: 30px;
}

.contact-info .info-section {
    margin-bottom: 30px;
}

.contact-info h2 {
    font-size: 0.7em;
    font-weight: bold;
    color: var(--colour-3); /* Muted green/grey */
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info a {
    color: var(--colour-4); /* Warm orange/brown for links */
}

.contact-info span {
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact .socials-info a {
    display: inline-block;
    margin-right: 15px;
    color: var(--colour-3); /* Muted green/grey */
}

.contact .socials-info i {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.contact .socials-info a:hover i {
    color: var(--colour-4); /* Warm orange/brown on hover */
}

.contact-form-container {
    flex: 0 0 65%;
    padding-left: 60px;
}

.contact-form-container h2 {
    font-family: 'serif';
    font-size: 1.3em;
    font-weight: 400;
    color: var(--colour-6); /* Darker muted blue/grey for prominent headings */
    margin-bottom: 30px;
    text-align: left;
}

.contact-form-container form {
    display: grid;
    grid-gap: 20px;
}

.contact-form-container .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    padding: 12px;
    font-size: 1em;
    border: 1px solid var(--colour-2); /* Light teal/blue for input borders */
    border-radius: 6px;
    background-color: var(--colour-5); /* Semi-transparent white for input background */
    width: 100%;
}

.contact-form-container textarea {
    height: 120px;
    resize: vertical;
}

.contact-form-container button[type="submit"] {
    background-color: var(--colour-4); /* Muted green/grey for button background */
    color: var(--colour-5); /* Semi-transparent white for button text */
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.contact-form-container button[type="submit"]:hover {
    background-color: var(--colour-6); /* Darker muted blue/grey on hover */
}

---

/*------- SUCCESS MESSAGE -------*/
section.success-msg {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--colour-1); /* Very light blue/grey background */
    color: var(--colour-3); /* Muted green/grey for text */
    border: 1px solid var(--colour-2); /* Light teal/blue for border */
    border-radius: 8px;
    margin: 50px auto;
    max-width: 800px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.success-msg h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-family: 'serif';
    font-weight: 500;
    color: var(--colour-6); /* Darker muted blue/grey for heading */
}

.success-msg p.back {
    font-size: 1em;
}

.success-msg p.back a {
    color: var(--colour-4); /* Warm orange/brown for links */
    font-weight: bold;
    text-decoration: none;
}

.success-msg p.back a:hover {
    text-decoration: underline;
}








/* --- Media Queries --- */

/* For screens smaller than 768px (e.g., tablets, smaller laptops) */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column; /* Stack contact info and form vertically */
        padding-top: 50px;
        padding-bottom: 30px;
        max-width: 90%; /* Adjust max-width for better fit */
    }

    .contact-info {
        flex: auto; /* Allow content to take full width */
        padding-right: 0; /* Remove right padding */
        border-right: none; /* Remove vertical separator */
        border-bottom: 1.5px solid var(--colour-2); /* Add horizontal separator */
        padding-bottom: 30px;
        margin-bottom: 30px;
        text-align: center; /* Center align text for info section */
    }

    .contact-info h1,
    .contact-info p,
    .contact-info h2,
    .contact-info .socials-info {
        text-align: center; /* Ensure all text in info section is centered */
    }

    .contact-form-container {
        flex: auto; /* Allow content to take full width */
        padding-left: 0; /* Remove left padding */
        text-align: center; /* Center form content */
    }

    .contact-form-container h2 {
        text-align: center; /* Center align form heading */
        margin-bottom: 20px; /* Adjust margin */
    }

    .contact-form-container form {
        display: block; /* Change grid to block for simpler stacking */
    }

    .contact-form-container .form-group {
        margin-bottom: 20px; /* Add space between form groups */
    }

    .contact-form-container button[type="submit"] {
        width: 100%; /* Make button full width */
        padding: 15px; /* Increase padding for easier tapping */
        font-size: 1em;
    }
}

/* For screens smaller than 480px (e.g., mobile phones) */
@media (max-width: 480px) {
    section.contact {

        padding: 15px; /* Reduce overall padding */
    }

    .contact-wrapper {
        padding-top: 30px;
        padding-bottom: 20px;
        max-width: 95%; /* Even narrower for very small screens */
    }

    .contact-info h1 {
        font-size: 1.8em; /* Smaller heading on mobile */
    }

    .contact-info p {
        font-size: 0.85em; /* Slightly smaller paragraph text */
    }

    .contact-info .info-section {
        margin-bottom: 20px; /* Reduce margin */
    }

    .contact-info h2 {
        font-size: 0.65em; /* Smaller sub-heading */
    }

    .contact .socials-info a {
        margin-right: 10px; /* Reduce spacing between social icons */
    }

    .contact-form-container h2 {
        font-size: 1.1em; /* Smaller form heading */
        margin-bottom: 20px;
    }

    .contact-form-container input[type="text"],
    .contact-form-container input[type="email"],
    .contact-form-container textarea {
        padding: 10px; /* Slightly less padding for inputs */
        font-size: 0.95em;
    }

    .contact-form-container textarea {
        height: 100px; /* Slightly shorter textarea */
    }

    /* Success message adjustments for mobile */
    section.success-msg {
        padding: 30px 15px; /* Reduce padding */
        margin: 30px auto; /* Adjust margin */
        max-width: 90%; /* Narrower for mobile */
    }

    .success-msg h1 {
        font-size: 1.5em; /* Smaller heading */
    }

    .success-msg p.back {
        font-size: 0.9em; /* Smaller paragraph text */
    }
}



/*------- HOME -------*/

.container-home {
    display: flex;
    align-items: center;
    max-width: 1200px;
    padding: 4% 20px; /* Added horizontal padding for smaller screens */
    margin: 0 auto; /* Center the container */
}

img.author {
    width: 550px;
    height: auto;
    padding-right: 10%;
}

.intro {
    width: 60%;
}

.intro h1 {
    font-family: serif;
    font-weight: 300;
    font-size: 2.5em;
    margin-bottom: 10px;
    margin-top: 30px;
    color: var(--colour-6); /* Darker muted blue/grey */
}

.intro h2 {
    padding-left: 3px;
    letter-spacing: 0.05em;
    font-size: 0.8em;
    color: var(--colour-3); /* Muted green/grey */
    margin-bottom: 20px;
    text-transform: uppercase;
}

.intro p {
    padding-left: 3px;
    line-height: 1.5;
    font-size: 0.8em;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    color: var(--colour-3); /* Muted green/grey */
}

/*------- key-points -------*/
.key-points {
    padding: 50px 20px; /* Adjusted horizontal padding */
    text-align: center;
}

.key-points h2 {
    font-family: serif;
    font-size: 1.7em;
    color: var(--colour-6); /* Darker muted blue/grey */
    margin-bottom: 40px;
    font-weight: 300;
}

.key-points .different-points {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.key-points .point {
    flex: 1;
    padding: 0 20px;
    text-align: left;
    position: relative;
}

.key-points .point h4 {
    font-size: 0.8em;
    color: var(--colour-3); /* Muted green/grey */
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
    text-align: center;
}

.key-points .point p {
    font-size: 0.8em;
    color: var(--colour-3); /* Muted green/grey */
    line-height: 1.6;
    text-align: center;
}

/* Vertical separators */
.key-points .different-points .point:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 80px;
    /* Using rgba with --colour-6 for consistency with original color and opacity */
    background-color: rgba(var(--colour-6-rgb), 0.76);
}

/*------- mission -------*/
.mission {
    padding: 60px 20px; /* Adjusted horizontal padding */
    text-align: center;
}

.mission h3 {
    font-size: 0.9em;
    color: var(--colour-3); /* Muted green/grey */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.mission h2 {
    font-family: 'serif';
    font-size: 2.2em;
    color: var(--colour-6); /* Darker muted blue/grey */
    line-height: 1.3;
    margin-bottom: 25px;
    font-weight: 400;
}

.mission p {
    font-size: 1em;
    color: var(--colour-3); /* Muted green/grey */
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.mission .steps {
    margin-top: 60px;
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.mission .steps::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80%;
    margin-top: 7%;
    background-color: var(--colour-2); /* Light teal/blue */
    z-index: -1;
}

.steps h5 {
    font-size: 1.2em;
    font-family: serif;
    font-style: italic;
    font-weight: 500;
    color: var(--colour-6); /* Darker muted blue/grey */
    margin-bottom: 50px;
    text-transform: capitalize;
    letter-spacing: 0.1em;
}

.steps .how-it-works-layout {
    max-width: 1000px;
    margin: 0 auto;
    overflow: auto;
}

.steps .how-it-works-item {
    width: 100%;
    margin-bottom: 80px;
    overflow: auto;
}

.how-it-works-item .text-content {
    width: 45%;
    float: left;
    text-align: right;
    padding-right: 20px;
    margin-top: 6%;
}

.text-content h4 {
    font-size: 0.8em;
    color: var(--colour-3); /* Muted green/grey */
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.image-content {
    width: 45%;
    float: right;
}

.how-it-works-item.left .text-content {
    float: right;
    text-align: left;
    padding-left: 20px;
    padding-right: 0;
}

.how-it-works-item.left .image-content {
    float: left;
}

.how-it-works-item img.how-it-works-img {
    max-width: 90%;
    height: auto;
}

.how-it-works-item p {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--colour-3); /* Muted green/grey */
    margin-bottom: 0;
}

/*------- bottom-container -------*/
.bottom-container {
    display: flex;
    padding: 50px 20px; /* Adjusted horizontal padding */
    background-color: var(--colour-1); /* Very light blue/grey */
}

/*------- left-section -------*/
.bottom-container .left-section {
    flex: 0.8;
    margin-left: 15%;
}

.left-section h4 {
    font-size: 0.8em;
    color: var(--colour-3); /* Muted green/grey */
    width: 40%;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.left-section .main-point h2 {
    font-family: 'serif';
    font-size: 2.7em;
    font-weight: 300;
    width: 40%;
    line-height: 1;
    color: var(--colour-3); /* Muted green/grey */
    text-transform: lowercase;
    margin-bottom: 30px;
}

.left-section .main-point p {
    font-size: 0.8em;
    width: 40%;
    line-height: 1.5;
    color: var(--colour-3); /* Muted green/grey */
    margin-bottom: 35px;
}

.left-section .submit-btn {
    background-color: transparent;
    color: var(--colour-6); /* Darker muted blue/grey */
    width: 225px;
    border: 1.5px solid var(--colour-2); /* Light teal/blue */
    padding: 10px 10px;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    text-transform: uppercase;
    font-weight: 600;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.bottom-container .left-section .submit-btn:hover {
    background-color: var(--colour-4); /* Darker muted blue/grey */
    color: var(--colour-5); /* Semi-transparent white */
}

.submit-btn img.arrow {
    width: 17px;
    height: 17px;
    margin-left: 10px;
    /* Note: color property on img only works if it's an SVG and fill/stroke are currentColor */
}

/* No specific hover color for image via CSS here, it would be done via SVG fill/stroke */
/* .submit-btn img.arrow:hover {
    color: #fff;
} */


/*------- right-section -------*/
.bottom-container .right-section {
    max-width: 40%;
    padding-left: 6px;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    --line-top-js: 0px;
    --line-height-js: 0px;
}

.bottom-container .right-section::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 1px;
    /* Using rgba with --colour-6 for consistency with original color and opacity */
    background-color: rgba(var(--colour-6-rgb), 0.33);
    z-index: 0;
    top: var(--line-top-js);
    height: var(--line-height-js);
}

.right-section .process-step {
    margin-bottom: 50px;
    padding-left: 40px;
    position: relative;
    z-index: 1;
}

.process-step:last-child {
    margin-bottom: 0;
    padding-bottom: 40px;
}

.process-step .marker {
    position: absolute;
    top: 25px;
    left: 0;
    width: 9px;
    height: 9px;
    /* Using rgba with --colour-6 for consistency with original color and opacity */
    background-color: rgba(var(--colour-6-rgb), 0.38);
    border-radius: 50%;
    /* Using rgba with --colour-6 for consistency with original color and opacity */
    border: 1px solid rgba(var(--colour-6-rgb), 0.58);
}

.process-step h4 {
    font-size: 0.8em;
    color: var(--colour-6); /* Darker muted blue/grey */
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.process-step p {
    width: 200px;
    font-size: 0.8em;
    line-height: 1.4;
    color: var(--colour-3); /* Muted green/grey */
}


/* --- Media Queries --- */

/* For screens smaller than 1024px (Laptops, larger tablets) */
@media (max-width: 1024px) {
    .container-home {
        max-width: 95%; /* Adjust max-width slightly */
    }

    img.author {
        width: 45%; /* Make image take less width */
        padding-right: 5%;
    }

    .intro {
        width: 50%; /* Adjust intro width */
    }

    /* Key points */
    .key-points .point {
        padding: 0 15px; /* Reduce horizontal padding for points */
    }

    /* Mission section - steps layout adjustments */
    .steps .how-it-works-item {
        margin-bottom: 60px; /* Reduce spacing between items */
    }
}


/* For screens smaller than 768px (Tablets, smaller laptops) */
@media (max-width: 768px) {
    .container-home {
        flex-direction: column; /* Stack image and intro vertically */
        padding-top: 5%;
        padding-bottom: 5%;
    }

    img.author {
        width: 80%; /* Make image wider on smaller screens */
        padding-right: 0;
        margin-bottom: 30px; /* Space below image */
    }

    .intro {
        width: 90%; /* Intro takes more width */
        text-align: center; /* Center align all text in intro */
        margin: 0 auto;
    }

    .intro h1,
    .intro h2,
    .intro p {
        padding-left: 0; /* Remove left padding for centering */
        text-align: center; /* Ensure all text is centered */
    }

    .intro h1 {
        font-size: 2em; /* Slightly smaller heading */
    }

    .intro h2 {
        font-size: 0.75em;
    }

    .intro p {
        font-size: 0.8em;
    }

    /* Key points */
    .key-points .different-points {
        flex-direction: column; /* Stack points vertically */
        align-items: center; /* Center points when stacked */
    }

    .key-points .point {
        flex: auto; /* Allow points to take full width */
        padding: 20px 0; /* Add vertical padding, remove horizontal */
        border-bottom: 1px solid var(--colour-2); /* Add horizontal separator */
        margin-bottom: 20px;
        width: 90%; /* Constrain width of stacked points */
    }

    .key-points .point:last-child {
        border-bottom: none; /* Remove border from the last item */
        margin-bottom: 0;
    }

    .key-points .point:not(:first-child)::before {
        content: none; /* Remove vertical separators when stacked */
    }

    /* Mission section */
    .mission {
        padding: 40px 15px; /* Adjust padding */
    }

    .mission h2 {
        font-size: 1.8em;
    }

    .mission p {
        font-size: 0.95em;
    }

    /* Mission steps layout */
    .mission .steps::before {
        content: none; /* Remove the vertical line on smaller screens */
    }

    .steps h5 {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .steps .how-it-works-item {
        display: flex; /* Use flex for stacking content inside */
        flex-direction: column; /* Stack text and image vertically */
        margin-bottom: 40px;
    }

    .how-it-works-item .text-content,
    .how-it-works-item .image-content {
        width: 100%; /* Take full width */
        float: none; /* Remove floats */
        padding-right: 0;
        padding-left: 0;
        text-align: center; /* Center text content */
    }

    .how-it-works-item .text-content {
        order: 2; /* Ensure text comes after image on normal flow */
        margin-top: 20px; /* Space between image and text */
    }

    .how-it-works-item .image-content {
        order: 1; /* Ensure image comes first */
    }

    /* Handle the 'left' variation specifically */
    .how-it-works-item.left .text-content {
        order: 2; /* Text still comes after image */
        text-align: center;
    }

    .how-it-works-item.left .image-content {
        order: 1; /* Image still comes first */
    }

    .how-it-works-item img.how-it-works-img {
        max-width: 90%; /* Adjust image size */
        margin: 0 auto; /* Center image */
        display: block; /* Ensure block for centering */
    }

    .text-content h4 {
        font-size: 0.75em;
    }

    .how-it-works-item p {
        font-size: 0.85em;
    }

    /* Bottom container */
    .bottom-container {
        flex-direction: column; /* Stack sections vertically */
        padding: 40px 15px;
    }

    .bottom-container .left-section {
        flex: auto;
        margin-left: 0; /* Remove left margin */
        width: 100%; /* Take full width */
        text-align: center; /* Center content */
        padding-bottom: 40px; /* Space before right section */
        border-bottom: 1px solid var(--colour-2); /* Add separator */
        margin-bottom: 40px; /* Space for separator */
    }

    .left-section h4,
    .left-section .main-point h2,
    .left-section .main-point p {
        width: 90%; /* Allow wider text content */
        margin-left: auto;
        margin-right: auto;
        text-align: center; /* Center align text elements */
    }

    .left-section .main-point h2 {
        font-size: 2.2em; /* Smaller heading */
    }

    .left-section .submit-btn {
        width: 80%; /* Adjust button width */
        margin: 0 auto; /* Center button */
        justify-content: center; /* Center icon and text inside button */
    }

    .bottom-container .right-section {
        max-width: 100%; /* Take full width */
        padding-left: 0; /* Remove left padding */
        text-align: center; /* Center content */
    }

    .bottom-container .right-section::before {
        content: none; /* Remove vertical line on smaller screens */
    }

    .right-section .process-step {
        padding-left: 0; /* Remove left padding */
        text-align: center; /* Center step content */
        margin-bottom: 30px; /* Adjust spacing */
    }

    .process-step .marker {
        position: static; /* Position marker normally */
        margin: 0 auto 10px auto; /* Center marker and add space below */
        display: block; /* Ensure it takes full width for centering */
    }

    .process-step h4 {
        font-size: 0.75em;
    }

    .process-step p {
        width: 90%; /* Adjust paragraph width */
        margin: 0 auto; /* Center paragraph */
    }
}

/* For screens smaller than 480px (Mobile phones) */
@media (max-width: 480px) {
    .container-home {
        padding-top: 8%;
        padding-bottom: 8%;
    }

    img.author {
        width: 90%; /* Even wider for very small screens */
    }

    .intro {
        width: 95%; /* Take almost full width */
    }

    .intro h1 {
        font-size: 1.8em;
    }

    .intro h2 {
        font-size: 0.7em;
    }

    .intro p {
        font-size: 0.75em;
    }

    /* Key points */
    .key-points {
        padding: 30px 10px;
    }

    .key-points h2 {
        font-size: 1.5em;
        margin-bottom: 30px;
    }

    .key-points .point {
        padding: 15px 0;
        margin-bottom: 15px;
        width: 95%;
    }

    .key-points .point h4 {
        font-size: 0.7em;
    }

    .key-points .point p {
        font-size: 0.7em;
    }

    /* Mission section */
    .mission {
        padding: 30px 10px;
    }

    .mission h2 {
        font-size: 1.6em;
    }

    .mission p {
        font-size: 0.9em;
    }

    .steps h5 {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .steps .how-it-works-item {
        margin-bottom: 30px;
    }

    .how-it-works-item .text-content {
        margin-top: 15px;
    }

    .text-content h4 {
        font-size: 0.7em;
    }

    .how-it-works-item p {
        font-size: 0.8em;
    }

    /* Bottom container */
    .bottom-container {
        padding: 30px 10px;
    }

    .bottom-container .left-section {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .left-section h4 {
        font-size: 0.75em;
    }

    .left-section .main-point h2 {
        font-size: 1.8em;
    }

    .left-section .main-point p {
        font-size: 0.75em;
    }

    .left-section .submit-btn {
        width: 90%;
    }

    .right-section .process-step {
        margin-bottom: 25px;
    }

    .process-step h4 {
        font-size: 0.7em;
    }

    .process-step p {
        font-size: 0.75em;
    }
}



/* General Styling for the section */
.services-container {
    background-color: var(--colour-2); /* Very light blue/grey background */
    padding: 60px 20px; /* Added horizontal padding */
    text-align: center;
    color: var(--colour-3); /* Muted green/grey for general text */
}

.services-container h1 {
    font-size: 2.5em;
    color: var(--colour-6); /* Warm orange/brown for the heading */
    margin-bottom: 15px;
    font-weight: 300;
    font-family: serif;
}

.services-container p {
    font-size: 1.1em;
    color: var(--colour-1); /* Muted green/grey for paragraph text */
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

/* Grid for service options */
.service-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between cards */
    max-width: 1000px; /* Max width of the grid */
    margin: 0 auto;
}

/* Individual service card styling */
.service-card {
    background-color: white; /* Solid white background for cards */
    padding: 20px 40px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Pushes content and button apart */
    text-align: center;
    min-height: 350px; /* Ensure consistent height for cards */
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Added transition for smooth hover */
}

.service-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.service-icon {
    width: 90px;
    height: 90px;
    background-color: var(--colour-1); /* Very light blue/grey background for the icon circle */
    border-radius: 50%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    /* This filter makes the icon grey. You might adjust it to match your color palette better. */
    /* Example to match --colour-3: filter: invert(43%) sepia(10%) saturate(1469%) hue-rotate(97deg) brightness(97%) contrast(85%); */
    filter: invert(35%) sepia(10%) saturate(100%) hue-rotate(150deg) brightness(80%) contrast(80%);
}

.service-card h2 {
    font-size: 1.25em;
    color: var(--colour-3); /* Muted green/grey */
    font-family: sans-serif;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.learn-more-btn {
    display: inline-block;
    padding: 5px 12px;
    background-color: transparent;
    color: var(--colour-4); /* Warm orange/brown for button text */
    border: 1px solid var(--colour-4); /* Border matching text color */
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
    margin-bottom: 20px;
}

.learn-more-btn:hover {
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

}

/* General Service Page Layout */
.services-main-content {
    background-color: var(--colour-1); /* Very light blue/grey background for the entire content area */
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    min-height: calc(100vh - var(--header-height, 0px)); /* Ensure it fills viewport. Added fallback for --header-height */
}

.service-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 2px;
    border: 1px solid var(--colour-2); /* Light teal/blue for border */
    text-align: center;
    color: var(--colour-3); /* Muted green/grey for main text */
    background-color: white; /* Ensures section background is white */
}

.service-container {
    max-width: 600px;
    margin: 0 auto;
}

/* CBT Therapy Section Styling */
.cbt-therapy-section {
    background-color: white; /* Solid white background */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-title-heading {
    font-size: 1.2em;
    color: var(--colour-4); /* Warm orange/brown */
    margin-bottom: 5px;
    font-weight: 400;
}

.service-subtitle-heading {
    font-size: 2.5em;
    color: var(--colour-4); /* Warm orange/brown */
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.service-description p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--colour-3); /* Muted green/grey */
    text-align: left;
}

.service-pricing-options {
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--colour-4); /* Warm orange/brown */
}

.service-price-item {
    margin-bottom: 10px;
}


/* --- Media Queries for Responsiveness --- */

/* For screens smaller than 1024px (Laptops, larger tablets) */
@media (max-width: 1024px) {
    .services-container {
        padding: 50px 15px; /* Adjust padding */
    }

    .service-options-grid {
        gap: 25px; /* Slightly reduced gap */
        max-width: 95%; /* Use more of the available width */
    }

    .service-card {
        min-height: 320px; /* Slightly reduce min-height */
        padding: 20px 30px; /* Adjust padding */
    }

    .services-main-content {
        padding: 40px 15px;
        gap: 30px;
    }

    .service-section {
        padding: 30px; /* Reduce padding */
        max-width: 95%; /* Use more width */
    }

    .service-subtitle-heading {
        font-size: 2.2em; /* Slightly smaller heading */
    }
}


/* For screens smaller than 768px (Tablets, smaller laptops) */
@media (max-width: 768px) {
    .services-container h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .services-container p {
        font-size: 1em;
        margin-bottom: 30px;
        max-width: 90%; /* Adjust width for smaller screens */
    }

    .service-options-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
        gap: 20px;
        max-width: 85%; /* Adjust width for stacked cards */
    }

    .service-card {
        min-height: auto; /* Allow height to adjust naturally */
        padding: 30px 20px; /* Increase vertical padding, reduce horizontal */
    }

    .services-main-content {
        padding: 30px 10px;
        gap: 25px;
    }

    .service-section {
        padding: 25px; /* Further reduce padding */
        max-width: 90%;
    }

    .service-title-heading {
        font-size: 1.1em;
    }

    .service-subtitle-heading {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .service-description p {
        font-size: 0.95em;
        margin-bottom: 20px;
        text-align: center; /* Center align text on mobile */
    }

    .service-pricing-options {
        font-size: 1em;
        text-align: center; /* Center align pricing details on mobile */
    }
}

/* For screens smaller than 480px (Mobile phones) */
@media (max-width: 480px) {
    .services-container {
        padding: 40px 10px; /* Further reduce padding */
    }

    .services-container h1 {
        font-size: 1.7em;
    }

    .services-container p {
        font-size: 0.9em;
        margin-bottom: 25px;
        max-width: 95%;
    }

    .service-options-grid {
        gap: 15px;
        max-width: 95%;
    }

    .service-card {
        padding: 25px 15px;
    }

    .service-icon {
        width: 70px; /* Smaller icon size */
        height: 70px;
        margin-bottom: 15px;
    }

    .service-icon img {
        width: 50px; /* Smaller image inside icon */
        height: 50px;
    }

    .service-card h2 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .learn-more-btn {
        padding: 4px 10px;
        font-size: 0.9em;
    }

    .services-main-content {
        padding: 20px 5px;
        gap: 20px;
    }

    .service-section {
        padding: 20px;
        max-width: 95%;
    }

    .service-title-heading {
        font-size: 1em;
    }

    .service-subtitle-heading {
        font-size: 1.6em;
    }

    .service-description p {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    .service-pricing-options {
        font-size: 0.95em;
    }
}
