/* Project-owned overrides on top of the Eduleb template — kept separate so
   a future template asset refresh doesn't clobber these. */

.navbar-brand-text {
    font-family: var(--bs-font-sans-serif, 'Jost', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b1b1b;
    text-decoration: none;
    line-height: 1.2;
}

.footer .navbar-brand-text {
    color: #fff;
    display: inline-block;
    margin-bottom: 1rem;
}

.site-navigation .navbar-brand-text:hover {
    color: inherit;
}

/* The template's own .single_course cards never contained a per-card CTA
   button — "View Course" only ever appeared as the section-level "View all
   Courses" link. It styles its <p> children as `display: inline` (meant
   for two short "12 Course | 2 Hrs 32 Min" labels sitting side by side) and
   .btn_one has no explicit display at all, so it falls back to the <a>
   default of `inline`. Putting our real summary text + a real button inside
   that card broke under both of those assumptions — text and button ran
   together instead of stacking. Scoped fix, not a template-wide override. */
.single_course .single-course-body {
    display: block;
    padding: 0 20px 25px;
}

.single_course .single-course-body p {
    display: block;
    margin: 0 0 10px;
}

.single_course .single-course-body .btn_one {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 24px;
    font-size: 14px;
}

.locale-switcher-toggle {
    background: transparent;
    border: 1px solid #19140035;
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #1b1b1b;
}

.locale-switcher-toggle:hover {
    border-color: var(--site-primary, #525fe1);
    color: var(--site-primary, #525fe1);
}

.locale-switcher .fi,
.dropdown-item .fi {
    vertical-align: middle;
    border-radius: 2px;
}

/* .site-logo has a hardcoded width:150px in the template, sized for its own
   short wordmark image — a real uploaded logo was being squeezed into that
   box. Let the column size itself from the image instead. */
.site-logo {
    width: auto;
}

.navbar-brand-logo {
    display: inline-block;
}

.navbar-brand-logo img {
    max-height: 64px;
    width: auto;
}

.footer .navbar-brand-logo img {
    max-height: 60px;
}

/* Phones/tablets: the template gives the logo column a fixed 20% width
   (style.css .col-20) and hides the 60% menu column, so the logo was
   squeezed into ~75px on a phone. Give the logo column the room the hidden
   menu freed up and let the logo be a little larger. Desktop unchanged. */
@media only screen and (max-width: 991px) {
    .site-navigation .row > .col-20:first-child {
        width: 70%;
    }

    .navbar-brand-logo img {
        max-height: 60px;
        max-width: 100%;
    }
}

/* .social_profile ul li a:hover sets color:#fff (icon turns white), and the
   template only paints a matching background via per-brand classes
   (.f_facebook:hover, .f_twitter:hover, ...) that our anchors never have —
   so on hover the icon goes white-on-white and visually disappears.
   One uniform brand-colored hover works for every platform, including ones
   the template never defined (tiktok, youtube, ...). */
.social_profile ul li a:hover {
    background: var(--site-primary, #525fe1);
    color: #fff;
}

/* Enroll Now (.btn_one) and the locale switcher sit side by side in the
   navbar but came from unrelated style rules with very different padding
   and font-size, so they visibly didn't match heights. */
.site-navigation .locale-switcher-toggle {
    padding: 13px 18px;
    font-size: 14px;
}

.site-navigation .btn_one {
    padding: 13px 24px;
    font-size: 14px;
}

/* .count_area (home stats) has its own padding-bottom:80px, and the next
   section (.section-padding) adds another 80px padding-top on top of that —
   160px of dead white space between the hero/stats and "Start Your German
   Learning Journey". Trim the redundant half. */
.count_area {
    padding: 0;
    margin-bottom: -60px;
    position: relative;
    z-index: 2;
}

/* "View all Courses" sits in its own column next to the section heading,
   but .cour_btn has a hardcoded margin-top:70px (tuned for the original
   template's longer heading+paragraph combo) which our single-line heading
   doesn't need — it left the button floating well below the heading
   instead of inline with it. */
.home_course > .container > .row:first-child {
    align-items: center;
}

.home_course .cour_btn {
    margin-top: 0;
}

@media only screen and (max-width: 480px) {
    .home_course .cour_btn {
        margin-top: 0;
    }
}

/* Equal-height cards: no matter how much text a card holds, every card in
   a row should match its tallest sibling. Bootstrap's .row is already flex
   with equal-height columns by default — these cards just never filled
   that column height themselves. */
.single_tp,
.single_course,
.single_blog,
.our-team,
.single_address {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.single_course .single-course-body,
.single_blog .content_box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.single_course .single-course-body .btn_one,
.single_blog .content_box .btn_one {
    margin-top: auto;
    align-self: flex-start;
}

.our-team .sth_det2 {
    flex-grow: 1;
}

/* Privacy Policy and Terms pages: readable line length and heading spacing. */
.legal-content h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 22px;
}

.legal-content p {
    margin-bottom: 14px;
    line-height: 1.7;
}

.foot-copy-left a {
    color: inherit;
    text-decoration: underline;
}

/* Copyright bar: copyright on the left, "Designed By" credit on the right. */
.foot-copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.foot_copy .foot-copy-row p {
    text-align: left;
    margin: 0;
}

.foot-copy-right a {
    font-weight: 700;
    color: var(--site-primary, #525fe1);
}

.foot-copy-right a:hover {
    color: var(--site-secondary, #f26b65);
    text-decoration: underline;
}

@media only screen and (max-width: 575px) {
    .foot-copy-row {
        justify-content: center;
        text-align: center;
    }

    .foot_copy .foot-copy-row p {
        text-align: center;
    }
}

/* Home journey cards: template layout — numbered circle with the title
   beside it, description below with a small gap, left aligned. */
.journey-card {
    text-align: left;
}

.journey-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.journey-card-head h3 {
    margin: 0;
}

.journey-card .sc_one {
    flex-shrink: 0;
    margin: 0;
}

/* About page statistics: the homepage counter pulls itself up over the hero
   with a negative bottom margin. On this page it sits between two sections,
   so it gets its own padded band instead and no longer overlaps them. */
.about-stats-section {
    margin-bottom: 0 !important;
    padding: 70px 0;
    position: relative;
    z-index: auto;
}

/* Facebook posts from the Page, drawn as site cards. */
.facebook-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.facebook-feed-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6ef;
    border-radius: 10px;
    overflow: hidden;
    color: inherit;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.facebook-feed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.facebook-feed-image {
    aspect-ratio: 4 / 3;
    background: #f4f6fb;
}

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

.facebook-feed-body {
    padding: 18px 20px 22px;
}

/* TikTok videos: thumbnail cards like the Facebook ones; the player opens in a popup. */
/* Wrapping row, centred: three cards per row when space allows, and short
   rows (one or two cards) stay centred. */
.tiktok-feed-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.tiktok-feed-card {
    flex: 0 1 300px;
    max-width: 100%;
    width: 300px;
    text-align: left;
    font: inherit;
    cursor: pointer;
    padding: 0;
    background: #fff;
    border: 1px solid #e6e6ef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tiktok-feed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.tiktok-feed-thumb {
    position: relative;
    width: 100%;
    height: 340px;
    background: #111;
    overflow: hidden;
}

.tiktok-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.25s ease;
}

.tiktok-feed-card:hover .tiktok-feed-thumb img,
.tiktok-feed-card:focus-visible .tiktok-feed-thumb img {
    filter: brightness(0.55);
}

.tiktok-feed-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding-left: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.tiktok-feed-body {
    padding: 16px 18px 20px;
}

.tiktok-feed-author {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--site-primary, #525fe1);
    margin-bottom: 6px;
}

.tiktok-feed-body p {
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* TikTok popup: player on the left (phone shape, fits the screen), text on the right. */
.tiktok-video-modal .modal-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}

.tiktok-video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.9;
    padding: 8px;
}

.tiktok-video-media {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    max-height: 88vh;
    overflow: hidden;
}

.tiktok-video-frame {
    height: min(740px, 85vh);
    aspect-ratio: 325 / 740;
    width: auto;
    max-width: 100%;
    border: 0;
}

.tiktok-video-text {
    background: #fff;
    padding: 28px 26px;
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.tiktok-video-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tiktok-video-icon {
    font-size: 26px;
    color: #050505;
}

.tiktok-video-title {
    flex: 0 0 auto;
    white-space: pre-line;
    line-height: 1.6;
    color: #050505;
    margin-bottom: 0;
}

/* In normal flow below the title, so it can't cover the text. */
.tiktok-video-text .tiktok-video-link {
    position: relative;
    top: auto;
    align-self: flex-start;
    margin: 22px 0 0;
}

@media only screen and (max-width: 991px) {
    .tiktok-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tiktok-video-media {
        min-height: 260px;
    }
}

@media only screen and (max-width: 575px) {
    .tiktok-feed-grid {
        grid-template-columns: 1fr;
    }
}

/* Page followers and likes, shown above the posts. */
.facebook-feed-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 28px;
    font-size: 16px;
    color: #4b4f56;
}

.facebook-feed-stats strong {
    display: block;
    font-size: 26px;
    color: var(--site-primary, #525fe1);
    line-height: 1.2;
}

/* Like and comment counts on each post card. */
.facebook-feed-counts {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 14px;
    color: #65676b;
}

/* Cards are buttons now: reset the button look so they match the old links. */
.facebook-feed-card {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.facebook-feed-image {
    position: relative;
}

/* On hover the thumbnail darkens; the play button stays white. */
.facebook-feed-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

.facebook-feed-card:hover .facebook-feed-image::after,
.facebook-feed-card:focus-visible .facebook-feed-image::after {
    background: rgba(0, 0, 0, 0.45);
}

.facebook-feed-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding-left: 4px;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.facebook-feed-image:not(:has(img)) {
    background: #111;
    min-height: 200px;
}

/* Post popup: media on the left, post text on the right (like Facebook). */
.facebook-post-modal .modal-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}

.facebook-post-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.9;
    padding: 8px;
}

/* Keep the whole popup inside the screen: the media and text share one
   height, capped to the viewport, and the media is cropped rather than
   pushing the popup off the bottom. */
.facebook-post-modal .modal-dialog {
    max-height: 90vh;
}

.facebook-post-modal .modal-content > .row {
    max-height: 88vh;
}

.facebook-post-media {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    max-height: 88vh;
    overflow: hidden;
}

.facebook-post-photo {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* The player is sized by the popup script (see facebook-feed component), so
   it keeps its own shape and is centred rather than stretched. */
.facebook-post-media .fb-video iframe {
    max-width: 100%;
}

.facebook-post-text {
    background: #fff;
    padding: 28px 26px;
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.facebook-post-message {
    flex: 0 0 auto;
}

.facebook-post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.facebook-post-head strong {
    display: block;
    color: #050505;
}

.facebook-post-head span {
    font-size: 13px;
    color: #65676b;
}

.facebook-post-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.facebook-post-icon {
    color: #1877f2;
    font-size: 26px;
}

.facebook-post-message {
    white-space: pre-line;
    line-height: 1.6;
    color: #050505;
}

/* Sits below the message, in normal flow (the template's .btn_one can be
   positioned, which is what put it over the text). */
.facebook-post-text .facebook-post-link {
    position: relative;
    top: auto;
    align-self: flex-start;
    margin: 20px 0 0;
}

@media only screen and (max-width: 991px) {
    .facebook-post-media {
        min-height: 260px;
    }
}

.facebook-feed-date {
    display: inline-block;
    font-size: 13px;
    color: var(--site-primary, #525fe1);
    font-weight: 600;
    margin-bottom: 8px;
}

.facebook-feed-body p {
    margin: 0;
    line-height: 1.6;
    white-space: pre-line;
}

@media only screen and (max-width: 991px) {
    .facebook-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 575px) {
    .facebook-feed-grid {
        grid-template-columns: 1fr;
    }
}

/* These three used to be heading tags (h2/h4). Changed to <p> for a correct
   heading outline (see docs/seo-checklist.md), with the exact look restored
   here since the template styled them by tag, not by class. */
.counter-num {
    font-size: 2rem;
    font-weight: 600;
    color: #0b104a;
    margin-bottom: 0;
    overflow: hidden;
}

.single_footer .footer-widget-title {
    color: #0b104a;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 20px;
}

.single_event_text_single .course-title-repeat {
    font-size: 36px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Home page "Latest Blog & News" card title: h2 -> h3 (it's a sub-item of
   that section's own h2), same look restored since .single_blog styled by
   the h2 tag, not a class. */
.single_blog .blog-card-title {
    line-height: 32px;
    font-size: 20px;
    margin-bottom: 15px;
}

.single_blog .blog-card-title a {
    color: #1a2d62;
    font-weight: 600;
    margin-bottom: 40px;
    display: block;
}

.single_blog .blog-card-title a:hover {
    color: var(--site-primary, #525fe1);
}

/* Four more headings changed for a correct outline (see docs/seo-checklist.md),
   each styled by its template's tag selector rather than a class, so the
   look is restored here under a selector specific to each one. */
.single_address .address-card-title {
    text-transform: capitalize;
    margin-bottom: 20px;
    font-weight: 700;
}

.sidebar_title .sidebar-widget-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ededed;
}

.single_course .course-card-title {
    margin-bottom: 15px;
    padding: 0 20px;
}

.single_course .course-card-title a {
    font-weight: 600;
    font-size: 22px;
    margin-top: 10px;
    display: block;
    line-height: 32px;
}

.single_rc .related-course-title a {
    color: #1a2d62;
    font-size: 18px;
    font-weight: 800;
    margin: 10px 0;
    display: block;
    transition: 0.3s;
}

.single_rc .related-course-title a:hover {
    color: var(--site-primary, #525fe1);
}

.testi_pic_title .testimonial-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    overflow: hidden;
}

/* Placeholder photo used when a team member has no picture. */
.our-team img.dummy-photo {
    border: 1px solid #dddddd !important;
}

/* The template zooms team photos on hover, which pushes the border outside
   the card. The placeholder keeps its size so the border stays visible. */
.our-team:hover .team-content img.dummy-photo {
    transform: none !important;
}

/* Leadership photos: the template sets only width, so each card's photo
   took its uploaded image's own height. A fixed portrait box with cover
   cropping keeps every card's photo the same size. */
.our-team .team-content img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* Blog list card images had no height at all — width:100% only — so every
   card's height varied with whatever aspect ratio was uploaded. */
.single_blog img {
    height: 220px;
    object-fit: cover;
}

.single_blog .content_box p {
    margin-bottom: 15px;
}

/* .btn_one has no explicit `display` at all (defaults to inline for an
   <a>), and two of them sitting side by side with an inline margin-left
   hack could visually overlap once they wrap to a second line on narrower
   viewports. Flex with a real gap removes that ambiguity regardless of
   width, and .btn_two (an empty stub in the template, style.css:228) is
   now the actual outline/ghost variant for the secondary hero CTA. */
.home_sb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn_two {
    background: transparent;
    border: 1px solid #fff;
}

.btn_two:hover {
    background: var(--site-secondary, #f26b65);
    border-color: var(--site-secondary, #f26b65);
}

/* Hero carousel: only present when 2+ hero slides exist. owl-carousel's
   dots default to small gray circles that are hard to see against the
   hero's dark background image. */
.hero-carousel .owl-dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
}

.hero-carousel .owl-dot span {
    background: rgba(255, 255, 255, 0.5);
}

.hero-carousel .owl-dot.active span {
    background: #fff;
}

.hero-carousel-wrap {
    position: relative;
}

/* style.css:64 sets a global `a:hover { color: #fff }`, which turned the
   contact-card phone/email/location links white on hover. Scoped override
   so these stay on-brand; the more specific selector wins over it. */
.single_address p a {
    color: var(--site-primary, #525fe1);
}

.single_address p a:hover {
    color: var(--site-secondary, #f26b65);
}

.map-with-directions {
    position: relative;
}

.map-directions-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    padding: 10px 20px;
    font-size: 14px;
}

@media only screen and (max-width: 880px) {
    /* .map iframe drops its margin-left:30px offset below this width
       (template rule) — match that here so the button stays inside the
       iframe's actual edges instead of the wrapper's. */
    .map-directions-btn {
        bottom: 20px;
        right: 20px;
    }
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.share-buttons-label {
    font-weight: 600;
    color: #1a2d62;
    margin-right: 4px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #1a2d62;
    border: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    color: #fff;
}

.share-btn-facebook:hover { background: #3B5998; }
.share-btn-twitter:hover { background: #000; }
.share-btn-whatsapp:hover { background: #25d366; }
.share-btn-linkedin:hover { background: #0e76a8; }
.share-btn-copy:hover { background: var(--site-primary, #525fe1); }

/* Bottom-left, not bottom-right: the template's scroll-to-top button
   (.topcontrol, style.css) is fixed bottom-right and the two overlapped. */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}

/* Breadcrumb/page-title band (.section-top) is sized for a hero-style
   banner with a background image — 150px top + 90px bottom padding reads
   as oversized on inner pages that are just "Page Title / breadcrumb". */
.section-top {
    padding-top: 70px;
    padding-bottom: 40px;
}

.section-top-title h1 {
    font-size: 36px;
}

/* Course detail: when a service has no fee, .course_features only renders
   one <li>. Its floated <b> badge (float:right) isn't reliably cleared by
   the browser in that shorter case, letting .event_info_register (Enroll
   Now) bleed up into it. Explicit clearfix + spacing fixes it regardless
   of how many feature rows exist. */
.course_features ul::after {
    content: "";
    display: table;
    clear: both;
}

.event_info_register {
    clear: both;
    margin-top: 20px;
}

/* .overview (course description) only ever had padding-top — it was meant
   to sit inside the template's .tab-content wrapper (which supplies side +
   bottom padding), but this simplified non-tabbed layout skips that
   wrapper, so real content touched the box's edges directly. */
.course-details-content .overview {
    padding: 25px 30px 30px;
}

/* Blog detail hero image: img-fluid only caps width, not height, so an
   unusually tall upload (or the full-size original, if a sized conversion
   wasn't generated) could blow out the page's height and force a second
   scrollbar. */
.blog-page img.img-fluid.mb-4,
.course-detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

/* .section-title p has no margin-bottom at all, and the template zeroes
   .btn_one's margin-top below 960px — so a CTA button placed right after a
   paragraph (career-cta on the About page) sits flush against it with no
   gap. Scoped to where a button actually follows the paragraph. */
.section-title p {
    margin-bottom: 25px;
}

.section-title .btn_one {
    margin-top: 10px;
}

.preloader-logo {
    max-width: 120px;
    max-height: 120px;
    animation: preloader-logo-pulse 1.4s ease-in-out infinite;
}

@keyframes preloader-logo-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.88); opacity: 0.6; }
}

/* Hero slide image: the template positions .hero-text-img absolutely at the
   bottom with no size limit, so a large upload spilled over the text and
   the next section. Keep it in normal flow inside a fixed-size frame. */
.home_bg .hero-text-img {
    position: relative;
    bottom: auto;
    right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
}

.home_bg .hero-text-img img {
    max-height: 420px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media only screen and (max-width: 480px) {
    .home_bg .hero-text-img {
        height: 260px;
    }
    .home_bg .hero-text-img img {
        max-height: 260px;
    }
}

/* Section background choices from Section options (config/sections.php). */
.sec-bg-soft {
    background-color: #f4f6fb !important;
    background-image: none !important;
}

.sec-bg-brand {
    background-color: color-mix(in srgb, var(--site-primary, #525fe1) 12%, #ffffff) !important;
    background-image: none !important;
}

/* The template fixes the hero at 850px (650px on tablet, 800px on phones).
   Let it follow its content instead: the title, text, buttons and the
   template's 150px top padding don't fit inside 500px, and a cap made the
   text run into the next section. */
.home_bg {
    height: auto;
    min-height: 500px;
    padding-bottom: 110px;
}

/* Hero design: "full-width image overlay" (Website → Hero admin setting).
   The slide's own image fills the whole banner, with the title,
   description and CTAs sitting on top of it instead of beside it. The
   classic side-by-side design (above) is unaffected. */
.home_bg.hero-layout-full {
    padding-bottom: 40px;
    min-height: 0;
}

.hero-full {
    position: relative;
    min-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
}

.hero-full-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-full-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(10, 14, 45, 0.78) 0%, rgba(10, 14, 45, 0.45) 55%, rgba(10, 14, 45, 0.1) 100%);
}

/* Full width: the banner breaks out of the page's .container gutters so the
   image spans the whole width of the screen. */
.home_bg.hero-layout-full .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.hero-full {
    border-radius: 0;
    min-height: 560px;
}

.hero-full-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding: 70px 80px;
    color: #fff;
}

.hero-full-content h1,
.hero-full-content p {
    color: #fff;
}

.hero-full-content h1 {
    padding-top: 0;
    margin-bottom: 20px;
    font-size: 48px;
    line-height: 1.2;
}

.hero-full-content p {
    width: 100%;
    margin-bottom: 16px;
}

/* Breathing room between the text block and the buttons. */
.hero-full-content .home_sb {
    margin-top: 36px;
}

@media only screen and (max-width: 767px) {
    .hero-full {
        min-height: 380px;
        border-radius: 0;
    }

    .hero-full-content {
        padding: 30px 24px;
        max-width: 100%;
    }

    .hero-full-content h1 {
        font-size: 32px;
        line-height: 1.3;
    }
}

/* Mobile: the stats cards are their own section below the hero instead of
   straddling its bottom edge, and the hero image gets room below the
   buttons instead of touching them. Desktop keeps the overlap. */
@media only screen and (max-width: 767px) {
    .home_bg {
        padding-bottom: 40px;
    }

    .home_bg .hero-text-img {
        margin-top: 28px;
        height: 260px;
    }

    .count_area {
        margin-top: 0;
        margin-bottom: 0;
        padding: 40px 0;
        background: #ffffff;
        z-index: auto;
    }

    .count_area .single-counter {
        margin-bottom: 20px;
    }
}

/* Journey / approach / mission cards: the template gives them only a very
   faint shadow, so on phones (where the cards nearly fill the width) their
   edges disappeared into the light background. A hairline border and a
   clearer shadow keep the card edges visible at every width. */
.single_tp {
    border: 1px solid #e3e6f0;
    box-shadow: 0 8px 24px rgba(23, 23, 36, 0.08);
}

/* Public gallery photos: a fixed-height frame with the caption under it. */
.gallery-photo {
    margin: 0;
}
.gallery-photo a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-photo a:hover img {
    transform: scale(1.04);
}
.gallery-photo figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #1a2d62;
}

/* Gallery cards reuse the blog card styling, which leaves a 40px gap under the title link. Tighten it so the summary sits right under the title. */
.gallery-card h2 {
    margin-bottom: 6px;
}
.gallery-card h2 a {
    margin-bottom: 0;
}
.gallery-card .gallery-summary p {
    margin: 0 0 12px;
}
