/* ============================================
   WEBSITE ENHANCEMENTS CSS
   ============================================ */



/* Code Typing Animation */
.code-animation-container {
  margin-top: 24px;
  width: 100%;
  max-width: 550px;
  display: block;
  perspective: 1000px;
}

/* Professional macOS-style Terminal */
.code-terminal.pro-terminal {
  background: linear-gradient(165deg, #1e2235 0%, #0d1117 50%, #161b22 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 188, 212, 0.15);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 80px -20px rgba(0, 188, 212, 0.3);
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: terminalFloat 6s ease-in-out infinite;
}

.code-terminal.pro-terminal:hover {
  transform: translateY(-5px) rotateX(2deg);
  box-shadow:
    0 35px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 188, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 100px -20px rgba(0, 188, 212, 0.5);
  border-color: rgba(0, 188, 212, 0.4);
}

@keyframes terminalFloat {

  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-3px) rotateX(1deg);
  }
}

/* Terminal Header */
.code-terminal.pro-terminal .code-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(30, 34, 53, 0.95) 0%, rgba(13, 17, 23, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-buttons {
  display: flex;
  gap: 8px;
}

.code-terminal.pro-terminal .code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.code-dot.close-dot {
  background: linear-gradient(135deg, #ff5f57 0%, #d94038 100%);
  box-shadow: 0 0 8px rgba(255, 95, 87, 0.4);
}

.code-dot.minimize-dot {
  background: linear-gradient(135deg, #febc2e 0%, #c49a24 100%);
  box-shadow: 0 0 8px rgba(254, 188, 46, 0.4);
}

.code-dot.maximize-dot {
  background: linear-gradient(135deg, #28c840 0%, #1ca332 100%);
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.4);
}

.code-dot:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.code-terminal.pro-terminal .code-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-title i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.header-tabs {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.header-tabs .tab {
  padding: 6px 14px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 188, 212, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-tabs .tab:hover {
  background: rgba(0, 188, 212, 0.2);
}

.header-tabs .tab.active {
  background: rgba(0, 188, 212, 0.15);
  border-color: rgba(0, 188, 212, 0.4);
}

/* Toolbar */
.code-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
}

.toolbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
}

.toolbar-item i {
  color: var(--primary-color);
  opacity: 0.7;
}

.toolbar-item.branch {
  color: #a855f7;
}

.toolbar-item.branch i {
  color: #a855f7;
}

.toolbar-item.status {
  margin-left: auto;
  color: #22c55e;
}

.toolbar-item.status i {
  color: #22c55e;
  font-size: 6px;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Code Content */
.code-terminal.pro-terminal .code-content {
  padding: 0;
  min-height: 140px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.code-lines-wrapper {
  display: flex;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 35px;
  text-align: right;
}

.line-numbers span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.8;
  font-family: 'JetBrains Mono', monospace;
}

.code-body {
  flex: 1;
  padding: 14px 16px;
  overflow-x: hidden;
}

/* Code Lines */
.code-terminal.pro-terminal .code-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.8;
  white-space: nowrap;
}

.code-line.history-line {
  opacity: 0.6;
}

.code-line.active-line {
  opacity: 1;
  background: rgba(0, 188, 212, 0.03);
  margin: 0 -16px;
  padding: 0 16px;
  border-left: 2px solid var(--primary-color);
}

.code-line.output-line {
  padding-left: 20px;
}

/* Code Elements */
.code-terminal.pro-terminal .code-prompt {
  color: #22c55e;
  font-weight: bold;
  font-size: 0.9rem;
}

.code-prompt.active-prompt {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.code-path {
  color: #3b82f6;
  font-weight: 500;
}

.code-git {
  color: #a855f7;
  font-size: 0.75rem;
}

.code-cmd {
  color: rgba(255, 255, 255, 0.9);
}

.code-status.success {
  color: #22c55e;
  margin-left: auto;
}

.output-text {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  font-size: 0.75rem;
}

.output-text.success-output {
  color: #22c55e;
}

.output-text i {
  margin-right: 6px;
}

/* Cursor */
.code-terminal.pro-terminal .cursor {
  display: inline-block;
  color: var(--primary-color);
  animation: cursorBlink 1s step-end infinite;
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.8);
  font-weight: bold;
}

@keyframes cursorBlink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Typing Text */
.code-terminal.pro-terminal .typing-text {
  color: #00ff88;
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
}

/* Footer */
.code-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.65rem;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-item i {
  color: var(--primary-color);
  opacity: 0.6;
  font-size: 0.7rem;
}

.footer-item.time {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Terminal - Enhanced Mobile Styles */

/* Tablet & Small Laptop (768px - 991px) */
@media (max-width: 991px) {
  .code-animation-container {
    max-width: 100%;
    margin-top: 30px;
    padding: 0 4px;
  }

  .code-terminal.pro-terminal {
    border-radius: 12px;
    animation: none;
    box-shadow:
      0 15px 35px -10px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 50px -18px rgba(0, 188, 212, 0.25);
  }

  .code-terminal.pro-terminal:hover {
    transform: none;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .code-animation-container {
    max-width: 100%;
    width: 100%;
    margin: 24px auto 0;
    padding: 0;
  }

  .code-terminal.pro-terminal {
    border-radius: 16px;
    box-shadow:
      0 10px 30px -10px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 40px -15px rgba(0, 188, 212, 0.2);
    border: 1px solid rgba(0, 188, 212, 0.15);
  }

  .code-terminal.pro-terminal .code-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .header-buttons {
    gap: 8px;
    flex-shrink: 0;
  }

  .code-terminal.pro-terminal .code-dot {
    width: 12px;
    height: 12px;
  }

  .code-terminal.pro-terminal .code-title {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }

  .header-tabs {
    display: none;
  }

  .code-toolbar {
    padding: 10px 16px;
    gap: 12px;
    font-size: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .code-toolbar::-webkit-scrollbar {
    display: none;
  }

  .toolbar-item {
    white-space: nowrap;
  }

  .toolbar-item.status {
    display: none;
  }

  .code-terminal.pro-terminal .code-content {
    min-height: 160px;
    background: rgba(0, 0, 0, 0.25);
  }

  .code-body {
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Custom scrollbar for mobile code body */
  .code-body::-webkit-scrollbar {
    height: 3px;
  }

  .code-body::-webkit-scrollbar-track {
    background: transparent;
  }

  .code-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }

  .line-numbers {
    display: none;
  }

  .code-terminal.pro-terminal .code-line {
    font-size: 0.85rem;
    gap: 8px;
    line-height: 1.8;
    white-space: nowrap;
  }

  .code-line.active-line {
    margin: 0;
    padding: 0;
    border-left: none;
    background: transparent;
  }

  .code-footer {
    padding: 10px 16px;
    font-size: 0.7rem;
  }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .code-animation-container {
    width: 100%;
    margin: 20px auto 0;
  }

  .code-terminal.pro-terminal {
    border-radius: 14px;
  }

  .code-terminal.pro-terminal .code-header {
    padding: 12px 14px;
  }

  .code-toolbar {
    padding: 8px 14px;
    font-size: 0.7rem;
  }

  /* Keep branch info if possible, or hide if too crowded */
  .toolbar-item.branch {
    display: none;
  }

  .code-terminal.pro-terminal .code-content {
    min-height: 140px;
  }

  .code-body {
    padding: 14px;
  }

  .code-terminal.pro-terminal .code-line {
    font-size: 0.8rem;
    /* readable size */
    gap: 6px;
  }

  /* Ensure dots are large enough to tap/see */
  .code-terminal.pro-terminal .code-dot {
    width: 11px;
    height: 11px;
  }

  .code-terminal.pro-terminal .code-title {
    font-size: 0.75rem;
  }

  .code-footer {
    padding: 8px 14px;
    font-size: 0.65rem;
    display: flex;
    /* Ensure footer is visible */
  }
}

/* Keep original simple terminal styles for backwards compatibility */
.code-terminal:not(.pro-terminal) {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 188, 212, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

.code-terminal:not(.pro-terminal) .code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 188, 212, 0.2);
}

.code-terminal:not(.pro-terminal) .code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.code-terminal:not(.pro-terminal) .code-dot:nth-child(1) {
  background: #ff5f56;
}

.code-terminal:not(.pro-terminal) .code-dot:nth-child(2) {
  background: #ffbd2e;
}

.code-terminal:not(.pro-terminal) .code-dot:nth-child(3) {
  background: #27c93f;
}

.code-terminal:not(.pro-terminal) .code-title {
  margin-left: auto;
  color: var(--text-secondary-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.code-terminal:not(.pro-terminal) .code-content {
  padding: 20px;
  min-height: 80px;
}

.code-terminal:not(.pro-terminal) .code-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00ff88;
  font-size: 0.9rem;
}

.code-terminal:not(.pro-terminal) .code-prompt {
  color: var(--primary-color);
  font-weight: bold;
}

.code-terminal:not(.pro-terminal) .typing-text {
  color: #00ff88;
}

.code-terminal:not(.pro-terminal) .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--primary-color);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Partners/Tools Bar - Professional Infinite Marquee */
.partners-bar {
  padding: 88px 0 78px;
  background: radial-gradient(1100px 480px at 12% -12%, rgba(0, 188, 212, 0.13), transparent 62%),
    radial-gradient(820px 340px at 88% 2%, rgba(255, 215, 0, 0.06), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(15, 20, 34, 0.25) 100%),
    var(--bg-dark-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.partners-container {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 24px;
  z-index: 1;
}

.partners-header {
  max-width: 920px;
  margin: 0 auto 34px;
}

.partners-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 188, 212, 0.1);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 188, 212, 0.24);
}

.partners-label i {
  font-size: 0.95rem;
}

.partners-title {
  margin: 0 0 12px;
  font-size: clamp(1.95rem, 3.1vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-main-light);
  letter-spacing: -0.6px;
}

.partners-subtitle {
  margin: 0 auto 24px;
  max-width: 760px;
  color: var(--text-secondary-light);
  line-height: 1.72;
  font-size: 1.03rem;
}

.partners-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.partners-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  min-width: 158px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.partners-stat .stat-value {
  font-weight: 800;
  color: var(--text-main-light);
  font-size: 1rem;
}

.partners-stat .stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-secondary-light);
}

/* Marquee Wrapper with Fade Masks */
.marquee-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 19, 34, 0.8) 0%, rgba(10, 14, 24, 0.66) 100%);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-content {
  display: flex;
  align-items: stretch;
  --marquee-gap: 18px;
  gap: var(--marquee-gap);
  width: max-content;
  animation: scrollMarquee 38s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - (var(--marquee-gap) / 2)));
  }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  opacity: 0.96;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  cursor: pointer;
  flex-shrink: 0;
  padding: 12px 14px;
  min-width: 178px;
  border-radius: 14px;
  background: rgba(12, 18, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.partner-logo:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(0, 188, 212, 0.42);
  background: rgba(14, 22, 40, 0.9);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.partner-logo i,
.partner-logo .partner-logo-icon {
  width: 1.55rem;
  height: 1.55rem;
  min-width: 1.55rem;
  font-size: 1.5rem;
  color: var(--primary-color);
  opacity: 0.95;
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.partner-logo:hover i,
.partner-logo:hover .partner-logo-icon {
  text-shadow: 0 0 12px rgba(0, 188, 212, 0.45);
  transform: scale(1.05);
}

.partner-logo span {
  font-size: 0.9rem;
  color: var(--text-main-light);
  opacity: 0.9;
  font-weight: 700;
  letter-spacing: 0.15px;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.partner-logo:hover span {
  opacity: 1;
}

@media (max-width: 768px) {
  .partners-bar {
    padding: 56px 0;
  }

  .partners-header {
    margin-bottom: 24px;
  }

  .partners-label {
    margin-bottom: 12px;
    font-size: 0.7rem;
    letter-spacing: 1.2px;
  }

  .partners-title {
    font-size: clamp(1.52rem, 6.1vw, 2.06rem);
  }

  .partners-subtitle {
    font-size: 0.96rem;
  }

  .partners-stats {
    gap: 8px;
  }

  .partners-stat {
    min-width: 132px;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
  }

  .marquee-wrapper {
    padding: 14px 14px;
    border-radius: 16px;
  }

  .marquee-content {
    --marquee-gap: 12px;
    animation: scrollMarquee 33s linear infinite;
  }

  .partner-logo {
    min-width: 138px;
    padding: 10px 12px;
    border-radius: 12px;
    gap: 10px;
  }

  .partner-logo:hover {
    transform: none;
  }

  .partner-logo i,
  .partner-logo .partner-logo-icon {
    width: 1.3rem;
    height: 1.3rem;
    min-width: 1.3rem;
    font-size: 1.25rem;
  }

  .partner-logo span {
    font-size: 0.8rem;
    opacity: 0.92;
  }
}

/* Why Us Section */
.why-us-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(30, 34, 56, 0.02) 100%);
}

.why-us-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header-center .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 188, 212, 0.08);
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 188, 212, 0.15);
  margin-bottom: 16px;
}

