/* =====================================================
   fawazeer.com — shared site styles
   Every page links this file. Change a color or font here
   and the whole site updates.
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary-color: #1a3e72;
    --secondary-color: #0d2b52;
    --accent-color: #f7c35f;
    --light-color: #f8f5ee;
    --text-color: #333;
    --moon-gold: #e6c78b;
    --star-blue: #4a7bb6;
    --footer-color: #b90619;
}

* { box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ---------- Top banner ---------- */
.banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.banner { width: 100%; height: auto; object-fit: contain; display: block; }

/* ---------- Navigation ---------- */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    background-color: var(--footer-color);
    padding: 15px 10px;
    margin-bottom: 20px;
}
.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}
.nav-menu a:hover { transform: translateY(-2px); }
.nav-menu a.active { font-weight: 700; }

/* ---------- Layout & headings ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

h1, h2, h3 { color: var(--secondary-color); font-weight: 700; }
h1 {
    color: var(--footer-color);
    text-align: center;
    margin-top: 20px;
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
h2 {
    border-bottom: 2px solid var(--moon-gold);
    padding-bottom: 10px;
    margin-top: 30px;
    padding-right: 10px;
}

/* ---------- Content boxes ---------- */
.intro, .prizes, .quizzes, .game-box {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: right;
}
.intro, .quizzes { border-right: 5px solid var(--star-blue); }
.prizes, .game-box { border-right: 5px solid var(--moon-gold); }

.prize-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.prize-item {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    border-right: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}
.prize-item:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.prize-item h3 { color: var(--primary-color); }

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.quiz-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
}
.quiz-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.quiz-card img {
    width: 100%; height: 160px; object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
}
.quiz-card-content { padding: 15px; overflow: hidden; }
.quiz-card h3 { color: var(--primary-color); margin-top: 0; }

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    float: left;
}
.btn:hover { background-color: #e0a800; transform: translateY(-2px); }

.coming-soon { opacity: 0.8; }
.coming-soon img { filter: grayscale(30%); }

/* ---------- Rotating banners ---------- */
.rotating-banner {
    width: 100%;
    height: 150px;
    margin: 20px 0 30px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.rotating-banner a {
    width: 100%; height: 100%;
    position: absolute; top: 0; left: 0;
    display: none;
}
.rotating-banner a.active { display: block; animation: fadeIn 1s ease-in-out; }
.rotating-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Footer ---------- */
footer {
    background-color: var(--footer-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
}
footer p { margin: 5px 0; }
footer a { color: white; }

/* ---------- Phones ---------- */
@media (max-width: 768px) {
    .prize-list, .quiz-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    .btn { float: none; display: block; text-align: center; }
    .rotating-banner { height: 100px; }
    .nav-menu a { padding: 8px 12px; font-size: 0.95rem; }
    .intro, .prizes, .quizzes, .game-box { padding: 18px; }
}
