/* ===== Base ===== */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

#pagepiling {
    height: 100vh;
}

/* ===== Navbar ===== */
.navbar {
    background-color: #343a40;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-nav {
    margin-left: auto;
    text-align: right;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 2rem;
    width: auto;
    margin-right: 1rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
    display: inline-block;
    text-align: right;
    will-change: transform;
}

.navbar-nav .nav-link:hover {
    color: white;
    transform: scale(1.1);
    transform-origin: center;
}

.navbar-nav .nav-item.active .nav-link {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ===== Sections ===== */
.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #f8f9fa;
    font-size: 1.5rem;
}

/* ===== Splide Carousel ===== */
.splide {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

.splide__slide {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.splide__slide:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.splide__slide h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.splide__slide p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.splide__arrow {
    color: #343a40;
}

@media (max-width: 768px) {
    .splide__slide {
        padding: 1rem;
        border-radius: 6px;
    }
    .splide__slide p {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

/* ===== Review Modal ===== */
.read-all, .collapse {
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
}

.expanded-review {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.expanded-review h4 {
    margin-bottom: 1rem;
}

.expanded-review .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

.expanded-review .close-button:hover {
    color: #ff0000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Pricing ===== */
.list-group-item {
    padding: 1rem 0;
    margin: 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    color: #222;
    border-bottom-color: #666;
    transform: scale(1.1);
    z-index: 1;
}

.list-group-item span:first-child {
    flex: 1;
    text-align: left;
}

.list-group-item .prices-text {
    color: #000;
    font-weight: 600;
    text-align: right;
}

.container.pricing-list {
    margin-top: 2rem;
    padding-left: 4rem;
    padding-right: 4rem;
}

@media (max-width: 768px) {
    .container.pricing-list {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .list-group-item {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
    .list-group-item .prices-text {
        text-align: left;
        font-size: 0.95rem;
        color: #555;
    }
}

/* ===== Service Modal ===== */
.expanded-service {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
}

.expanded-service .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* ===== Contact Section ===== */
.contact-section .pp-tableCell {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-section .contact-item {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
}

.contact-section .contact-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.contact-section .contact-link:hover {
    color: #007bff;
}

.contact-section .social-icons {
    margin-top: 1rem;
    text-align: center;
}

.contact-section .social-icons a {
    margin: 0 10px;
    color: #343a40;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.contact-section .social-icons a:hover {
    color: #007bff;
}

.contact-section .logo-and-text {
    margin-top: 6rem;
    text-align: center;
}

.contact-section .contact-logo {
    height: 12rem;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contact-section .contact-message {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* ===== Home Section ===== */
#home .pp-tableCell {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
}

#home {
    display: flex;
    flex-direction: row;
    height: 100vh;
    justify-content: flex-start;
}

#home img {
    height: 100vh;
    max-width: 50vw;
    object-fit: cover;
    padding: 0;
    margin: 0;
}

#home .text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    width: 50%;
}

#home .text-container h1 img {
    height: 4rem;
    width: auto;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    #home img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        max-width: none;
    }
    #home .text-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        justify-content: center;
        align-items: center;
        width: 90%;
        text-align: center;
        color: white;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
        background: rgba(0, 0, 0, 0.4);
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 450px) {
    #home .text-container {
        width: 95%;
        padding: 1rem;
    }
    #home .text-container h1 {
        height: 3rem;
        width: auto;
        margin-right: 1rem;
        margin-bottom: 1rem;
        font-size: 2rem;
    }
}

/* ===== About Section ===== */
#about .pp-tableCell {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
}

#about {
    display: flex;
    flex-direction: row;
    height: 100vh;
    justify-content: flex-start;
}

#about img {
    height: 100vh;
    max-width: 50vw;
    object-fit: cover;
    padding: 0;
    margin: 0;
}

#about .text-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 4rem 2rem 2rem;
    width: 50%;
    overflow-y: auto;
}

#about .text-container h1 {
    height: 4rem;
    width: auto;
    margin-right: 1rem;
}

#about .text-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* Tablet: stack image above text */
@media (max-width: 1024px) {
    #about .pp-tableCell {
        flex-direction: column;
        align-items: stretch;
    }
    #about {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        height: 100vh;
    }
    #about img {
        width: 100%;
        height: 35%;
        object-fit: cover;
        max-width: none;
        object-position: top;
        display: block;
    }
    #about .text-container {
        width: 100%;
        height: 65%;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 1.5rem;
        overflow-y: auto;
    }
    #about .text-container p {
        font-size: 1rem;
        line-height: 1.5;
        color: #333;
        margin: 0;
    }
}

/* Mobile: smaller image, more text space */
@media (max-width: 680px) {
    #about img {
        height: 25%;
    }
    #about .text-container {
        height: 75%;
        padding: 1rem;
    }
    #about h1 {
        font-size: 2rem;
    }
    #about .text-container p {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #333;
        margin: 0;
        text-align: left;
    }
}

/* ===== Training Section ===== */
#training .pp-tableCell {
    display: block !important;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
}

/* ===== Pricing Section ===== */
#pricing .pp-tableCell {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    height: 100%;
    padding-top: 2rem;
}

#training h1, #training h3 {
    margin-right: 1rem;
}

#training .training-container {
    display: flex;
    height: 60vh;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
}

#training .responsive-image {
    width: 35%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    display: block;
}

#training .text-container {
    flex: 1;
    min-width: 0; /* prevents flex item from overflowing */
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem 1.5rem 1.5rem;
    overflow-y: auto;
}

#training .text-container p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    padding-top: 0.5rem;
    text-align: justify;
}

@media (max-width: 900px) {
    #training .responsive-image {
        display: none;
    }
    #training .text-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    #training .text-container p {
        font-size: 1rem;
        line-height: 1.4;
        margin: 0;
    }
}

@media (max-width: 600px) {
    #training .text-container p {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #333;
        margin: 0;
        text-align: left;
    }
    #training h1, #training h3 {
        font-size: 1.2rem;
    }
}

/* ===== FHD / 4K max-width caps ===== */
@media (min-width: 1400px) {
    #home .text-container,
    #about .text-container {
        max-width: 800px;
    }
    #training .text-container {
        max-width: 800px;
    }
    .container.pricing-list {
        max-width: 1000px;
    }
}
