/* Cleaned & optimized CSS — merged duplicates, fixed invalid nesting, and preserved selectors to avoid breaking the site.
   IMPORTANT: copy this file into your project and test in a staging environment before deploying. */

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f9fbfd;
}

/* Ensure container never exceeds viewport */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Make sure images scale properly */
.package-card img,
.about-image img,
.poster-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Adjust grid for smaller screens */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 5%;
    background: #fff; /* keep white */
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.logo {
    position: absolute;
    left: 5%;
}

.logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #004AAD; /* DECA blue text */
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    transition: transform 0.2s ease, color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #004AAD;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-2px) scale(1.05);
    color: #02152e;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Hero ===== */
.hero {
    height: 30vh;
    position: relative;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-img {
    position: absolute;   /* take it out of normal flow */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;         /* covers hero like background-size: cover */
    object-position: center 25%; /* mimics background-position */
    z-index: -1;               /* put it behind overlay text */
}

.hero-overlay {
    background: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;        /* ensures overlay is above the image */
    z-index: 1;
}

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

/* ===== About Section ===== */
.about-section {
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    background: #f9f9f9;
}

.about-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Image Styling */
.about-image img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-top: 37px;
    position: relative;
    z-index: 2;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* Content Styling */
.about-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
    position: relative;
    z-index: 3;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.about-content h2 {
    color: #004AAD;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.about-content h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #555;
}

.about-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Highlights Grid */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 20px 0;
}

.about-highlights div {
    background: #004AAD10;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: transform 0.3s;
}

.about-highlights div:hover {
    transform: translateY(-3px) scale(1.05);
}

.about-highlights i {
    font-size: 1.5rem;
    color: #004AAD;
    margin-bottom: 5px;
    display: block;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;  /* visible but not distracting */
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at center,
        #004AAD 0%,
        #003580 85%
    );
}

.shape1 { width: 100px; height: 100px; top: 5%; left: 5%; animation: float1 7s infinite ease-in-out alternate; }
.shape2 { width: 60px; height: 60px; top: 25%; left: 20%; animation: float2 9s infinite ease-in-out alternate; }
.shape3 { width: 140px; height: 140px; top: 55%; left: 10%; animation: float3 11s infinite ease-in-out alternate; }
.shape4 { width: 80px; height: 80px; top: 75%; left: 30%; animation: float4 8s infinite ease-in-out alternate; }
.shape5 { width: 50px; height: 50px; top: 40%; left: 5%; animation: float5 6s infinite ease-in-out alternate; }
.shape6 { width: 120px; height: 120px; top: 85%; left: 15%; animation: float6 10s infinite ease-in-out alternate; }

@keyframes float1 { 0% { transform: translate(0, 0); } 50% { transform: translate(20px, -15px); } 100% { transform: translate(-15px, 10px); } }
@keyframes float2 { 0% { transform: translate(0, 0); } 50% { transform: translate(-10px, -20px); } 100% { transform: translate(15px, 15px); } }
@keyframes float3 { 0% { transform: translate(0, 0); } 50% { transform: translate(25px, 20px); } 100% { transform: translate(-20px, -15px); } }
@keyframes float4 { 0% { transform: translate(0, 0); } 50% { transform: translate(-15px, 25px); } 100% { transform: translate(10px, -20px); } }
@keyframes float5 { 0% { transform: translate(0, 0); } 50% { transform: translate(10px, -15px); } 100% { transform: translate(-10px, 10px); } }
@keyframes float6 { 0% { transform: translate(0, 0); } 50% { transform: translate(-20px, 15px); } 100% { transform: translate(15px, -15px); } }

.about-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(249, 249, 249, 0.95) 0%,
        rgba(249, 249, 249, 0.75) 20%,
        rgba(249, 249, 249, 0) 60%
    );
    pointer-events: none;
    z-index: -1;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .about-highlights { grid-template-columns: 1fr; }
    .about-image img { height: 250px; }
    .hero h1 { font-size: 2.5rem; }
}

/* ===== Paths (kept both class names for compatibility) ===== */
.paths, .paths-section { padding: 3rem 5%; text-align: center; }
.path-grid, .paths-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.path-card {
    background: #fff; /* lighter default for compatibility */
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.3s;
}

/* Four Paths to Success (more prominent variant) */
.paths-section .path-card, .path-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.1);
    border-top: 5px solid #004AAD;
    flex: 0 1 320px;
    max-width: 360px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.path-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 10px 25px rgba(0,74,173,0.2); }
