/* Greenway Training Public Styles */

/* ==========================================================================
   Variables (Design System)
   ========================================================================== */
:root {
    --gt-primary-green: #006a3c;
    --gt-primary-orange: #f7b119;
    --gt-light-gray: #f5f6f6;
    --gt-text-primary: #252525;
    --gt-text-secondary: #b0cfc1;
    --gt-white: #ffffff;
    --gt-border-color: #e0e0e0;
    --gt-font-primary: 'Roboto', sans-serif;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.gt-course-details {
    font-family: var(--gt-font-primary);
    color: var(--gt-text-primary);
    line-height: 1.6;
}

.gt-course-details h1,
.gt-course-details h2,
.gt-course-details h3,
.gt-course-details h4 {
    font-weight: 700;
    margin-top: 0;
}

/* ==========================================================================
   Container
   ========================================================================== */
.gt-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Course Header Section
   ========================================================================== */
.gt-course-header {
    background: var(--gt-primary-green);
    background-image: url('../images/Lines-for-courses-banner-dt.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--gt-white);
    padding: 60px 0 60px;
    position: relative;
}

.gt-course-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.gt-course-header-left {
    flex: 1;
}

.gt-course-header-right {
    flex-shrink: 0;
    max-width: 250px;
}

.gt-awarding-body-logo {
    background: var(--gt-white);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-awarding-body-logo img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

/* Mobile logo - hidden on desktop, shown on mobile */
.gt-awarding-body-logo-mobile {
    display: none;
}

.gt-course-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: var(--gt-white);
    font-family: var(--gt-font-primary);
    width: 70%;
}

.gt-breadcrumb {
    font-size: 16px;
    font-weight: 600;
    color: var(--gt-text-secondary);
    font-family: var(--gt-font-primary);

}

.gt-breadcrumb a {
    color: var(--gt-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.gt-breadcrumb a:hover {
    color: var(--gt-white);
}

.gt-breadcrumb-separator {
    margin: 0 8px;
}

.gt-breadcrumb-current {
    font-weight: 700;
    color: var(--gt-white);
}

/* ==========================================================================
   Course Content Layout
   ========================================================================== */
.gt-course-content {
    padding: 50px 0;
    background: var(--gt-white);
}

.gt-course-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.gt-course-main {
    min-width: 0;
}

.gt-course-description {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: var(--gt-text-primary);
    padding-right: 50px !important;
}

.gt-course-description p {
    margin: 0 0 15px 0;
}

.gt-course-description p:last-child {
    margin-bottom: 0;
}

/* Course Info Table */
.gt-course-info-table {
    margin: 30px 0;
}

.gt-course-info-table table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.gt-course-info-table th,
.gt-course-info-table td {
    padding: 5px 0;
    text-align: left;
    font-weight: 700;
    font-size: 24px;
    color: var(--gt-text-primary);
    border: none;
}

.gt-course-info-table th {
    width: 220px;
}

.gt-course-info-table tr {
    border: none;
}

/* Action Buttons */
.gt-course-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: flex-start;
}

.gt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    width: fit-content;
    border-radius: 0;
}

.gt-btn .dashicons {
    font-size: 18px;
    width: 16px;
    height: 16px;
}

.gt-btn-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* This filter converts black SVG to white */
}

.gt-btn-icon[src*=".png"] {
    width: 20px;
    height: 20px;
}

.gt-btn-primary {
    background: var(--gt-primary-orange);
    color: var(--gt-white);
}

.gt-btn-primary:hover {
    background: var(--gt-primary-green);
    color: var(--gt-white);
}

.gt-btn-secondary {
    background: transparent;
    color: var(--gt-primary-green);
    border: 2px solid var(--gt-primary-green);
}

.gt-btn-secondary:hover {
    background: var(--gt-primary-green);
    color: var(--gt-white);
}

.gt-btn-book {
    background: var(--gt-primary-orange);
    color: var(--gt-white);
    padding: 8px 20px;
    font-size: 12px;
}

.gt-btn-book:hover {
    background: #e5a10f;
}

.gt-btn.disabled,
.gt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gt-btn.disabled:hover,
.gt-btn:disabled:hover {
    background: var(--gt-primary-orange);
}

/* ==========================================================================
   Sidebar - Images & Partners
   ========================================================================== */
.gt-course-banner {
    margin-bottom: 15px;
}

.gt-course-banner img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.gt-course-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.gt-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.gt-partners {
    background: transparent;
    padding: 25px 0 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.gt-partners h4 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    color: var(--gt-text-primary);
    white-space: nowrap;
}

.gt-partners-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
    flex-wrap: wrap;
}

