
/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --blue:        #1e6aba;
  --blue-dark:   #003366;
  --blue-deeper: #001f44;
  --orange:      #ff6600;
  --orange-warm: #ff8533;
  --bg:          #f5f7fa;
  --bg-card:     #ffffff;
  --text:        #1a2535;
  --text-muted:  #6b7a92;
  --border:      rgba(30, 106, 186, 0.12);
  --shadow-sm:   0 2px 8px rgba(0,51,102,0.08);
  --shadow-md:   0 8px 30px rgba(0,51,102,0.12);
  --shadow-lg:   0 20px 60px rgba(0,51,102,0.16);
  --radius:      14px;
  --radius-lg:   24px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  /* Subtle dot-grid background texture */
  background-image: radial-gradient(circle, rgba(30,106,186,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
/* General Body Styles (no change) */
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8; /* A light background */
}


/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}



/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
p { color: var(--text-muted); }



/* ── Header & Navbar ───────────────────────────────────────── */
.main-header {
  background: rgba(255, 255, 255, 0.92);
   border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows nav items to wrap on smaller screens */
  /* Add padding-right to make space for the fixed hamburger, if it overlaps */
  padding-right: 60px; /* Adjust based on hamburger's right position and width */
}

.main-header:hover {
  box-shadow: var(--shadow-md);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blue-dark);
  transition: opacity var(--transition);}

.logo-container:hover { opacity: 0.85; }

.logo {
  height: 46px;
  width: auto;
}
.logo-container h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.03em;
}

/* We'll hide the desktop nav if you want ONLY the hamburger menu to be the navigation control */
/* If you want BOTH (desktop nav AND hamburger always visible), we'd adjust this */
.nav-links.desktop-nav {
  display: none; /* Hide desktop navigation permanently if you only want hamburger control */
  /* If you want BOTH, remove this 'display: none;' and manage layout carefully */
}

/* ── Hero Banner ───────────────────────────────────────────── */
.hero-banner {
  background:
    linear-gradient(135deg, rgba(0,31,68,0.92) 0%, rgba(30,106,186,0.82) 100%),
    url('synergasia.webp') center/cover no-repeat;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 160px 28px 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Animated decorative shapes on hero */
.hero-banner::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,102,0,0.15) 0%, transparent 65%);
  top: -200px;
  right: -150px;
  animation: pulse-glow 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,106,186,0.2) 0%, transparent 65%);
  bottom: -120px;
  left: -100px;
  animation: pulse-glow 8s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.1); opacity: 1; }
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.9s ease both;
}


@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  height: 140px;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.3));
  animation: fadeInUp 0.9s 0.1s ease both;
}

.hero-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 36px;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: fadeInUp 0.9s 0.2s ease both;
}

/* ── Primary Button ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  min-width: 200px;
  background: var(--orange);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(255,102,0,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.9s 0.35s ease both;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  transform: translateX(-110%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,102,0,0.4);
  color: #fff;
}

.btn-primary:hover::before { transform: translateX(0); }

.btn-primary.full-width { width: 100%; }
/*button end*/



/* ── Key Points ────────────────────────────────────────────── */
.key-points {
  padding: 80px 0;
  background: linear-gradient(180deg, #eef2f8 0%, var(--bg) 100%);
}

.key-points .container {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.point {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.point::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.point:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30,106,186,0.25);
}

.point:hover::before { transform: scaleX(1); }

.point h3 {
  color: var(--blue-dark);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* ── About Us (index) ──────────────────────────────────────── */
.about-us,
.programs,
.news-blog,
.newsletter-signup {
  padding: 90px 0;
  text-align: center;
}

.about-us h2,
.programs h2,
.news-blog h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--blue-dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

/* Underline accent on section headings */
.about-us h2::after,
.programs h2::after,
.news-blog h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 2px;
  margin: 12px auto 0;
}

.about-us p {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
  color: var(--text-muted);
}
/* ── Programs Section ──────────────────────────────────────── */
.program-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 50px;
  text-align: left;
}

