/* ==========================================================================
   Variables & Base
   ========================================================================== */
:root {
  --primary-color: #003366;      /* NCA dark blue */
  --accent-color:  #006837;      /* NCA accent green */
  --text-color:    #333333;
  --bg-light:      #f9f9f9;
  --font-family:   'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background: linear-gradient(to right, rgb(241, 240, 240), rgb(195, 207, 196) 100%); /* Linear gradient background */
  line-height: 1.6;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   Header & Navigation (Updated to match .header-panel style)
   ========================================================================== */
   .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #ffffff 11%, #348d37 30%, rgb(18, 94, 26) 100%);
    color: #1f3d1f; /* A soft green or replace with #333 for neutral dark */
    z-index: 1000;
  }
  
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
  }
  
  .site-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1f3d1f; /* Match the new text color */
    font-size: 1.5rem;
    gap: 0.5rem;
  }
  
  .site-header .logo img {
    height: 65px;
    width: 65px; /* Set width equal to height for perfect circle */
    /* Make the image round */
    object-fit: cover; /* Ensures the image fills the circle without distortion */
  }
  
  
  .main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
  }
  
  .main-nav a {
    color: #fdfbfb;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background 0.3s;
  }
  
  .main-nav a:hover {
    background: rgba(252, 251, 251, 0.3);
  }
  
  .main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  
  .main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
  }
  
  .main-nav a:hover {
    color: black;
  }
  
  /* nudge CESEC logo 10px left without changing existing rules */
  .site-header .logo {
    transform: translateX(-10px); /* repositions an element horizontally */ /* :contentReference[oaicite:2]{index=2} */
    /* Alternatively, use: margin-left: -0.5rem; */ /* :contentReference[oaicite:3]{index=3} */
  }
  

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: url('juba.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 0;
  margin-top: 80px; /* Pushes hero section below fixed header */
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
}

/* ==========================================================================
   Quick Links Grid
   ========================================================================== */
.quick-links {
  background: var(--bg-light);
  padding: 2rem 0;
}
.links-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.links-grid a {
  display: block;
  background: #fff;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.links-grid a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* ==========================================================================
   Featured News
   ========================================================================== */
.featured-news {
  padding: 2rem 0;
}
.featured-news h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.news-grid article {
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.news-grid article:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.news-grid h3 {
  font-size: 1.2rem;
  margin: 1rem;
}
.news-grid p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: linear-gradient(135deg, rgb(6, 64, 19), rgba(27, 49, 25, 0.85));
  color: #fff;
  padding: 2rem 0;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.site-footer h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.site-footer p,
.site-footer ul {
  font-size: 0.9rem;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.site-footer a:hover {
  color: var(--accent-color);
}
.site-footer .social {
  display: flex;
  gap: 0.5rem;
}
.site-footer .footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p  { font-size: 1rem; }
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}
.news-grid article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }
  
  /* Combined Contact & Location Section */
  #contact-location {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
  }
  #contact-location > div { flex: 1; min-width: 300px; }
  #contact-location .contact {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  #contact-location .contact form input,
  #contact-location .contact form textarea {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
  }
  #contact-location .contact form input::placeholder,
  #contact-location .contact form textarea::placeholder {
    color: #0c0c0c;
  }
  #contact-location .contact form input:focus,
  #contact-location .contact form textarea:focus {
    outline: none;
    border-color: #ffdd57;
  }
  #contact-location .location iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
  }