/* 
 * Modern themes define variables in theme.json.
 * This file is primarily for WordPress theme metadata.
 * Custom CSS should go in assets/css/main.css or similar.
 */

/* ==========================================================================
   Basic Layout & Typography Setup
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--wp--preset--color--neutral);
    color: var(--wp--preset--color--black);
    font-family: var(--wp--preset--font-family--plus-jakarta-sans);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--wp--preset--color--secondary);
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--wp--preset--color--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Containers (Synced with theme.json)
   ========================================================================== */

.container {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    max-width: var(--wp--style--global--content-size, 900px);
}

.container.wide {
    max-width: var(--wp--style--global--wide-size, 1360px);
}

/* .site-main {
    padding: 60px 0;
} */

.ng-section {
    padding: 40px 0;
}

.swiper-slide {
    height: auto !important;
}

/* ==========================================================================
   Blog Grid (index.php)
   ========================================================================== */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.post-card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #f0f0f0;
}

.post-card-content {
    padding: 20px;
}

.post-card-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.post-card-title a {
    text-decoration: none;
    color: var(--wp--preset--color--primary);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.read-more-btn {
    /* removed */
}

.read-more-btn:hover {
    /* removed */
}

/* ==========================================================================
  Input, Textarea, Select, Button styling
   ========================================================================== */

input,
textarea,
select,
button {
    box-sizing: border-box;
}

/* ==========================================================================
 Utilities Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

/* Button Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

/* Button Sizes */
.btn-lg {
    padding: 14px 35px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.btn-md {
    padding: 12px 28px;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Button Colors */
.btn-primary {
    background-color: var(--wp--preset--color--primary, #98782D);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--wp--preset--color--secondary, #063F30);
    color: #fff;
}

.btn-secondary {
    background-color: var(--wp--preset--color--secondary, #063F30);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--wp--preset--color--primary, #98782D);
    color: #fff;
}

.btn-tertiary {
    background-color: var(--wp--preset--color--tertiary, #EDEBE4);
    color: var(--wp--preset--color--secondary, #063F30);
}

.btn-tertiary:hover {
    background-color: var(--wp--preset--color--primary, #98782D);
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: var(--wp--preset--color--secondary, #063F30);
}

.btn-white:hover {
    color: var(--wp--preset--color--primary, #98782D);
}

/* ==========================================================================
   Navigation Breakpoints
   ========================================================================== */

@media (min-width: 992px) {

    .menu-toggle,
    .mobile-search,
    .offcanvas-drawer,
    .offcanvas-overlay {
        display: none !important;
    }
}

@media (max-width: 991px) {

    .desktop-search,
    .desktop-navigation {
        display: none !important;
    }
}

/* ==========================================================================
   Global Mobile Responsiveness
   ========================================================================== */

@media (max-width: 768px) {
    html {
        font-size: 1rem;
    }

    .ng-section {
        padding: 30px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

