/* RTL support for Arabic language */
html[lang="ar"] {
  direction: rtl;
}

html[lang="ar"] body {
  text-align: right;
}

html[lang="ar"] .header .logo {
  float: right;
}

html[lang="ar"] .header .topnav {
  float: left;
}

html[lang="ar"] .container .article .content ul,
html[lang="ar"] .container .article .content ol {
  padding-right: 2rem;
  padding-left: 0;
}

html[lang="ar"] .container .article-wrapper .bubble {
  margin-left: 0;
  margin-right: 2rem;
}

html[lang="ar"] .container .article-wrapper .bubble::after {
  left: auto;
  right: -0.7rem;
  transform: scaleX(-1);
}

/* Import Arabic-friendly fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

/* Cloud Seeds MENA custom styles - CNCF-inspired theme */
:root {
  --primary-color: #00528c;        /* Deeper blue like CNCF */
  --secondary-color: #5cb85c;      /* Green for action items */
  --accent-color: #f1c40f;         /* Yellow accent */
  --dark-color: #2d3436;           /* Dark gray for text */
  --light-color: #f5f7fa;          /* Light gray for backgrounds */
  --text-color: #333;              /* Main text color */
  --light-text-color: #fff;        /* Light text color */
  --border-radius: 6px;            /* Standard border radius */
  --section-padding: 4rem 2rem;    /* Standard section padding */
  --transition: all 0.3s ease;     /* Standard transition */
  --arabic-font: 'Tajawal', sans-serif; /* Arabic-friendly font */
}

body {
  font-family: var(--arabic-font), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Header & Navigation - CNCF Style */
.main-header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.main-nav .logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a i {
  font-size: 1.1rem;
}

html[lang="ar"] .nav-links a {
  flex-direction: row-reverse;
}

html[lang="ar"] .nav-links a::after {
  right: 0;
  left: auto;
}

html[lang="ar"] .nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-color);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section - CNCF Style */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
  color: var(--light-text-color);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/pattern.svg');
  background-size: cover;
  opacity: 0.1;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-section p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary i {
  margin-left: 0.5rem;
}

