/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* ===== Header ===== */
header {
  background: #2c5f2d;
  color: #fff;
  padding: 1rem 2rem;
}

header .logo {
  display: inline-block;
}

nav ul {
  list-style: none;
  float: right;
}

nav ul li {
  display: inline;
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
  color: #ff4d6d;
}

/* ===== Hero Section ===== */
.hero {
  background: url("images/hero-placeholder.jpg") no-repeat center center/cover;
  color: #080808;
  text-align: center;
  padding: 100px 20px;
}

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #ff4d6d;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

/* ===== Sections ===== */
section {
  padding: 40px 20px;
  text-align: center;
}

/* ===== Team Section ===== */
.team-members {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Projects Section ===== */
.projects .project {
  margin: 20px auto;
  max-width: 600px;
}

.projects img {
  width: 100%;
  border-radius: 10px;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
}

/* ===== Contact ===== */
.contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
  gap: 10px;
}

.contact form input,
.contact form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact form button {
  padding: 10px;
  background: #2c5f2d;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* ===== Footer ===== */
footer {
  background: #2c5f2d;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

/* ===== Logo Gradient ===== */
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, #1a8a1f 50%, #f9d71c 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Objectives / Values ===== */
.objectives-values {
  background: #fff;
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
}

.objectives-values h2 {
  text-align: center;
  color: #2c5f2d;
  margin-bottom: 20px;
}

.objectives-values h3 {
  margin-top: 20px;
  color: #ff4d6d;
}

.objectives-values ul {
  list-style: disc inside;
  margin-top: 10px;
  line-height: 1.8;
}

/* ===== Certificate Image ===== */
.certificate img,
.certificate-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
  margin: 20px auto;
}

/* ===== Social Links ===== */
.social-links {
  margin-top: 15px;
}

.social-links a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #f9d71c;
}

/* ===== Registration Section ===== */
.registration {
  background: #fff;
  text-align: center;
  padding: 30px 20px;
  margin: 40px auto;
  max-width: 800px;
  border-left: 5px solid #2c5f2d;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.registration h2 {
  color: #2c5f2d;
  margin-bottom: 15px;
}

.registration blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.registration .reg-number {
  font-weight: bold;
  color: #ff4d6d;
  font-size: 1.1rem;
}

/* ===== Banner Section ===== */
.banner {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== Ribbon ===== */
.ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #b30000, #d90429);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 40px;
  line-height: 1;
  border-radius: 0;
  text-align: center;
  z-index: 2;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 25px;
  height: 100%;
  background: #7a0000;
  z-index: -1;
}

.ribbon::before {
  left: -25px;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.ribbon::after {
  right: -25px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ===== Responsive Adjustments ===== */

/* Desktop screens */
@media (min-width: 1024px) {
  .hero {
    padding: 60px 20px;
  }

  .banner-img {
    max-height: 255vh; /* reduce height on desktop */
  }

  .intro,
  .registration {
    width: 75%;
    margin: 40px auto;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .hero {
    padding: 120px 20px;
  }

  .banner-img {
    max-height: 85vh;
  }

  .ribbon {
    font-size: 1rem;
    padding: 10px 25px;
  }
}