.section-header-center h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main-light);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.section-header-center .section-subtitle {
  color: var(--text-secondary-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.stat-card {
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 188, 212, 0.2);
  border-color: rgba(0, 188, 212, 0.4);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(0, 212, 188, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary-light);
  font-size: 1rem;
  font-weight: 600;
}

/* Certifications Showcase */
.certifications-showcase {
  margin-top: 60px;
}

.certifications-showcase h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main-light);
  margin-bottom: 40px;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.certificate-card {
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
}

.certificate-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 188, 212, 0.25);
  border-color: rgba(0, 188, 212, 0.4);
}

.certificate-preview {
  position: relative;
  width: 200px;
  height: 150px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(30, 136, 229, 0.1));
  border: 2px solid rgba(0, 188, 212, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.certificate-preview i {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.6;
}

.certificate-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #000;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
}

.certificate-card p {
  color: var(--text-main-light);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

/* Smart Search System */
.smart-search-container {
  width: 100%;
  margin-bottom: 24px;
}

.smart-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.smart-search-bar:focus-within {
  border-color: rgba(0, 188, 212, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.smart-search-bar i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.smart-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main-light);
  font-size: 1rem;
  font-family: 'Tajawal', sans-serif;
}

.smart-search-bar input::placeholder {
  color: var(--text-secondary-light);
}

.smart-search-bar select {
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--text-main-light);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.smart-search-bar select:hover {
  background: rgba(0, 188, 212, 0.15);
  border-color: rgba(0, 188, 212, 0.4);
}

.smart-search-bar select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}



