/* ============================================
   DPS Soccer Training - Custom Styles
   ============================================ */

/* Color Variables */
:root {
    --color-black: #000000;
    --color-red: #D94038;
    --color-white: #FFFFFF;
    --color-gray: #333333;
    --color-light-gray: #F5F5F5;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', 'Helvetica', sans-serif;
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background-color: var(--color-white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    text-decoration: none;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 250px;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    color: var(--color-black) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--color-red) !important;
}

.btn-contact {
    background-color: var(--color-red);
    color: var(--color-white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    border: none;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: #B82E26;
    color: var(--color-white) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    background-image: url('../assets/images/hero-img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.hero-title {
    color: var(--color-white);
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-logo {
    margin: 2rem 0;
}

.hero-logo-image {
    max-width: 600px;
    width: auto;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-hero-contact {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.btn-hero-contact:hover {
    background-color: #B82E26;
    color: var(--color-white);
}

.hero-instagram {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.hero-instagram:hover {
    color: var(--color-red);
}

.hero-instagram i {
    font-size: 1.5rem;
}

/* Train like a pro Section */
.train-pro-section {
    background-color: #111111;
    padding: 5rem 0;
    color: var(--color-white);
}

.section-title-white {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.section-text-white {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-white);
    line-height: 1.8;
}

.btn-instagram {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-instagram:hover {
    background-color: #B82E26;
    color: var(--color-white);
}

/* Programs Section */
.programs-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--color-black);
}

.program-tabs-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 3rem;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.program-tabs-container::-webkit-scrollbar {
    height: 2px;
}

.program-tabs-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 1px;
}

.program-tabs-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 1px;
}

.program-tabs-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.program-tabs {
    border-bottom: none;
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
    margin-bottom: 0;
}

.program-tabs .nav-link {
    color: var(--color-black);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 400;
    transition: all 0.3s ease;
    background: none;
    text-decoration: none;
    white-space: nowrap;
}

.program-tabs .nav-link:hover {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}

.program-tabs .nav-link.active {
    color: var(--color-black);
    border-bottom-color: var(--color-black);
    background: none;
    font-weight: 700;
    text-decoration: none;
}

.program-content {
    margin-top: 2rem;
}

.program-content .row {
    --bs-gutter-x: 4rem;
}

.program-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

.program-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-gray);
}

.btn-book {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-book:hover {
    background-color: #B82E26;
    color: var(--color-white);
}

.program-image {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Program Carousel Styles - Manual slider with arrows below */
.program-carousel {
    border-radius: 10px;
    overflow: visible;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-carousel .carousel-inner {
    width: 100%;
    border-radius: 10px;
    height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.program-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
    height: 100%;
    margin: 0;
    padding: 0;
}

.program-carousel .carousel-item img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel controls positioned below images */
.program-carousel-prev,
.program-carousel-next {
    position: static;
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border: 2px solid var(--color-black);
    border-radius: 50%;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0;
}

.program-carousel-prev:hover,
.program-carousel-next:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
    opacity: 1;
}

.program-carousel-prev .carousel-control-prev-icon,
.program-carousel-next .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

.program-carousel-prev:hover .carousel-control-prev-icon,
.program-carousel-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

.program-carousel .carousel-indicators {
    display: none !important;
}

/* Skills Section */
.skills-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.skills-section .row {
    --bs-gutter-x: 4rem;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray);
}

.skills-section img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Coach Section */
.coach-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.coach-section .row {
    --bs-gutter-x: 4rem;
}

.coach-section img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.gallery-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-gray);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    margin-top: 3rem;
}

.gallery-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-image-big {
    height: 500px;
}

