/*
Theme Name: Golden Dragon Martial Arts
Theme URI: https://goldendragonma.com
Author: Custom
Description: A professional, modern dark theme for Golden Dragon Martial Arts Academy — Hapkido, Tae Kwon Do, and Gung Fu in Minot, ND.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golden-dragon
*/

/* ============================================
   VARIABLES
============================================ */
:root {
    --gd-black: #1a1a1a;
    --gd-charcoal: #2d2d2d;
    --gd-dark-gray: #3a3a3a;
    --gd-gold: #c9a84c;
    --gd-gold-light: #d4b85e;
    --gd-gold-dark: #a8892e;
    --gd-red: #8b0000;
    --gd-red-light: #a51c1c;
    --gd-text-light: #f0ede6;
    --gd-text-muted: #b0ada6;
    --gd-text-dark: #1a1a1a;
    --gd-overlay: rgba(26, 26, 26, 0.75);
    --gd-overlay-heavy: rgba(26, 26, 26, 0.85);
    --gd-font-heading: 'Oswald', sans-serif;
    --gd-font-body: 'Open Sans', sans-serif;
    --gd-transition: 0.3s ease;
    --gd-max-width: 1200px;
    --gd-section-padding: 100px 0;
}

/* ============================================
   RESET / BASE
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--gd-font-body);
    background-color: var(--gd-black);
    color: var(--gd-text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--gd-gold);
    text-decoration: none;
    transition: color var(--gd-transition);
}

a:hover {
    color: var(--gd-gold-light);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gd-font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--gd-text-light);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--gd-text-muted);
}

.container {
    max-width: var(--gd-max-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-block;
    font-family: var(--gd-font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 16px 40px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--gd-transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--gd-gold);
    color: var(--gd-black);
    border-color: var(--gd-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gd-gold);
    border-color: var(--gd-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--gd-gold);
    border-color: var(--gd-gold);
}

.btn-outline:hover {
    background-color: var(--gd-gold);
    color: var(--gd-black);
}

.btn-red {
    background-color: var(--gd-red);
    color: var(--gd-text-light);
    border-color: var(--gd-red);
}

.btn-red:hover {
    background-color: var(--gd-red-light);
    border-color: var(--gd-red-light);
}

/* ============================================
   HEADER / NAVIGATION
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--gd-transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(26, 26, 26, 0.97);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: var(--gd-max-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo img {
    height: 50px;
    width: auto;
    transition: height var(--gd-transition);
}

.site-header.scrolled .site-logo img {
    height: 40px;
}

.site-logo-text {
    font-family: var(--gd-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gd-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.site-logo-text span {
    display: block;
    font-size: 0.55em;
    color: var(--gd-text-muted);
    letter-spacing: 0.25em;
    font-weight: 400;
}

/* Primary Navigation */
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 35px;
}

.primary-nav a {
    font-family: var(--gd-font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gd-text-light);
    position: relative;
    padding: 5px 0;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gd-gold);
    transition: width var(--gd-transition);
}

.primary-nav a:hover,
.primary-nav .current-menu-item a,
.primary-nav .current_page_item a {
    color: var(--gd-gold);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after,
.primary-nav .current_page_item a::after {
    width: 100%;
}

/* Sub-menus */
.primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    min-width: 220px;
    background: rgba(26, 26, 26, 0.97);
    border: 1px solid var(--gd-dark-gray);
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.primary-nav li {
    position: relative;
}

.primary-nav li:hover > .sub-menu {
    display: flex;
}

.primary-nav .sub-menu li {
    border-bottom: 1px solid var(--gd-dark-gray);
}

.primary-nav .sub-menu li:last-child {
    border-bottom: none;
}

.primary-nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.primary-nav .sub-menu a::after {
    display: none;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--gd-gold);
    transition: all var(--gd-transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
============================================ */
.hero,
.gd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--gd-black);
}

.hero::before,
.gd-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.5) 0%,
        rgba(26, 26, 26, 0.7) 60%,
        rgba(26, 26, 26, 1) 100%
    );
    z-index: 1;
}

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

.hero-subtitle {
    font-family: var(--gd-font-heading);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gd-gold);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.05;
}

.hero h1 .gold {
    color: var(--gd-gold);
}

.hero-tagline {
    font-family: var(--gd-font-body);
    font-size: 1.2rem;
    color: var(--gd-text-muted);
    margin-bottom: 40px;
    font-style: italic;
    letter-spacing: 0.02em;
}

.hero .btn {
    margin: 0 8px;
}