/* Light Theme Styles */
body.light-theme {
  --bg-dark-primary: #ffffff;
  --bg-dark-secondary: #f8f9fa;
  --bg-dark-tertiary: #f1f3f5;
  --card-bg-dark: #ffffff;
  --text-main-light: #1a1a1a;
  --text-secondary-light: #6c757d;
  --border-dark: #e9ecef;
  background-color: var(--bg-dark-primary);
  color: var(--text-main-light);
}

body.light-theme .code-terminal {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: rgba(0, 188, 212, 0.2);
}

body.light-theme .code-line {
  color: #28a745;
}

body.light-theme .stat-card,
body.light-theme .certificate-card,
body.light-theme .community-card,
body.light-theme .social-feed-item {
  background: #ffffff;
  border-color: #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-theme .partners-bar {
  background: radial-gradient(1200px 500px at 15% -10%, rgba(0, 188, 212, 0.08), transparent 60%),
    radial-gradient(900px 400px at 85% 0%, rgba(255, 215, 0, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(248, 249, 250, 0.94) 0%, rgba(241, 245, 249, 0.9) 100%);
  border-color: rgba(0, 188, 212, 0.12);
}

body.light-theme .partners-stat {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  border-color: rgba(15, 23, 42, 0.1);
}

body.light-theme .marquee-wrapper {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
  border-color: rgba(15, 23, 42, 0.1);
}

body.light-theme .partner-logo {
  background: linear-gradient(150deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body.light-theme .partner-logo span {
  color: #0f172a;
}

/* Community Section */
/* Community Section - Professional Redesign */
.community-section {
  padding: 120px 24px;
  position: relative;
  /* background: var(--bg-dark-primary); Removed forced background to let gradient show if handled by parent, or use transparent if overlay */
  /* Assuming body background handles the main dark theme, but let's add a subtle overlay if needed */
  background: linear-gradient(180deg, rgba(30, 34, 56, 0.02) 0%, rgba(30, 34, 56, 0.02) 100%);
  overflow: hidden;
}

.community-bg-Orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

.orb-2 {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, #7928ca, transparent 70%);
  /* Purple secondary format */
}

.community-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 70px;
}

.community-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.community-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 188, 212, 0.3);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
}

