.gulab-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1240 / 600;
    overflow: hidden;
    background: #eee;
}

.gulab-slider .gulab-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: gulabSlideShow 12s infinite;
}

.gulab-slider .gulab-slide:nth-child(1) { animation-delay: 0s; }
.gulab-slider .gulab-slide:nth-child(2) { animation-delay: 3s; }
.gulab-slider .gulab-slide:nth-child(3) { animation-delay: 6s; }
.gulab-slider .gulab-slide:nth-child(4) { animation-delay: 9s; }

@keyframes gulabSlideShow {
    0%, 24% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
    .gulab-slider {
        aspect-ratio: 16 / 9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gulab-slider .gulab-slide { animation: none; }
    .gulab-slider .gulab-slide:first-child { opacity: 1; }
}

/* Gulab hizmet kutulari ve WPBakery yerine sutun duzeni */
.gulab-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.gulab-row > .vc_col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    box-sizing: border-box;
    padding: 0 20px;
}

.gulab-row > .vc_col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gulab-row .featured-box-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .gulab-row > .vc_col-sm-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 25px;
    }
}

/* Ana sayfa slider yuksekligi */
.gulab-slider {
    height: min(48vw, 600px);
    aspect-ratio: auto;
}

@media (max-width: 767px) {
    .gulab-slider {
        height: 260px;
    }
}

/* Slider gecis duzeltmesi */
.gulab-slider .gulab-slide {
    animation-name: gulabSlideFixed;
    animation-duration: 12s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

@keyframes gulabSlideFixed {
    0%, 24.9% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

/* Eski Gulab ana sayfa yerlesimi */
.gulab-row:has(.featured-box) {
    margin-top: -115px !important;
    z-index: 5;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gulab-row:has(.featured-box) .featured-box {
    position: relative;
    z-index: 6;
}

@media (max-width: 767px) {
    .gulab-row:has(.featured-box) {
        margin-top: -65px !important;
    }
}

/* Ana sayfada gereksiz ust boslugu kaldir */
.home #primary {
    padding-top: 0 !important;
}

/* Gulab ic sayfalar - iki sutunlu duzen */
.gulab-row > .vc_col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
    padding: 0 20px;
}

@media (max-width: 767px) {
    .gulab-row > .vc_col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Gulab ic sayfa basliklari */
.gulab-custom-heading {
    margin: 28px 0 18px;
}

.gulab-custom-heading h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
}

.gulab-custom-heading .heading-line {
    width: 54px;
    height: 2px;
    background: #07552b;
    margin-bottom: 18px;
}

/* Ic sayfalarda baslik ile icerik arasini koru */
body:not(.home) .gulab-row {
    margin-top: 0 !important;
    clear: both;
}

/* About Us gorselleri baslik alaninin altinda baslasin */
body:not(.home) #primary {
    padding-top: 40px;
}