.category {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.category:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category:hover::after { transform: scaleX(1); }



/* ── News Grid ─────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 50px;
  text-align: left;
}

.news-item {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.news-item h3 {
  color: var(--blue-dark);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.news-item p {
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.news-item a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}

.news-item a::after { content: '→'; }

.news-item a:hover {
  color: var(--blue);
  gap: 10px;
}
/* ── Newsletter ────────────────────────────────────────────── */
.newsletter-signup {
  background-color: #e0eaf3;  
  
  position: relative;
  overflow: hidden;
}

.newsletter-signup::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 95, 95, 0.1) 20%, transparent 70%);
  top: -200px;
  left: -100px;
  pointer-events: none;
}

.newsletter-signup h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #003366;
  margin-bottom: 12px;
}

.newsletter-signup p { color: rgba(11, 11, 11, 0.75); }

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  padding: 16px 24px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,1);
  border-radius: 50px;
  font-size: 1em;
  font-family: 'Outfit', sans-serif;
  color: #ad0e0e;
  width: 340px;
  max-width: 90%;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    
    color: rgba(18, 16, 16, 0.5); }

.newsletter-form input[type="email"]:focus {
  border-color: var(--orange);
  background: rgba(240, 15, 15, 0.12);
}



/* ── Footer ────────────────────────────────────────────────── */
.main-footer {
  background: var(--blue-deeper);
  color: rgba(255,255,255,0.7);
  padding: 48px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 3px solid var(--orange);
}

.main-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width var(--transition);
}

.footer-links a:hover {
  color: var(--orange);
}


/* --- Hamburger Navigation Specific Styles --- */
/* Your provided styles integrated and adjusted */

a,
button {
  cursor: pointer;
}


/* ── Slide-out Navigation ──────────────────────────────────── */
.navigation {
  position: fixed;
  right: -420px;
  top: 0;
  width: 340px;
  height: 100%;
  background: linear-gradient(160deg, var(--blue-deeper) 0%, var(--blue-dark) 60%, #0a2d5c 100%);
  transition: right 0.45s cubic-bezier(0.77, 0.2, 0.05, 1);
  z-index: 999;
  box-shadow: -12px 0 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Decorative accent in nav panel */
.navigation::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,102,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.navigation.active { right: 0; }


.navigation nav {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  padding: 0 20px;
}

.navigation ul li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: right;
  padding: 0;
}

.navigation ul {
  list-style-type: none; /* Remove bullet points */
  margin: 0;
  padding: 0; /* Remove default padding */
}



.navigation ul li:last-child {
  border-bottom: none; /* No border for the last item */
}

.navigation ul li a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 20px 24px;
  transition: color var(--transition), padding-right var(--transition);
  position: relative;
}
.navigation ul li a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.navigation ul li a:hover {
  color: #fff;
  padding-right: 36px;
}

.navigation ul li a:hover::after {
  width: 20px;
}