.community-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: rgba(0, 188, 212, 0.05);
  border: 1px solid rgba(0, 188, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.community-card:hover .community-icon {
  background: var(--primary-color);
  color: #000;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(0, 188, 212, 0.4);
  border-color: transparent;
}

.community-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main-light);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.community-card:hover h3 {
  color: var(--primary-color);
}

.community-card p {
  color: var(--text-secondary-light);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.community-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 100px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.community-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.community-link:hover {
  color: #000;
  border-color: var(--primary-color);
  gap: 14px;
}

.community-link:hover::before {
  width: 100%;
}

/* Social Feed Section */
/* Social Feed Section - Premium Redesign */
.social-feed-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(30, 34, 56, 0.02) 100%);
  position: relative;
}

.social-feed-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.social-feed-container {
  max-width: 1200px;
  margin: 0 auto;
}

.social-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.social-feed-item {
  display: flex;
  flex-direction: column;
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  height: 100%;
}

.social-feed-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 188, 212, 0.4);
}

.feed-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #111;
  overflow: hidden;
}

.feed-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.9;
}

.social-feed-item:hover .feed-img {
  transform: scale(1.08);
  opacity: 1;
}

.feed-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.feed-badge.red {
  background: rgba(255, 0, 0, 0.85);
}

.feed-badge.black {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feed-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  z-index: 2;
}