/* Decorative separator */
.separator {
    width: 60px;
    height: 3px;
    background: var(--gd-gold);
    margin: 0 auto 25px;
}

/* ============================================
   SECTIONS
============================================ */
.section {
    padding: var(--gd-section-padding);
    position: relative;
}

.section-dark {
    background-color: var(--gd-black);
}

.section-darker {
    background-color: #141414;
}

.section-charcoal {
    background-color: var(--gd-charcoal);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header .separator {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-accent-top {
    border-top: 3px solid var(--gd-gold);
}

/* ============================================
   DISCIPLINE CARDS
============================================ */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.discipline-card {
    background: var(--gd-charcoal);
    border: 1px solid var(--gd-dark-gray);
    overflow: hidden;
    transition: all var(--gd-transition);
    position: relative;
}

.discipline-card:hover {
    transform: translateY(-8px);
    border-color: var(--gd-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.discipline-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--gd-dark-gray);
}

.discipline-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--gd-charcoal), transparent);
}

.discipline-card-content {
    padding: 30px;
}

.discipline-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--gd-gold);
}

.discipline-card .origin {
    font-family: var(--gd-font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gd-text-muted);
    margin-bottom: 15px;
    display: block;
}

.discipline-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.discipline-card .btn {
    font-size: 0.85rem;
    padding: 10px 25px;
}

/* Discipline card icon placeholder */
.discipline-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--gd-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gd-font-heading);
    font-size: 1.2rem;
    color: var(--gd-gold);
    z-index: 2;
}

/* ============================================
   ABOUT PREVIEW / SPIRIT SECTION
============================================ */
.spirit-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.spirit-image {
    position: relative;
}

.spirit-image img {
    width: 100%;
    border: 2px solid var(--gd-dark-gray);
}

.spirit-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gd-gold);
    z-index: -1;
}

.spirit-content h2 {
    margin-bottom: 10px;
}

.spirit-content .separator {
    margin: 0 0 20px;
}

.spirit-content p {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* ============================================
   WHY CHOOSE US
============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid transparent;
    transition: all var(--gd-transition);
}

.feature-item:hover {
    border-color: var(--gd-dark-gray);
    background: rgba(45, 45, 45, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--gd-gold);
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.feature-item h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   CTA BANNER
============================================ */
.cta-banner {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--gd-red);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.85);
}

.cta-banner .container {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    margin-bottom: 15px;
    color: var(--gd-text-light);
}

.cta-banner p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 35px;
    color: rgba(240, 237, 230, 0.8);
}

.cta-banner .btn-primary {
    background: var(--gd-gold);
    color: var(--gd-black);
    border-color: var(--gd-gold);
}

.cta-banner .btn-primary:hover {
    background: var(--gd-text-light);
    border-color: var(--gd-text-light);
}

/* ============================================
   LEGACY / LINEAGE GRID
============================================ */
.legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.legacy-card {
    position: relative;
    overflow: hidden;
    background: var(--gd-charcoal);
    border: 1px solid var(--gd-dark-gray);
    transition: all var(--gd-transition);
}

.legacy-card:hover {
    border-color: var(--gd-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.legacy-card-image {
    height: 350px;
    background-size: cover;
    background-position: center top;
    position: relative;
    transition: transform 0.5s ease;
    overflow: hidden;
    background-color: var(--gd-dark-gray);
}

.legacy-card:hover .legacy-card-image {
    transform: scale(1.05);
}

.legacy-card-info {
    padding: 20px;
    background: var(--gd-charcoal);
    position: relative;
    z-index: 2;
}

.legacy-card-info h4 {
    font-size: 1.1rem;
    color: var(--gd-gold);
    margin-bottom: 4px;
}

.legacy-card-info .rank {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gd-text-muted);
    display: block;
    margin-bottom: 8px;
    font-family: var(--gd-font-heading);
}

.legacy-card-info p {
    font-size: 0.85rem;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.legacy-card:hover .legacy-card-info p {
    max-height: 100px;
    margin-top: 8px;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background-color: #111111;
    border-top: 3px solid var(--gd-gold);
}

.footer-main {
    padding: 70px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
}

.footer-col h4 {
    font-family: var(--gd-font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gd-gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gd-dark-gray);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-size: 0.9rem;
    color: var(--gd-text-muted);
    transition: all var(--gd-transition);
}

.footer-col ul a:hover {
    color: var(--gd-gold);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--gd-text-muted);
}

.footer-contact-item strong {
    color: var(--gd-text-light);
    min-width: 70px;
}

.footer-bottom {
    border-top: 1px solid var(--gd-dark-gray);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gd-text-muted);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gd-dark-gray);
    color: var(--gd-text-muted);
    font-size: 0.85rem;
    transition: all var(--gd-transition);
    font-family: var(--gd-font-heading);
    text-transform: uppercase;
    letter-spacing: 0;
}

