/*
Theme Name: G-Shift
Description: A minimal WordPress theme
Author: yahya zh
Version: 1.0
Update URI: false
*/

@font-face {
    font-family: 'Akzidenz Grotesk';
    src: url('fonts/AkzidenzGrotesk-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Akzidenz Grotesk';
    src: url('fonts/AkzidenzGrotesk-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

:root {
    --color-primary: #1FAD82;
    --color-secondary: #48b58f;
    --color-dark: #212121;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--color-dark);
    background: #fff;
}

.site-header {
    background: #fff;
}

.header-top-bar {
    height: 12px;
    background: var(--color-primary);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 25px 0;
}

.nav-link {
    text-decoration: none;
    color: var(--color-dark);
    font-size: 16px;
    font-weight: 400;
}

.nav-link.active,
.nav-link:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    background: #fff;
    padding: 40px 20px 20px;
    text-align: center;
}

.hero-title {
    font-family: 'Akzidenz Grotesk', sans-serif;
    color: var(--color-primary);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Map Section - split background */
.map-section {
    position: relative;
    background: transparent;
    z-index: 10;
}

/* Map */
.map-container {
    position: relative;
    max-width: 575px;
    margin: 0 auto;
}

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

.tripoli-map .map-base {
    fill: var(--color-primary);
    stroke: #fff;
    stroke-width: 3;
    pointer-events: none;
}

.tripoli-map .neighborhood path,
.tripoli-map .neighborhood polygon {
    fill: var(--color-primary);
    stroke: #fff;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.2s ease;
}

.tripoli-map .neighborhood:hover path,
.tripoli-map .neighborhood:hover polygon {
    fill: var(--color-secondary);
}

/* Tooltip */
.map-tooltip {
    position: absolute;
    background: var(--color-dark);
    color: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
    min-width: 140px;
}

.map-tooltip.visible {
    opacity: 1;
}

.tooltip-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.tooltip-project {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 4px;
}

.tooltip-amount {
    color: var(--color-primary);
    font-weight: 600;
}

/* Content Section */
.content-section {
    background: var(--color-dark);
    padding: 100px 40px;
    position: relative;
    z-index: 1;
    border-radius: 20px 20px 0 0;
    transform: translateY(-200px);
    margin-bottom: -200px;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-section p {
    color: #fff !important;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section a {
    color: #fff;
}

/* Neighborhood Sections */
.neighborhood-section {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.neighborhood-content {
    max-width: 700px;
    margin: 0 auto;
}

.neighborhood-title {
    font-family: 'Akzidenz Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 5px;
    text-align: center;
}

.neighborhood-project {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.neighborhood-amount {
    font-family: 'Akzidenz Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
}

.neighborhood-video {
    margin-bottom: 30px;
}

.video-wrapper {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-wrapper.playing {
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.video-placeholder {
    background: var(--color-primary);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-placeholder .play-icon {
    z-index: 2;
}

.video-placeholder:hover .video-thumbnail {
    opacity: 0.8;
}

.play-icon {
    width: 80px;
    height: 80px;
}

.neighborhood-description {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
    text-align: left;
}

.neighborhood-description p {
    margin-bottom: 15px;
}

.donate-button {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.donate-button:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Logos Section */
.logos-section {
    background: #fff;
    padding: 60px 20px;
    border-top: 1px solid #eee;
}

.logos-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.partner-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .map-container {
        max-width: 90%;
    }

    .content-section {
        padding: 60px 20px;
        transform: translateY(-150px);
        margin-bottom: -150px;
        border-radius: 15px 15px 0 0;
    }

    .neighborhood-section {
        padding: 60px 20px;
    }

    .neighborhood-title {
        font-size: 26px;
    }

    .neighborhood-amount {
        font-size: 32px;
    }

    .play-icon {
        width: 60px;
        height: 60px;
    }

    .logos-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .partner-logo {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .content-section {
        padding: 40px 15px;
        transform: translateY(-100px);
        margin-bottom: -100px;
        border-radius: 10px 10px 0 0;
    }

    .content-section p {
        font-size: 13px;
    }

    .neighborhood-section {
        padding: 40px 15px;
    }

    .neighborhood-title {
        font-size: 22px;
    }

    .neighborhood-project {
        font-size: 16px;
    }

    .neighborhood-amount {
        font-size: 28px;
    }

    .video-placeholder {
        border-radius: 15px;
    }

    .play-icon {
        width: 50px;
        height: 50px;
    }

    .neighborhood-description {
        font-size: 13px;
    }

    .donate-button {
        padding: 10px 30px;
        font-size: 13px;
    }

    .logos-section {
        padding: 40px 15px;
    }

    .logos-wrapper {
        gap: 20px;
    }

    .partner-logo {
        height: 40px;
    }
}

/* =====================================================
   ABOUT PAGE STYLES
   ===================================================== */

.about-page {
    background: #fff;
}

.about-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Image Placeholder */
.about-page .image-placeholder {
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* Hero Section */
.about-hero {
    padding: 40px 20px 30px;
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-hero-image {
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0 0 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.about-hero-image .image-placeholder {
    min-height: 100%;
    border-radius: 8px;
}

.about-title {
    font-family: 'Akzidenz Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0;
}

/* Intro Text Section */
.about-intro {
    padding: 30px 20px 50px;
}

.intro-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-dark);
}

.intro-text p {
    margin-bottom: 15px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Two Column Sections */
.about-two-col {
    padding: 40px 20px;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.two-col-image {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
}

.two-col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.two-col-image .image-placeholder {
    min-height: 100%;
}

.two-col-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-dark);
}

.two-col-text p {
    margin-bottom: 15px;
}

.two-col-text p:last-child {
    margin-bottom: 0;
}

/* Full Width Text Section */
.about-full-text {
    padding: 50px 20px;
}

.full-text-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-dark);
}

.full-text-content p {
    margin-bottom: 15px;
}

.full-text-content p:last-child {
    margin-bottom: 0;
}

/* Slider Section */
.about-slider-section {
    padding: 80px 20px;
    background: #fff;
}

.about-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-container {
    overflow: hidden;
    padding: 40px;
}

.slider-track {
    position: relative;
    min-height: 280px;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    transform: translateX(50px);
}

.slider-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slider-slide.prev {
    transform: translateX(-50px);
}

.slide-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

.slide-image {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.slide-image:hover img {
    transform: scale(1.05);
}

.slide-image .image-placeholder {
    min-height: 100%;
    font-size: 14px;
}

.slide-text {
    padding-top: 5px;
}

.slide-title {
    font-family: 'Akzidenz Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 15px;
}

.slide-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.slide-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.slide-description p {
    margin-bottom: 15px;
}

.slide-description p:last-child {
    margin-bottom: 0;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-arrow {
    width: 56px;
    height: 56px;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.slider-arrow:hover {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.05);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow svg {
    width: 22px;
    height: 22px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: var(--color-secondary);
}

.slider-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Slide Counter */
.slider-counter {
    font-family: 'Akzidenz Grotesk', sans-serif;
    font-size: 14px;
    color: #888;
    min-width: 60px;
    text-align: center;
}

.slider-counter .current {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-primary);
}

.slider-counter .separator {
    margin: 0 5px;
}

.slider-counter .total {
    color: #aaa;
}

/* About Page Responsive */
@media (max-width: 768px) {
    .about-title {
        font-size: 28px;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .two-col-grid--reverse {
        display: flex;
        flex-direction: column;
    }

    .two-col-grid--reverse .two-col-image {
        order: -1;
    }

    .two-col-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .slide-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .slide-image {
        max-width: 240px;
        margin: 0 auto;
    }

    .slider-track {
        min-height: auto;
    }

    .slider-container {
        padding: 30px;
    }

    .slider-arrow {
        width: 48px;
        height: 48px;
    }

    .about-slider-section {
        padding: 50px 15px;
    }

    .slider-nav {
        gap: 15px;
    }

    .slide-title {
        font-size: 24px;
        text-align: center;
    }

    .slide-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .slide-description {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 30px 15px 20px;
    }

    .about-hero-image {
        margin-bottom: 20px;
    }

    .about-title {
        font-size: 24px;
    }

    .about-intro,
    .about-two-col,
    .about-full-text {
        padding: 30px 15px;
    }

    .intro-text,
    .two-col-text,
    .full-text-content,
    .slide-description {
        font-size: 13px;
    }

    .two-col-grid {
        gap: 20px;
    }

    .two-col-image,
    .slide-image {
        max-width: 220px;
    }

    .slide-title {
        font-size: 20px;
    }

    .slider-container {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .slider-arrow {
        width: 42px;
        height: 42px;
    }

    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }

    .about-slider-section {
        padding: 40px 15px;
    }

    .slide-image {
        max-width: 200px;
    }

    .slider-dots {
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-counter {
        font-size: 12px;
    }

    .slider-counter .current {
        font-size: 16px;
    }
}
