/* ==========================================
   🎨 JoLand v2 - Main Stylesheet
   Theme: Dark x Gold
   Author: Mohammad Louay
   ========================================== */


/* =========================================================
   🧩 [01] - GLOBAL STYLES & RESET
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #0b0c10;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}


/* =========================================================
   🌍 [02] - HERO SECTION
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800&family=Tajawal:wght@700;800&display=swap');

.hero {
    position: relative;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero h1 {
    font-family: "Cinzel", serif;
    font-size: 4rem;
    color: #d4af37;
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

.hero h1 span {
    display: block;
    font-family: "Tajawal", sans-serif;
    font-size: 3.5rem;
    color: #ffdf70;
    margin-top: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.2em;
    color: #fff;
}

.cta {
    padding: 0.8em 2em;
    font-size: 1.1rem;
    border: 2px solid #d4af37;
    background: transparent;
    color: #d4af37;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
}

.cta:hover {
    background: #d4af37;
    color: #111;
}


/* ===== Node Icon Positions (بدل inline styles) ===== */
.node-cv {
    --x: 14%;
    --y: 60%;
}

.node-home {
    --x: 30%;
    --y: 68%;
}

.node-handshake {
    --x: 50%;
    --y: 45%;
}

.node-plane {
    --x: 70%;
    --y: 30%;
}

.node-file {
    --x: 85%;
    --y: 50%;
}

/* =========================================================
   🗺️ [03] - JOURNEY GRAPHIC & ICONS
   ========================================================= */
.journey-graphic {
    position: relative;
    width: 100%;
    max-width: 1600px;
    aspect-ratio: 16/6;
    background: transparent;
    overflow: visible;
    margin-top: 10px;
}

.journey-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.node-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    color: #d4af37;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.node-icon:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.node-icon::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4af37;
    transform: translateX(-50%);
    box-shadow: 0 0 6px #d4af37;
}


/* =========================================================
   🚩 [04] - FLAGS (Jordan & Germany)
   ========================================================= */
.flag {
    position: absolute;
    font-size: 28px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s;
    color: transparent;
}

.flag:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.flag-jordan {
    left: 8%;
    top: 62%;
}

.flag-germany {
    left: 93%;
    top: 46%;
}

.flag::before,
.flag::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   🌐 [05] - LANGUAGE SWITCH
   ========================================================= */
#lang-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 99;
}

#lang-switch button {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#lang-switch button:hover {
    background: #d4af37;
    color: #000;
}


/* =========================================================
   💬 [06] - TOOLTIP
   ========================================================= */
.node-icon::before,
.flag::before {
    content: attr(data-tip);
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffde85;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.node-icon:hover::before,
.flag:hover::before {
    opacity: 1;
}


/* =========================================================
   🧭 [07] - RESPONSIVE SETTINGS (Hero + Journey)
   ========================================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h1 span {
        font-size: 2.6rem;
    }

    .node-icon {
        width: 38px;
        height: 38px;
    }

    .flag {
        font-size: 22px;
    }
}


/* =========================================================
   📦 [08] - SECTION BASE
   ========================================================= */
section {
    padding: 80px 10%;
    text-align: center;
}

section h2 {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 40px;
}


/* =========================================================
   🛠️ [09] - SERVICES SECTION
   ========================================================= */
.services-section {
    text-align: center;
    padding: 60px 20px;
}

.section-title {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 40px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    justify-content: center;
}

.service-card {
    background-color: #0d0d0d;
    border: 1px solid #2b2b2b;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.icon {
    width: 42px;
    height: 42px;
    color: #d4af37;
    margin: 0 auto 15px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px #d4af37);
}

.service-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-card p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #d4af37;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #fff;
}


/* =========================================================
   🏙️ [10] - CITIES SECTION
   ========================================================= */
.cities-section {
    text-align: center;
    padding: 60px 20px;
}

.cities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.city-card {
    background-color: #0d0d0d;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 20px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.city-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.city-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.city-card h3 {
    color: #d4af37;
    margin-top: 10px;
    font-size: 1.2rem;
}

.city-card p {
    color: #ccc;
    font-size: 0.95rem;
    margin: 10px 15px 20px;
}

