/* === Font Imports === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@700&display=swap');

/* === Root Variables === */
:root {
  --primary: #E63946;
  --secondary: #F77F00;
  --tertiary: #FFD166;
  --button-start: var(--secondary);
  --button-end: var(--primary);
  --text-dark: #1D1D1D;
  --text-light: #fff;
  --text-muted: #6c757d;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  --font-title: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* === Global Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fdfdfd;
  line-height: 1.6;
  padding: var(--spacing-md);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  font-size: 1.6rem;
}

ul {
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

ul li {
  font-size: 1.6rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

a {
  color: var(--secondary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === Buttons === */
.button {
  background: linear-gradient(135deg, var(--button-start), var(--button-end));
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: filter 0.3s ease;
}
.button:hover {
  filter: brightness(1.1);
}

/* === Utility Classes === */
.text-center { text-align: center; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

/* === Forms === */
input, textarea, select {
  font-family: var(--font-body);
  padding: var(--spacing-sm);
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  margin-bottom: var(--spacing-md);
}

label {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  display: inline-block;
}


/* === Hero Section === */

.spacer {
    height: 100px; /* Adjust as needed */
}

.hero-section {
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero_background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--spacing-xl) 0;
    color: var(--text-light);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 4rem;
    padding: 0 var(--spacing-md);
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text {
    flex: 1;
    text-align: left;
    padding-right: var(--spacing-xl);
}

.hero-title {
    font-size: 5.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    line-height: 1.2;
}

.hero-tagline {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    display: inline-block;      /* make border/pseudo-element hug content */
    position: relative;         /* required for ::after positioning */
}

/* Partial underline */
.hero-tagline::after {
    content: "";                
    position: absolute;
    bottom: 0;                  
    left: 0;                     /* start from left edge of text */
    width: 30%;                  /* only 1/4 of the text width */
    height: 3px;                 
    background-color: var(--secondary); 
}


.core-offerings-container {
    flex: 1.5;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 15px;
    max-width: 1550px; /* Added max-width */
    margin: 0 auto; 
}

.offerings-grid {
    display: flex;
    gap: 5px; 
    justify-content: center; 
}


.offering-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-lg);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 270px;
    max-width: 310px; 
    min-height: 400px;
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.offering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.offering-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.offering-card p {
    color: var(--text-dark);
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: visible;
    display: block;
}

/* Update responsive styles */
@media (max-width: 1200px) {
    .offerings-grid {
        flex-direction: column;
        align-items: center;
    }

    .offering-card {
        width: 100%;
        max-width: 500px;
        margin-bottom: var(--spacing-md);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 2rem;
    }

}

.hero-button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-button:hover {
    background: linear-gradient(135deg, var(--button-start), var(--button-end));
    text-decoration: none;
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Right content container */
.hero-right-content {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Testimonials styling */
.testimonials-container {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 15px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-lg);
    border-radius: 10px;
    text-align: center;
}

.testimonial-card p {
    color: var(--text-dark);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    color: var(--text-muted);
    font-style: italic;
}

/* Newsletter styling */
.newsletter-container {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 15px;
    max-width: 400px; /* Reduced from 600px */
    margin-right: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.newsletter-form input {
    height: 50px;
    padding: 0 var(--spacing-md);
    font-size: 1.4rem;
}

.newsletter-form button {
    height: 50px;
    font-size: 1.4rem;
}

/* Update responsive styles */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
    }

        .hero-button {
        font-size: 0.5rem;
    }

    .newsletter-container {
        margin: 0 0 var(--spacing-lg) 0;
        max-width: 100%;
    }

    .newsletter-form {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
}


/* === About Us Section === */
.about-us-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to right, rgba(247, 127, 0, 0.05), rgba(230, 57, 70, 0.05));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.about-us-content {
    flex: 1;
    max-width: 600px;
}

.about-us-content .section-title {
    font-size: 3.6rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.about-us-subsection {
    margin-bottom: var(--spacing-lg);
}

.subsection-title {
    font-size: 2.4rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

.about-us-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.about-us-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    margin-top: 20rem;
}

.about-us-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-us-section {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .subsection-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-us-image {
        margin-top: var(--spacing-lg);
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .about-us-content .section-title {
        font-size: 3rem;
    }

    .subsection-title {
        font-size: 2rem;
    }

    .about-us-content p {
        font-size: 1.5rem;
    }
}

/* === Training Programmes Section === */
.training-programmes-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to left, rgba(247, 127, 0, 0.05), rgba(230, 57, 70, 0.05));
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.training-programmes-content {
    max-width: 1200px; /* or your site's main container width */
    margin: 0 auto;
    padding: 0 1rem; /* consistent horizontal padding */
    box-sizing: border-box;
}

.training-programmes-content .section-title {
    font-size: 3.6rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xl);
    position: relative;
    text-align: center;
}

.training-programmes-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

.training-programmes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    grid-template-rows: repeat(2, auto);   /* 2 rows */
    gap: 2.5rem 3rem; /* vertical & horizontal gap */
    margin-bottom: var(--spacing-xl);
}

.programme-card {
    background: #fff;
    border-radius: 15px;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.programme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.programme-title {
    font-size: 2.4rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.programme-card p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.programme-card ul {
    list-style-type: none;
    padding-left: 0;
}

.programme-card li {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.programme-card li::before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .training-programmes-content .section-title {
        font-size: 3rem;
    }

    .training-programmes-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--spacing-lg);
    }

    .programme-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .programme-title {
        font-size: 2rem;
    }

    .programme-card p,
    .programme-card li {
        font-size: 1.5rem;
    }
}

/* Stats Section */

.stats-section-container {
    width: 100%;
    background: linear-gradient(to right, rgba(247, 127, 0, 0.05), rgba(230, 57, 70, 0.05));
    padding: var(--spacing-xl) 0;
    display: flex;
    justify-content: center;
}

.stats-section-content {
    max-width: 1200px;
    width: 90%; /* makes it wider on smaller screens with some margin */
    box-sizing: border-box;
}

.stats-section {
    display: flex;
    justify-content: space-between;
    gap: 3rem; /* more spacing between stat cards */
    width: 100%;
}

.stat-card {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.stat-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .stat-card {
        min-width: auto;
        width: 100%;
    }
}


/* === Get Involved Section === */
.get-involved-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to right, rgba(247, 127, 0, 0.05), rgba(230, 57, 70, 0.05));
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.get-involved-content {
    width: 100%;
    max-width: 800px;
}

.get-involved-content .section-title {
    font-size: 3.6rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xl);
    position: relative;
    text-align: center;
}

.get-involved-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

.get-involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.get-involved-card {
    background: #fff;
    border-radius: 15px;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push content to top and button to bottom */
}

.get-involved-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.get-involved-title {
    font-size: 2.4rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.get-involved-card p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.get-involved-card .button {
    background-color: white; /* Remove background color */
    color: black; /* Set text color */
    border: 2px solid var(--primary); /* Add border */
    padding: var(--spacing-sm) var(--spacing-md); /* Adjust padding */
    border-radius: 8px;
    font-size: 1.4rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center; /* Center the text */
    display: inline-block; /* Ensure proper spacing */
}

.get-involved-card .button:hover {
    background-color: var(--primary); /* Set background color on hover */
    color: var(--text-light); /* Set text color on hover */
}

.get-involved-image {
    flex: 1;
    max-width: 400px;
}

.get-involved-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .get-involved-content .section-title {
        font-size: 3rem;
    }

    .get-involved-card p {
        font-size: 1.5rem;
    }
}

/* === Contact Section === */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to right, rgba(247, 127, 0, 0.05), rgba(230, 57, 70, 0.05));
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.contact-content {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for form and info */
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-content .section-title {
    font-size: 3.6rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xl);
    position: relative;
    text-align: left; /* Align title to the left */
    grid-column: 1 / span 2; /* Make title span both columns */
}

