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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #001b5f;
  color: #e5cc80;
  line-height: 1.6;
  min-height: 100vh;
}
/* Hero Section */
.hero {
  background-color: #001b5f;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e5cc80;
}

.hero p {
  font-size: 1.2rem;
  color: #f8ebc6;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-button {
  background-color: #e5cc80;
  color: #001b5f;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.hero-button:hover {
  background-color: #f0da98;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header Layout */
/* === HEADER STYLING === */
.sml-header {
  /* background: linear-gradient(to right, #003049, #00aaff, #94d2bd);*/
  background:#000f3f;	
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom:1px solid #fff;
}


.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 48px;
  max-height: 60px;
  display: block;
}

.nav {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.sml-header .nav a {
  color: white;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.sml-header .nav a:hover {
  color: #ffd166; /* Optional hover highlight */
}

.nav li a {
  text-decoration: none;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 2px;
  position: relative;
}

.nav li a:hover {
  color: #000;
}

.nav li a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
  position: absolute;
  bottom: 0;
  left: 0;
}

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


.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
}


/* Main */
main {
  padding: 2rem 0;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #f0e6c0;
}
  .articles-list ul {
    list-style: none;
    padding: 0;
  }
  
  .articles-list li {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
  }
  
.article-meta {
    color: #888;
    font-size: 0.9em;
}
.admin-table {
    width: 100%!important;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color:#FFFFFF;
    color:#000;
}
.admin-table th, .admin-table td {
    border: 1px solid #ddd;
    padding: 8px;
}
.ah-btn-small {
    font-size: 0.85rem;
    padding: 4px 8px;
    margin-right: 4px;
}
.ah-btn-danger {
    background-color: #c0392b;
    color: white;
}  
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
  
.form-group {
    display: flex;
    flex-direction: column;
}
  
.form-control {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}
  
  .success-message,
  .error-message {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .success-message {
    background-color: #e6ffed;
    color: #256029;
    border: 1px solid #a5d6a7;
  }
  
  .error-message {
    background-color: #ffe6e6;
    color: #a94442;
    border: 1px solid #e0b4b4;
 }
.article-meta {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.article-content{
  background:#001b5f; 
  padding: 3rem 3rem;
}
.article-content .container {
  background-color: #fff;
  color: #000;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
 .article-body {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 2rem;
  margin-bottom: 3rem;
  font-family: 'Poppins', sans-serif;
}

.article-body h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #222;
}

.article-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.5rem;
}

.article-content h3 {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #333;
}

.article-content p {
  line-height: 1.7;
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.table-of-contents {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.table-of-contents ul {
  padding-left: 1.2rem;
  margin: 0;
}

.table-of-contents li {
  margin: 0.4rem 0;
}

.back-link {
  margin-top: 2rem;
}

.back-link a {
  text-decoration: none;
  font-weight: 500;
  color: #0056b3;
}

.back-link a:hover {
  text-decoration: underline;
}
.ql-editor {
  color: #000 !important;
  background-color: #fff !important;
}
.article-hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
/* Hero Section with Parallax */
.hero {
  position: relative;
  height: 90vh;
  background-image: url('/images/hero-image.png'); /* replace with your hero image path */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero-logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.hero-button {
  background: #f5f5f5;
  color: #333;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
  transition: background 0.3s ease;
}

.hero-button:hover {
  background: #e2e2e2;
}

/* Responsive hero text */
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.6;
}
/* Highlights Section */
.highlights {
  background: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

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

.highlight-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.highlight-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #222;
}

.highlight-card p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

/* Footer */
footer {
  background: #000f3f;
  color: #e5cc80;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

footer a {
  color: #e5cc80;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
.about-hero {
  background: linear-gradient(135deg, #f6f8fa, #fff);
  padding: 4rem 1rem 2rem;
  text-align: center;
}
.articles-hero {
  background: linear-gradient(135deg, #f6f8fa, #fff);
  padding: 4rem 1rem 2rem;
  text-align: center;
}


.about-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


.about-hero {
  background: url('/images/about-hero-image.png') center center / cover no-repeat;
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.articles-hero {
  background: url('/images/articles-hero-image.png') center center / cover no-repeat;
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.articles-hero-overlay {
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}
.about-hero-overlay {
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.about-hero p {
  font-size: 1.1rem;
  color: #eee;
  max-width: 700px;
  margin: 0 auto;
}
.articles-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.articles-hero p {
  font-size: 1.1rem;
  color: #eee;
  max-width: 700px;
  margin: 0 auto;
}
.team-section {
  background: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.team-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.team-member {
  max-width: 200px;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-member h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.team-member p {
  font-size: 0.95rem;
  color: #666;
}

    .contact-hero {
      background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                  url('/images/contact-hero.jpg') center/cover no-repeat;
      color: #fff;
      padding: 5rem 1rem;
      text-align: center;
    }

    .contact-form-container {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      max-width: 600px;
      margin: -3rem auto 3rem auto;
      position: relative;
      z-index: 2;
    }

    .contact-form .form-group {
      margin-bottom: 1.5rem;
    }

    .contact-form label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 600;
    }

    .contact-form .form-control {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
    }

    .contact-form button {
      padding: 0.75rem 1.5rem;
      background-color: #1c2e4a;
      color: #fff;
      border: none;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .contact-form button:hover {
      background-color: #2c3e60;
    }


.auth-form button {
      padding: 0.75rem 1.5rem;
      background-color: #1c2e4a;
      color: #fff;
      border: none;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }
.auth-form button:hover {
      background-color: #2c3e60;
    }    

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  min-height: 80vh;
  background-color: #f8f9fa;
}

.login-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-width: 420px;
  width: 100%;
}

.login-title {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.auth-form .form-control {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

@media (max-width: 600px) {
   .article-body {
    padding: 1rem;
  }
  .article-content{
    padding: 0.1rem 0.1rem;
  }

  .article-content p {
    font-size: 1rem;
  }
}
