/* styles.css - restored clean version matching original good layout */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

main {
  padding: 0 20px;
}

.centered {
  text-align: center;
}

/* Banner Header */
.banner-header img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  margin-bottom: 0;
}

/* Navigation Bar */
.nav-container {
  background-color: #eee;
  padding: 10px 0;
  text-align: center;
}

.nav-container nav a {
  display: inline-block;
  background-color: #4285f4;
  color: white;
  padding: 10px 15px;
  margin: 5px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.nav-container nav a:hover {
  background-color: #3367d6;
}

/* Welcome Section */
.welcome-text {
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Founder + Vision Section */
.founder-vision {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.founder-left img {
  width: 220px;
  height: auto;
  border-radius: 10px;
  margin-right: 20px;
}

.founder-right {
  max-width: 500px;
  padding: 10px;
}

/* Article Cards */
.articles {
  margin-bottom: 40px;
}

.article-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.article-card {
  width: 280px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

.article-card h3 {
  margin: 10px 0 5px;
}

/* Events */
.events {
  text-align: center;
  margin-bottom: 40px;
}

.event {
  margin-bottom: 20px;
}

/* Contact */
.contact {
  text-align: center;
  margin-bottom: 40px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  margin: auto;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #4285f4;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #3367d6;
}

.support img {
  height: 50px;
  margin-top: 10px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #eee;
  margin-top: 40px;
}

/* Services Cards */
.services-section {
  padding: 40px 20px;
}

.services-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  width: 280px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 10px 0 5px;
}

.service-card p {
  margin: 5px 0;
}

.service-card .actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  text-align: left;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

/* Blogs Layout */
.blogs-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.main-content {
  flex: 1;
  min-width: 60%;
}

.article-nav {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.article-nav a {
  background-color: #4285f4;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.article-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-block img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.article-block h2 {
  margin-top: 0;
}

.article-block > div {
  flex: 1;
}

.sidebar {
  flex: 0 0 300px;
  background: #f0f0f0;
  padding: 20px;
  border-radius: 10px;
}

.sidebar h3 {
  margin-top: 0;
}

.event-card {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.back-home {
  margin: 40px 0;
}

.return-btn {
  background-color: #4285f4;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.return-btn:hover {
  background-color: #3367d6;
}
#calendar {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.newsletter-section {
  background: #f4f9ff;
  padding: 40px 20px;
  margin-top: 40px;
  border-top: 1px solid #ccc;
  text-align: center;
  border-radius: 10px;
}

.newsletter-section input[type="email"] {
  padding: 10px;
  width: 280px;
  max-width: 90%;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.newsletter-section label {
  display: block;
  margin-bottom: 10px;
}

.newsletter-section button {
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.success-message {
  color: green;
  margin-top: 10px;
}

.error-message {
  color: red;
  margin-top: 10px;
}
