/* ===================================
   VARIABLES & RESET
   =================================== */
:root {
  --primary: #C8A868;
  --secondary: #1A2332;
  --accent: #D4874B;
  --light: #F5F5F5;
  --dark: #0D1117;
  --white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-display);
}


.logo-icon {
  font-size: 32px;
}


/* ===================================
   COMPANY NAME (keep your styling; static or animated as you prefer)
   =================================== */
.logo-text {
  background: linear-gradient(
    145deg,
    #F9F295 0%,
    #E0AA3E 15%,
    #FFD700 30%,
    #B88A44 45%,
    #D4A76A 60%,
    #FFD700 75%,
    #E0AA3E 90%,
    #F9F295 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  font-weight: 700;
  letter-spacing: 2px;
  font-family: var(--font-display);
  
  position: relative;
  display: inline-block;
  /* If you want it fully static, uncomment the next line */
  /* animation: none; */
}

@supports not (-webkit-background-clip: text) {
  .logo-text {
    color: #FFD700;
    text-shadow:
      0 1px 0 #FFED4E,
      0 2px 0 #CDA434,
      0 3px 5px rgba(0, 0, 0, 0.2);
  }
}

/* Responsive logo size */
@media (max-width: 768px) {
  .agc-logo { width: 56px; height: 56px; }
  .logo-text { font-size: 20px; letter-spacing: 1px; }
}
@media (max-width: 480px) {
  .agc-logo { width: 44px; height: 44px; }
  .logo-text { font-size: 16px; }
}


.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--secondary);
  transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    var(--secondary) 0%, 
    #2C3E50 50%, 
    var(--primary) 100%);
  opacity: 0.95;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(70px, 70px); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: var(--white);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-button {
  padding: 18px 40px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 1s ease-out 0.4s backwards;
  box-shadow: 0 10px 30px rgba(200, 168, 104, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(200, 168, 104, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-visual {
  position: relative;
  height: 400px;
  perspective: 1000px;
}

.floating-card {
  position: absolute;
  width: 200px;
  height: 250px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: 0;
  left: 50px;
  background: linear-gradient(135deg, rgba(200, 168, 104, 0.3), rgba(212, 135, 75, 0.3));
  animation-delay: 0s;
  transform: rotateY(-15deg) rotateX(10deg);
}

.card-2 {
  top: 100px;
  right: 30px;
  background: linear-gradient(135deg, rgba(212, 135, 75, 0.3), rgba(200, 168, 104, 0.3));
  animation-delay: 2s;
  transform: rotateY(15deg) rotateX(-10deg);
}

.card-3 {
  bottom: 50px;
  left: 100px;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.3), rgba(200, 168, 104, 0.3));
  animation-delay: 4s;
  transform: rotateY(0deg) rotateX(5deg);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-20px) rotateY(5deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--white);
  opacity: 0.7;
  z-index: 2;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 20px;
  margin: 0 auto 10px;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--white);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
  border-left: 2px solid var(--primary);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-left-color: var(--accent);
}