.gt-partners-logos img {
    max-height: 100px;
    height: auto;
    width: 150px;
    object-fit: contain;
}

/* ==========================================================================
   Booking Banner
   ========================================================================== */
.gt-booking-banner {
    background: var(--gt-primary-green);
    color: var(--gt-white);
    padding: 20px 0;
    font-style: italic;
    text-align: center;
}

.gt-booking-banner h2 {
    margin: 0;
    font-weight: 700;
    color: var(--gt-white);
}

/* ==========================================================================
   Course Sections (Accordion)
   ========================================================================== */
.gt-course-sections {
    padding: 80px 0 50px 0;
    background: var(--gt-white);
}

.gt-sections-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.gt-sections-main h2 {
    font-size: 28px;
    margin-bottom: 30px;
    margin-top: 0;
}

.gt-sections-sidebar h2 {
    font-size: 28px;
    margin-bottom: 30px;
    margin-top: 0;
}

/* Accordion */
.gt-accordion-item {
    background: var(--gt-white);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* When expanded, remove shadow */
.gt-accordion-item.active {
    box-shadow: none;
    overflow: visible;
}

.gt-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--gt-white);
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    transition: background 0.3s, color 0.3s, border-radius 0.3s;
    color: var(--gt-text-primary);
    border-radius: 8px;
}

.gt-accordion-header:hover {
    background: var(--gt-light-gray);
}

/* Active/Expanded State */
.gt-accordion-item.active .gt-accordion-header {
    background: var(--gt-primary-green);
    color: var(--gt-white);
    border-radius: 8px;
    margin-bottom: 10px;
}

.gt-accordion-item.active .gt-accordion-header:hover {
    background: var(--gt-primary-green);
}

.gt-accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-accordion-icon img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform: rotate(0deg);
    /* No rotation when collapsed */
    filter: invert(23%) sepia(91%) saturate(1524%) hue-rotate(137deg) brightness(94%) contrast(101%);
    /* This filter converts black SVG to green (#006a3c) */
}

.gt-accordion-item.active .gt-accordion-icon img {
    transform: rotate(90deg);
    /* Rotate 90° when expanded */
    filter: brightness(0) invert(1);
    /* This filter converts to white when expanded */
}

.gt-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--gt-white);
}

.gt-accordion-item.active .gt-accordion-content {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
    background: transparent;
}

.gt-accordion-content>div {
    padding: 5px 25px 25px;
}

.gt-accordion-item.active .gt-accordion-content>div {
    padding: 20px 25px 0 25px;
}

.gt-accordion-content p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.gt-accordion-content p:last-child {
    margin-bottom: 0;
}

.gt-accordion-item.active .gt-accordion-content p:last-child {
    margin-bottom: 15px;
}

/* Once Complete Section */
.gt-once-complete {
    background: var(--gt-light-gray);
    padding: 30px;
    margin-top: 70px;
}