.social-links a:hover {
    border-color: var(--gd-gold);
    color: var(--gd-gold);
    background: rgba(201, 168, 76, 0.1);
}

/* ============================================
   PAGE CONTENT
============================================ */
.gd-custom-page {
    padding-top: 0;
}

.gd-custom-page h2 {
    margin-bottom: 15px;
}

.gd-custom-page .separator {
    margin-bottom: 20px;
}

.page-content {
    padding: 140px 0 80px;
    min-height: 60vh;
}

.page-content .container {
    max-width: 900px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 100px;
    padding-bottom: 30px;
    background: var(--gd-charcoal);
}

.page-header h1 {
    margin-bottom: 10px;
}

.page-header .separator {
    margin-bottom: 0;
}

/* Entry content styling */
.entry-content {
    font-size: 1rem;
    line-height: 1.8;
}

.entry-content h2 {
    margin: 40px 0 15px;
}

.entry-content h3 {
    margin: 30px 0 12px;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    padding-left: 25px;
    margin-bottom: 1.25rem;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 6px;
    color: var(--gd-text-muted);
}

.entry-content blockquote {
    border-left: 3px solid var(--gd-gold);
    padding: 20px 25px;
    margin: 30px 0;
    background: var(--gd-charcoal);
    font-style: italic;
}

.entry-content blockquote p {
    color: var(--gd-text-light);
    margin-bottom: 0;
}

.entry-content img {
    margin: 25px 0;
    border: 1px solid var(--gd-dark-gray);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.entry-content th,
.entry-content td {
    padding: 12px 15px;
    border: 1px solid var(--gd-dark-gray);
    text-align: left;
}

.entry-content th {
    background: var(--gd-charcoal);
    color: var(--gd-gold);
    font-family: var(--gd-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Wide and full alignment support */
.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* ============================================
   BLOG / ARCHIVE
============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--gd-charcoal);
    border: 1px solid var(--gd-dark-gray);
    overflow: hidden;
    transition: all var(--gd-transition);
}

.post-card:hover {
    border-color: var(--gd-gold);
    transform: translateY(-5px);
}

.post-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--gd-dark-gray);
}

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

.post-card-meta {
    font-size: 0.8rem;
    color: var(--gd-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-family: var(--gd-font-heading);
}

.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: var(--gd-text-light);
}

.post-card h3 a:hover {
    color: var(--gd-gold);
}

.post-card p {
    font-size: 0.9rem;
}

.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 3px;
    background: var(--gd-charcoal);
    color: var(--gd-text-muted);
    border: 1px solid var(--gd-dark-gray);
    font-family: var(--gd-font-heading);
    transition: all var(--gd-transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--gd-gold);
    color: var(--gd-black);
    border-color: var(--gd-gold);
}

/* ============================================
   CORE DISCIPLINES TEMPLATE
============================================ */
.discipline-section {
    padding: var(--gd-section-padding);
    position: relative;
}

.discipline-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.discipline-detail.reverse {
    direction: rtl;
}

.discipline-detail.reverse > * {
    direction: ltr;
}

.discipline-image {
    position: relative;
    overflow: hidden;
}

.discipline-image img {
    width: 100%;
    border: 1px solid var(--gd-dark-gray);
}

.discipline-text h2 {
    color: var(--gd-gold);
    margin-bottom: 8px;
}

.discipline-text .subtitle {
    font-family: var(--gd-font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gd-text-muted);
    margin-bottom: 20px;
    display: block;
}

.discipline-text p {
    line-height: 1.9;
}

.discipline-divider {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    background-color: var(--gd-dark-gray);
}

.discipline-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gd-overlay);
}

/* ============================================
   PAGE HERO SECTIONS
============================================ */
.gd-page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--gd-black);
    margin-top: -140px;
    padding-top: 140px;
}

.gd-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.6) 0%, rgba(26,26,26,0.8) 100%);
}

.gd-page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 60px 30px;
}

.gd-page-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.gd-page-hero-content p {
    font-size: 1.2rem;
    color: var(--gd-text-muted);
    margin: 0;
}

/* ============================================
   CONTENT SECTIONS (for page content)
============================================ */
.gd-content-section {
    padding: 80px 30px;
    max-width: var(--gd-max-width);
    margin: 0 auto;
}

