:root {
    --background: hsl(0, 52%, 9%);
    --foreground: hsl(122, 38%, 93%);
    --card: rgba(43, 9, 9, 0.9);
    --card-hover: rgba(58, 12, 12, 0.95);
    --primary: hsl(340, 58%, 45%);
    --primary-foreground: #ffffff;
    --border: rgba(255, 255, 255, 0.15);
    --muted: rgba(255, 255, 255, 0.6);
    --accent: hsl(340, 68%, 55%);   
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, rgba(94, 42, 42, 0.45), transparent 55%) var(--background);
    color: var(--foreground);
    min-height: 100vh;
}

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

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d72d2d, #b21f1f);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(214, 47, 47, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-home svg,
.btn-floating svg {
    width: 20px;
    height: 20px;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(214, 47, 47, 0.4);
}

.btn-floating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #d72d2d;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(214, 47, 47, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(214, 47, 47, 0.42);
}

main {
    flex: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 120px 20px 48px;
    width: 100%;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb svg { width: 18px; height: 18px; }

.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }

.hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.search-wrapper {
    margin: 28px auto 0;
    max-width: 520px;
    width: 100%;
    position: relative;
}

.search-wrapper input {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(43, 9, 9, 0.65);
    color: #fff;
    padding: 0 48px;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-wrapper input:focus {
    outline: none;
    border-color: rgba(214, 47, 47, 0.6);
    box-shadow: 0 0 0 3px rgba(214, 47, 47, 0.18);
}

.search-wrapper svg {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.55);
}

.cards-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tutorial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    display: block;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 47, 47, 0.4);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    background: var(--card-hover);
}

.tutorial-card .card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tutorial-card img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

.tutorial-card .icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.35rem;
}

.tutorial-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
}

.tutorial-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 36px 0 24px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(43, 9, 9, 0.85);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
    text-decoration: none;
}

.pagination a:hover:not(.disabled) {
    color: #fff;
    border-color: rgba(214, 47, 47, 0.4);
    background: rgba(78, 19, 19, 0.95);
}

.pagination a.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pagination .page-active {
    background: var(--primary);
    border-color: rgba(214, 47, 47, 0.8);
    color: var(--primary-foreground);
    box-shadow: 0 12px 30px rgba(214, 47, 47, 0.35);
    font-weight: 600;
}

.pagination .pagination-ellipsis {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    min-width: 24px;
    text-align: center;
}

.cta-grid {
    display: grid;
    gap: 24px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cta-card,
.cta-card-highlight {
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.40);
    text-align: center;
}

.cta-card {
    background: var(--card);
    border: 1px solid var(--border);
}

.cta-card-highlight {
    background: linear-gradient(135deg, rgba(214, 47, 47, 0.85), rgba(78, 19, 19, 0.9));
    color: #fff;
}

.cta-card h2,
.cta-card-highlight h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.cta-card p,
.cta-card-highlight p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.cta-card a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 28px rgba(214, 47, 47, 0.35);
}

.cta-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(214, 47, 47, 0.45);
}

.cta-card-highlight a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    background: #4e1313;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 26px rgb(249 43 43 / 25%)
}

.cta-card-highlight a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(255, 255, 255, 0.35);
}

footer {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 60px;
}
