:root {
    --red: #D32F2F;
    --black: #1A1A1A;
    --white: #FFFFFF;
    --gray: #f4f4f4;
    --green: #25D366;
    --box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: var(--black);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.btn-red, .btn-outline {
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.btn-red {
    background: var(--red);
    color: white;
}

.btn-red:hover {
    background: #b71c1c;
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Grid cards */
.grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 0;
}

.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 180px;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    border-color: var(--red);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.card-img {
    width: 30%;
    min-width: 160px;
    object-fit: cover;
    background: #f0f0f0;
}

.card-body {
    padding: 20px;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h3 {
    font-size: 20px;
    color: var(--red);
    margin-bottom: 6px;
}

.card-body p {
    font-size: 14px;
    color: #4a4a4a;
}

.view-btn {
    align-self: flex-start;
    background: var(--black);
    color: white;
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 12px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    overflow: auto;
    padding: 40px 0;
}

.modal-content {
    background: white;
    margin: auto;
    padding: 35px;
    width: 90%;
    max-width: 800px;
    border-radius: 28px;
    position: relative;
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
}

.close:hover {
    color: black;
}

.form-section {
    margin-bottom: 28px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.form-section h4 {
    color: var(--red);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}

.input-group small {
    display: block;
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 14px;
    font-size: 14px;
    outline: none;
    background: white;
    transition: 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(211,47,47,0.2);
}

/* Related section */
.related-section {
    margin-top: 50px;
    background: #fefaf5;
    padding: 30px;
    border-radius: 28px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rel-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 18px;
    display: flex;
    overflow: hidden;
    height: 100px;
    cursor: pointer;
    transition: 0.2s;
}

.rel-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.rel-card-body {
    padding: 10px;
    flex: 1;
}

.rel-card-body h4 {
    font-size: 14px;
    color: var(--red);
    margin-bottom: 4px;
}

.instruction-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 13px;
    font-weight: 500;
}

.btn-red-full {
    background: var(--red);
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.media-tag {
    background: #f1f1f1;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .card {
        flex-direction: column;
    }
    .card-img {
        width: 100%;
        height: 190px;
    }
    .card-body {
        width: 100%;
    }
    .form-grid, .related-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 25px;
    }
}