.gd-dark-bg {
    background: var(--gd-charcoal);
    max-width: 100%;
    padding: 80px 30px;
}

.gd-dark-bg .gd-features-row,
.gd-dark-bg .gd-gallery-grid,
.gd-dark-bg .gd-two-col {
    max-width: var(--gd-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Two Column Layout */
.gd-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.gd-two-col.reverse {
    direction: rtl;
}

.gd-two-col.reverse > * {
    direction: ltr;
}

.gd-col-image img {
    width: 100%;
    border: 1px solid var(--gd-dark-gray);
}

.gd-col-text h2 {
    margin-bottom: 10px;
}

/* Feature Boxes */
.gd-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.gd-feature-box {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--gd-dark-gray);
    transition: all var(--gd-transition);
}

.gd-feature-box:hover {
    border-color: var(--gd-gold);
    background: rgba(201, 168, 76, 0.05);
}

.gd-feature-box .feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
    color: var(--gd-gold);
}

.gd-feature-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.gd-feature-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Gallery Grid */
.gd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gd-gallery-item {
    overflow: hidden;
    border: 1px solid var(--gd-dark-gray);
    transition: all var(--gd-transition);
}

.gd-gallery-item:hover {
    border-color: var(--gd-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gd-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gd-gallery-item:hover img {
    transform: scale(1.05);
}

/* Pricing Note */
.gd-pricing-note {
    background: var(--gd-dark-gray);
    padding: 25px 35px;
    max-width: 500px;
    margin: 0 auto 30px;
    border: 1px solid var(--gd-gold);
}

.gd-pricing-note p {
    margin-bottom: 5px;
}

/* ============================================
   PROGRAMS GRID
============================================ */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    display: block;
    background: var(--gd-charcoal);
    border: 1px solid var(--gd-dark-gray);
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    transition: all var(--gd-transition);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gd-gold);
    transform: scaleX(0);
    transition: transform var(--gd-transition);
}

.program-card:hover {
    border-color: var(--gd-gold);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
    line-height: 1;
}

.program-card h4 {
    color: var(--gd-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.program-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--gd-text-muted);
}

/* ============================================
   ONSHARP BLOCKS COMPATIBILITY
============================================ */
.wp-block-onsharp-hero,
.wp-block-onsharp-section {
    color: var(--gd-text-light);
}

.wp-block-onsharp-card {
    background: var(--gd-charcoal);
    border-color: var(--gd-dark-gray);
}

/* ============================================
   PARALLAX DIVIDERS
============================================ */
.gd-parallax-divider {
    height: 350px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    background-color: var(--gd-dark-gray);
}

.gd-parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* ============================================
   SCROLL ANIMATIONS (Legacy)
============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   SCROLL ANIMATIONS (New gd-prefixed)
============================================ */
.gd-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.gd-fade-in.gd-visible {
    opacity: 1;
    transform: translateY(0);
}

.gd-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.gd-slide-left.gd-visible {
    opacity: 1;
    transform: translateX(0);
}

.gd-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.gd-slide-right.gd-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }

    .hero h1 { font-size: 3.5rem; }

    .disciplines-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spirit-section {
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .discipline-detail {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --gd-section-padding: 70px 0;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 0.85rem; letter-spacing: 0.2em; }
    .hero-tagline { font-size: 1rem; }

    .hero,
    .gd-hero,
    .cta-banner,
    .discipline-divider,
    .gd-parallax-divider {
        background-attachment: scroll;
    }

    .gd-parallax-divider {
        height: 250px;
    }

    /* Mobile nav */
    .menu-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--gd-black);
        padding: 100px 40px 40px;
        transition: right var(--gd-transition);
        border-left: 1px solid var(--gd-dark-gray);
    }

    .primary-nav.active {
        right: 0;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .primary-nav li {
        border-bottom: 1px solid var(--gd-dark-gray);
    }

    .primary-nav a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
    }

    .primary-nav .sub-menu {
        position: static;
        border: none;
        padding-left: 15px;
        display: none;
        box-shadow: none;
    }

    .primary-nav li:hover > .sub-menu {
        display: flex;
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
    }

    .spirit-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .spirit-image::before {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .gd-two-col,
    .gd-two-col.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .gd-features-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .gd-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gd-page-hero {
        background-attachment: scroll;
        min-height: 40vh;
    }

    .gd-page-hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .discipline-detail,
    .discipline-detail.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .legacy-grid {
        grid-template-columns: 1fr 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero .btn { display: block; margin: 10px auto; max-width: 250px; }

    .legacy-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 20px;
    }
}
