/* File: assets/css/style.css */
:root {
    --bg-color: #f9f9fc;
    --text-color: #1a202c;
    --accent-color: #c5a059;
    --accent-hover: #b08d4b;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
    --font-main: 'Segoe UI', 'Inter', sans-serif;
    --hero-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --card-border: 1px solid rgba(0, 0, 0, 0.02);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.dark-mode {
    --bg-color: #1a202c;
    --text-color: #e2e8f0;
    --card-bg: #2d3748;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    --hero-gradient: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --card-border: 1px solid #4a5568;
}

body.dark-mode header {
    background: rgba(26, 32, 44, 0.95);
    border-bottom: 1px solid #4a5568;
}

body.dark-mode .logo span {
    color: #f6ad55;
}

body.dark-mode .btn-outline {
    color: #e2e8f0;
    border-color: #e2e8f0;
}

body.dark-mode .btn-outline:hover {
    background: #e2e8f0;
    color: #1a202c;
}

body.dark-mode .chat-header {
    background: #2d3748;
    border-bottom: 1px solid #4a5568;
}

body.dark-mode .chat-body {
    background: #1a202c;
}

body.dark-mode .chat-footer {
    background: #2d3748;
    border-top: 1px solid #4a5568;
}

body.dark-mode .chat-footer input {
    background: #1a202c;
    color: #fff;
    border-color: #4a5568;
}

body.dark-mode .msg.admin {
    background: #4a5568;
    color: #fff;
}

body.dark-mode footer {
    background: #2d3748;
    border-top: 1px solid #4a5568;
}

body.dark-mode .admin-sidebar {
    background: #171923;
}

html,
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image: radial-gradient(#e1e1e1 1px, transparent 1px);
    background-size: 20px 20px;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    scroll-behavior: smooth;
}

body.dark-mode {
    background-image: radial-gradient(#2d3748 1px, transparent 1px);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1300;
    padding: 15px 0;
    transition: background 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #555;
    position: relative;
}

body.dark-mode .nav-links a {
    color: #cbd5e0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Home Grid & Category Cards */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    color: #2d3748;
}

body.dark-mode .hero h1 {
    color: #fff;
}

.hero p {
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.grid-template {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Premium Category Cards */
.category-card {
    position: relative;
    height: 300px;
    /* Taller for impact */
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    background: #000;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    opacity: 0.8;
}

.category-card:hover .category-card-bg {
    opacity: 0.6;
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient darkened at top and bottom for readability */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    z-index: 2;
}

.category-card h3,
.card-title-top {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s;
}

.category-card:hover h3,
.category-card:hover .card-title-top {
    transform: translateY(2px);
    /* Subtle nudge */
    color: var(--accent-color);
}

.card-content-bottom {
    transform: translateY(0);
    /* Keep it stable */
    transition: transform 0.3s;
}

.category-card:hover .card-content-bottom {
    transform: translateY(-5px);
}

.category-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
    transform: translateY(10px);
    opacity: 0.8;
    transition: all 0.3s;
}

.category-card:hover p {
    transform: translateY(0);
    opacity: 1;
}


/* Regular Post Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: var(--card-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    height: 200px;
    background-color: #f0f0f0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

body.dark-mode .card-img {
    background-color: #2d3748;
}

.card-body {
    padding: 20px;
}

.card-meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.card-excerpt {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

body.dark-mode .card-excerpt {
    color: #a0aec0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--text-color);
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

body.dark-mode .btn {
    background: var(--accent-color);
    color: #fff;
}

.btn:hover {
    background: var(--accent-color);
}

body.dark-mode .btn:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--text-color);
    color: #fff;
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: #888;
}

/* Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    /* Prevent overflow */
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    border: var(--card-border);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}

#chat-widget.active {
    transform: translateY(0);
}

.chat-header {
    background: var(--text-color);
    color: #fff;
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-body {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-footer {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-footer input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    height: 50px;
}

.chat-footer button {
    background: var(--accent-color);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
}

/* Bubbles */
.msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.msg.user {
    align-self: flex-end;
    background: var(--accent-color);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.msg.admin {
    align-self: flex-start;
    background: #e2e8f0;
    color: #333;
    border-bottom-left-radius: 2px;
}

/* Chat Toggle */
#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--text-color);

    body.dark-mode & {
        background: var(--accent-color);
        color: #fff;
    }

    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.2s;
}

#chat-toggle:hover {
    transform: scale(1.05);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Admin Mobile & Responsive */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #1a202c;
    color: #fff;
    padding: 20px;
}

.admin-sidebar a {
    display: block;
    padding: 10px;
    color: #cbd5e0;
    margin-bottom: 5px;
    border-radius: 6px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #2d3748;
    color: var(--accent-color);
}

.admin-content {
    flex: 1;
    padding: 40px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-warning {
    background: #feebc8;
    color: #744210;
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    .admin-content {
        padding: 15px;
    }

    .chat-container {
        flex-direction: column;
        height: 80vh !important;
    }

    .visitor-list {
        width: 100% !important;
        height: 120px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .chat-area {
        height: auto;
        flex: 1;
    }

    .messages {
        padding: 10px;
    }

    .reply-box {
        padding: 10px;
        position: sticky;
        bottom: 0;
        background: var(--card-bg);
        border-top: 1px solid var(--card-border);
    }
}

@media (max-width: 480px) {
    #chat-widget {
        width: 100%;
        right: 0;
        bottom: 0;
        border-radius: 12px 12px 0 0;
        height: 60vh;
    }

    .chat-body {
        height: auto;
        flex: 1;
    }
}

/* --- RESPONSIVE UPDATES & NEW COMPONENTS --- */

/* Hero Section Styles */
.hero-section {
    background: var(--hero-gradient);
    padding: 64px 20px;
    border-radius: 0 0 50% 50% / 20px;
    text-align: center;
}

body.dark-mode .hero-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: -webkit-linear-gradient(45deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-color);
    /* Fallback */
}

body.dark-mode .hero-title {
    background: -webkit-linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    margin-top: 15px;
    opacity: 0.8;
    color: var(--text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .hero-desc {
    color: #e2e8f0;
}

.hero-btn-wrapper {
    margin-top: 30px;
}

.btn-hero {
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
    background: var(--text-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

body.dark-mode .btn-hero {
    background: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero:hover {
    transform: translateY(-3px);
}

.content-section {
    padding-top: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-color);
}

body.dark-mode .section-header h2 {
    color: #fff;
}

.home-about-link-section {
    margin: -8px auto 34px;
}

.home-about-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 24px;
    align-items: center;
    padding: 22px 26px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 239, 226, 0.78));
    box-shadow: var(--shadow);
}

.home-about-link span {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.home-about-link strong {
    font-size: 1.15rem;
    color: var(--text-color);
}

.home-about-link em {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-style: normal;
    font-weight: 700;
    color: #fff;
    background: var(--accent-color);
    padding: 10px 18px;
    border-radius: 999px;
}

body.dark-mode .home-about-link {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.96), rgba(26, 32, 44, 0.82));
    border-color: rgba(197, 160, 89, 0.38);
}

.about-hero-section {
    padding: 74px 0 56px;
    background:
        linear-gradient(135deg, rgba(197, 160, 89, 0.14), rgba(255, 255, 255, 0.68)),
        var(--hero-gradient);
}

.about-hero-inner {
    max-width: 900px;
}

.about-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-hero-inner h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
}

.about-hero-inner p {
    max-width: 680px;
    margin: 0;
    color: #4a5568;
    font-size: 1.12rem;
}

body.dark-mode .about-hero-inner p {
    color: #cbd5e0;
}

.about-page-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
    margin-top: 42px;
    margin-bottom: 70px;
}

