/* Stallions Split Screen */
.stallions-split {
    display: flex;
    height: 100vh;
    width: 100%;
}

.stallion-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.5s ease;
    overflow: hidden;
}

.stallion-side.madhmoon {
    background-image: url('./img/madhmoon.jpg');
}

.stallion-side.sirrohn {
    background-image: url('./img/sirrohn.jpg');
}

.stallion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: background-color 0.3s ease;
}

.stallion-side.madhmoon .stallion-overlay {
    background-color: rgba(96, 108, 56, 0.7); /* Dark moss green with opacity */
}

.stallion-side.sirrohn .stallion-overlay {
    background-color: rgba(254, 250, 224, 0.7); /* Cornsilk with opacity */
}

.stallion-side:hover .stallion-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.stallion-content {
    text-align: center;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.stallion-side:hover .stallion-content {
    transform: scale(1.1);
}

.stallion-side.madhmoon .stallion-content h2 {
    color: var(--cornsilk);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: var(--text-shadow);
}

.stallion-side.madhmoon .stallion-content p {
    color: var(--cornsilk);
    font-size: 1.5rem;
    text-shadow: var(--text-shadow);
}

.stallion-side.sirrohn .stallion-content h2 {
    color: var(--pakistan-green);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.stallion-side.sirrohn .stallion-content p {
    color: var(--pakistan-green);
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.stallion-side.sirrohn:hover .stallion-content h2,
.stallion-side.sirrohn:hover .stallion-content p {
    color: var(--cornsilk);
    text-shadow: var(--text-shadow);
}

/* Stallion Detail View */
.stallion-detail {
    min-height: 100vh;
    padding-top: 0;
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stallion Gallery Section */
.stallion-gallery {
    margin-top: 3rem;
}

.stallion-gallery > h3 {
    color: var(--pakistan-green);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: bold;
    text-align: center;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.media-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-item img:hover {
    transform: scale(1.05);
}

.media-item iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 4rem;
    font-weight: 300;
    cursor: pointer;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1.5rem 1.8rem;
    font-size: 2.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    font-weight: 300;
}

.lightbox-nav button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.detail-content {
    padding: 5rem 0 6rem 0;
    background-color: #f8f9fa;
}

.detail-content h1 {
    font-size: 3rem;
    color: var(--pakistan-green);
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
}

.detail-subtitle {
    font-size: 1.5rem;
    color: var(--earth-yellow);
    margin-bottom: 3rem;
    text-align: center;
    font-style: italic;
}

.detail-info {
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    color: var(--pakistan-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.info-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Pedigree Section */
.pedigree-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.pedigree-section h3 {
    color: var(--pakistan-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.pedigree-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pedigree-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Testimonies Section */
.testimonies-section {
    margin-bottom: 3rem;
}

.testimonies-section h3 {
    color: var(--pakistan-green);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: bold;
    text-align: center;
}

.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimony-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--earth-yellow);
}

.testimony-text {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimony-author {
    color: var(--pakistan-green);
    font-weight: bold;
    font-size: 1rem;
    text-align: right;
}

/* Performances Section */
.performances-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.performances-section h3 {
    color: var(--pakistan-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.performances-section #detail-performances {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Price Section */
.price-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.price-section h3 {
    color: var(--pakistan-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.price-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--pakistan-green);
    white-space: nowrap;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.price-conditions,
.price-additional {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.price-conditions {
    font-weight: 600;
}

.price-additional {
    font-style: italic;
    font-size: 0.95rem;
}

.description {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.description h3 {
    color: var(--pakistan-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.description p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.switch-stallion {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stallions-split {
        flex-direction: column;
    }

    .stallion-side {
        min-height: 50vh;
    }

    .stallion-content h2 {
        font-size: 2.5rem !important;
    }

    .stallion-content p {
        font-size: 1.2rem !important;
    }

    .detail-hero {
        height: 50vh;
    }

    .detail-content {
        padding: 3rem 0 5rem 0;
    }

    .detail-content h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .info-item,
    .description,
    .pedigree-section,
    .performances-section,
    .price-section {
        padding: 1.5rem;
    }

    .info-item h3 {
        font-size: 1.3rem;
    }

    .description h3,
    .pedigree-section h3,
    .performances-section h3,
    .testimonies-section h3,
    .price-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .price-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    .price-conditions,
    .price-additional {
        font-size: 0.95rem;
    }

    .detail-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

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

    .testimony-card {
        padding: 1.5rem;
    }

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

    .switch-stallion {
        font-size: 1rem;
        bottom: 1rem;
        padding: 0.8rem 1.5rem;
    }

    /* Media grid adjustments for mobile */
    .stallion-gallery {
        margin-top: 2rem;
    }

    .stallion-gallery > h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

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

    .media-item {
        height: 250px;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 3rem;
    }

    .lightbox-nav button {
        padding: 1rem 1.2rem;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .stallion-content h2 {
        font-size: 2rem !important;
    }

    .detail-content h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    .detail-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .price-amount {
        font-size: 1.4rem;
    }

    .price-conditions,
    .price-additional {
        font-size: 0.9rem;
    }

    .media-item {
        height: 200px;
    }

    .lightbox-close {
        font-size: 2.5rem;
    }

    .lightbox-nav button {
        padding: 0.8rem 1rem;
        font-size: 1.5rem;
    }
}