.gt-once-complete h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.gt-checkmark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gt-checkmark-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.gt-checkmark-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 22px;
    background-image: url('../images/Green-Tick.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* See More Button */
.gt-see-more-btn {
    background: none;
    border: none;
    color: var(--gt-primary-green);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--gt-font-primary);
    cursor: pointer;
    padding: 10px 0;
    margin-top: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.gt-see-more-btn:hover {
    color: var(--gt-primary-orange);
}

.gt-see-more-btn:focus {
    outline: none;
}

/* ==========================================================================
   Additional Information
   ========================================================================== */
.gt-additional-info {
    margin-top: 40px;
}

.gt-additional-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Booking Terms
   ========================================================================== */
.gt-terms-main {
    margin-top: 50px;
}

.gt-terms-main h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.gt-terms-excerpt {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Prerequisites Box */
.gt-prerequisites {
    margin-top: 30px;
    padding-top: 0;
    border-radius: 8px;
}

.gt-prerequisites h2 {
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 28px;
}

.gt-bullet-list {
    list-style: none;
    padding: 0;
    padding-left: 20px;
    margin: 0 0 20px 0;
}

.gt-bullet-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.gt-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 13px;
    height: 13px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><circle cx="5" cy="5" r="5" fill="%23006a3c"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.gt-prerequisite {
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid var(--gt-border-color);
}


/* The gt-prerequisite-checkbox */
.gt-prerequisite-checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 18px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
   
}

.gt-prerequisite-checkbox-error {
    text-decoration-line: underline;
    text-decoration-color: #e63946;
    text-decoration-thickness: 2px;  
}

/* Hide the browser's default checkbox */
.gt-prerequisite-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.gt-prerequisite-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.gt-prerequisite-checkbox:hover input~.gt-prerequisite-checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.gt-prerequisite-checkbox input:checked~.gt-prerequisite-checkmark {
    background-color: #006a3c;
}

/* Create the gt-prerequisite-checkmark/indicator (hidden when not checked) */
.gt-prerequisite-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the gt-prerequisite-checkmark when checked */
.gt-prerequisite-checkbox input:checked~.gt-prerequisite-checkmark:after {
    display: block;
}

/* Style the gt-prerequisite-checkmark/indicator */
.gt-prerequisite-checkbox .gt-prerequisite-checkmark:after {
    left: 10px;
    top: 6px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


/* ==========================================================================
   Dates and Availability
   ========================================================================== */
.gt-dates-availability {
    padding: 50px 0;
    background: #006a3c;
}

.gt-dates-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    align-items: start;
}

.gt-dates-main {
    background: var(--gt-white);
}

/* Dates Header */
.gt-dates-header {
    background: var(--gt-primary-orange);
    padding: 15px 20px;
    margin-bottom: 0;
}

.gt-dates-header h2 {
    font-size: 32px;
    margin: 0;
    color: var(--gt-white);
    font-weight: 700;
}

/* Dates Table */
.gt-dates-table-wrapper {
    overflow-x: auto;
    padding: 20px;
}

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

.gt-dates-table thead {
    background: #efefef;
    color: var(--gt-text-primary);
}

.gt-dates-table th {
    padding: 5px 5px;
    text-align: left;
    font-weight: 700;
    font-size: 18px;
    color: var(--gt-text-primary);
    border: none;
}

.gt-dates-table td {
    padding: 5px 5px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    color: var(--gt-text-primary);
    background: var(--gt-white);
}

.gt-dates-table tbody tr:hover {
    background: #f9f9f9;
}

.gt-dates-table tbody tr:hover td {
    background: #f9f9f9;
}

.gt-dates-table tbody tr:last-child td {
    border-bottom: none;
}

/* Book Now Button in Table */
.gt-dates-table .gt-btn-book {
    background: var(--gt-primary-orange);
    color: var(--gt-white);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
}

.gt-dates-table .gt-btn-book:hover {
    background: #e5a10f;
}

/* Bespoke Box */
.gt-bespoke-box {
    background: var(--gt-white);
    color: var(--gt-text-primary);
    padding: 35px 30px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gt-bespoke-box h3 {
    font-size: 24px;
    margin-bottom: 18px;
    margin-top: 0;
    color: var(--gt-text-primary);
    font-weight: 700;
}

.gt-bespoke-box p {
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 15px;
    color: var(--gt-text-primary);
}

.gt-bespoke-box .gt-btn-enquire {
    background: var(--gt-primary-orange);
    color: var(--gt-white);
    border: none;
    padding: 14px 14px;
    width: fit-content;
}

.gt-bespoke-box .gt-btn-enquire:hover {
    background: var(--gt-primary-green);
    color: var(--gt-white);
}


/* Empty Schedule */
.di_schedule-empty {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
}

.di_schedule-empty p {
    font-size: 28px;
    font-weight: 700;
    color: var(--gt-text-primary);
    margin-bottom: 20px;
}

.di_schedule-empty .gt-btn-enquire {
    background: var(--gt-primary-orange);
    color: var(--gt-white);
    border: none;
    padding: 14px 14px;
    width: fit-content;
}

.di_schedule-empty .gt-btn-enquire:hover {
    background: var(--gt-primary-green);
    color: var(--gt-white);
}


/* ==========================================================================
   Legacy Styles (Preserved)
   ========================================================================== */

/* Terms & Conditions Link */
.greenway-terms-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.greenway-terms-link:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    text-decoration: none;
}

.greenway-terms-link:before {
    content: "\f481";
    font-family: "dashicons";
    font-size: 16px;
}

/* Course Terms Section */
.greenway-course-terms {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    border-radius: 0 4px 4px 0;
}

.greenway-course-terms h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1d2327;
}