/* ── Hamburger Button ──────────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  background: var(--blue-dark);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1001;
  gap: 0;
  box-shadow: 0 4px 16px rgba(0,51,102,0.3);
  transition: background var(--transition), transform var(--transition);
}

.hamburger:hover {
  background: var(--orange);
  transform: scale(1.05);
}

.bar {
  position: absolute;
  background: #fff;
  width: 20px;
  height: 2.5px;
  border-radius: 4px;
  transition: all 0.3s ease;
  left: 12px;
}

#bar1 { top: 14px; }
#bar2 { top: 20px; }
#bar3 { top: 26px; }

.hamburger.open #bar1 {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.open #bar2 { opacity: 0; }
.hamburger.open #bar3 {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Responsive Design - Media Queries */
@media (max-width: 768px) {
  /* Hide desktop navigation (already set to none above if you want only hamburger) */
  .nav-links.desktop-nav {
    display: none;
  }

  /* Hamburger and navigation are already 'display: block;' for all sizes now,
       so these rules are less critical but can fine-tune positioning if needed */
  /*
    .hamburger, .navigation {
        display: block;
    }
    */

  /* Adjust header for mobile to make space for hamburger */
  .main-header .navbar {
    justify-content: space-between; /* Pushes logo left, hamburger right */
    /* padding-right: 60px; is now set globally, fine-tune if needed here */
  }

  .hero-banner h2 {
    font-size: 1.8em;
  }

  .key-points .container {
    flex-direction: column;
    align-items: center;
  }

  .key-points .point,
  .program-categories .category,
  .news-item {
    width: 90%;
    max-width: 400px; /* Constrain width on smaller screens */
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input[type="email"] {
    width: 90%;
    max-width: 300px;
  }

  .newsletter-form button {
    width: 90%;
    max-width: 300px;
  }

  .main-footer .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    padding: 80px 15px;
  }

  .hero-banner h2 {
    font-size: 1.5em;
  }

  .btn-primary {
    padding: 12px 25px;
    font-size: 0.9em;
  }

  .logo-container h1 {
    font-size: 1.5em;
  }

  .logo {
    height: 40px;
  }

  .navigation {
    width: 100%; /* Make menu full width on very small screens */
  }

  .navigation nav {
    right: 0; /* Adjust nav content position for full width menu */
    width: 100%;
  }

  .navigation ul li {
    text-align: center; /* Center text if full width */
  }
}

/* ── About Page (about.html) ───────────────────────────────── */
.about-section {
  padding: 100px 0;
  background-color: #f9fbff;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.about-text h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 2px;
  margin-top: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.7;
}

.about-text p {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-item .icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.feature-item h4 {
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-image {
  flex: 1;
  min-width: 280px;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 16px 16px 0 var(--orange);
  transition: box-shadow var(--transition);
}

.about-image img:hover {
  box-shadow: 20px 20px 0 var(--blue);
}

/* ── Contact Page ──────────────────────────────────────────── */
.contact-hero.hero-banner {
  padding: 120px 28px 100px;
}

.contact-section {
  padding: 90px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info .point {
  max-width: 100%;
  text-align: left;
}

.contact-info .point h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-form-container {
  background: var(--bg-card);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e4eaf3;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30,106,186,0.1);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

#formResponse {
  margin-top: 16px;
  font-weight: 600;
  text-align: center;
}

/* ── Theme Toggle Button ───────────────────────────────────── */
#theme-toggle {
  background: transparent;
  border: 2px solid rgba(0,51,102,0.2);
  color: var(--blue-dark);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-right: 14px;
}

#theme-toggle:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  transform: rotate(15deg);
}

/* ── Scroll-reveal animation ───────────────────────────────── */
.point,
.category,
.news-item,
.feature-item {
  animation: fadeInUp 0.6s ease both;
}


/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }

  .hero-banner {
    padding: 120px 20px 100px;
    background-attachment: scroll; /* parallax breaks on iOS */
  }

  .hero-banner h2 { font-size: 1.7rem; }

  .key-points .container { flex-direction: column; align-items: center; }

  .point { max-width: 440px; width: 100%; }

  .program-categories .category,
  .news-item {
    width: 100%;
  }

  .newsletter-form { flex-direction: column; align-items: center; }

  .newsletter-form input[type="email"] {
    width: 90%;
    max-width: 340px;
  }

  .about-content { flex-direction: column; text-align: center; }

  .about-text h2::after { margin: 14px auto 0; }

  .about-image img { box-shadow: 10px 10px 0 var(--blue); }

  .contact-form-container { padding: 30px 24px; }
}

@media (max-width: 480px) {
  .hero-banner { padding: 90px 16px 80px; }

  .hero-logo { height: 110px; }

  .logo-container h1 { font-size: 1.25rem; }

  .logo { height: 38px; }

  .navigation { width: 100%; }

  .navigation nav { right: 0; width: 100%; }

  .navigation ul li { text-align: center; }

  .btn-primary { padding: 14px 26px; font-size: 0.95rem; }
}