/*
Theme Name: MegaGym Community
Theme URI: https://example.com/megagym-community
Author: DevSkills
Author URI: https://example.com
Description: A custom gym community theme for a WordPress fitness community project.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: megagym
Tags: custom-logo, custom-menu, featured-images, responsive-layout, accessibility
*/

:root {
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-primary: #031b4e;
  --color-secondary: #ffcc00;
  --color-text: #1a1f36;
  --color-muted: #5a6078;
  --color-border: rgba(3, 27, 78, 0.08);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-wrapper {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 24px;
}

header {
  background: var(--color-primary);
  color: #fff;
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 54px;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-navigation a {
  color: #fff;
  font-weight: 600;
}

.hero {
  padding: 120px 0 70px;
  background: linear-gradient(135deg, rgba(3, 27, 78, 0.95), rgba(0, 86, 151, 0.95)), url('https://images.unsplash.com/photo-1517960413843-0aeea5a7e9e9?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1.03;
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-actions a {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
}

.section {
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 2.8rem);
}

.section-heading p {
  margin: 18px auto 0;
  max-width: 660px;
  color: var(--color-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(3, 27, 78, 0.05);
}

.card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.card p {
  color: var(--color-muted);
}

.card small {
  display: block;
  margin-top: 16px;
  color: var(--color-secondary);
  font-weight: 700;
}

.events-list,
.reviews-list {
  display: grid;
  gap: 24px;
}

.event-item,
.review-item {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(0, 32, 71, 0.06);
}

.event-meta,
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.event-meta span,
.review-meta span {
  background: #eef5ff;
  padding: 8px 12px;
  border-radius: 999px;
}

.button-secondary,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.footer {
  background: #031b4e;
  color: rgba(255,255,255,0.85);
  padding: 48px 0;
}

.footer a {
  color: rgba(255,255,255,0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-grid h3 {
  color: #fff;
}

@media (max-width: 960px) {
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: start;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  header {
    padding: 18px 0;
  }
}