.contact-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0; /* Align underline to the left */
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

.contact-content p {
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    text-align: left; /* Align paragraph to the left */
    grid-column: 1 / span 2; /* Make paragraph span both columns */
}

.contact-content form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-sm);
    border: 1px solid var(--text-muted);
    border-radius: 8px;
    font-size: 1.6rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-content .button {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.6rem;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--text-light);
    border: none;
    transition: background 0.3s ease;
}

.contact-content .button:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 2.4rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr; /* Single column layout on smaller screens */
    }

    .contact-content .section-title,
    .contact-content p {
        grid-column: 1; /* Reset span to single column */
        text-align: center; /* Center text on smaller screens */
    }

    .contact-content .section-title::after {
        left: 50%; /* Center underline on smaller screens */
        transform: translateX(-50%);
    }
}


/* Make card tops align and stretch cards to same height */
.offerings-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch; /* makes all cards equal height */
  flex-wrap: wrap;      /* wraps on smaller screens */
}

/* Stack content from the top (not space-between) */
.offering-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* override space-between */
  gap: var(--spacing-md);      /* spacing between title and paragraph */
  min-width: 270px;
  max-width: 310px;
  min-height: 400px;            /* optional minimum height */
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-lg);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.offering-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Reserve equal space for titles so paragraphs start aligned */
.offering-title {
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1.3;
  --title-lines: 2; /* set according to your longest title */
  min-height: calc(1em * 1.3 * var(--title-lines));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 0; /* gap handles spacing */
}

/* Paragraph styles */
.offering-card p {
  color: var(--text-dark);
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 0;
  display: block;
  overflow: visible;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .offerings-grid {
    flex-direction: column;
    align-items: center;
  }

  .offering-card {
    width: 100%;
    max-width: 500px;
    margin-bottom: var(--spacing-md);
  }
}


/* === Gallery Section === */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background: #fdfdfd;
    text-align: center;
}

.gallery-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* === Image Popup === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: auto;
    max-height: 70vh;
    max-width: 70vw;
    display: block;
    margin: 0 auto;
}