
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php

$lang = isset($_GET['lang']) && $_GET['lang'] == 'en' ? 'en' : 'ar';

$content = [
    'en' => [
        'title' => 'Eid Greeting Cards',
        'button' => 'Generate Your Personalized Eid Greeting Card',
        'direction' => 'ltr'
    ],
    'ar' => [
        'title' => 'بطاقات تهنئة العيد',
        'button' => 'أنشئ بطاقة تهنئة العيد الخاصة بك',
        'direction' => 'rtl'
    ]
];

$t = $content[$lang];

$cards = [
    [
        "image" => "W.png",
        "url"   => "https://hondasaudi.com/eid_aladha_greetings_2026/generator/automobile/"
    ],
    [
        "image" => "W_1.png",
        "url"   => "https://hondasaudi.com/eid_aladha_greetings_2026/generator/motorcycle/"
    ],
    [
        "image" => "W_2.png",
        "url"   => "https://hondasaudi.com/eid_aladha_greetings_2026/generator/marine/"
    ],
    [
        "image" => "W_3.png",
        "url"   => "https://hondasaudi.com/eid_aladha_greetings_2026/generator/powerproducts/"
    ]
];

?>
<!DOCTYPE html>
<html lang="<?php echo $lang; ?>" dir="<?php echo $t['direction']; ?>">
<head>

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><?php echo $t['title']; ?></title>

<link href="https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap" rel="stylesheet">

<style>

    *{
        box-sizing:border-box;
    }

    body {
        margin: 0;
        padding: 0;
        background-color: #111214;
        font-family: 'Cairo', sans-serif;
        color: #ffffff;
    }

    .container {
        max-width: 1200px;
        margin: auto;
        padding: 40px 20px;
    }

    .top-bar{
        display:flex;
        justify-content:space-between;
        align-items:center;
        margin-bottom:30px;
        flex-wrap:wrap;
        gap:15px;
    }

    .title {
        font-size: 32px;
        font-weight: 700;
    }

    .language-switcher a{
        text-decoration:none;
        color:#ffffff;
        background:#d4122e;
        padding:10px 16px;
        border-radius:6px;
        margin-left:8px;
        font-size:13px;
        font-weight:600;
    }

    .cards {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .card {
        background: #1b1c1f;
        border-radius: 12px;
        overflow: hidden;
        text-align: center;
        padding-bottom: 20px;
    }

    .card img {
        width: 100%;
        height: auto;
        display: block;
    }

    .btn {
        display: inline-block;
        margin-top: 18px;
        padding: 12px 18px;
        background-color: #d4122e;
        color: #ffffff;
        text-decoration: none;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        transition: 0.3s ease;
        width: calc(100% - 30px);
    }

    .btn:hover {
        opacity: 0.9;
    }

    @media (max-width: 992px) {
        .cards {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {

        .cards {
            grid-template-columns: 1fr;
        }

        .top-bar{
            flex-direction:column;
            text-align:center;
        }

        .title{
            font-size:26px;
        }
    }

</style>

</head>

<body>

<div class="container">

    <div class="top-bar">

        <div class="title">
            <?php echo $t['title']; ?>
        </div>

        <div class="language-switcher">
            <a href="?lang=en">English</a>
            <a href="?lang=ar">العربية</a>
        </div>

    </div>

    <div class="cards">

        <?php foreach($cards as $card): ?>

            <div class="card">

                <img src="<?php echo $card['image']; ?>" alt="Eid Greeting Card">

                <a 
                    href="<?php echo $card['url']; ?>" 
                    class="btn"
                >
                    <?php echo $t['button']; ?>
                </a>

            </div>

        <?php endforeach; ?>

    </div>

</div>

</body>
</html>