.btn-primary:hover {
  background-color: #4cae4c;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Home Page Specific Styles */
.home-wrapper {
  overflow: hidden;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-text-color);
  border: 2px solid var(--light-text-color);
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.featured-section {
  padding: var(--section-padding);
  background-color: white;
  text-align: center;
}

.featured-section h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.featured-section h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-card {
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: var(--light-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.featured-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.featured-card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn-more {
  align-self: flex-start;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.btn-more::after {
  content: '→';
  position: absolute;
  margin-left: 0.5rem;
  transition: var(--transition);
}

.btn-more:hover {
  padding-right: 0.5rem;
}

.btn-more:hover::after {
  transform: translateX(5px);
}

html[lang="ar"] .btn-more::after {
  content: '←';
  margin-left: 0;
  margin-right: 0.5rem;
  right: auto;
  left: -1.5rem;
}

html[lang="ar"] .btn-more:hover {
  padding-right: 0;
  padding-left: 0.5rem;
}

html[lang="ar"] .btn-more:hover::after {
  transform: translateX(-5px);
}

.recent-posts-section {
  padding: var(--section-padding);
  background-color: var(--light-color);
  text-align: center;
}

.recent-posts-section h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.recent-posts-section h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  height: 100%;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.post-card a {
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-content h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-size: 1.4rem;
}

.post-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-content p {
  color: #555;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.more-posts {
  margin-top: 2rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Content Container Styles */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section-content {
  margin-bottom: 3rem;
}

/* Community Stats Section - CNCF Style */
.community-section {
  background-color: var(--light-color);
  padding: var(--section-padding);
  text-align: center;
}

.community-section h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.community-section h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  background-color: white;
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stat-item .number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.stat-item .label {
  color: var(--dark-color);
  font-size: 1.2rem;
  font-weight: 500;
}

/* Get Involved Section - CNCF Style */
.get-involved-section {
  padding: var(--section-padding);
  background-color: white;
}

.get-involved-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.involvement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.involvement-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.involvement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.involvement-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.involvement-card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.involvement-card .btn-secondary {
  align-self: flex-start;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.involvement-card .btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Events Section - CNCF Style */
.events-section {
  background-color: var(--light-color);
  padding: var(--section-padding);
}

.events-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.event-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.event-card .event-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.event-card .event-details {
  padding: 1.5rem;
}

.event-card .event-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.event-card p {
  margin-bottom: 1.5rem;
  color: #666;
}

/* Events Section Styles */
.events-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.events-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.events-calendar {
    flex: 1;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-frame {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* Mobile responsiveness for events container */
@media (max-width: 768px) {
    .events-container {
        flex-direction: column;
    }
    
    .events-calendar {
        margin-top: 1.5rem;
    }
}

/* Communication Channels - CNCF Style */
.channels-section {
  padding: var(--section-padding);
  background-color: white;
}

.channels-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.channel-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.channel-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem auto;
}

.channel-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.channel-card .btn-channel {
  background-color: var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.channel-card .btn-channel:hover {
  background-color: #003d69;
}

/* Sponsors Section Styles */
.sponsors-section {
    padding: 2rem 0;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.sponsors-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sponsors-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #666;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.sponsor-item {
    flex: 0 0 calc(25% - 2rem);
    min-width: 180px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sponsor-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    display: block;
    margin: 0 auto;
}

.sponsor-cta {
    margin-top: 2rem;
}

.sponsor-cta p {
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sponsor-item {
        flex: 0 0 calc(50% - 2rem);
    }
}

@media (max-width: 480px) {
    .sponsor-item {
        flex: 0 0 100%;
    }
}

/* Team Members Cards Styling */
.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.member-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.member-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #e6f7ff;
}

.member-card h4 {
  margin: 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}

.member-card p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  transition: var(--transition);
  text-decoration: none;
}

html[lang="ar"] .social-links a {
  margin-right: 0;
  margin-left: 0;
}

.social-links a:hover {
  color: #0077B5;
  transform: scale(1.2);
}

social-links a[href*="github"]:hover {
  color: #333;
}

social-links a[href*="twitter"]:hover {
  color: #1DA1F2;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .member-card {
    background-color: #2d2d2d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .member-card h4 {
    color: #f0f0f0;
  }
  
  .member-card p {
    color: #cccccc;
  }
  
  .member-card img {
    border-color: #1a4a6e;
  }
  
  .social-links a {
    color: #aaa;
  }
}

/* Footer - CNCF Style */
footer {
  padding: 4rem 2rem 2rem;
  background-color: var(--dark-color);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-col h3 {
  color: var(--light-text-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -8px;
  left: 0;
}

html[lang="ar"] .footer-col h3::after {
  left: auto;
  right: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  transition: var(--transition);
  text-decoration: none;
}

html[lang="ar"] .social-links a {
  margin-right: 0;
  margin-left: 0;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #999;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .stat-item .number {
    font-size: 2.5rem;
  }
  
  .community-section h2,
  .get-involved-section h2,
  .events-section h2,
  .channels-section h2,
  .featured-section h2,
  .recent-posts-section h2 {
    font-size: 1.8rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 4rem 1rem;
  }
  
  .btn-primary {
    padding: 0.7rem 1.5rem;
  }
  
  .events-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects Page Specific Styles */
.project-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.post-tagline {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.post-maturity {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--light-color);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin: 0.5rem 0 1rem;
  border: 1px solid #e0e0e0;
}

.section-list-page .posts-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.post-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

/* Fix for projects pages list view */
.section-list-page .post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-list-page .post-card a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-list-page .post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-list-page .post-content p {
  flex: 1;
}

/* Community Page Specific Styles */
/* Workgroups Section Styles */
.workgroups-section {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

.workgroups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.workgroup-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.workgroup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.workgroup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.workgroup-icon i {
    font-size: 2rem;
}

.workgroup-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.workgroup-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-workgroup {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-workgroup:hover {
    background-color: #003d69;
    transform: translateY(-2px);
}

.cta-workgroups {
    margin-top: 3rem;
}

/* Event Highlight styles */
.event-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.event-image {
    height: 100%;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-details {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.event-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    width: fit-content;
}

.event-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.event-metadata {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-info i {
    color: var(--primary-color);
}

/* Event cards */
.event-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.event-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.cta-events {
    margin-top: 2rem;
    text-align: center;
}

/* Connect section styles */
.connect-section {
    padding: 4rem 2rem;
    background-color: white;
    text-align: center;
}

.mailing-lists {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.mailing-lists li {
    margin-bottom: 0.5rem;
}

.mailing-lists a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.mailing-lists a:hover {
    text-decoration: underline;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Ambassador section */
.ambassador-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    color: white;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.ambassador-content {
    padding: 0 2rem;
}

.ambassador-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.ambassador-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    text-align: center;
}

.benefit-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.benefit-item h4 {
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.ambassador-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Certifications section */
.certifications-section {
    padding: 4rem 2rem;
    background-color: var(--light-color);
    text-align: center;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.certification-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.certification-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e09900 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.certification-icon i {
    font-size: 2rem;
}

.certification-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.btn-certification {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-certification:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hide the original Markdown content but keep it for SEO */
.markdown-content {
    display: none;
}

/* Responsive adjustments for community page */
@media (max-width: 992px) {
    .event-highlight {
        grid-template-columns: 1fr;
    }

    .event-image {
        height: 300px;
    }

    .ambassador-section {
        grid-template-columns: 1fr;
    }

    .ambassador-image {
        order: -1;
        height: 300px;
    }

    .ambassador-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .workgroups-grid,
    .events-grid,
    .channels-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .social-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Fork & Work Announcement Styles */
.announcement-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 90%;
    border-right: 5px solid #3498db;
}

.announcement-content {
    max-width: 800px;
    margin: 0 auto;
}

.announcement-highlight {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.announcement-options {
    margin: 1.5rem 0;
    text-align: center;
}

.announcement-options ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.announcement-options li {
    background-color: #eaf4fc;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.announcement-options li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.announcement-cta {
    margin-top: 1.5rem;
}

.deadline-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: italic;
    color: #e74c3c;
}

/* Fork & Work Program Page Styles */
.registration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.reg-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.reg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.reg-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.reg-card h3 i {
    margin-left: 0.5rem;
    color: #3498db;
}

.reg-card p {
    margin-bottom: 1.5rem;
    min-height: 3em;
}

.faq-section {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.faq-question i {
    margin-left: 0.5rem;
    color: #3498db;
}

.faq-question:after {
    content: '+';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #3498db;
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 1rem;
    background-color: white;
    display: none;
}

.faq-answer.show {
    display: block;
}

.social-share {
    margin: 2rem 0;
    text-align: center;
}

.social-share p i {
    margin-left: 0.5rem;
    color: #333;
}

.social-btn {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn i {
    margin-left: 0.5rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-btn.twitter {
    background-color: #1DA1F2;
}

.social-btn.facebook {
    background-color: #4267B2;
}

.social-btn.linkedin {
    background-color: #0077B5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .announcement-options ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .announcement-section {
        padding: 1.5rem;
    }
}

/* Fork & Work Program Banner */
.program-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.program-banner::after {
    content: '';
    background-image: url('/img/pattern.svg');
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
}

.banner-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.icon-circle {
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon-circle:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.icon-circle:nth-child(1) {
    background: rgba(52, 152, 219, 0.25);
}

.icon-circle:nth-child(2) {
    background: rgba(155, 89, 182, 0.25);
}

.icon-circle:nth-child(3) {
    background: rgba(241, 196, 15, 0.25);
}

.icon-circle:nth-child(4) {
    background: rgba(26, 188, 156, 0.25);
}

.icon-circle i {
    font-size: 2.2rem;
    color: white;
}

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

.banner-text h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    margin: 0;
}

/* Make the banner responsive */
@media (max-width: 600px) {
    .banner-icons {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 1.8rem;
    }
    
    .banner-text h1 {
        font-size: 2.2rem;
    }
    
    .banner-text p {
        font-size: 1.2rem;
    }
}

.hidden {
  display: none;
}