/*
Theme Name:   Astra Child — My Gym In Home
Theme URI:    https://mygyminhome.com
Description:  Astra child theme for My Gym In Home. Inherits Astra parent and adds MGIH branding, article template, and custom components.
Author:       My Gym In Home
Author URI:   https://mygyminhome.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child-mgih
Tags:         fitness, health, child-theme
*/

/* ============================================================
   MGIH GLOBAL OVERRIDES
   These supplement (not replace) Astra's own styles.
   Heavy component styles live in assets/css/mgih-components.css
   ============================================================ */

/* ── Google Fonts are enqueued via functions.php ── */

/* ── CSS Custom Properties ─────────────────────── */
:root {
  --mgih-green-dk:    #0a1a0a;
  --mgih-green-mid:   #1a3d1a;
  --mgih-green-ac:    #6dbf6d;
  --mgih-green-lt:    #8ed98e;
  --mgih-white:       #ffffff;
  --mgih-surface:     #f7faf7;
  --mgih-ink:         #0e1e0e;
  --mgih-muted:       rgba(14, 30, 14, 0.52);
  --mgih-border:      rgba(14, 30, 14, 0.10);

  --mgih-font-display: 'Playfair Display', Georgia, serif;
  --mgih-font-body:    'Source Sans 3', system-ui, sans-serif;

  --mgih-radius-sm:   6px;
  --mgih-radius-md:   10px;
  --mgih-radius-lg:   14px;
  --mgih-radius-pill: 100px;
}

/* ── Body & Base ────────────────────────────────── */
body {
  font-family: var(--mgih-font-body);
  color: var(--mgih-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Astra Header: keep transparent on home ─────── */
.ast-header-break-point .main-header-bar,
.main-header-bar {
  background: transparent;
  transition: background 0.35s ease;
}

.main-header-bar.scrolled,
body:not(.home) .main-header-bar {
  background: var(--mgih-green-dk) !important;
}

/* ── Global link colour ─────────────────────────── */
a {
  color: var(--mgih-green-mid);
}

a:hover {
  color: var(--mgih-green-ac);
}

/* ── Astra primary button ───────────────────────── */
.ast-btn,
.button,
button[type="submit"],
input[type="submit"] {
  background: var(--mgih-green-dk) !important;
  color: var(--mgih-white) !important;
  border-radius: var(--mgih-radius-sm) !important;
  border: none !important;
  font-family: var(--mgih-font-body) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  transition: background 0.22s ease, transform 0.22s ease !important;
}

.ast-btn:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--mgih-green-mid) !important;
  transform: translateY(-2px) !important;
}

/* ── Astra nav menu ─────────────────────────────── */
.ast-menu-toggle,
#ast-mobile-header .ast-menu-toggle {
  color: var(--mgih-white);
}

.main-navigation .menu-item a,
.site-navigation .menu-item a {
  font-family: var(--mgih-font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ── Widget headings ────────────────────────────── */
.widget-title,
.widgettitle {
  font-family: var(--mgih-font-display);
  font-weight: 500;
  color: var(--mgih-ink);
}

/* ── WP Block editor: align article content ─────── */
.entry-content {
  font-family: var(--mgih-font-body);
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--mgih-green-dk);
  color: rgba(255, 255, 255, 0.55);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer a:hover {
  color: var(--mgih-green-ac);
}
.custom-blog-section {
    max-width: 1200px;
    margin: 0 auto;
    font-family: sans-serif;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.sub-label {
    color: #8da47e;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

/* Featured Card */
.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.post-thumbnail {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.post-content, .mini-content {
    padding: 25px;
}

.post-cat {
    background: #f1f5ee;
    color: #6d855a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Mini Cards */
.secondary-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-card {
    display: flex;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 150px;
}

.mini-content { flex: 1; }
.mini-thumb { width: 120px; background-size: cover; }

.read-more {
    color: #6d855a;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

