
/* HERO */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('images/heromain.jpeg'); /* initial image */
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  transition: background-image 1s ease-in-out;
}



.hero-overlay { 
    position:absolute; 
    inset:0; 
    background:rgba(0,0,0,0.45);
}

.hero-content { 
    position:relative; 
    max-width:700px; 
    padding:20px; 
}

.hero-content h1 { 
    font-size:3rem; 
    margin-bottom:20px; 
}

.hero-content p { 
    font-size:1.2rem; 
    margin-bottom:25px; 
}
.btn-primary { 
    background:#0570b4; 
    color:white; 
    padding:12px 30px; 
    border-radius:5px; 
    text-decoration:none; 
    font-weight:bold; 
}

.btn-primary:hover{
    background:#ffffff;
    color: #1b1b1b;
}

/* ABOUT */
.about-section {
    padding: 80px 8%;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.about-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.about-block.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.about-content {
    flex: 1;
}

.section-tag {
    font-size: 12px;
    letter-spacing: 2px;
    color: #2c7be5;
    font-weight: bold;
}

.about-content h2 {
    font-size: 32px;
    margin: 15px 0;
    color: #222;
}

.about-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #2c7be5;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #2c7be5;
}

/* Tablet */
@media (max-width: 992px) {
    .about-block {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-block.reverse {
        flex-direction: column;
    }

    .about-content h2 {
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .about-section {
        padding: 50px 5%;
    }

    .about-content h2 {
        font-size: 22px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animation active */
.about-block.active {
    opacity: 1;
    transform: translateY(0);
}

/* PROGRAMS */

.programs {
    padding: 100px 8%;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: auto;
    line-height: 1.6;
}

/* Grid Layout */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.program-card {
    background: #e7dfd2;
    border-radius: 25px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

/* Large Card */
.program-card.large {
    padding: 0;
    width: 500px;
}

.program-card.large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.program-card.large .card-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
}

.program-card.small h3 {
    margin-bottom: 15px;
}

.program-card.small p {
    color: #444;
    line-height: 1.6;
}

.program-card.green {
    background: #5b6f4d;
    color: white;
}

.program-card.green p {
    color: #e5e5e5;
}

.program-card:hover {
    transform: translateY(-8px);
}

/* Animation */
.program-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Programs Section Responsive  */

/* Tablet */
@media (max-width: 992px) {
    .program-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .section-header h2 {
        font-size: 28px; /* smaller heading */
    }

    .program-card.large .card-content {
        bottom: 20px;
        left: 20px;
        position: absolute; /* keep text over image */
        padding: 15px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .programs {
        padding: 60px 5%; /* reduce section padding */
    }

    .section-header h2 {
        font-size: 22px; /* smaller heading for mobile */
    }

    .section-header p {
        font-size: 14px; /* adjust paragraph */
        line-height: 1.5;
    }

    .program-card {
        padding: 20px; /* smaller padding for small cards */
        border-radius: 15px; /* slightly smaller corners */
    }

    .program-card.large {
        width: 100%; /* full width for large cards */
    }

    .program-card.large .card-content {
        bottom: 15px;
        left: 15px;
        padding: 10px;
    }

    .program-card.large img {
        height: auto; /* allow image height to adjust */
        border-radius: 15px;
    }
}


/* PROJECTS */
.projects-asymmetric {
  padding: 80px 20px;
  background: #f9f9f9;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  color: #0570b4;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* Grid Layout */
.projects-grid-asymmetric {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 300px);
  grid-gap: 20px;
  grid-template-areas:
    "project1 project2 project2 project2"
    "project3 project3 project4 project5"
    "project6 project6 project6 project5";
}

/* Assign areas */
.project1 { grid-area: project1; }
.project2 { grid-area: project2; }
.project3 { grid-area: project3; }
.project4 { grid-area: project4; }
.project5 { grid-area: project5; }
.project6 { grid-area: project6; }

/* Project Card */
.project-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.4s, box-shadow 0.4s;
}

/* Hover Effect */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Project Image */
.project-card img {
  width: 100%;
  height:  100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s, filter 0.5s;
}

/* Image Scale on Hover */
.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

/* Project Info Overlay (fade in on hover) */
.project-info {
  padding: 15px;
  z-index: 2;
  transition: transform 0.4s, opacity 0.4s;
}

.project-card:hover .project-info {
  transform: translateY(-5px);
  opacity: 1;
}

.project-info i {
  font-size: 28px;
  color: #0570b4;
  margin-bottom: 8px;
  display: inline-block;
}

.project-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #0570b4;
}

.project-info p {
  font-size: 14px;
  color: #444;
}

/* Large Card */
.project-card.large {
  grid-column: span 2;
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid-asymmetric {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "project1 project2"
      "project3 project3"
      "project4 project5"
      "project6 project6";
    grid-template-rows: auto;
  }
}

@media (max-width: 767px) {
  .projects-grid-asymmetric {
    grid-template-columns: 1fr;
    grid-template-areas:
      "project1"
      "project2"
      "project3"
      "project4"
      
  }

  .project-info i {
    font-size: 24px;
  }

  .project-info h3 {
    font-size: 18px;
  }

  .project-info p {
    font-size: 13px;
  }
}


/* BLOG */
/*  NEWS SECTION  */
/* News Section */
.news-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c7be5;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.2rem;
    color: #555;
}

/* News Container */
.news-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* News Card */
.news-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* News Text */
.news-card p {
    font-size: 1.5rem;
    color: #333;
    margin-top: 20px;
}

/* old code */

.news-section {
    padding: 80px 10%;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: #0d3b2e;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

/*GRID LAYOUT */

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/*  CARD STYLE */

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
}

/*  IMAGE STYLE  */

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* CONTENT STYLE */



.news-content {
    padding: 20px;
}

.news-content .date {
    font-size: 13px;
    color: #999;
}

.news-content h3 {
    margin: 10px 0;
    color: #0d3b2e;
    font-size: 18px;
}

.news-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.news-content a {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    color: #0d3b2e;
    font-weight: bold;
    transition: 0.3s;
}




/* CONTACT */
.contact-section {
    padding: 80px 10%;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 20px;
    color: #2c7be5;
    padding: 12px;
    border-radius: 50%;
}

/* Responsive: stack icon above text */
 @media (max-width: 600px) { 
    .info-item 
    { 
    flex-direction: column; /* stack vertically */
    text-align: center; /* center text under icon */ 
    gap: 8px; /* smaller gap */ 
} 

.info-item i {
     margin-bottom: 5px; /* space between icon and text */ 
    } 
}

/* LEFT SIDE */
.contact-info {
    flex: 1;
}

.small-title {
    font-size: 12px;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 15px;
}

.contact-info h1 {
    font-size: 36px;
    color: #1b1b1b;
    margin-bottom: 20px;
}

.description {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon {
    font-size: 20px;
    margin-right: 15px;
}

/* RIGHT SIDE FORM */
.contact-form {
    flex: 1;
    background: #f9fbfd;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #2c7be5;
}

.contact-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2c7be5;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    background: #1a5fd1;
}
/*  TABLET */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        padding: 40px;
    }

    .contact-info h1 {
        font-size: 28px;
        text-align: center;
    }

    .description {
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }
}