.about-story {
    padding: 38px;
    border-radius: 18px;
    background: var(--card-bg);
    border: var(--card-border);
    box-shadow: var(--shadow);
}

.about-story p {
    margin: 0 0 20px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-summary {
    position: sticky;
    top: 104px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    border-radius: 18px;
    background: #171923;
    color: #fff;
    box-shadow: var(--shadow);
}

.about-summary strong {
    font-size: 1.3rem;
}

.about-summary span {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.about-summary .btn {
    text-align: center;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto;
}

.card-desc {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 5px;
    color: #fff;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

body.dark-mode .mobile-menu-btn span {
    background-color: #fff;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.btn-theme-toggle {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
}

body.dark-mode .btn-theme-toggle {
    border-color: #e2e8f0;
    color: #e2e8f0;
}

/* Global Responsive Adjustments */
@media (max-width: 768px) {

    /* Navbar Mobile Styles */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        /* Hide off-screen */
        width: 250px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1090;
        padding: 20px;
        gap: 30px;
    }

    .nav-links a,
    .nav-links .btn-theme-toggle {

        width: 100%;

        max-width: 220px;

        min-height: 48px;

        display: inline-flex;

        align-items: center;

        justify-content: center;

        text-align: center;

        position: relative;

        z-index: 1;

    }



    body.dark-mode .nav-links {
        background: #1a202c;
        border-left: 1px solid #2d3748;
    }

    .nav-links.active {
        right: 0;
    }

    /* Animate Hamburger to X */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Responsive */
    .hero-section {
        padding: 48px 20px;
        border-radius: 0 0 30% 30% / 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .home-about-link {
        grid-template-columns: 1fr;
    }

    .home-about-link em {
        grid-row: auto;
        grid-column: auto;
        justify-self: start;
    }

    .about-page-section {
        grid-template-columns: 1fr;
    }

    .about-summary {
        position: static;
    }

    /* General Layout */
    .container {
        padding: 0 15px;
    }

    .grid-template {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .grid-template>div {
        width: 70% !important;
        margin-bottom: 20px;
    }

    /* Tables */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Login Box */
    .login-box {
        width: 90% !important;
        padding: 20px !important;
    }

    /* Admin Grid */
    .admin-layout .grid-template {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .category-card {
        height: 250px;
    }

    .category-card h3 {
        font-size: 1.5rem;
    }
}

/* Page Specific Styles */
.margin-top-40 {
    margin-top: 40px;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-card {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: var(--card-border);
}

.contact-info-card h3,
.contact-form-card h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

body.dark-mode .contact-info-card h3,
body.dark-mode .contact-form-card h3 {
    color: #fff;
}

.contact-info-card p {
    color: #555;
}

body.dark-mode .contact-info-card p {
    color: #a0aec0;
}

.info-list {
    margin-top: 20px;
}

.info-list p {
    margin-bottom: 10px;
    color: var(--text-color);
}

body.dark-mode .info-list p {
    color: #bdc3c7;
}

/* Blog Post Page */
.blog-post-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: var(--shadow);
    border: var(--card-border);
}

.post-header-center {
    text-align: center;
    margin-bottom: 30px;
}

.post-category-label {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.post-title-large {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2d3748;
    line-height: 1.2;
}

body.dark-mode .post-title-large {
    color: #fff;
}

.post-meta {
    color: #718096;
    font-size: 0.9rem;
}

body.dark-mode .post-meta {
    color: #a0aec0;
}

.post-cover-wrapper {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background: #f9f9f9;
}

body.dark-mode .post-cover-wrapper {
    background: #2d3748;
}

.post-cover-img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.post-content-area {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

body.dark-mode .post-content-area {
    color: #cbd5e0;
}

.post-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

body.dark-mode .post-footer {
    border-color: #4a5568;
}

/* Responsive Overrides for new pages */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-post-card {
        padding: 20px;
        margin-top: 20px;
    }

    .post-title-large {
        font-size: 1.8rem;
    }
}

/* Home Portrait Showcase */

.home-stage {

    position: relative;

    padding: 48px 0 28px;

    border-radius: 0 0 44px 44px;

    overflow: hidden;

    text-align: left;

}



.home-stage::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        radial-gradient(circle at top left, rgba(197, 160, 89, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(26, 32, 44, 0.10), transparent 30%);

    pointer-events: none;

}



.home-stage-orb {

    position: absolute;

    border-radius: 999px;

    pointer-events: none;

    filter: blur(8px);

}



.home-stage-orb-a {

    width: 180px;

    height: 180px;

    top: 80px;

    right: 12%;

    background: rgba(197, 160, 89, 0.18);

}



.home-stage-orb-b {

    width: 120px;

    height: 120px;

    left: 8%;

    bottom: 48px;

    background: rgba(255, 255, 255, 0.35);

}



body.dark-mode .home-stage-orb-b {

    background: rgba(74, 85, 104, 0.35);

}



.home-stage-grid {

    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);

    gap: 42px;

    align-items: center;

}



.home-stage-copy {

    max-width: 560px;

}



.owner-showcase {

    position: relative;

}



.owner-showcase-card {

    position: relative;

    min-height: 620px;

    padding: 22px;

    border-radius: 34px;

    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(232, 236, 244, 0.72));

    border: 1px solid rgba(255, 255, 255, 0.7);

    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);

    overflow: hidden;

}



body.dark-mode .owner-showcase-card {

    background: linear-gradient(160deg, rgba(23, 25, 35, 0.96), rgba(45, 55, 72, 0.84));

    border-color: rgba(74, 85, 104, 0.65);

}



.owner-showcase-card::before,
.owner-showcase-card::after {

    content: '';

    position: absolute;

    border-radius: 999px;

    pointer-events: none;

}



.owner-showcase-card::before {

    width: 180px;

    height: 180px;

    top: -60px;

    right: -30px;

    background: rgba(197, 160, 89, 0.22);

}



.owner-showcase-card::after {

    width: 220px;

    height: 220px;

    left: -80px;

    bottom: -120px;

    background: rgba(26, 32, 44, 0.14);

}



.owner-showcase-meta {

    position: absolute;

    top: 24px;

    right: 24px;

    z-index: 3;

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 12px 16px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.6);

    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);

    backdrop-filter: blur(10px);

}



body.dark-mode .owner-showcase-meta {

    background: rgba(23, 25, 35, 0.8);

    border-color: rgba(74, 85, 104, 0.7);

}



.owner-showcase-meta span {

    font-size: 0.7rem;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    color: #64748b;

}



.owner-showcase-meta strong {

    font-size: 1.1rem;

    color: var(--text-color);

}



body.dark-mode .owner-showcase-meta span,
body.dark-mode .owner-showcase-meta strong {

    color: #e2e8f0;

}



.owner-slide {

    position: absolute;

    inset: 22px 22px 92px;

    opacity: 0;

    transform: translateY(28px) scale(0.98);

    transition: opacity 0.7s ease, transform 0.7s ease;

    pointer-events: none;

}



.owner-slide.is-active {

    opacity: 1;

    transform: translateY(0) scale(1);

    pointer-events: auto;

}



.owner-slide-media {

    position: absolute;

    inset: 0;

    overflow: hidden;

    border-radius: 28px;

    background: #d7dce4;

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);

}



