:root {
    --green: #0b7d3e;
    --orange: #f7931e;
    --text: #1f2937;
    --light: #f9fafb;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
p{font-size:18px;}
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: #efefff;
    text-align: center;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  
}


.narrow {
    max-width: 700px;
}

/* HEADER */
.site-header {
    background: var(--green);
    padding: 0px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
  
}

.logo-left img {
    height: 100px;
    padding:-10px,0px;
    margin-bottom:-20px;
}

.logo-right img {
    height: 60px;
    opacity: 0.9;
}

/* NAV */
.main-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size:1.2rem;
}

.main-nav a:hover {
    color: var(--orange);
}

/* HERO */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow:hidden;
}
.hero::before{
    content:"";
    position: absolute;
    top: 50%;
    width: 700px;
    height: 700px;
     background: url('images/tppa logo.jpeg') no-repeat center;
     background-size: contain;
     opacity: 0.08;
     transform: translate(-50%, -50%);
     z-index: 0;
}
.hero-content{position: relative;
z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1.2;
}
.hero p {font-size: 24px;}

.subline {
    margin-top: 15px;
    font-weight: 500;
    color: #555;
    font-size: 1.85rem;
}

.hero-text {
    margin: 20px auto;
    max-width: 650px;
    font-size: 1.05rem;
}

.hero-actions {
    margin-top: 30px;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.light {
    background: var(--light);
}

/* TEXT */
.text-center {
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--green);
}

/* GRID */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* CARD */
/*card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
}*/

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
   
}

.grid-3 .card:nth-child(4) {
    grid-column: 1 / 3;
    justify-self: end;
}
.grid-3 .card:nth-child(5){
    grid-column: 2 / 4;
    justify-self: start;
}
.card {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
        box-shadow: 0 15px 20px rgba(0,0,0,0.05);}

.card:hover {
    transform: translateY(-5px);
}

.highlight {
    border-left: 4px solid var(--orange);
}

/* CTA */
.cta {
    background: var(--green);
    color: white;
    padding: 90px 20px;
}

.cta h2 {
    color: white;
}

/* BUTTON */
.btn-primary {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #d97706;
}

/* FOOTER */
.site-footer {
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
}

/* MOBILE */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: white;
    background: none;
    border: none;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.clean-list {
    list-style: none;
    padding: 0;
}

.clean-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}


@media(max-width:768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 20px;
        top: 70px;
        background: var(--green);
        padding: 15px;
        border-radius: 8px;
    }

    .main-nav.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* TRAINING SECTION */
.training-section {
    padding: 90px 0;
    background: #f9fafb;
}

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}

.section-heading h2 {
    font-size: 2.2rem;
    color: var(--green);
    margin-bottom: 15px;
}

.section-heading p {
    color: #555;
    line-height: 1.8;
}

/* SLIDER */
.training-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

/* Hide Scrollbar */
.training-slider::-webkit-scrollbar {
    display: none;
}

.training-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* CARD */
.training-card {
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
    transition: 0.35s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.training-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* IMAGE */
.training-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* CONTENT */
.training-content {
    padding: 25px;
}

.training-tag {
    display: inline-block;
    background: rgba(247,147,30,0.12);
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.training-content h3 {
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 12px;
}

.training-content p {
    color: #555;
    line-height: 1.7;
    font-size: 0.96rem;
}


.training-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* ARROWS */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0b5d3b;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.slider-btn:hover {
    background: #f7931e;
}

.slider-btn.left {
    left: -20px;
}

.slider-btn.right {
    right: -20px;
}




.events-section {
  background: #ffffff;
  padding: 80px 20px;
  font-family: Arial, sans-serif;
}

.events-container {
  max-width: 1100px;
  margin: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  color: #0b5d3b; /* deep green */
  margin-bottom: 10px;
}

.section-header p {
  color: #555;
  font-size: 16px;
}

/* GRID */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* CARD */
.event-card {
  background: #f9fff9;
  border-left: 5px solid #0b5d3b;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

/* stagger animation */
.event-card:nth-child(1) { animation-delay: 0.2s; }
.event-card:nth-child(2) { animation-delay: 0.4s; }
.event-card:nth-child(3) { animation-delay: 0.6s; }

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* DATE */
.event-date {
  display: inline-block;
  background: #e8f5ee;
  color: #0b5d3b;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* TEXT */
.event-card h3 {
  color: #0b5d3b;
  font-size: 18px;
  margin: 10px 0;
}

.event-location {
  color: #ff8c42; /* orange accent */
  font-weight: bold;
  font-size: 14px;
}

.event-desc {
  color: #666;
  font-size: 14px;
  margin: 10px 0 20px;
}

/* BUTTON */
.register-btn {
  display: inline-block;
  padding: 10px 16px;
  background: #0b5d3b;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s ease;
}

.register-btn:hover {
  background: #ff8c42;
  color: #fff;
}

/* ANIMATION */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* MOBILE */
@media(max-width:768px) {

    .training-card {
        min-width: 280px;
        max-width: 280px;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

}