.path-card h3 { font-size: 1.3rem; color: #004AAD; margin-bottom: 1rem; }
.path-card p { font-size: 1rem; color: #333; line-height: 1.6; }

/* ===== Testimonials ===== */
.testimonials-section {
    background: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.testimonials-section h2 {
    font-size: 2.4rem;
    color: #004AAD;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

/* Card styling */
.testimonial-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.1);
    border-top: 5px solid #004AAD;
    opacity: 0;                      /* Start invisible for animation */
    transform: translateY(40px);     /* Lower start position */
    flex: 0 1 420px;
    max-width: 480px;
    animation: fadeInUp 0.9s ease forwards;
}

.carousel-container {
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item { min-width: 100%; margin: 0 auto; }

.carousel-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.carousel-nav button {
    background: #004AAD;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.carousel-nav button:hover {
    background: #003580;
    transform: translateY(-3px);
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,74,173,0.2);
}

/* Decorative quote */
.testimonial-card::before {
    content: "“";
    font-size: 4rem;
    color: rgba(0, 74, 173, 0.15);
    position: absolute;
    top: 15px;
    left: 25px;
}

/* Text inside */
.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Author details */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #004AAD;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #004AAD;
}

.testimonial-author span { display: block; font-size: 0.85rem; color: #777; }

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }
.testimonial-card:nth-child(4) { animation-delay: 0.8s; }

/* ===== Four Paths to Success ===== */
.section-title {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    color: #004AAD;
    margin-bottom: 2.5rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #0095FF;
    margin: 8px auto 0;
    border-radius: 2px;
}

.paths-section {
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.paths-section h2 { font-size: 2.2rem; color: #004AAD; margin-bottom: 2rem; }
.paths-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer {
  background: #0d0d0d;
  color: #f0f0f0;
  padding: 3rem 5% 1.5rem;
  font-size: 0.95rem;
  margin-top: 3rem;
  width: 100%;
  position: relative;
  z-index: 5;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col h4 { font-size: 1.2rem; margin-bottom: 1rem; color: #fff; }
.footer-logo { max-width: 300px; }
.footer-logo-img { height: 60px; margin-bottom: 1rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a, .footer-contact a { color: #bbb; transition: color 0.2s ease; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { margin-bottom: 0.8rem; }
.footer-socials { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
.footer-socials .social-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #333; color: #fff; transition: background 0.3s, transform 0.2s; }
.footer-socials .social-icon:hover { background: #004AAD; transform: translateY(-3px); }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 1rem; font-size: 0.85rem; color: #aaa; }

/* Tabs, Cards and Avatar */
.tabs { display: flex; justify-content: center; margin: 40px 0; gap: 16px; flex-wrap: wrap; }
.tab { padding: 16px 32px; font-size: 1.2rem; border-radius: 12px; cursor: pointer; font-weight: 400; border: 1px solid #ccc; background: white; transition: all 0.3s ease; }
.tab:hover { border-color: #004AAD; }
.tab.active { background: #1e40af; color: white; border: none; box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

.title { font-size: 2.2rem; font-weight: bold; margin: 25px 0; color: #1e40af; text-align: center; }

.card-container { display: flex; justify-content: center; gap: 40px; margin-top: 25px; flex-wrap: wrap; padding: 20px; }
.card { background: linear-gradient(135deg, #004AAD, #007BFF); color: white; padding: 45px 35px; border-radius: 16px; width: 280px; box-shadow: 0 6px 14px rgba(0,0,0,0.15); text-align: center; transform: translateY(30px); opacity: 0; animation: fadeUp 0.6s ease forwards; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { box-shadow: 0 12px 25px rgba(0,0,0,0.25); }
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 5px solid white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Section transitions */
.team-section { opacity: 0; transform: scale(0.98); transition: all 0.4s ease; display: none; }
.team-section.active-section { display: block; opacity: 1; transform: scale(1); }

/* ===== Sponsors Hero & Posters ===== */
.sponsors-hero { background: #004AAD10; padding: 80px 20px; text-align: center; }
.sponsors-intro h1 { font-size: 2.8rem; color: #004AAD; margin-bottom: 20px; }
.sponsors-intro p { font-size: 1.2rem; color: #333; max-width: 800px; margin: 0 auto; }
.sponsors-posters { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 60px 0; }
.poster-card { background: #fff; padding: 20px; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.1); width: 280px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.poster-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 25px rgba(0,0,0,0.2); }
.poster-card p { font-weight: 600; color: #004AAD; }
.sponsors-impact { display: flex; justify-content: center; gap: 40px; margin: 60px 0; flex-wrap: wrap; text-align: center; }
.impact-card h2 { font-size: 2.5rem; color: #1e40af; margin-bottom: 10px; }
.impact-card p { font-size: 1.1rem; color: #333; }

.sponsors-section {
    padding: 40px 0px;
    background: #f8faff;
    text-align: center;
}

/* TITLE */
.sponsors-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #003E8F;
    margin-bottom: 60px;
}

/* NEW LAYOUT: TWO COLUMNS */
.two-sponsors {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    perspective: 1200px; /* for 3D tilt */
}

/* CARD - upgraded for "pop" */
.sponsor-card {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 20px;
    padding: 45px 50px;
    width: 350px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow:
        0 6px 18px rgba(0,0,0,0.08),
        0 2px 6px rgba(0,0,0,0.04) inset;
    transition: transform .45s cubic-bezier(.2,.9,.2,1), box-shadow .45s, filter .35s;
    transform-style: preserve-3d;
    position: relative;
    overflow: visible;
}

/* thin colored accent bar */
.sponsor-card::before{
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 12px;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, #00a3ff, #004aad 60%, #00e6a8);
    opacity: 0.95;
    transform-origin: center;
    transition: transform .45s, opacity .45s;
    box-shadow: 0 6px 18px rgba(0,74,173,0.07);
}

/* hover pop + glow */
.sponsor-card:hover{
    transform: translateY(-12px) scale(1.06) translateZ(30px);
    box-shadow:
        0 22px 50px rgba(0,74,173,0.18),
        0 6px 18px rgba(0,0,0,0.06);
    filter: saturate(1.08) brightness(1.02);
}
.sponsor-card:hover::before { transform: scaleX(1.05); opacity: 1; }

/* Logo style */
.sponsor-card img {
    width: auto;
    max-width: 45%;
    height: auto;
    object-fit: contain;
    display: inline-block;
    filter: grayscale(85%) contrast(0.95) brightness(0.98);
    transition: filter .35s ease, transform .35s ease;
}

/* logos reveal on hover */
.sponsor-card:hover img {
    filter: none;
    transform: scale(1.02);
}

/* entrance animation */
.two-sponsors .sponsor-card { opacity: 0; transform: translateY(18px) scale(.99); animation: cardIn .6s forwards; }
.two-sponsors .sponsor-card:nth-child(1){ animation-delay: .12s; }
.two-sponsors .sponsor-card:nth-child(2){ animation-delay: .22s; }
.two-sponsors .sponsor-card:nth-child(3){ animation-delay: .32s; }
.two-sponsors .sponsor-card:nth-child(4){ animation-delay: .42s; }

@keyframes cardIn { to { opacity: 1; transform: translateY(0) scale(1); } }

/* MOBILE */
@media (max-width: 600px) {
    .sponsor-card {
        width: 85%;
        height: auto;
        padding: 35px 30px;
    }
    .two-sponsors { gap: 30px; }
    .sponsor-card img { max-width: 40%; }
}


/* Mobile responsive */
@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .sponsor-card img {
        max-width: 100px;
    }
}


/* ===== CTA Section ===== */
.sponsors-cta { text-align: center; padding: 60px 20px; background: #004AAD10; border-radius: 16px; margin-bottom: 0px; }
.sponsors-cta p { font-size: 1.3rem; margin-bottom: 25px; font-weight: 500; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .sponsors-posters, .sponsors-impact { flex-direction: column; align-items: center; }
    .poster-card, .impact-card { width: 80%; }
}

/* ===== Modal Popup ===== */
.modal { display: none; position: fixed; z-index: 1000; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8); transition: 0.3s; }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 80%; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.3); animation: zoomIn 0.3s; }
.close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.2s; }
.close:hover { color: #ddd; }

@keyframes zoomIn { from { transform: scale(0.7); } to { transform: scale(1); } }

/* ===== Mobile & Tablet Optimization ===== */

/* Tablet adjustments */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  header, section {
    padding: 50px 15px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  p {
    font-size: 1rem;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  header, section {
    padding: 40px 10px;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero img,
  .about img,
  .sponsors img {
    width: 100%;
    height: auto;
  }
}

/* Small phones */
@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px;
  }

  footer {
    font-size: 0.9rem;
    padding: 15px;
  }
}


/* End of file */

