/* Josh Queen Health Skating Club - Custom Styles */

.josh-slider {
    position: relative;
    width: 100%;
    height: 700px;
    /*overflow: hidden;*/
    background: #222;
}

/* Ensure bxSlider wrappers fill the 700px height */
.josh-slider .bx-wrapper,
.josh-slider .bx-viewport,
.josh-slider__images {
    height: 700px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.josh-slider__images li {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 700px !important;
    list-style: none !important;
}

.josh-slider__images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Force arrows to be centered in the 700px height */
.josh-slider .bx-wrapper .bx-controls-direction a {
    position: absolute !important;
    top: 50% !important;
    margin-top: -26px !important;
    z-index: 999 !important;
}

.josh-slider .bx-wrapper .bx-prev {
    left: 20px !important;
}

.josh-slider .bx-wrapper .bx-next {
    right: 20px !important;
}

.josh-slider__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    /* Allow clicking arrows through overlay if they overlap */
}

.josh-slider__overlay .container {
    pointer-events: auto;
    /* Re-enable clicks for buttons in overlay */
}

.josh-slider__images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.josh-slider__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    z-index: 10;
}

.josh-hero__content {
    color: #fff;
    max-width: 600px;
    padding: 20px 0;
}

.josh-hero__kicker {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #7bc043;
}

.josh-hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.josh-hero__subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.josh-hero__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== Josh Sections ===== */
.josh-section {
    padding: 60px 0 60px 0;
}

.josh-section--alt {
    /*background: #f8fcf5;*/
    position: relative;
}

.josh-section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-image: radial-gradient(#7bc043 0.5px, transparent 0.5px);*/
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

/* ===== Josh Logo ===== */
#logo.josh-logo {
    float: left;
    display: flex !important;
    align-items: center;
    margin: 10px 0 !important;
}

.josh-logo a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    width: auto !important;
    line-height: normal !important;
}

.josh-logo img {
    height: 70px;
    width: auto;
    display: block;
}

.josh-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.josh-logo__line1 {
    font-size: 28px;
    font-weight: 600;
    color: #e53935;
    font-family: 'Kaufmann Script', 'Snell Roundhand', 'Monotype Corsiva', 'Brush Script MT', cursive;
    letter-spacing: 1px;
    white-space: nowrap;
    font-style: italic;
}

.josh-logo__line2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 3px;
    white-space: nowrap;
    margin-top: 2px;
    text-transform: none;
}

/* ===== Josh About Card ===== */
.josh-about-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.josh-about-card img {
    width: 100%;
    display: block;
}

