/* Swiadectwa Page Specific Styles */

.swiadectwa-page {
    background: var(--primary-color);
}

/* Header Transparent */
.header-transparent {
    position: absolute;
    background: transparent;
    border-bottom: none;
}

.header-transparent .nav-list a.active {
    color: rgb(255, 125, 0);
}

.header-transparent .nav-list a.active::after {
    width: 100%;
    background: rgb(255, 125, 0);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--primary-color);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(50px) brightness(0.5);
    transform: scale(1.2);
    z-index: 0;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 200px;
    z-index: 1;
}


.hero-image-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-image-container img {
    width: 1425px;
    height: 745px;
    object-fit: cover;
    opacity: 1;
    display: block;
}

/* Description Section */
.description-section {
    padding: 6rem 2rem 4rem;
    background: var(--secondary-color);
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-main-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.description-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.description-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-gray);
    text-align: center;
}

/* Testimonies Section */
.testimonies-section {
    padding: 4rem 2rem 6rem;
    background: var(--secondary-color);
    position: relative;
    z-index: 10;
}

.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
}

/* Testimony Card – image absolutely positioned, content starts at image height so zero gap */
.testimonies-section {
    --testimony-image-height: 200px;
}

.testimony-card {
    position: relative;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimony-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Image: fixed at top, out of flow – no gap possible */
.testimony-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--testimony-image-height, 200px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.testimony-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    vertical-align: top;
}

/* Video card: image container matches image aspect ratio (220 × 136.13), no letterboxing */
.testimony-card-video {
    display: flex;
    flex-direction: column;
}

.testimony-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.testimony-card-video .testimony-image {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 220 / 136.13;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.testimony-card-video .testimony-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.testimony-card-video .testimony-content {
    margin-top: 0;
}

.testimony-card:hover .testimony-image img {
    transform: scale(1.1);
}

.testimony-card-video:hover .testimony-image img {
    transform: scale(1.05);
}

/* Content: starts exactly at image height – no gap, padding fits preview */
.testimony-content {
    margin: 0;
    margin-top: var(--testimony-image-height, 200px);
    padding: 0.75rem 1rem 1rem;
    background: rgba(30, 30, 30, 0.8);
}

.testimony-content > *:first-child {
    margin-top: 0;
}

.testimony-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.testimony-preview {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimony-link {
    color: rgb(255, 125, 0);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.testimony-link:hover {
    color: #ffffff;
}

/* Video modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-modal-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .testimonies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .hero-content {
        padding-top: 180px;
    }

    .hero-image-container img {
        width: 90vw;
        height: auto;
        max-height: 55vh;
    }

    .description-section {
        padding: 4rem 2rem 3rem;
    }

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

    .description-title {
        font-size: 2rem;
    }

    .description-text {
        font-size: 1.1rem;
    }

    .testimonies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-top: 140px;
    }

    .hero-image-container img {
        width: 95vw;
        height: auto;
        max-height: 50vh;
    }

    .description-section {
        padding: 3rem 1.5rem 2rem;
    }

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

    .description-title {
        font-size: 1.6rem;
    }

    .description-text {
        font-size: 1rem;
        text-align: left;
    }

    .testimonies-section {
        padding: 3rem 1rem 4rem;
    }

    .testimonies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonies-section {
        --testimony-image-height: 180px;
    }
}

