/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    min-height: 929px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: max-content;
}

.hero-title {
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--font-size-medium);
    font-weight: 500;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: 700px;
    }

    .hero-title {
        font-size: var(--font-size-xl-tablet);
    }

    .hero-subtitle {
        font-size: var(--font-size-medium-tablet);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: var(--font-size-xl-mobile);
    }

    .hero-subtitle {
        font-size: var(--font-size-medium-mobile);
    }
}

/* ===================================
   About Section
   =================================== */

.about-section {
    background: var(--primary);
    padding: 100px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text {
    font-size: var(--font-size-small);
    line-height: 28px;
    color: #e1e1e1;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 638px;
}

@media (max-width: 1024px) {
    .about-section {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }

    .about-text {
        font-size: var(--font-size-small-mobile);
        line-height: 26px;
    }
}

/* ===================================
   Projects Section
   =================================== */

.projects-section {
    background: #faf5f2;
    padding: 88px 0;
}

.projects-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 56px;
}

.projects-header-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.projects-description {
    font-size: var(--font-size-small);
    line-height: 28px;
    color: var(--text-gray);
}

.projects-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.projects-carousel {
    display: flex;
    gap: 23px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.projects-carousel:active {
    cursor: grabbing;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-snap-align: start;
}

.project-image {
    width: 100%;
    height: 495px;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.project-title {
    font-family: 'Aktiv Grotesk VF Trial', Helvetica, sans-serif;
    font-weight: 700;
    font-size: var(--font-size-medium);
    color: #000000;
}

.project-location {
    font-family: 'Aktiv Grotesk VF Trial', Helvetica, sans-serif;
    font-size: var(--font-size-small);
    color: var(--paragraph-grey);
}

.carousel-controls {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.carousel-buttons {
    display: flex;
    gap: 20px;
}

.carousel-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 0.79px solid #8d8d8d;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(1.97px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    color: var(--primary);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

.carousel-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    rotate: 180deg;
}

.carousel-progress {
    flex: 1;
    max-width: 1128px;
}

.carousel-progress-bar {
    width: 100%;
    height: 2px;
    background-color: rgba(190, 117, 90, 0.2);
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

.carousel-progress-fill {
    height: 100%;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
    margin-left: 0;
    /* Start from left in LTR */
}

/* RTL support: fill starts from right */
[dir="rtl"] .carousel-progress-fill,
html[dir="rtl"] .carousel-progress-fill {
    margin-left: auto;
    margin-right: 0;
}

.carousel-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--secondary);
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .projects-header {
        grid-template-columns: 1fr;
    }

    /* Tablet: Show 2 cards */
    .project-card {
        flex: 0 0 calc(50% - 11.5px);
        min-width: calc(50% - 11.5px);
    }
}

/* Controls are visible on all screen sizes */

@media (max-width: 768px) {
    .projects-section {
        padding: 60px 0;
    }

    .project-card {
        flex: 0 0 280px;
        min-width: 280px;
    }

    .project-image {
        height: 400px;
    }

    .carousel-progress-bar {
        height: 3px;
    }

    .carousel-progress-fill::after {
        width: 14px;
        height: 14px;
    }
}

/* ===================================
   International Section
   =================================== */

.international-section {
    padding: 100px 0;
    background: #ffffff;
}

.international-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.international-map {
    position: relative;
    width: 100%;
    max-width: 711px;
}

.map-base {
    width: 100%;
    height: auto;
}

.map-marker {
    position: absolute;
    width: 34px;
    height: 43px;
}

.marker-1 {
    top: 46%;
    right: 22%;
}

.marker-2 {
    top: 43%;
    right: 13%;
}

.marker-3 {
    top: 24%;
    right: 30%;
}

.marker-4 {
    top: 18%;
    right: 60%;
}

.international-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.international-text {
    font-size: var(--font-size-small);
    line-height: 28px;
    color: var(--text-gray);
}

@media (max-width: 1024px) {
    .international-section {
        padding: 80px 0;
    }

    .international-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .international-section {
        padding: 60px 0;
    }

    .international-text {
        font-size: var(--font-size-small-mobile);
        line-height: 26px;
    }
}

/* ===================================
   Why Choose Section
   =================================== */

.why-choose-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.vine-decoration {
    position: absolute;
    top: 121px;
    left: 0;
    width: 356px;
    height: 501px;
    opacity: 0.2;
    pointer-events: none;
}

.vine-decoration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.why-choose-image {
    width: 100%;
    height: 100%;
}

.why-choose-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.why-image-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-image-small {
    width: 100%;
    height: 231px;
    object-fit: cover;
}

.why-choose-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-choose-text {
    font-family: 'Aktiv Grotesk VF Trial', Helvetica, sans-serif;
    font-size: var(--font-size-small);
    line-height: 28px;
    color: var(--text-gray);
}

@media (max-width: 1024px) {
    .why-choose-section {
        padding: 80px 0;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-choose-images {
        order: 1;
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 60px 0;
    }

    .why-choose-text {
        font-size: var(--font-size-medium-mobile);
        line-height: 26px;
    }

    .why-image-small {
        height: 180px;
    }
}

/* ===================================
   News Section
   =================================== */

.news-section {
    padding: 100px 0;
    background: #ffffff;
}

.news-section .section-label {
    color: var(--secondary-orange);
}

.news-section .section-title {
    margin-bottom: 56px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* News carousel styles - applied by JS */
.news-grid.news-carousel-active {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    gap: 20px;
}

.news-grid.news-carousel-active:active {
    cursor: grabbing;
}

.news-grid.news-carousel-active::-webkit-scrollbar {
    display: none;
}

.news-grid.news-carousel-active .news-card {
    flex: 0 0 400px;
    scroll-snap-align: start;
}

@media (max-width: 1024px) {
    .news-grid.news-carousel-active .news-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .news-grid.news-carousel-active .news-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-date {
    font-size: var(--font-size-small);
    color: var(--secondary);
}

.news-title {
    font-weight: 700;
    font-size: var(--font-size-medium);
    line-height: 1.1;
    color: var(--primary);
}

.news-excerpt {
    font-size: var(--font-size-small);
    line-height: 28px;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-link {
    font-size: var(--font-size-small);
    color: var(--primary);
    text-decoration: underline;
    letter-spacing: 0.9px;
}

.news-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.news-progress {
    flex: 1;
    max-width: 1128px;
}

.news-progress-bar {
    width: 100%;
    height: 2px;
    background-color: rgba(190, 117, 90, 0.2);
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

.news-progress-fill {
    height: 100%;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
    margin-left: 0;
}

/* RTL support: fill starts from right */
[dir="rtl"] .news-progress-fill,
html[dir="rtl"] .news-progress-fill {
    margin-left: auto;
    margin-right: 0;
}

.news-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--secondary);
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .news-section {
        padding: 80px 0;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }

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

    .news-image {
        height: 240px;
    }
}

/* ===================================
   Partners Section
   =================================== */

.partners-section {
    padding: 100px 0;
    background: #ffffff;
}

.partners-section .section-label {
    color: var(--secondary-orange);
}

.partners-section .section-title {
    margin-bottom: 56px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.partners-grid:last-child {
    margin-bottom: 0;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.partner-mark {
    position: absolute;
    width: 30.14%;
    height: auto;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

.partner-type {
    position: absolute;
    width: 59.76%;
    height: auto;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
}

.partner-logo-img {
    width: 100%;
    height: 49px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .partners-section {
        padding: 80px 0;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 60px 0;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}