.josh-about-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.josh-about-card__content h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.josh-about-card__content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* ===== Josh Sorting (Gallery Filter) ===== */
.josh-sorting {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.josh-sorting a {
    padding: 10px 25px;
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.josh-sorting a:hover,
.josh-sorting a.active-sort {
    background: #7bc043;
    border-color: #7bc043;
    color: #fff;
}

/* ===== Josh Awards ===== */
.josh-awards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.josh-award {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.josh-award:hover {
    transform: translateY(-5px);
}

.josh-award img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.josh-award p {
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* ===== Josh Stats ===== */
.josh-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.josh-stat {
    text-align: center;
    padding: 30px;
    min-width: 150px;
}

.josh-stat__icon {
    font-size: 40px;
    color: #7bc043;
    margin-bottom: 15px;
    display: block;
}

.josh-stat__value {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 10px;
}

.josh-stat__label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
}

/* ===== Josh Video Section ===== */
.josh-video {
    max-width: 900px;
    margin: 0 auto;
}

.josh-video__frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
}

.josh-video__frame video {
    display: block;
    width: 100%;
}

.josh-video__meta {
    text-align: center;
    color: #666;
}

.josh-video__meta p {
    margin: 8px 0;
    font-size: 15px;
}

.josh-video__meta a {
    color: #7bc043;
    text-decoration: none;
}

.josh-video__meta a:hover {
    text-decoration: underline;
}

.josh-video__meta .fa {
    color: #7bc043;
    margin-right: 8px;
}

/* ===== Josh Contact ===== */
.josh-contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.josh-contact-card h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.josh-contact-card p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.josh-contact-card .fa {
    color: #7bc043;
    margin-right: 10px;
    width: 20px;
}

.josh-contact-card a {
    color: #7bc043;
    text-decoration: none;
}

.josh-contact-card a:hover {
    text-decoration: underline;
}

.josh-contact-form input,
.josh-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

/* Contact Info Cards */
.josh-contact-info-card {
    background: #fff;
    padding: 50px 30px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border-bottom: 4px solid #f1f1f1;
}

.josh-contact-info-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: #7bc043;
}

.josh-contact-icon {
    width: 80px;
    height: 80px;
    background: #f8fcf5;
    color: #7bc043;
    font-size: 32px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: all 0.5s ease;
}

.josh-contact-info-card:hover .josh-contact-icon {
    background: #7bc043;
    color: #fff;
    transform: rotateY(360deg);
}

.josh-contact-info-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.josh-contact-info-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.josh-contact-info-card a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.josh-contact-info-card a:hover {
    color: #7bc043;
}

.josh-contact-form input:focus,
.josh-contact-form textarea:focus {
    outline: none;
    border-color: #7bc043;
}

.josh-contact-form button {
    cursor: pointer;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .josh-slider {
        min-height: 500px;
    }

    .josh-hero__title {
        font-size: 32px;
    }

    .josh-hero__subtitle {
        font-size: 16px;
    }

    .josh-section {
        padding: 50px 0;
    }

    .josh-logo__text {
        display: none;
    }

    .josh-stat__value {
        font-size: 36px;
    }

    .josh-awards {
        gap: 20px;
    }

    .josh-award {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .josh-hero__title {
        font-size: 24px;
    }

    .josh-sorting a {
        padding: 8px 15px;
        font-size: 12px;
    }

    .josh-award {
        flex: 0 0 100%;
    }

    .josh-stats {
        gap: 20px;
    }

    .josh-stat {
        min-width: 100px;
        padding: 20px;
    }
}

/* New Design Elements */
.josh-hero__title span,
.josh-bold-title span {
    color: #7bc043;
    /* Themed green color */
}

.josh-bold-title {
    font-size: 42px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 15px;
    color: #222;
}

/* Feature Cards */
.josh-feature-card {
    background: #fff;
    padding: 40px 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.josh-feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #7bc043;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.josh-feature-card__icon {
    font-size: 40px;
    color: #7bc043;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.josh-feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.josh-feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.josh-feature-card:hover .josh-feature-card__icon {
    transform: scale(1.1) translateY(-5px);
    color: #e53935;
}

/* Service Cards */
.josh-service-card {
    background: #fff;
    padding: 40px 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid #7bc043;
}

.josh-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.josh-service-icon {
    font-size: 40px;
    color: #7bc043;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.josh-service-card:hover .josh-service-icon {
    transform: scale(1.1) translateY(-5px);
    color: #e53935;
}

.josh-service-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #222;
}

.josh-service-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Training Cards */
.josh-training-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.josh-training-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.josh-training-card:hover img {
    transform: scale(1.1);
}

.josh-training-card__content {
    padding: 25px;
    background: #fff;
    text-align: center;
}

.josh-training-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #222;
}

.josh-training-card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
}

/* Animation Utilities */
.josh-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.josh-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Step Cards */
.josh-step-card {
    background: #f9f9f9;
    padding: 50px 30px;
    text-align: center;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid #eee;
}

.josh-step-card:hover {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.josh-step-card__number {
    font-size: 60px;
    font-weight: 900;
    color: rgba(123, 192, 67, 0.15);
    /* Very light themed color */
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
}

.josh-step-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    position: relative;
    z-index: 1;
}

.josh-step-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.josh-step-card .dt-sc-button {
    position: relative;
    z-index: 1;
}


/* ===== Josh Gallery Grid (4 Columns) ===== */

/* ===== Josh Gallery Grid (3 Columns) ===== */
.josh-gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .josh-gallery-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .josh-gallery-grid-3 {
        grid-template-columns: 1fr;
    }
}

