/* ====================================================
   CLONE THEME CONFIGURATION SECTION
   Purpose:
   - Main frontend branding colors
   - Buttons
   - Links
   - Headers
   - Tags
   - Borders
   - Backgrounds

   Future clone workflow:
   ONLY update the variables below when cloning:
   - Nuraka
   - RichInWriters
   - Future blogs

   Do NOT rewrite the rest of the stylesheet.

==================================================== */

:root {

    /* Primary branding */
    --red: #6d28d9;

    /* Header / navigation */
    --red-dark: #050505;

    /* Soft accents / tags / table backgrounds */
    --red-light: #ede9fe;

    /* Main text */
    --ink: #111827;

    /* Secondary text */
    --muted: #6b7280;

    /* Borders / dividers */
    --line: #c084fc;

    /* Main page background */
    --bg: #f8f7ff;
}

/* ====================================================
   END CLONE THEME CONFIGURATION SECTION
==================================================== */




/* Base */
* {
    box-sizing: border-box;
}

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

a {
    color: var(--red);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,.14);
}

.topbar,
.brand-wrap,
.container,
.footer {
    max-width: 1180px;
    margin: auto;
}

.topbar {
    padding: 7px 20px;
    font-size: 13px;
    opacity: .9;
}

.brand-wrap {
    padding: 28px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 62px;
    height: 62px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.brand strong {
    display: block;
    font-size: 31px;
    letter-spacing: .4px;
}

.brand small {
    display: block;
    color: #fee2e2;
    font-weight: 700;
}

/* Navigation */
.nav {
    background: var(--red-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
}

.nav-search {
    display: flex;
    gap: 5px;
}

/* Forms */
input,
textarea {
    font-family: inherit;
}

.nav-search input,
.search-box input,
.big-search input,
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 11px;
    border-radius: 6px;
}

.nav-search input {
    width: 170px;
    padding: 8px;
}

button,
.btn,
.nav-search button,
.search-box button,
.big-search button {
    background: var(--red);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Layout */
.container {
    margin: 22px auto;
    padding: 0 20px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
}

/* Hero */
.hero {
    min-height: 310px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    color: #fff;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
    margin-bottom: 24px;
}

.hero h1 {
    max-width: 560px;
    margin: 10px 0;
    font-size: 38px;
}

.hero p {
    max-width: 520px;
}

.badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Posts */
.post-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(15,23,42,.04);
}

.post-card img {
    width: 100%;
    height: 145px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #120b2e;
}

.post-card h3 {
    margin: 8px 0 4px;
    font-size: 22px;
}

.post-card small,
.meta,
.crumbs {
    color: var(--muted);
    font-size: 13px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-box,
.side-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
}

.search-box {
    display: flex;
    gap: 8px;
}

.side-box a {
    display: block;
    border-bottom: 1px solid #eef2f7;
    padding: 8px 0;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tags a {
    background: var(--red-light);
    color: var(--red-dark);
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 12px;
}

/* Article */
.article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
}

.article h1 {
    font-size: 42px;
    line-height: 1.12;
}

.featured-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    margin: 18px 0;
}

.article-body h2 {
    margin-top: 28px;
}

/* Search / Contact */
.big-search {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 10px;
}

.contact-form {
    max-width: 720px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 10px;
    display: grid;
    gap: 12px;
}

.contact-form textarea {
    min-height: 160px;
}

.hp {
    position: absolute;
    left: -9999px !important;
}

/* Notices */
.notice {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.error {
    background: #fff1f3;
    border-color: #fecdd3;
}

/* Admin */
.admin,
.admin-login {
    max-width: 960px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 12px;
}

.admin-login {
    max-width: 420px;
}

.admin-login form {
    display: grid;
    gap: 12px;
}

.stats {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.stats div {
    background: var(--red-light);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
    min-width: 160px;
}

.stats strong {
    display: block;
    font-size: 32px;
    color: var(--red);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
}

td,
th {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
}

th {
    background: var(--red-light);
    color: var(--red-dark);
}

/* Footer */
.footer {
    margin-top: 30px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer a {
    color: #fff;
}

/* Mobile */
@media (max-width: 850px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .post-card {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .article h1 {
        font-size: 30px;
    }

    .footer {
        display: block;
    }

    .search-box {
        display: block;
    }

    .search-box button {
        margin-top: 8px;
        width: 100%;
    }
}

.ad-slot {
    max-width: 100%;
    overflow: hidden;
    margin: 20px 0;
    text-align: center;
}

.hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

.contact-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 15px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Match focus style with inputs */
.contact-form select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.14);
    outline: none;
}

/* Custom dropdown arrow */
.contact-form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* Align spacing with other inputs */
.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-form select {
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    font-family: inherit;
    box-sizing: border-box;
}

.contact-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 15px;
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.contact-form select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.14);
    outline: none;
}

/* H4 styled as professional content links */
.article-body h4,
.post-card h4,
h4 {
    margin: 28px 0 14px;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--red);
    border-left: 5px solid var(--red);
    padding-left: 14px;
    transition: all 0.18s ease;
}

.article-body h4 a,
.post-card h4 a,
h4 a {
    color: inherit;
    text-decoration: none;
}

.article-body h4:hover,
.post-card h4:hover,
h4:hover {
    color: #4c1d95;
    border-left-color: #4c1d95;
}

