:root {
  --brand: #17517e;
  --brand-2: #0d74a0;
  --accent: #ff0000;
  --ink: #22303a;
  --muted: #5b6b75;
  --bg: #f7fafb;
  --card: #ffffff;
  --footer-bg: #0c2230;
  --border: #e6edf1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo:hover {
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 800;
  color: var(--brand);
  font-size: 1.2rem;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.menu a:hover,
.menu a.active {
  background: #f0f7fb;
  text-decoration: none;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(17, 34, 51, 0.15);
  z-index: 200;
  padding: 8px 0;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--ink);
  border-radius: 0;
  margin: 0;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background: #f0f7fb;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #e60000;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn.alt {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn.alt:hover {
  background: rgba(255, 0, 0, 0.05);
}

.btn-full {
  width: 100%;
}

.btn.active {
  background: var(--brand);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.slider-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: slide 20s infinite;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes slide {
  0% { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); }
  25% { background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); }
  50% { background-image: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); }
  75% { background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1974&q=80'); }
  100% { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 74, 111, 0.85) 0%, rgba(14, 122, 167, 0.85) 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  color: #fff;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  color: #e4f2fa;
  margin: 0 0 30px;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Page Hero (for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-hero .subtitle {
  font-size: 1.1rem;
  color: #e4f2fa;
  max-width: 700px;
}

/* Main Content */
main {
  min-height: 60vh;
}

section {
  padding: 40px 0;
}

h2 {
  font-size: 2.2rem;
  margin: 0 0 30px;
  color: var(--brand);
  position: relative;
  padding-bottom: 10px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

h3 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: var(--brand);
}

/* Grid System */
.grid {
  display: grid;
  gap: 25px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(17,34,51,.06);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(17,34,51,.1);
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.list {
  padding-left: 20px;
  margin: 15px 0;
}

.list li {
  margin: 8px 0;
}

/* Home Page Specific */
.home-intro {
  padding-top: 60px;
}

.impact-stats div {
  margin: 10px 0;
  font-size: 1.1rem;
}

.impact-stats strong {
  color: var(--accent);
  font-size: 1.5rem;
  margin-right: 10px;
}

.service-card {
  cursor: pointer;
  display: block;
}

.service-card:hover {
  text-decoration: none;
}

.service-card i {
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: 15px;
}

.project-highlight {
  cursor: pointer;
}

.project-highlight h3 {
  margin-top: 15px;
}

.featured-projects {
  padding-bottom: 60px;
}

/* Approach Page */
.approach-card {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.approach-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-icon i {
  font-size: 2rem;
  color: #fff;
}

.approach-content ul {
  margin-top: 15px;
  padding-left: 20px;
}

.approach-content li {
  margin: 8px 0;
}

/* Expertise Page */
.expertise-detail {
  margin-bottom: 30px;
}

.expertise-detail > i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.expertise-detail h3 {
  margin-top: 20px;
}

.expertise-detail ul {
  padding-left: 20px;
  margin-top: 10px;
}

.expertise-detail li {
  margin: 8px 0;
}

/* Impact Page */
.kpis {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.kpis .card {
  flex: 1 1 200px;
  text-align: center;
  padding: 25px 15px;
}

.kpis h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin: 0 0 10px;
}

.impact-detail {
  margin-bottom: 30px;
}

.impact-detail > i {
  font-size: 2.5rem;
  color: var(--brand);
  margin-bottom: 15px;
}

.impact-detail ul {
  padding-left: 20px;
  margin-top: 15px;
}

.impact-detail li {
  margin: 8px 0;
}

/* Leadership Page */
.leadership-profile {
  margin-bottom: 40px;
}

.profile-header {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
}

.profile-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--brand);
}

.profile-title h2 {
  margin-bottom: 5px;
}

.profile-title h2:after {
  display: none;
}

.profile-title h3 {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 15px;
}

.profile-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-badges span {
  background: #f0f7fb;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--brand);
}

.profile-badges i {
  color: var(--accent);
  margin-right: 5px;
}

.profile-bio {
  margin-bottom: 30px;
}

.profile-bio p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.profile-expertise {
  margin-bottom: 30px;
}

.profile-expertise h3,
.profile-credentials h3 {
  margin-bottom: 20px;
}

.profile-credentials ul {
  padding-left: 20px;
}

.profile-credentials li {
  margin: 10px 0;
}

.team-card {
  text-align: center;
}

.team-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.cta-section {
  padding: 40px 0 60px;
}

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border: none;
}

.cta-card h2 {
  color: #fff;
}

.cta-card h2:after {
  background: #fff;
  left: 50%;
  transform: translateX(-50%);
}

.cta-card p {
  color: #e4f2fa;
  margin-bottom: 20px;
}

.section-intro {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Projects Page */
.project-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(17,34,51,.06);
}

.project-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 30px;
}

.project-tag {
  display: inline-block;
  background: #f0f7fb;
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.project-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 15px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-meta i {
  margin-right: 5px;
}

.project-info h3 {
  margin-top: 25px;
}

.project-info ul {
  padding-left: 20px;
  margin: 10px 0;
}

.project-info li {
  margin: 8px 0;
}

.project-stats {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
  flex: 1;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--accent);
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.project-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
}

.project-card-content {
  padding: 20px;
}

.project-card-content .btn {
  margin-top: 15px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.contact-info-card,
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(17,34,51,.06);
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
  width: 40px;
  height: 40px;
  background: #fff0f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 5px;
  color: var(--brand);
}

.contact-item p {
  color: var(--muted);
}

.social-links-large {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.social-links-large h4 {
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d6e2ea;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 81, 126, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.checkbox-label span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Partners Section */
.partners-section {
  padding: 40px 0;
}

.partners-section h2 {
  text-align: center;
}

.partners-section h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.logos_partners {
  display: flex;
  overflow-x: hidden;
  user-select: none;
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
}

.partners_logos {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  min-width: 100%;
  animation: loop 20s linear infinite;
  padding: 20px 0;
}

.partners_logos img {
  display: block;
  max-height: 60px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.partners_logos img:hover {
  opacity: 1;
}

@keyframes loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: #b7c4ce;
  padding: 50px 0 30px;
  margin-top: 60px;
}

footer a {
  color: #e6f3fa;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-content h3,
.footer-content h4 {
  color: #fff;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.3s;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .project-detail {
    grid-template-columns: 1fr;
  }
  
  .project-gallery {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .nav {
    height: auto;
    padding: 15px 0;
    flex-direction: column;
    gap: 15px;
  }
  
  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  
  .menu a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  
  .dropdown-content {
    position: static;
    width: 100%;
    min-width: unset;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    display: none;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
  
  .hero-section {
    height: 400px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .approach-card {
    flex-direction: column;
    text-align: center;
  }
  
  .approach-icon {
    margin: 0 auto;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-badges {
    justify-content: center;
  }
  
  .kpis {
    flex-direction: column;
  }
  
  .project-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 350px;
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .page-hero {
    padding: 40px 0;
  }
  
  .page-hero h1 {
    font-size: 1.6rem;
  }
  
  .profile-image img {
    width: 150px;
    height: 150px;
  }
  
  .partners_logos img {
    max-height: 40px;
  }
}