.greenway-course-terms p {
    margin: 0 0 10px 0;
    color: #646970;
    font-size: 14px;
    line-height: 1.5;
}

.gt-courses-page-image-mobile {
    display: none;
}


/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {

    .gt-course-layout,
    .gt-sections-layout,
    .gt-terms-layout,
    .gt-dates-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gt-course-sidebar {
        order: -1;
    }

    .gt-once-complete {
        margin-top: 60px;
    }

}

@media (max-width: 768px) {

    .gt-once-complete {
        margin-top: 10px;
    }

    .gt-container {
        padding: 0;
    }

    .gt-course-header {
        padding: 30px 0 20px;
        background: var(--gt-white);
        background-image: none;
    }

    .gt-course-header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .gt-course-header-left {
        display: grid;
        grid-template-columns: 77% 23%;
        grid-template-rows: auto auto;
        gap: 15px 0;
        align-items: start;
    }

    /* Hide desktop logo on mobile */
    .gt-course-header-right {
        display: none;
    }

    /* Show mobile logo on mobile - positioned in grid */
    .gt-awarding-body-logo-mobile {
        display: block;
        background: var(--gt-white);
        padding: 0;
        width: fit-content;
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        justify-self: end; 
    }

    .gt-courses-page-image-mobile {
        display: block;
        background: var(--gt-white);
        padding: 0;
        width: fit-content;
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        justify-self: end; 
    }

    .gt-awarding-body-logo-mobile img {
        max-width: 70px;
        height: auto;
        max-height: 100px;
        object-fit: contain;
        display: block;
    }

    .gt-courses-page-image-mobile img {
        max-width: 70px;
        height: auto;
        max-height: 100px;
        object-fit: contain;
        display: block;
    }

    .gt-course-description {
        font-size: 16px;
        padding-right: 0 !important;
    }

    .gt-course-title {
        font-size: 24px;
        color: var(--gt-primary-green);
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        width: 100%;
    }

    .gt-breadcrumb {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .gt-breadcrumb {
        font-size: 12px;
        color: var(--gt-text-primary);
    }
    
    .gt-breadcrumb a {
        color: var(--gt-text-primary);
    }
    
    .gt-breadcrumb a:hover,
    .gt-breadcrumb a:focus {
        color: var(--gt-primary-green);
    }

    .gt-breadcrumb-current {
        font-weight: 700;
        color: var(--gt-text-primary);
    }

    .gt-additional-info {
        margin-top: 20px;
    }

    .gt-terms-main {
        margin-top: 10px;
    }

    .gt-course-content,
    .gt-course-sections,
    .gt-additional-info,
    .gt-booking-terms,
    .gt-dates-availability {
        padding: 30px 0;
    }

    .gt-sections-main h2,
    .gt-terms-main h2,
    .gt-dates-main h2,
    .gt-additional-info h2,
    .gt-once-complete h2,
    .gt-prerequisites h2 {
        font-size: 22px;
    }

    .gt-course-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .gt-course-actions {
        align-items: stretch;
    }

    .gt-btn {
        width: 100%;
        justify-content: center;
    }

    .gt-dates-table {
        font-size: 12px;
    }

    .gt-dates-table th,
    .gt-dates-table td {
        padding: 10px 8px;
    }

    .gt-course-info-table th,
    .gt-course-info-table td {
        font-size: 18px;
    }

    .greenway-terms-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    .greenway-course-terms {
        margin: 15px 0;
        padding: 12px;
    }

    .gt-course-banner img {
        height: 200px;
        width: 100%;
    }

    .gt-partners {
        gap: 5px !important;
        display: block;

    }

    .gt-partners h3 {
        font-size: 16px;
    }

    .gt-gallery-item img {
        width: 100%;
        height: 100px;
    }

    .gt-partners-logos {
        gap: 10px;
    }

    .gt-partners-logos img {
        gap: 5px !important;
        height: auto;
        width: 70px;
        object-fit: contain;
    }

    .gt-booking-banner h2 {
        margin: 0;
        font-weight: 500;
        font-size: 24px;
    }

    .di_schedule-empty p {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .gt-container {
        padding: 0;
    }

    .gt-accordion-header {
        padding: 15px 20px;
        font-size: 14px;
    }

    .gt-accordion-content>div {
        padding: 0 20px 20px;
    }

    .di_schedule-empty p {
        font-size: 20px;
    }
}

/* =====================================
   Locations main
   ===================================== */

.gt-locations-wrapper {
    padding: 20px;
    padding-bottom: 50px;
}

.gt-locations-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gt-text-primary);
    margin: 0;
    text-align: left;
    flex-shrink: 0;
    min-width: 200px;
}