.stat-value {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(200, 168, 104, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  opacity: 0;
  transform: translateX(-30px);
  transition: var(--transition);
}

.about-text.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-lead {
  font-size: 20px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 500;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-features {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.feature-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.about-visual {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-cube {
  width: 300px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s linear infinite;
}

@keyframes rotateCube {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, rgba(200, 168, 104, 0.2), rgba(212, 135, 75, 0.2));
  backdrop-filter: blur(10px);
  opacity: 0.8;
}

.cube-face.front  { transform: rotateY(0deg) translateZ(150px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(150px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(150px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(150px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(150px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(150px); }

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===================================
   MARKETS SECTION - CLEAN SLATE
   =================================== */
.markets-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.markets-map {
  position: relative;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding: 30px;
  background: linear-gradient(135deg, rgba(200, 168, 104, 0.1), rgba(212, 135, 75, 0.1));
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.africa-map-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.map-markers {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  pointer-events: none;
}

/* CRITICAL: No transforms, no margins on marker itself */
.market-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #D4874B;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
}

/* Pulse effect that doesn't move the marker */
@keyframes markerPulse {
  0%, 100% { 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1;
  }
  50% { 
    box-shadow: 0 4px 16px rgba(212, 135, 75, 0.6);
    opacity: 0.85;
  }
}

.market-marker {
  animation: markerPulse 2s ease-in-out infinite;
}

/* Ripple effect */
.market-marker::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: rgba(212, 135, 75, 0.3);
  border-radius: 50%;
  animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Tooltip */
.market-marker::after {
  content: attr(data-city);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #1A2332;
  color: white;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.market-marker:hover::after {
  opacity: 1;
}

.markets-list h3 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 30px;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.market-item {
  padding: 15px 20px;
  background: var(--white);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  font-weight: 500;
}

.market-item:hover {
  transform: translateX(5px);
  border-left-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 968px) {
  .markets-content {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .markets-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    padding: 20px;
  }
  
  .map-markers {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
  background: var(--light);
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #E0E0E0;
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font-body);
  transition: var(--transition);
  background: transparent;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  color: var(--primary);
  background: var(--white);
  padding: 0 5px;
}

.submit-button {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 168, 104, 0.3);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  padding: 30px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.info-card h4 {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 10px;
}

.info-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-col p {
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  padding: 12px 25px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    padding: 40px 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-visual {
    display: none;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .visual-cube {
    width: 200px;
    height: 200px;
  }
  
  .cube-face {
    width: 200px;
    height: 200px;
  }
  
  .markets-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-value {
    font-size: 36px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .markets-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

[data-scroll] {
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ================================
   NEWS
   ================================ */
.news-section { background: var(--light); }
.news-toolbar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .news-toolbar { grid-template-columns: 1fr; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}
.chip:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.chip.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.news-search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  outline: none;
  transition: var(--transition);
}
.news-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,168,104,0.15); }

.news-meta-bar {
  display: flex; justify-content: flex-end; margin-bottom: 12px;
  color: var(--text-light); font-size: 14px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: 13px; color: var(--text-light);
}
.badge {
  display: inline-block; padding: 4px 8px; border-radius: 8px;
  background: rgba(200,168,104,0.12); color: var(--secondary); font-weight: 600;
}

.news-title { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.news-title a { text-decoration: none; color: var(--text-dark); }
.news-title a:hover { color: var(--secondary); }

.news-summary { color: var(--text-light); margin-bottom: 12px; font-size: 15px; }

.news-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 4px 8px; border-radius: 8px;
  background: rgba(0,0,0,0.04); font-size: 12px; color: var(--text-dark);
}

.news-empty {
  margin-top: 20px;
  padding: 24px;
  background: #fff;
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 12px;
  text-align: center;
  color: var(--text-light);
}

/* ===================================
   CLICKABLE SERVICE CARDS - ENHANCED
   =================================== */
.service-card.clickable {
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-card.clickable::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 20px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.service-card.clickable:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card.clickable:hover::after {
  border-color: var(--primary);
}

.service-card.clickable:focus {
  outline: none;
}

.service-card.clickable:focus::after {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(200, 168, 104, 0.2);
}

.view-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  pointer-events: none; /* Prevent interference with card click */
}

.service-card.clickable:hover .view-more {
  color: var(--accent);
  transform: translateX(5px);
}

/* Make entire card area clickable */
.service-card.clickable * {
  pointer-events: none;
}

.service-card.clickable {
  pointer-events: auto;
}

/* ===================================
   SERVICE CARD LINK WRAPPER
   =================================== */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
  transition: var(--transition);
}

.service-card-link:hover {
  color: inherit;
}

.service-card-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 20px;
}

/* Adjust padding for cards with links */
.service-card.has-link {
  padding: 0;
}

.service-card.has-link .service-card-link {
  padding: 50px 40px;
  border-radius: 20px;
}

/* Enhanced hover effect for linked cards */
.service-card.has-link:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card.has-link:hover .view-more {
  color: var(--accent);
  transform: translateX(5px);
}

/* Ensure smooth transition */
.service-card.has-link .service-card-link * {
  transition: var(--transition);
}