/* ================= GLOBAL ================= */
:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #222222;
    --text-soft: #555555;
    --text-muted: #666666;
    --border: #dddddd;
    --border-soft: #eeeeee;
    --accent: #35b24f;
    --accent-dark: #2e9b45;
    --container: 1000px;
    --radius: 4px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

.section {
    margin: 50px 0;
}

.section h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: var(--text);
}

.button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    border: 1px solid var(--accent-dark);
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.button:hover {
    background: var(--accent-dark);
}

.card {
    border: 1px solid var(--border);
    padding: 20px;
    background: var(--surface);
}

.card h3 {
    margin-top: 0;
    font-size: 22px;
}

.card p {
    margin: 10px 0;
    color: #444444;
}

/* ================= SITE HEADER ================= */
header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav a {
    margin-left: 20px;
    color: var(--text);
    font-size: 14px;
}

nav a:hover {
    text-decoration: underline;
}

/* ================= SITE FOOTER ================= */
footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* ================= FORMS ================= */
input,
button,
textarea,
select {
    font: inherit;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #cccccc;
    font-size: 16px;
    background: #ffffff;
    color: var(--text);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-dark);
}

/* ===== ERROR/SUCCESSES ===== */
.alert { border-radius: var(--radius); padding: 12px 14px; margin: 14px 24px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: #eef9f1; color: #165a2f; border-color: #cfeedd; }
.alert-error { background: #fff2f2; color: #8a1f1f; border-color: #f5caca; }
.input.has-error, .has-error.input { border-color: #d9534f; outline: 3px solid rgba(217,83,79,.15); }

/* ================= INDEX PAGE ================= */
.hero {
    text-align: center;
    padding: 60px 0 40px 0;
}

.hero h1 {
    margin: 0 0 10px 0;
    font-size: 42px;
}

.hero p {
    margin: 0 0 25px 0;
    color: var(--text-muted);
    font-size: 18px;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.search-bar input {
    width: 500px;
}

.search-bar button {
    padding: 14px 24px;
    border: 1px solid var(--accent-dark);
    background: var(--accent);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.search-bar button:hover {
    background: var(--accent-dark);
}

.popular-searches {
    font-size: 14px;
    color: var(--text-soft);
}

.popular-searches a {
    display: inline-block;
    margin: 6px 4px 0 4px;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    color: #333333;
    font-size: 13px;
}

.popular-searches a:hover {
    background: #f8f8f8;
}

.card-row {
    display: flex;
    gap: 20px;
}

.card-row .card {
    flex: 1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-item {
    display: block;
    border: 1px solid var(--border);
    padding: 18px;
    text-align: center;
    background: var(--surface);
    color: var(--text);
}

.category-item:hover {
    background: #f8f8f8;
}

.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.latest-list{
    border:1px solid var(--border);
    background:var(--surface);
}

.latest-row{
    padding:14px 18px;
    border-bottom:1px solid var(--border-soft);
    font-size:15px;
    color:#444;
}

.latest-row:last-child{
    border-bottom:none;
}

.latest-title{
    font-weight:600;
    color:#222;
}

.latest-title:hover{
    text-decoration:underline;
}

.latest-info h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.latest-info h3 a:hover {
    text-decoration: underline;
}

.latest-meta {
    font-size: 14px;
    color: var(--text-soft);
}

.network-list .network-item {
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 15px;
    background: var(--surface);
}

.network-item h3 {
    margin-top: 0;
}

.offer-logo{
    display:block;
    margin:0 auto 14px auto;
    height:50px;
    width:auto;
}
.network-logo{
    display:block;
    margin:0 auto 12px auto;
    height:40px;
    width:auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1020px) {
    .container {
        padding: 0 20px;
    }

    .card-row {
        flex-direction: column;
    }

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

    .search-bar {
        flex-direction: column;
    }

    .search-bar input {
        width: 100%;
    }

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        text-align: center;
    }

    nav a {
        margin: 0 10px;
        display: inline-block;
    }

    .two-column {
        grid-template-columns: 1fr;
    }
}