/* Contact Us - original centered content layout */
body.page-id-25 .gulab-row {
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.page-id-25 .gulab-row > .vc_col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 767px) {
    body.page-id-25 .gulab-row > .vc_col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Photos gallery */
body.page-id-803 .gulab-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

body.page-id-803 .gulab-media-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

body.page-id-803 .gulab-gallery-separator {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
}

@media (max-width: 767px) {
    body.page-id-803 .gulab-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Photos - gallery separators and spacing */
body.page-id-803 .gulab-gallery-separator {
    border: 0 !important;
    border-top: 1px solid #eeeeee !important;
    margin: 15px 0 !important;
}

body.page-id-803 .gulab-media-grid {
    margin-bottom: 0 !important;
}

body.page-id-803 .gulab-media-item {
    display: block;
    overflow: hidden;
}

/* Photos - lightbox image size */
body.page-id-803 .mfp-image-holder .mfp-content {
    max-width: 900px !important;
}

body.page-id-803 .mfp-img {
    max-height: 75vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

@media (max-width: 767px) {
    body.page-id-803 .mfp-image-holder .mfp-content {
        max-width: 92vw !important;
    }
}

/* Photos - gallery group separators */
body.page-id-803 .gulab-gallery-separator {
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    border: 0 !important;
    background: #eeeeee !important;
    margin: 15px 0 !important;
    clear: both;
}

body.page-id-803 .gulab-media-grid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Avoid doubled spacing between gallery groups */
body.page-id-803 .gulab-gallery-separator + div[style*="height"] {
    height: 15px !important;
}

/* Photos - compact gallery spacing */
body.page-id-803 .gulab-gallery-separator {
    margin: 8px 0 !important;
}

body.page-id-803 .gulab-gallery-separator + div[style*="height"] {
    height: 8px !important;
}

/* Videos page */
body.page-id-801 .gulab-row {
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 35px !important;
}

body.page-id-801 .gulab-row > .vc_col-sm-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

body.page-id-801 .gulab-video {
    aspect-ratio: 16 / 9;
    width: 100%;
}

body.page-id-801 .gulab-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767px) {
    body.page-id-801 .gulab-row > .vc_col-sm-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Lightweight video previews */
body.page-id-801 .gulab-video-play {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #111;
    overflow: hidden;
}

body.page-id-801 .gulab-video-play img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-id-801 .gulab-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff0033;
    color: white;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 25px;
    line-height: 1;
    pointer-events: none;
}

/* Our Services - three-column cards */
body.page-id-17 .gulab-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 35px;
}

body.page-id-17 .gulab-service-card img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

body.page-id-17 .gulab-service-card h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 18px 0;
}

body.page-id-17 .gulab-service-card h3 a {
    color: #444;
    text-decoration: none;
}

body.page-id-17 .gulab-service-link {
    color: #006633;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    body.page-id-17 .gulab-services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Service pages - embedded YouTube player */
body.page-child.parent-pageid-17 .gulab-service-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

body.page-child.parent-pageid-17 .gulab-service-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Service detail pages - elegant YouTube player */
body.page-child.parent-pageid-17 .gulab-service-video {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: 480px;
    height: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
}

body.page-child.parent-pageid-17 .gulab-service-video iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
    border: 0;
}

@media (max-width: 767px) {
    body.page-child.parent-pageid-17 .gulab-service-video {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Service detail pages - correct WPBakery column widths */
body.page-child.parent-pageid-17 .gulab-row > .vc_col-sm-8 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
    padding: 0 20px;
}

body.page-child.parent-pageid-17 .gulab-row > .vc_col-sm-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 20px;
}

body.page-child.parent-pageid-17 .gulab-service-video {
    max-width: 100%;
}

@media (max-width: 767px) {
    body.page-child.parent-pageid-17 .gulab-row > .vc_col-sm-8,
    body.page-child.parent-pageid-17 .gulab-row > .vc_col-sm-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Service details - vertically centered video and description */
@media (min-width: 768px) {
    body.page-child.parent-pageid-17 .gulab-row:has(.gulab-service-video) {
        align-items: center !important;
    }

    body.page-child.parent-pageid-17 .gulab-row:has(.gulab-service-video) > .vc_column_container {
        align-self: center !important;
    }
}

/* Service detail pages - balanced editorial layout */
@media (min-width: 768px) {
    body.page-child.parent-pageid-17 .gulab-row:has(.gulab-service-video) {
        align-items: flex-start !important;
        column-gap: 0;
        margin-bottom: 42px !important;
    }

    body.page-child.parent-pageid-17 .gulab-row:has(.gulab-service-video) > .vc_column_container {
        align-self: flex-start !important;
    }

    body.page-child.parent-pageid-17 .gulab-row:has(.gulab-service-video) > .vc_col-sm-8 {
        flex: 0 0 60% !important;
        max-width: 60% !important;
    }

    body.page-child.parent-pageid-17 .gulab-row:has(.gulab-service-video) > .vc_col-sm-4 {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }
}

body.page-child.parent-pageid-17 .gulab-service-video {
    max-width: 100% !important;
    border-radius: 6px;
}

body.page-child.parent-pageid-17 .gulab-row:has(.gulab-service-video) h3 {
    margin-top: 4px;
    margin-bottom: 22px;
}

/* Completed Projects - restored images */
body.tax-portfolio_category .gulab-single-image {
    margin-bottom: 28px;
}

body.tax-portfolio_category .gulab-single-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}
