/* ================================================
   GO TECH WIZARDS - design.css
   Edit via VS Code or FTP, not cPanel File Manager
   ================================================ */

/* Base */
body {
  background: #fafaf8;
  font-family: 'DM Sans', sans-serif;
  color: #3a3a3a;
}

.ast-container {
  max-width: 1200px;
}

/* Hide default page title on homepage */
.home .entry-title,
.home .ast-breadcrumbs-wrapper {
  display: none;
}

/* Fix Astra header background */
#masthead,
.site-header,
.ast-primary-header-bar,
.main-header-bar,
.ast-above-header-bar {
  background-color: #fafaf8 !important;
  border-bottom: 3px solid #0d0d0d !important;
}

.main-header-bar .menu-link,
.main-navigation a,
.ast-builder-menu a,
.site-title a {
  color: #0d0d0d !important;
}



/* Fix Astra container interfering with grid */
.ast-container {
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* Stop Astra adding extra padding to page content */
.entry-content,
.ast-article-single,
#primary {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Fix content area width */
#content .ast-container {
  display: block !important;
}

/* Topbar */
.gtw-topbar {
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7a7a7a;
  max-width: 1200px;
  margin: 0 auto;
}

.gtw-topbar-tagline {
  font-style: italic;
}

/* Section labels */
.gtw-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 20px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 32px;
}

.gtw-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0d0d0d;
}

.gtw-section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: #0052cc;
}

.gtw-view-all {
  font-size: 12px;
  font-weight: 600;
  color: #0052cc;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: letter-spacing 0.2s;
}

.gtw-view-all:hover {
  letter-spacing: 0.12em;
}

/* Hero */
.gtw-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding: 48px 0 40px;
  border-bottom: 1px solid #e0e0e0;
  align-items: start;
}

.gtw-hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gtw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0052cc;
}

.gtw-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #0052cc;
}

.gtw-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  margin: 0;
}

.gtw-hero-title a {
  text-decoration: none;
  color: #0d0d0d;
  transition: color 0.2s;
}

.gtw-hero-title a:hover {
  color: #0052cc;
}

.gtw-hero-excerpt {
  font-size: 17px;
  font-weight: 300;
  color: #3a3a3a;
  line-height: 1.7;
  margin: 0;
}

.gtw-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #7a7a7a;
}

.gtw-hero-meta .author {
  font-weight: 600;
  color: #3a3a3a;
}

.gtw-hero-meta .sep {
  color: #e0e0e0;
}

.gtw-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0052cc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.2s;
}

.gtw-read-more:hover {
  gap: 14px;
}

.gtw-hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/3;
}

.gtw-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gtw-hero-image:hover img {
  transform: scale(1.04);
}

.gtw-hero-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #0052cc;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  z-index: 2;
}

/* Article Grid */
.gtw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
  margin-bottom: 56px;
}

.gtw-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 28px;
}

.gtw-card-thumb {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16/10;
  margin-bottom: 16px;
}

.gtw-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gtw-card:hover .gtw-card-thumb img {
  transform: scale(1.05);
}

.gtw-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0052cc;
  margin-bottom: 7px;
  text-decoration: none;
  display: block;
}

.gtw-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700 !important;
  line-height: 1.25;
  margin-bottom: 10px;
}

.gtw-card-title a {
  color: #0d0d0d;
  text-decoration: none;
  transition: color 0.2s;
}

.gtw-card:hover .gtw-card-title a {
  color: #0052cc;
}

.gtw-card-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: #3a3a3a;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gtw-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7a7a7a;
  margin-top: auto;
}

.gtw-card-meta .author {
  font-weight: 600;
  color: #3a3a3a;
}

.gtw-card-meta .sep {
  color: #e0e0e0;
}

/* Newsletter */
.gtw-newsletter {
  background: #0d0d0d;
  margin: 0 -9999px;
  padding: 48px 9999px;
}

.gtw-newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.gtw-newsletter h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  color: white;
  margin-bottom: 8px;
}

.gtw-newsletter p {
  font-size: 15px;
  color: #9ca3af;
  font-weight: 300;
}

.gtw-nl-form {
  display: flex;
  border: 1px solid #444444;
  border-radius: 4px;
  overflow: hidden;
}

.gtw-nl-form input[type="email"] {
  flex: 1;
  background: #1a1a1a;
  border: none;
  outline: none;
  padding: 14px 18px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}

.gtw-nl-form input::placeholder {
  color: #666666;
}

.gtw-nl-form button {
  background: #0052cc;
  border: none;
  padding: 14px 22px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.gtw-nl-form button:hover {
  background: #003d99;
}

/* Fade-in on load */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gtw-hero,
.gtw-card {
  animation: fadeUp 0.5s ease both;
}

.gtw-card:nth-child(2) { animation-delay: 0.07s; }
.gtw-card:nth-child(3) { animation-delay: 0.14s; }
.gtw-card:nth-child(4) { animation-delay: 0.10s; }
.gtw-card:nth-child(5) { animation-delay: 0.17s; }
.gtw-card:nth-child(6) { animation-delay: 0.24s; }

/* Tagline hide */
.ast-site-description,
.site-description,
p.site-description {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .gtw-hero {
    grid-template-columns: 1fr;
  }
  .gtw-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gtw-newsletter-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gtw-grid {
    grid-template-columns: 1fr;
  }
}