body.dark-mode .owner-slide-media {

    background: #2d3748;

}



.owner-slide-media img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

}



.owner-slide-panel {

    position: absolute;

    left: 18px;

    right: 18px;

    bottom: 18px;

    padding: 20px 22px;

    border-radius: 24px;

    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));

    color: #fff;

    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);

    backdrop-filter: blur(10px);

}



.owner-slide-counter {

    display: inline-block;

    margin-bottom: 10px;

    font-size: 0.78rem;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    opacity: 0.86;

}



.owner-slide-panel h2 {

    margin: 0 0 8px;

    font-size: 2rem;

    line-height: 1.1;

}



.owner-slide-panel p {

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.98rem;

    line-height: 1.6;

}



.owner-showcase-controls {

    position: absolute;

    left: 22px;

    right: 22px;

    bottom: 22px;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 14px;

}



.owner-showcase-nav {

    width: 50px;

    height: 50px;

    border: none;

    border-radius: 50%;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: rgba(255, 255, 255, 0.82);

    color: var(--text-color);

    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);

    cursor: pointer;

    transition: transform 0.25s ease, background 0.25s ease;

}



.owner-showcase-nav:hover {

    transform: translateY(-2px);

    background: #fff;

}



body.dark-mode .owner-showcase-nav {

    background: rgba(23, 25, 35, 0.88);

    color: #fff;

}