.josh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .josh-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .josh-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.josh-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.josh-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.josh-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.josh-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(123, 192, 67, 0.85);
    /* Green accent */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.josh-gallery-item:hover .josh-gallery-overlay {
    opacity: 1;
}

.josh-gallery-overlay span {
    color: #fff;
    font-size: 32px;
}

#about.josh-section,
#about-intro.josh-section {
    padding-top: 20px !important;
}

/* Background Animation */
.josh-animate-bg {
    animation: josh-zoom-bg 20s linear infinite alternate;
}

@keyframes josh-zoom-bg {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* ===== Josh Hero (Subpages) ===== */
.josh-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #222;
}

.josh-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.josh-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: 2;
}

.josh-hero .container {
    position: relative;
    z-index: 3;
}

/* Registration Page Styles */
.josh-reg-download-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.josh-reg-download-wrapper > div {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 767px) {
    .josh-reg-download-wrapper {
        flex-direction: column;
    }
    .josh-reg-download-wrapper > div {
        width: 100%;
    }
}

.josh-reg-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.josh-reg-image:hover img {
    transform: scale(1.03) rotate(1deg);
}

.josh-reg-download-box {
    background: #fff;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.4s ease;
}

.josh-reg-download-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.josh-reg-icon {
    font-size: 60px;
    color: #7bc043;
    margin-bottom: 25px;
    display: inline-block;
}

.josh-reg-download-box h3 {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    color: #222 !important;
    text-transform: uppercase;
}

.josh-reg-download-box h4 {
    font-size: 18px !important;
    color: #7bc043 !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
}

.josh-reg-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.josh-download-btn {
    display: inline-block;
    background: #7bc043;
    color: #fff !important;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(123, 192, 67, 0.3);
    text-decoration: none !important;
}

.josh-download-btn:hover {
    background: #222;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.josh-download-btn .fa {
    margin-right: 10px;
}

@media (max-width: 767px) {
    /* 1. COMPLETELY HIDE THE TOP BLACK BAR */
    .top-bar, .top-bar-wrapper, .top-right {
        display: none !important;
    }

    /* 2. FORCE LOGO & MENU INTO ONE NEAT ROW */
    .main-menu {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        background: #fff;
        height: 80px !important; /* Fixed height to keep it consistent */
    }

    /* 3. FIX LOGO WIDTH & TEXT OVERLAP */
    #logo.josh-logo {
        display: flex !important;
        align-items: center !important;
        max-width: 70% !important; 
        margin: 0 !important;
        flex: 1;
    }

    #logo img {
        max-height: 45px !important;
        width: auto !important;
        margin-right: 10px !important;
    }

    .josh-logo__text {
        display: flex !important;
        flex-direction: column !important;
    }

    .josh-logo__line1 {
        font-size: 14px !important;
        color: #e63946 !important; /* Your red color */
        font-weight: bold;
        white-space: nowrap;
    }

    .josh-logo__line2 {
        font-size: 12px !important;
        color: #000 !important;
        white-space: nowrap;
    }

    /* 4. PIN MENU TOGGLE TO THE FAR RIGHT */
    #primary-menu {
        margin-left: 80px !important;
    }

    .dt-menu-toggle {
        width: 45px !important;
        height: 45px !important;
        font-size: 0 !important; /* Removes the word "MENU" */
        background-color: #99cc00 !important; /* Green button */
        border-radius: 5px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Ensure the hamburger icon is visible */
    .dt-menu-toggle-icon, 
    .dt-menu-toggle:after {
        font-size: 20px !important;
        color: #fff !important;
        margin: 0 !important;
    }

    /* 5. FIX THE DROPDOWN LIST APPEARANCE */
    #main-menu {
        position: absolute !important;
        top: 80px !important; /* Matches header height */
        left: 0 !important;
        width: 100% !important;
        background: #fff !important;
        z-index: 10000 !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* This shows the menu when the toggle is clicked */
    #main-menu.dt-menu-expand, 
    .dt-menu-toggle-active + #main-menu {
        display: block !important;
    }

    #main-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #main-menu ul li a {
        padding: 15px 20px !important;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }
}