.gallery-image-small {
    height: 240px;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.carousel {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-content {
    padding: 3rem 2rem;
    text-align: center;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-black);
    font-weight: bold;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-black);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-control-mobile {
    display: none;
}

.carousel-controls-mobile-wrapper {
    display: none;
}

.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

.carousel-indicators {
    position: relative !important;
    margin-top: 2rem;
    margin-bottom: 0 !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: #CCCCCC !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--color-black) !important;
    opacity: 1 !important;
}

/* Sponsors Section */
.sponsors-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

/* Sponsors Carousel */
.sponsors-section .container {
    max-width: 1600px;
    padding: 0 2rem;
}

.sponsors-carousel {
    margin-top: 3rem;
    max-width: 1400px;
}

/* Desktop carousel - visible on desktop/tablet, hidden on mobile */
.sponsors-carousel-desktop {
    display: block;
}

/* Mobile carousel - hidden on desktop/tablet, visible on mobile */
.sponsors-carousel-mobile {
    display: none;
}

/* Show desktop carousel on tablet and desktop */
@media (min-width: 768px) {
    .sponsors-carousel-desktop {
        display: block;
    }
    
    .sponsors-carousel-mobile {
        display: none;
    }
}

.sponsors-carousel-inner {
    padding: 2rem 0;
}

.sponsors-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Responsive columns for sponsors */
.sponsor-col {
    flex: 0 0 auto;
}

/* Desktop: 4 sponsors per slide */
@media (min-width: 992px) {
    .sponsor-col {
        width: 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Tablet: 3 sponsors per slide (already handled by col-md-4) */
/* Mobile: 1 sponsor per slide (already handled by col-12) */

.sponsors-carousel .sponsor-item {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

/* Hide carousel controls and indicators for sponsors */
.sponsors-carousel .carousel-control-prev,
.sponsors-carousel .carousel-control-next,
.sponsors-carousel .carousel-indicators {
    display: none !important;
}

.sponsor-item {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.sponsor-item a {
    display: inline-block;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.sponsor-item a:hover {
    opacity: 0.8;
}

.sponsor-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-gray);
    padding: 2rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.sponsor-logo:hover {
    border-color: var(--color-red);
}

.sponsor-logo-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    min-height: 200px;
    object-fit: contain;
    padding: 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: transparent;
}

/* Footer */
.footer {
    background-color: #111111;
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-question {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-subtext {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-white);
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--color-white);
}

.contact-item a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a[href^="mailto:"],
.contact-item a[href^="tel:"] {
    text-decoration: underline;
}

.contact-item a:hover {
    opacity: 0.8;
}

.footer-image {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
}

.footer-copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--color-white);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-logo-image {
        max-width: 250px;
    }

    .section-title,
    .section-title-white {
        font-size: 2rem;
    }

    .program-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .sponsors-section .container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-logo-image {
        max-width: 200px;
    }

    .program-image,
    .program-carousel .carousel-inner {
        height: 300px;
    }
    
    .program-carousel-prev,
    .program-carousel-next {
        width: 45px;
        height: 45px;
    }

    .section-title,
    .section-title-white {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    /* Reduce section padding on mobile */
    .train-pro-section,
    .programs-section,
    .skills-section,
    .coach-section,
    .gallery-section,
    .testimonials-section,
    .sponsors-section {
        padding: 3rem 0;
    }

    .program-tabs {
        flex-wrap: wrap;
        flex-direction: row;
    }
    
    .program-tabs-container {
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .program-tabs .nav-item {
        flex: 0 0 auto;
    }
    
    .program-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        text-align: center;
        border-bottom: 2px solid transparent;
        border-left: none;
    }

    .program-tabs .nav-link.active {
        border-bottom-color: var(--color-black);
        border-left: none;
    }

    .program-content .row {
        flex-direction: column;
    }

    .program-content .col-lg-6 {
        margin-bottom: 2rem;
    }

    .program-content .col-lg-6:last-child {
        margin-bottom: 0;
    }

    .skills-section .row {
        flex-direction: column;
    }

    .skills-section .col-lg-6.order-lg-1 {
        margin-bottom: 2rem;
        order: 2;
    }

    .skills-section .col-lg-6.order-lg-2 {
        order: 1;
        margin-bottom: 2rem;
    }

    .coach-section .row {
        flex-direction: column;
    }

    .coach-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }

    .gallery-grid .row {
        flex-direction: column;
    }

    .gallery-grid .col-lg-6 {
        margin-bottom: 1rem;
        width: 100%;
    }

    .gallery-grid .col-lg-6 .row {
        flex-direction: column;
    }

    .gallery-grid .col-lg-6 .col-6 {
        width: 100%;
        margin-bottom: 1rem;
    }

    .gallery-image-big,
    .gallery-image-small {
        height: 280px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-content {
        padding: 2rem 1rem;
    }

    .footer .row {
        flex-direction: column;
    }

    .footer .col-lg-6:first-child {
        margin-bottom: 2rem;
    }

    .footer-image {
        margin-top: 0;
    }

    .carousel-control-prev:not(.carousel-control-mobile):not(.program-carousel-prev),
    .carousel-control-next:not(.carousel-control-mobile):not(.program-carousel-next) {
        display: none;
    }
    
    /* Show program carousel controls on mobile */
    .program-carousel-prev,
    .program-carousel-next {
        display: flex !important;
    }
    
    /* Hide desktop indicators on mobile */
    .testimonials-section .carousel > .carousel-indicators:not(.carousel-controls-mobile-wrapper .carousel-indicators) {
        display: none;
    }

    .carousel-controls-mobile-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1.5rem;
        padding: 0 1rem;
        gap: 1rem;
    }

    .carousel-control-mobile {
        display: block;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 0;
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .carousel-controls-mobile-wrapper .carousel-indicators {
        flex: 1;
        margin: 0;
        position: relative;
        bottom: auto;
        justify-content: center;
    }

    .testimonials-section .carousel {
        overflow: visible;
    }

    .sponsor-item {
        min-width: 200px;
    }
    
    .sponsor-logo-image {
        max-height: 180px;
        min-height: 150px;
        padding: 1rem;
    }
    
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-logo-image {
        max-width: 180px;
    }

    .program-image,
    .program-carousel .carousel-inner {
        height: 250px;
    }
    
    .program-carousel-prev,
    .program-carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .program-carousel-prev .carousel-control-prev-icon,
    .program-carousel-next .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }

    .logo-image {
        height: 50px;
    }

    .btn-hero-contact {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-instagram {
        font-size: 1rem;
    }

    .section-title,
    .section-title-white {
        font-size: 1.5rem;
    }

    .program-title {
        font-size: 1.5rem;
    }

    .section-text,
    .section-text-white,
    .program-description {
        font-size: 1rem;
    }

    .gallery-image-big,
    .gallery-image-small {
        height: 250px;
    }

    .sponsor-item {
        min-width: 180px;
    }
    
    .sponsor-logo-image {
        max-height: 160px;
        min-height: 140px;
        padding: 0.75rem;
    }
    
    /* Show mobile carousel, hide desktop carousel on mobile */
    .sponsors-carousel-desktop {
        display: none;
    }
    
    .sponsors-carousel-mobile {
        display: block;
    }

    .sponsor-logo {
        font-size: 1.2rem;
        padding: 1.5rem;
        min-height: 100px;
    }

    .footer-title {
        font-size: 1.5rem;
    }

    .footer-question {
        font-size: 1.1rem;
    }

    .footer-subtext {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Placeholder Image Styles */
img[src*="placeholder"] {
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* Contact Modal Styles */
#contactModal .modal-content {
    border-radius: 10px;
    border: none;
}

#contactModal .modal-header {
    border-bottom: 1px solid #E0E0E0;
    padding: 1.5rem;
}

#contactModal .modal-title {
    font-weight: 700;
    color: var(--color-black);
    font-size: 1.5rem;
}

#contactModal .modal-body {
    padding: 1.5rem;
}

#contactModal .form-label {
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

#contactModal .form-control {
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1rem;
}

#contactModal select.form-control {
    background-color: var(--color-white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

#contactModal .form-control:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 0.2rem rgba(217, 64, 56, 0.25);
}

#contactModal .modal-footer {
    border-top: 1px solid #E0E0E0;
    padding: 1.5rem;
}

#contactModal .btn-primary {
    background-color: var(--color-red);
    border-color: var(--color-red);
    font-weight: 400;
}

#contactModal .btn-primary:hover {
    background-color: #B82E26;
    border-color: #B82E26;
}

/* Popup Modal Styles */
#popupModal .popup-modal-dialog {
    max-width: calc(85vh - 2rem);
    width: auto;
    margin: 1rem auto;
}

#popupModal .modal-content {
    background: transparent;
    border: none;
    max-height: 90vh;
    overflow: visible;
    position: relative;
}

#popupModal .modal-body {
    padding: 0;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popupModal .modal-header {
    border: none;
    padding: 0;
    position: relative;
}

#popupModal .btn-close {
    position: absolute;
    top: -10px;
    right: 5px;
    z-index: 1060;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 10px;
    opacity: 1;
    width: 40px;
    height: 40px;
    background-size: 20px;
}

#popupModal .btn-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 1;
}

#popupModal .popup-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 768px) {
    #popupModal .popup-modal-dialog {
        max-width: calc(90vh - 2rem);
        margin: 1rem auto;
    }
    
    #popupModal .btn-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        background-size: 18px;
    }
}

