:root {
    --primary: #b02626; /* Traditional Red */
    --secondary: #d4af37; /* Gold */
    --bg-light: #ffffff;
    --bg-accent: #fff9f0; /* Warm Cream */
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --border-soft: rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: white;
    padding: 2rem 5% 1.5rem;
    text-align: center;
    position: relative;
}

.logo-container {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container img {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.brand-name {
    font-size: 2.5rem;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-soft);
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   BLOG GRID & CARDS
   ============================================ */
.container {
    max-width: 1300px;
    margin: 3rem auto 5rem;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.blog-card {
    grid-column: span 4;
    background: white;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:nth-child(3n+1) {
    grid-column: span 8;
}

.blog-card:nth-child(3n+1) .card-img {
    height: 400px;
}

.blog-card:nth-child(3n+2), .blog-card:nth-child(3n+3) {
    grid-column: span 4;
}

.card-img {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem 1rem 1.5rem;
    background: white;
    margin-top: -1.5rem;
    position: relative;
    z-index: 10;
    width: 92%;
    margin-left: 4%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.card-date {
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-title {
    font-size: 1.5rem;
    margin: 0.6rem 0;
    line-height: 1.2;
    color: var(--text-dark);
}

.blog-card:nth-child(3n+1) .card-title {
    font-size: 2rem;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.read-story-btn {
    display: inline-block;
    padding: 0.7rem 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.read-story-btn:hover {
    padding-right: 1rem;
    letter-spacing: 2px;
}

/* ============================================
   BLOG DETAIL PAGE
   ============================================ */
.blog-header {
    height: 60vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.blog-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8rem 5% 4rem;
    background: linear-gradient(to top, rgba(255,255,255,1) 10%, transparent);
    text-align: center;
}

.blog-title-main {
    font-size: 3rem;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
}

.detail-container {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 20px;
}

.detail-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.detail-body p {
    margin-bottom: 1.5rem;
}

.detail-body blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--primary);
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #000;
    color: white;
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-logo {
    height: 100px;
    margin-bottom: 1.5rem;
}

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */
.hero-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-section > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.55);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 1.5rem;
}

.hero-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-overlay p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

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

.hero-btn-secondary {
    background: white;
    color: var(--primary);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-accent);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: '−';
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--border-soft);
    font-family: inherit;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
}

.contact-form button {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-nav {
    max-width: 1300px;
    margin: 1rem auto;
    padding: 0 20px;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb-nav ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
}

/* ============================================
   CTA BOXES
   ============================================ */
.cta-box {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #8B0000 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .blog-card, .blog-card:nth-child(3n+1) {
        grid-column: span 6;
    }
    
    .blog-card:nth-child(3n+1) .card-img {
        height: 320px;
    }
    
    .blog-card:nth-child(3n+2), .blog-card:nth-child(3n+3) {
        grid-column: span 6;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-overlay h1 {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 1.5rem 5% 1rem;
    }
    
    .logo-container img {
        height: 80px;
    }
    
    .brand-name {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding: 0;
        border-top: none;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 99;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 5%;
        border-bottom: 1px solid var(--border-soft);
        font-size: 0.9rem;
    }
    
    /* Blog Grid */
    .container {
        padding: 0 15px;
        margin: 2rem auto 3rem;
    }
    
    .blog-grid {
        gap: 1.5rem;
    }
    
    .blog-card, .blog-card:nth-child(3n+1) {
        grid-column: span 12;
    }
    
    .blog-card:nth-child(3n+1) .card-img,
    .card-img {
        height: 220px;
    }
    
    .blog-card:nth-child(3n+1) .card-title,
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-content {
        padding: 1.5rem 0.8rem 1rem;
        margin-top: -1rem;
    }
    
    .card-excerpt {
        -webkit-line-clamp: 2;
    }
    
    /* Blog Detail */
    .blog-header {
        height: 45vh;
    }
    
    .blog-header-overlay {
        padding: 5rem 5% 2rem;
    }
    
    .blog-title-main {
        font-size: 1.8rem;
    }
    
    .detail-container {
        padding: 0 15px;
        margin-bottom: 3rem;
    }
    
    .detail-body {
        font-size: 1rem;
    }
    
    .detail-body blockquote {
        font-size: 1.2rem;
        padding-left: 1rem;
        margin: 2rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 50vh;
        padding: 3rem 0;
    }
    
    .hero-overlay {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .hero-overlay h1 {
        font-size: 1.6rem;
    }
    
    .hero-overlay p {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.8rem;
    }
    
    /* Categories */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.2rem;
    }
    
    .category-card img {
        height: 160px;
    }
    
    /* Testimonials */
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* CTA Boxes */
    .cta-box {
        padding: 1.8rem;
        margin-top: 3rem;
    }
    
    .cta-box h3 {
        font-size: 1.4rem;
    }
    
    .cta-btn {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-form {
        padding: 0 0.5rem;
    }
    
    /* Footer */
    footer {
        padding: 3rem 5% 2rem;
    }
    
    .footer-logo {
        height: 70px;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding: 0 15px;
        font-size: 0.8rem;
    }
    
    /* FAQ */
    .faq-item {
        padding: 1.2rem;
    }
    
    .faq-item summary {
        font-size: 0.95rem;
    }
    
    /* Section Headings */
    section h2 {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Process Steps */
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Lists */
    .detail-body ul {
        padding-left: 1.2rem !important;
    }
    
    .detail-body ul li {
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .brand-name {
        font-size: 1.5rem;
    }
    
    .logo-container img {
        height: 65px;
    }
    
    .blog-title-main {
        font-size: 1.5rem;
    }
    
    .hero-overlay h1 {
        font-size: 1.4rem;
    }
    
    .card-title {
        font-size: 1.15rem;
    }
    
    .read-story-btn {
        font-size: 0.7rem;
    }
    
    section h2 {
        font-size: 1.5rem !important;
    }
    
    .cta-box h3 {
        font-size: 1.2rem;
    }
    
    .detail-body blockquote {
        font-size: 1.1rem;
    }
}

/* ============================================
   ADMIN PANEL RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .sidebar-header {
        flex: 1;
        min-width: 200px;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
    
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        flex: 2;
        padding: 0;
    }
    
    .sidebar-nav a {
        padding: 0.6rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar-nav a:hover,
    .sidebar-nav a.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
    }
    
    .sidebar-footer {
        width: 100%;
        border-top: 1px solid var(--border);
        border-left: none;
        text-align: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.7rem;
    }
    
    .post-thumb {
        width: 45px;
        height: 30px;
    }
    
    .actions {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .actions a {
        margin-right: 0;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 1.2rem;
    }
}
