/* Responsive Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.navbar a {
    font-weight: 700;
}
.navbar-container {
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  gap: 1.5rem;
  margin-right: 1.5rem;
}

.navbar-social {
  display: flex;
  gap: 1rem;
  font-size: 2em;
  gap: 20px;
  padding-right: 1.5em;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main background padding moved to consolidated rule */

/* Mobile styles */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }
  
  .navbar-toggle {
    display: block;
    order: 2;
  }
  
  .navbar-container {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    padding-top: 1rem;
  }
  
  .navbar-container.active {
    display: flex;
  }
  
  .navbar-nav {
    flex-direction: column;
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .navbar-social {
    width: 100%;
    justify-content: center;
  }

  .main-bg {
    padding: 0;
}
}
/* Two-column layout */
.two-column-layout {
  display: flex;
  gap: 2rem;
}

.main-bg {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0em 0em 0em 3em;
}

.main-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('board.png');
  background-color: #f0f0f0;
  background-attachment: fixed;
  opacity: 0.20;
  z-index: -1;
}


.main-column {
  flex: 2;
}

.sidebar-column {
  flex: 1;
}

.main-column .main-content {
  
  padding: 1.5rem;
  border-radius: 4px;
}

/* Responsive layout */
@media (max-width: 768px) {
  .two-column-layout {
    flex-direction: column;
  }
  
  .sidebar-column {
    order: 2;
    margin-top: 2rem;
  }
}

/* .main-content {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);  
} */

.main-content h2 {
  margin-top: 0;
  color: #333;
}
/* Sticky header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-image: url('math.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Navbar text color for better visibility on image background */
.navbar a {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Add a semi-transparent overlay to improve text readability */
.sticky-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}
.articles a {
  color: var(--fbc-primary-text);
}
.aheader {
  padding: 0 1em 0 0;
}
.adesc {
  font-size: small !important;
  display: block;
}

.articles time{
  font-size: small !important;
}
/* Content row structure */
.content-row {
  margin-bottom: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.two-cols {
  display: flex;
  gap: 2rem;
}

.col {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background-color: white;
}

.col h3 {
  margin-top: 0;
}

/* Responsive adjustments for two-column content */
@media (max-width: 768px) {
  .two-cols {
    flex-direction: column;
    gap: 1rem;
  }
}
/* Mailto button styling */
.mailto-btn {
  display: inline-flex;
  align-items: center;
  background-color: #4a6da7;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mailto-btn i {
  margin-right: 0.5rem;
}

.mailto-btn:hover {
  background-color: #3a5a8f;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
/* All articles link styling */
.all-articles {
  text-align: center;
  margin-top: 1.5rem;
}

.all-articles a {
  display: inline-flex;
  align-items: center;
  background-color: #f0f0f0;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.all-articles a:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.all-articles i {
  margin-right: 0.5rem;
  font-size: 1.1em;
}