.feed-live-metrics {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.feed-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.feed-metric i {
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.95;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.social-feed-item:hover .play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
}

.play-circle {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-feed-item:hover .play-circle {
  transform: scale(1);
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 188, 212, 0.4);
}

.play-circle i {
  color: #fff;
  font-size: 1.5rem;
  margin-left: 4px;
  /* Optical center adjustment */
}

.feed-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feed-tags {
  margin-bottom: 12px;
}

.feed-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feed-content h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main-light);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.social-feed-item:hover h4 {
  color: var(--primary-color);
}

.feed-content p {
  color: var(--text-secondary-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary-light);
  font-weight: 500;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dot-separator {
  color: rgba(255, 255, 255, 0.2);
}

.feed-meta i {
  color: var(--primary-color);
  margin-right: 6px;
}

/* Social Links Footer */
.social-links-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.social-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-main-light);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-platform-link:hover {
  transform: translateY(-4px);
  background: var(--bg-dark-secondary);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-platform-link i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.social-platform-link:hover i {
  transform: scale(1.2);
}

.social-platform-link .fa-youtube {
  color: #FF0000;
}

.social-platform-link .fa-tiktok {
  color: #00f2ea;
}

/* TikTok Cyan */
.social-platform-link .fa-instagram {
  color: #E1306C;
}

/* Enhanced Course Card Hover Effects */
.course:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 50px -5px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 188, 212, 0.4),
    0 0 40px rgba(0, 188, 212, 0.2);
}

