:root {
    /* DEFAULT COLORS (Admin can override via database) */
    --primary-color: #007bff;
    /* 60% Space - Usually Backgrounds/Main Areas */
    --secondary-color: #6c757d;
    /* 30% Space - Secondary elements */
    --accent-color: #17a2b8;
    /* 10% Space - Buttons/CTAs */

    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --black: #000000;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-oval: 50px;
    --border-radius-sm: 8px;
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Roboto', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}
img { max-width: 100%; height: auto; }

/* HEADER STYLES */
header {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-submit {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: var(--border-radius-oval);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-icon {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
}

/* HERO SECTION */
.hero {
    height: 20vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-slider {
    height: 75%;
    /* 15% of full device height approx relative to Hero 20vh */
    width: 100%;
    position: relative;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    height: 25%;
    /* 5% of full device height approx */
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.hero-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* 30% transparent tint */
    pointer-events: none;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 60%, var(--secondary) 40%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

/* MODERN DESIGN ELEMENTS */
.minimal-clean-line {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    text-transform: uppercase;
}

.minimal-clean-line::before,
.minimal-clean-line::after {
    content: '—';
    color: var(--accent-color);
}

/* BUTTON MODERN ARROW STYLE */
.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-right: 15px;
}

.btn-arrow::after {
    content: '➤';
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.btn-arrow:hover::after {
    transform: translateX(5px);
}

/* POST CARDS */
.post-section {
    padding: 40px 5%;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
    margin: 0 20px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; gap: 20px; }
}

.post-card {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-color);
}

.post-body {
    padding: 20px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* FOOTER */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 5% 0px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-grid h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    /* Increased opacity for better visibility */
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.footer-links a::before {
    content: '➤';
    font-size: 0.7rem;
    margin-right: 8px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: var(--transition-smooth);
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #eee;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    background: var(--primary-color);
    color: white;
}

.mobile-search {
    margin: 20px 0;
}

.mobile-search form {
    display: flex;
    background: #f0f0f0;
    border-radius: 25px;
    padding: 5px 15px;
}

.mobile-search input {
    background: none;
    border: none;
    padding: 10px;
    flex: 1;
    outline: none;
}

.mobile-submit-btn {
    background: var(--accent-color);
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 15px;
    border-radius: 25px;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Mobile menu logic in JS */
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
    }

    .hero-slider {
        height: 200px;
    }
}