.owner-showcase-dots {

    flex: 1;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

}



.owner-showcase-dot {

    width: 11px;

    height: 11px;

    border: none;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.4);

    cursor: pointer;

    padding: 0;

    transition: width 0.3s ease, background 0.3s ease, opacity 0.3s ease;

}



.owner-showcase-dot.is-active {

    width: 34px;

    background: var(--accent-color);

}



body.dark-mode .owner-showcase-dot {

    background: rgba(226, 232, 240, 0.35);

}



.single-slide .owner-showcase-controls {

    display: none;

}



.single-slide .owner-slide {

    inset: 22px;

}



.home-categories-section {

    padding-top: 72px;

}



@media (max-width: 900px) {

    .home-stage-grid {

        grid-template-columns: 1fr;

    }



    .home-stage-copy {

        max-width: none;

    }



    .owner-showcase-card {

        min-height: 560px;

    }

}



@media (max-width: 768px) {

    .home-stage {

        padding: 36px 0 20px;

        border-radius: 0 0 30px 30px;

        text-align: center;

    }



    .owner-showcase-card {

        min-height: 500px;

        padding: 16px;

        border-radius: 28px;

    }



    .owner-slide {

        inset: 16px 16px 78px;

    }



    .single-slide .owner-slide {

        inset: 16px;

    }



    .owner-slide-panel {

        left: 12px;

        right: 12px;

        bottom: 12px;

        padding: 16px 18px;

    }



    .owner-slide-panel h2 {

        font-size: 1.55rem;

    }



    .owner-showcase-controls {

        left: 16px;

        right: 16px;

        bottom: 16px;

        gap: 10px;

    }



    .owner-showcase-nav {

        width: 44px;

        height: 44px;

    }



    .owner-showcase-meta {

        top: 16px;

        right: 16px;

        padding: 10px 14px;

    }

}



@media (max-width: 480px) {

    .owner-showcase-card {

        min-height: 430px;

    }



    .owner-slide {

        inset: 12px 12px 70px;

    }



    .single-slide .owner-slide {

        inset: 12px;

    }



    .owner-slide-panel {

        padding: 14px 16px;

    }



    .owner-slide-panel p {

        font-size: 0.88rem;

    }

}