.course-pro:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 50px -5px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 188, 212, 0.4),
    0 0 40px rgba(0, 188, 212, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .code-animation-container {
    width: 100%;
    max-width: 520px;
    margin: 16px auto 0;
    display: block;
  }

  .code-terminal {
    border-radius: 14px;
  }

  .code-header {
    padding: 10px 12px;
  }

  .code-title {
    font-size: 0.8rem;
  }

  .code-content {
    padding: 14px 12px;
    min-height: 64px;
  }

  .code-line {
    font-size: 0.85rem;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .typing-text {
    overflow-wrap: anywhere;
  }

  .partners-logos {
    gap: 20px;
  }

  .partner-logo i,
  .partner-logo .partner-logo-icon {
    width: 1.3rem;
    height: 1.3rem;
    min-width: 1.3rem;
    font-size: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

  .smart-search-bar {
    flex-direction: column;
    border-radius: 16px;
  }

  .smart-search-bar select {
    width: 100%;
  }

  .community-grid,
  .social-feed-grid {
    grid-template-columns: 1fr;
  }

  .section-header-center h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .code-animation-container {
    max-width: 380px;
  }

  .code-header {
    padding: 9px 10px;
  }

  .code-content {
    padding: 12px 10px;
  }

  .code-line {
    font-size: 0.82rem;
  }

  .hero-social-proof {
    font-size: 0.85rem;
  }

  .partners-bar {
    padding: 44px 0;
  }

  .partner-logo {
    min-width: 118px;
    padding: 9px 10px;
  }

  .partner-logo i,
  .partner-logo .partner-logo-icon {
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    font-size: 1.1rem;
  }

  .partner-logo span {
    font-size: 0.75rem;
  }

  .partners-label {
    margin-bottom: 10px;
    font-size: 0.68rem;
    letter-spacing: 1px;
  }

  .partners-title {
    font-size: 1.5rem;
  }

  .partners-subtitle {
    font-size: 0.92rem;
  }

  .marquee-content {
    --marquee-gap: 10px;
  }
}

/* ============================================
   COMMUNITY SECTION PRO - PROFESSIONAL REDESIGN
   ============================================ */

.community-section-pro {
  position: relative;
  padding: 100px 0;
  background: var(--bg-dark-primary);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.community-pro-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 188, 212, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.community-container-pro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.community-header-pro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.eyebrow-pro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  margin-bottom: 16px;
  background: rgba(0, 188, 212, 0.08);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(0, 188, 212, 0.2);
}

.section-title-pro {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.gradient-text-pro {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-subtitle-pro {
  font-size: 1.1rem;
  color: var(--text-secondary-light);
  line-height: 1.6;
}

.community-highlights-pro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.highlight-item-pro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.highlight-item-pro i {
  color: var(--primary-color);
  font-size: 0.95rem;
}

/* Grid */
.community-grid-pro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

/* Cards */
.community-card-pro {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px 30px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  backdrop-filter: blur(10px);
}

.card-glow-pro {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.community-card-pro:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.community-card-pro:hover .card-glow-pro {
  opacity: 1;
}

/* Icon Box */
.icon-box-pro {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-icon {
  color: #5865F2;
}

.discussion-icon {
  color: #FFC107;
}

.mentor-icon {
  color: #00BCD4;
}

.community-card-pro:hover .icon-box-pro {
  transform: scale(1.1) rotate(5deg);
}

.community-card-pro:hover .discord-icon {
  background: rgba(88, 101, 242, 0.15);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
  border-color: rgba(88, 101, 242, 0.3);
}

.community-card-pro:hover .discussion-icon {
  background: rgba(255, 193, 7, 0.15);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
  border-color: rgba(255, 193, 7, 0.3);
}

.community-card-pro:hover .mentor-icon {
  background: rgba(0, 188, 212, 0.15);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
  border-color: rgba(0, 188, 212, 0.3);
}

/* Content */
.card-content-pro h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.card-content-pro p {
  font-size: 0.95rem;
  color: var(--text-secondary-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-meta-pro {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 16px;
  margin-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.card-meta-pro span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-meta-pro i {
  color: var(--primary-color);
  font-size: 0.85rem;
}

.link-text-pro {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.link-text-pro i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.community-card-pro:hover .link-text-pro {
  gap: 12px;
  color: var(--primary-color);
}

/* Stats Row */
.community-stats-pro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
}

.community-actions-pro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.community-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.community-secondary-btn i {
  color: var(--primary-color);
}

.community-secondary-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 188, 212, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.stat-item-pro {
  text-align: center;
}

.stat-num-pro {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.stat-lbl-pro {
  font-size: 0.8rem;
  color: var(--text-secondary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider-pro {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 991px) {
  .community-grid-pro {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .community-grid-pro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .community-stats-pro {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
  }

  .stat-divider-pro {
    display: none;
  }
}
