/* =========================================
   VARIABLES & FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500&display=swap');

:root {
    --c-dark: #0f1c24;
    --c-card-bg: #16242e;
    --c-gold: #c5a059;
    --c-sand: #f1e2d6;
    --c-white: #ffffff;
    --font-head: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* =========================================
   PAGE CONTAINER
   ========================================= */
#services-gallery {
    position: relative;
    background: linear-gradient(145deg, var(--light-bg) 0%, var(--primary-color) 100%);
    color: var(--c-sand);
    padding: 100px 0;
    font-family: var(--font-body);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 2;
}

/* Background Texture */
.bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--c-gold) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.04;
    pointer-events: none;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.page-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: block;
    color: var(--c-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 600;
}

.main-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    color: var(--c-white);
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.gold-divider {
    height: 2px;
    width: 60px;
    background-color: var(--c-gold);
    margin: 0 auto 25px auto;
}

.intro-text {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* =========================================
   GRID LAYOUT
   ========================================= */
.gallery-grid {
    display: grid;
    /* 2 Columns on desktop */
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* =========================================
   CARD DESIGN
   ========================================= */
.gallery-card {
    background-color: var(--primary-color);
    border-radius: 4px;
    overflow: hidden; /* Keeps the zooming image inside */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 3px solid transparent; /* Subtle bottom border for hover */
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-bottom-color: var(--c-gold);
}

/* IMAGE AREA */
.card-image {
    position: relative;
    width: 100%;
    height: 300px; /* Fixed height for uniformity */
    overflow: hidden;
}

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

/* Zoom effect on hover */
.gallery-card:hover .card-image img {
    transform: scale(1.1);
}

/* Number Overlay (01, 02...) */
.card-num {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--c-gold);
    color: var(--c-dark);
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 10px 20px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); /* Slight angle cut */
}

/* CONTENT AREA */
.card-content {
    padding: 35px;
    flex-grow: 1; /* Ensures cards align height */
}

.card-content h3 {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--c-white);
    margin-bottom: 15px;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 50px;
    }

    .main-title {
        font-size: 2.5rem;
    }
    
    .card-image {
        height: 250px; /* Slightly smaller image on mobile */
    }
}
 
/* =========================================
   VARIABLES & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,700;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --bg-body: #fdfcf8;      /* Cream */
    --c-primary: #c76d50;    /* Terracotta */
    --c-dark: #1a1a1a;       /* Charcoal */
    --c-text: #555555;       /* Grey Text */
    --c-border: #eaeaea;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-body);
    font-family: var(--font-sans);
    color: var(--c-text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   HERO SECTION
   ========================================= */
.blog-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1514030616149-c167440b8a1c?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.blog-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* Dark Overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.hero-tag {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}

/* =========================================
   LAYOUT WRAPPERS
   ========================================= */
.page-wrapper {
    max-width: 1200px;
    margin: -80px auto 100px auto; /* Pulls content up over hero */
    position: relative;
    padding: 0 20px;
    z-index: 5;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 Content, 1/3 Sidebar */
    gap: 40px;
    margin-top: 60px;
}

/* =========================================
   FEATURED POST
   ========================================= */
.featured-card {
    background: #fff;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.f-image {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.f-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-card:hover .f-image img { transform: scale(1.05); }

.badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--c-primary);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
}

.f-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.f-content h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--c-dark);
    line-height: 1.2;
    margin-bottom: 15px;
}
.f-content h2 a:hover { color: var(--c-primary); }

.btn-text {
    margin-top: 20px;
    color: var(--c-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================
   MAIN POSTS (MASONRY GRID)
   ========================================= */
.posts-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--c-border);
}

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

.card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .card-img img { transform: scale(1.1); }

.cat-tag {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(255,255,255,0.9);
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--c-dark);
    text-transform: uppercase;
    border-radius: 4px;
}

.card-body { padding: 25px; }

.card-meta {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 12px;
}
.card-meta .sep { margin: 0 5px; }

.card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--c-dark);
}
.card-body h3 a:hover { color: var(--c-primary); }

.card-body p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--c-primary);
    position: relative;
}
.read-link::after {
    content: '';
    position: absolute;
    width: 0%; height: 2px;
    bottom: -4px; left: 0;
    background: var(--c-primary);
    transition: 0.3s;
}
.read-link:hover::after { width: 100%; }

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.widget {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    margin-bottom: 30px;
}

.widget h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--c-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 10px;
}

/* Search */
.search-box { display: flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.search-box input {
    border: none; padding: 12px; width: 100%; outline: none;
    font-family: var(--font-sans);
}
.search-box button {
    background: var(--c-dark); color: #fff; border: none; padding: 0 15px;
    cursor: pointer;
}

/* Newsletter */
.newsletter-widget {
    background: var(--c-dark);
    color: #fff;
    text-align: center;
    border: none;
}
.newsletter-widget h4 { color: #fff; border-color: rgba(255,255,255,0.2); }
.newsletter-widget p { font-size: 0.9rem; margin-bottom: 20px; opacity: 0.8; }
.newsletter-widget input {
    width: 100%; padding: 12px; border: none; border-radius: 4px; margin-bottom: 10px;
}
.btn-sub {
    width: 100%; padding: 12px; background: var(--c-primary); color: #fff;
    border: none; font-weight: 600; text-transform: uppercase; cursor: pointer;
    border-radius: 4px; transition: 0.3s;
}
.btn-sub:hover { background: #b05d43; }

/* Categories */
.cat-widget ul li {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}
.cat-widget ul li a {
    display: flex; justify-content: space-between;
    font-size: 0.95rem; color: #666;
}
.cat-widget ul li a:hover { color: var(--c-primary); }

/* Recent Posts */
.mini-post { display: flex; gap: 15px; margin-bottom: 20px; }
.mini-post img {
    width: 70px; height: 70px; object-fit: cover; border-radius: 4px;
}
.mini-text a {
    font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.2;
    color: var(--c-dark); display: block; margin-bottom: 5px;
}
.mini-text small { font-size: 0.75rem; color: #999; }

/* =========================================
   PAGINATION
   ========================================= */
.pagination-area {
    grid-column: 1 / -1;
    display: flex; justify-content: center; gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #ddd;
    color: var(--c-dark);
    border-radius: 50%;
    transition: 0.3s;
}

.page-btn.active, .page-btn:hover {
    background: var(--c-dark); color: #fff; border-color: var(--c-dark);
}
.page-btn.disabled { opacity: 0.5; pointer-events: none; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    .featured-card { grid-template-columns: 1fr; }
    .f-image { min-height: 250px; }
    .sidebar { position: static; }
}

@media (max-width: 600px) {
    .posts-column { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
}
.page-header p {
    text-align: center;
}