.gt-locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    align-items: start;
    flex: 1;
}

.gt-location-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
}

.gt-location-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-location-icon svg {
    width: 32px;
    height: 32px;
}

.gt-location-details {
    flex: 1;
}

.gt-location-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--gt-text-primary);
    margin: 0 0 12px 0;
}

.gt-location-address {
    font-style: normal;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--gt-text-primary);
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gt-locations-section .gt-container {
        flex-direction: column;
        gap: 30px;
    }

    .gt-locations-title {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .gt-locations-section {
        padding: 40px 0;
    }

    .gt-locations-section .gt-container {
        gap: 25px;
    }

    .gt-locations-title {
        font-size: 24px;
    }

    .gt-locations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gt-location-name {
        font-size: 18px;
    }

    .gt-location-address {
        font-size: 14px;
    }
}

/* ==========================================================================
   Courses Archive Page (Categories Listing)
   ========================================================================== */

/* Courses Header */
.gt-courses-header {
    background: var(--gt-primary-green);
    background-image: url('../images/Lines-for-courses-banner-dt.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--gt-white);
    padding: 60px 0 60px;
    position: relative;
}

.gt-courses-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: var(--gt-white);
    font-family: var(--gt-font-primary);
}

.gt-courses-subtitle {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--gt-text-secondary);
    max-width: 600px;
}

/* Description Section */
.gt-courses-description-section {
    background: var(--gt-light-gray);
    padding-top: 50px;
    padding-bottom: 80px;
}

/* Description Section Course Category*/
.gt-course-category-description-section {
    background: var(--gt-light-gray);
    padding-top: 50px;
    padding-bottom: 30px;
}

.gt-courses-page-image {
    background: var(--gt-white);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.gt-courses-page-image img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.gt-courses-description {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--gt-text-primary);
}

/* Quick Search Section */
.gt-quick-search-section {
    background: var(--gt-white);
    padding: 0;
    position: relative;
    z-index: 10;
}

.gt-search-box {
    background: var(--gt-primary-green);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    transform: translateY(-50%);
}

.gt-search-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--gt-white);
    margin: 0;
    white-space: nowrap;
    font-family: var(--gt-font-primary);
}

.gt-search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.gt-search-input {
    width: 100%;
    padding: 14px 55px 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--gt-font-primary);
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--gt-text-primary);
}

.gt-search-input:focus {
    outline: 2px solid var(--gt-primary-orange);
    outline-offset: 0;
}

.gt-search-input::placeholder {
    color: #999;
}

.gt-search-button {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gt-primary-green);
    transition: color 0.3s;
}

.gt-search-button:hover {
    color: var(--gt-primary-orange);
}

.gt-search-button svg {
    width: 22px;
    height: 22px;
}

/* Search Results Dropdown */
.gt-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--gt-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.gt-search-results-inner {
    padding: 0;
}

.gt-search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--gt-text-primary);
}

.gt-search-result-item:last-child {
    border-bottom: none;
}

.gt-search-result-item:hover {
    background-color: var(--gt-light-gray);
}

.gt-search-result-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gt-text-primary);
    margin: 0 0 5px 0;
    font-family: var(--gt-font-primary);
    line-height: 1.3;
}

.gt-search-result-meta {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-family: var(--gt-font-primary);
}

.gt-search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 15px;
}

.gt-search-loading {
    padding: 20px;
    text-align: center;
    color: var(--gt-primary-green);
    font-size: 15px;
}

/* Hide category cards when searching */
.gt-categories-grid-section.gt-searching-active .gt-categories-grid {
    display: none;
}