/*MOBILE */
@media (max-width: 600px) {

    .contact-section {
        padding: 40px 5%;
    }

    .contact-container {
        padding: 25px;
        gap: 30px;
    }

    .contact-info h1 {
        font-size: 22px;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 13px;
        padding: 12px;
    }

    .contact-form button {
        font-size: 14px;
    }
}

/*  SPONSORS SECTION  */

.sponsors-section {
    background: #ffffff;
    padding: 80px 10%;
    text-align: center;
}

.sponsors-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 50px;
}

.sponsor-logo img {
    width: 140px;
    height: 20%;
    transition: 0.3s ease;
}

.sponsor-logo img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Mission & Vision Section */
#mission-vision {
  padding: 80px 8%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
}

#mission-vision .card {
  flex: 1;
  background: #ffffff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mission-vision .card h3 {
  font-size: 24px;
  color: #0570b4;
  margin-bottom: 15px;
}

#mission-vision .card p {
  color: #444;
  line-height: 1.6;
  font-size: 15px;
}

/* Hover effect */
#mission-vision .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Tablet */
@media (max-width: 992px) {
  #mission-vision {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  #mission-vision .card {
    padding: 30px;
  }

  #mission-vision .card h3 {
    font-size: 22px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #mission-vision {
    padding: 50px 5%;
  }

  #mission-vision .card {
    padding: 20px;
    border-radius: 10px;
  }

  #mission-vision .card h3 {
    font-size: 20px;
  }

  #mission-vision .card p {
    font-size: 14px;
  }
}