/* 🌟 الزر الذهبي داخل بطاقات المدن */
.city-card .read-more {
    display: inline-block;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 auto 15px;
    /* 🔥 أهم سطر — يوسّط الزر ويترك مسافة تحت */
}

.city-card .read-more:hover {
    background: #d4af37;
    color: #000;
}


/* =========================================================
   📰 [11] - ARTICLES SECTION
   ========================================================= */
.articles-section {
    text-align: center;
    padding: 60px 20px;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    justify-content: center;
}

.article-card {
    background-color: #0d0d0d;
    border: 1px solid #2b2b2b;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
}

.article-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-card p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.read-more:hover {
    background: #d4af37;
    color: #000;
}


/* =========================================================
   ✈️ [12] - BLOG SECTION
   ========================================================= */
.blog-section {
    text-align: center;
    padding: 60px 20px;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    justify-content: center;
}

.blog-card {
    background-color: #0d0d0d;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card h3 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-card p {
    color: #ccc;
    font-size: 0.95rem;
}

.blog-card .read-more {
    display: inline-block;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.blog-card .read-more:hover {
    background: #d4af37;
    color: #000;
}


/* =========================================================
   📬 [13] - CONTACT SECTION
   ========================================================= */
.contact {
    text-align: center;
    padding: 60px 20px;
}

.contact h2 {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 25px;
}

#contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    background: #0d0d0d;
    border: 1px solid #2b2b2b;
    color: #fff;
    border-radius: 8px;
}

#contact-form button {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

#contact-form button:hover {
    background: #d4af37;
    color: #000;
}

#form-status {
    margin-top: 10px;
    color: #ffdf70;
}


/* =========================================================
   🧾 [14] - NEWS SECTION
   ========================================================= */
#news-section {
    text-align: center;
    padding: 60px 20px;
}

#news-section h2 {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 25px;
}


/* =========================================================
   ⚫ [15] - FOOTER
   ========================================================= */
footer {
    text-align: center;
    padding: 25px 0;
    background-color: #0a0a0a;
    color: #d4af37;
    font-size: 0.9rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}


/* =========================================================
   📱 [16] - RESPONSIVE & MOBILE
   ========================================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h1 span {
        font-size: 2.6rem;
    }

    .node-icon {
        width: 38px;
        height: 38px;
    }

    .flag {
        font-size: 18px;
    }

    section {
        padding: 60px 5%;
    }

    .service-card,
    .city-card,
    .blog-card,
    .article-card {
        padding: 20px;
    }

    #lang-switch {
        bottom: 15px;
        right: 15px;
    }
}


/* =========================================================
   📰 [17] - NEWS SECTION STYLES
   ========================================================= */
/* 📰 NEWS SECTION STYLING */
#news-section {
    padding: 80px 20px;
    text-align: center;
}

#news-container {
    max-width: 850px;
    margin: 0 auto;
}

.news-card {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 0;
    transition: 0.3s;
}

.news-card:hover {
    background: rgba(212, 175, 55, 0.05);
}

.news-card h3 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.news-card a {
    color: #d4af37;
    text-decoration: none;
}

.news-card a:hover {
    text-decoration: underline;
}

.news-card p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 6px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.8rem;
}

.news-meta .source {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    color: #d4af37;
    font-size: 0.75rem;
}


/* 🕒 WEATHER & CLOCK - Cross-browser fixed */
#weather-clock {
    direction: rtl;
    /* ضروري لتوحيد الترتيب */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: "Poppins", sans-serif;
    color: #d4af37;
    background: rgba(25, 25, 25, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 10px 18px;
    width: max-content;
    max-width: 95%;
    margin: 25px auto 40px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

#weather-clock:hover {
    background: rgba(212, 175, 55, 0.1);
}

#weather-clock .time {
    font-size: 1.1rem;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

#weather-clock .weather {
    font-size: 0.95rem;
    color: #ddd;
    text-align: center;
    flex: 1 1 auto;
}

#weather-clock select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease, border 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#weather-clock select:hover {
    background: rgba(212, 175, 55, 0.12);
}

#weather-clock select:focus {
    outline: none;
    border-color: #d4af37;
}

#weather-clock {
    flex-direction: row-reverse;
}

#weather-clock {
    gap: 10px;
}