.gt-categories-grid-section.gt-searching-active::before {
    content: 'Showing search results...';
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Categories Grid Section */
.gt-categories-grid-section {
    background: var(--gt-white);
    padding-top: 20px;
    padding-bottom: 80px;
}

.gt-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Category Card */
.gt-category-card {
    background: var(--gt-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 30px;
}

.gt-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gt-category-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.gt-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Clickable category image */
.gt-category-image-clickable,
.gt-course-image-clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gt-category-image-clickable:hover,
.gt-course-image-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gt-category-image-clickable:hover img,
.gt-course-image-clickable:hover img {
    opacity: 0.95;
}

.gt-category-placeholder {
    background: var(--gt-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-placeholder-text {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.gt-category-content {
    padding: 0;
}

.gt-category-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--gt-text-primary);
    font-family: var(--gt-font-primary);
}

.gt-view-courses-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gt-primary-green);
    text-decoration: none;
    transition: color 0.3s;
    font-family: var(--gt-font-primary);
}

.gt-view-courses-link:hover {
    color: var(--gt-primary-orange);
}

.gt-chevron-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: invert(23%) sepia(91%) saturate(1524%) hue-rotate(137deg) brightness(94%) contrast(101%);
    /* This filter converts black SVG to green (#006a3c) */
}

.gt-view-courses-link:hover .gt-chevron-icon {
    filter: invert(55%) sepia(77%) saturate(579%) hue-rotate(2deg) brightness(98%) contrast(96%);
    /* This filter converts to orange (#f7b119) on hover */
}

.gt-no-categories {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.gt-no-categories p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   Course Category Page (Individual Category)
   ========================================================================== */

/* Courses Grid Section (4 per row) */
.gt-courses-grid-section {
    background: var(--gt-white);
    padding-top: 40px;
    padding-bottom: 80px;
}

.gt-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Course Card */
.gt-course-card {
    background: var(--gt-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 30px;
}

.gt-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gt-course-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.gt-course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gt-course-card-image .gt-course-image-clickable {
    width: 100%;
    height: 100%;
    display: block;
}

.gt-course-placeholder {
    background: var(--gt-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.gt-course-card-content {
    padding: 0;
}

.gt-course-card-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--gt-text-primary);
    font-family: var(--gt-font-primary);
    line-height: 1.3;
}

.gt-find-out-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gt-primary-green);
    text-decoration: none;
    transition: color 0.3s;
    font-family: var(--gt-font-primary);
}

.gt-find-out-more-link:hover {
    color: var(--gt-primary-orange);
}

.gt-find-out-more-link .gt-chevron-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: invert(23%) sepia(91%) saturate(1524%) hue-rotate(137deg) brightness(94%) contrast(101%);
    /* This filter converts black SVG to green (#006a3c) */
}

.gt-find-out-more-link:hover .gt-chevron-icon {
    filter: invert(55%) sepia(77%) saturate(579%) hue-rotate(2deg) brightness(98%) contrast(96%);
    /* This filter converts to orange (#f7b119) on hover */
}

.gt-no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.gt-no-courses p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Responsive - Course Category Page */
@media (max-width: 1200px) {
    .gt-courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive - Courses Archive */
@media (max-width: 1024px) {
    .gt-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gt-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gt-courses-header {
        padding: 40px 0 30px;
        background-image: url('../images/Lines-for-courses-banner-mb.png');
    }

    .gt-courses-title {
        font-size: 32px;
    }

    .gt-courses-subtitle {
        font-size: 14px;
    }

    .gt-courses-description-section {
        padding: 30px 0;
    }

    .gt-course-category-description-section {
        padding: 30px 0;
    }

    .gt-courses-description {
        font-size: 16px;
        padding-bottom: 60px;
    }

    .gt-quick-search-section {
        padding: 0;
    }

    .gt-search-box {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px 20px;
    }

    .gt-search-label {
        font-size: 16px;
    }

    .gt-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gt-categories-grid-section {
        padding: 40px 0 50px 0;
    }

    .gt-category-name {
        font-size: 20px;
    }

    /* Courses Grid Mobile */
    .gt-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gt-courses-grid-section {
        padding: 40px 0 50px 0;
    }

    .gt-course-card-name {
        font-size: 18px;
    }

    /* Search Results Responsive */
    .gt-search-results {
        max-height: 300px;
    }

    .gt-search-result-item {
        padding: 12px 16px;
    }

    .gt-search-result-title {
        font-size: 14px;
    }

    .gt-search-result-meta {
        font-size: 12px;
    }
}

/* ==========================================================================
   Image Modal / Lightbox
   ========================================================================== */
.gt-image-modal {
    animation: fadeIn 0.2s ease-in;
}

.gt-image-modal img {
    animation: zoomIn 0.3s ease-out;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gt-modal-close {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gt-modal-close:hover {
    transform: rotate(90deg);
}

.gt-modal-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}