/* ===== GLOBAL STYLES ===== */
:root {
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg-light);
}

/* ===== REUSABLE COMPONENTS ===== */
/* Card Styles */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Button Styles */
.button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--primary-dark);
}

.button.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-1 h2,
.grid-3 h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.grid-1 h2::after,
.grid-3 h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.3s ease;
}

.grid-1 h2:hover,
.grid-3 h3:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.grid-1 h2:hover::after,
.grid-3 h3:hover::after {
  width: 100px;
}

.grid-1 p,
.grid-3 p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  transition: color 0.3s ease;
}

.grid-1 p:hover,
.grid-3 p:hover {
  color: var(--text);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Utility Classes */
.highlights, .history {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* History Card Specific Styles - RESTORED ORIGINAL STYLING */
.history-card {
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  border: 3px solid transparent;
  border-image: linear-gradient(135deg, var(--primary), var(--primary-dark)) 1;
  animation: cardFadeIn 0.5s ease-out;
  max-height: 400px; /* Limit height to prevent excessive enlargement */
  overflow-y: auto; /* Enable scrolling for overflow text */
  scrollbar-width: thin; /* Thin scrollbar for Firefox */
  scrollbar-color: var(--primary) var(--bg-light); /* Custom scrollbar colors */
}

.history-card::-webkit-scrollbar {
  width: 8px; /* Thin scrollbar for WebKit browsers */
}

.history-card::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.history-card::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.history-card::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.history-content {
  margin-top: 1rem;
}

/* ===== HEADER & NAVIGATION ===== */

header {
  background-color: var(--primary-dark);
  color: white;
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: white;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link.active {
  color: #c7d2fe;
  border-bottom: 2px solid #c7d2fe;
}

#langToggle {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#langToggle:hover {
  background-color: var(--primary-dark);
}

/* ===== PAGE HEADER ===== */
/* Page-specific header background images with lighter blue gradient */
.mission-header {
  background-image: linear-gradient(135deg, rgba(96, 130, 235, 0.6), rgba(135, 166, 255, 0.6)), 
                    url('images/mission-bg.jpg');
}

.directorates-header {
  background-image: linear-gradient(135deg, rgba(96, 130, 235, 0.6), rgba(135, 166, 255, 0.6)),
                    url('images/directorates-bg.jpg');
}

.services-header {
  background-image: linear-gradient(135deg, rgba(96, 130, 235, 0.6), rgba(135, 166, 255, 0.6)),
                    url('images/services-bg.jpg');
}

.news-header {
  background-image: linear-gradient(135deg, rgba(96, 130, 235, 0.6), rgba(135, 166, 255, 0.6)),
                    url('images/news-bg2.jpg');
}

.contact-header {
  background-image: linear-gradient(135deg, rgba(96, 130, 235, 0.6), rgba(135, 166, 255, 0.6)),
                    url('images/contact-bg1.jpg');
}

/* General header styling with background image */
.page-header {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 3rem 1rem;
  text-align: center;
  color: white;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-header .header-content,
.page-header .header-decoration {
  position: relative;
  z-index: 2;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.page-header p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  max-width: 800px;
  margin: 0 auto;
}

.header-decoration {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deco-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  margin-bottom: 10px;
}

.deco-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* ===== DIRECTORATES PAGE ===== */
.directorate-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Tab Navigation */
.tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tab-button.active {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

.tab-button:hover:not(.active) {
  color: #3b82f6;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Directorate Header */
.directorate-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.directorate-mission {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 800px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* Activity List for "See More" Functionality */
.activity-list li:nth-child(n+6) {
  display: none;
}

.activity-list.show-all li {
  display: list-item;
}

/* See More Button */
.see-more {
  margin-top: 1rem;
}

/* ===== SERVICES PAGE ===== */
.service-card {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  color: #1e40af;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card ul {
  margin-top: auto;
  padding-left: 1.25rem;
}

.service-card li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
  color: #4b5563;
}

.service-card li::before {
  content: "•";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Call to Action */
.cta {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 8px;
  max-width: 1200px;
  margin: 2rem auto;
}

.cta h2 {
  color: #1e40af;
  margin-bottom: 1rem;
}

.cta p {
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* ===== NEWS PAGE ===== */
.news-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.news-article {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.news-article:hover {
  transform: translateY(-5px);
}

.news-article.featured {
  display: flex;
  flex-direction: column;
}

.news-article.featured .news-image {
  height: 300px;
}

.news-article.featured .news-content {
  padding: 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.news-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.news-excerpt {
  color: var(--text-light);
  margin: 1rem 0;
  line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

/* Contact Info Card */
.contact-info-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.card-header {
  margin-bottom: 2rem;
  position: relative;
}

.card-header h2 {
  font-size: 1.75rem;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-header i {
  color: #3b82f6;
}

.card-decoration {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, #3b82f6, #93c5fd);
  border-radius: 3px;
}

.contact-detail {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.detail-icon {
  width: 40px;
  height: 40px;
  background-color: #e0e7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  flex-shrink: 0;
}

.contact-detail h3 {
  color: #1e40af;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-detail p {
  color: #4b5563;
  line-height: 1.6;
}

.social-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.social-section h3 {
  color: #1e40af;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #3b82f6;
  color: white;
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
  padding: 2rem;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group.floating {
  padding-top: 15px;
}

.form-group label {
  position: absolute;
  top: 20px;
  left: 0;
  color: #6b7280;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group.floating label {
  top: 0;
  font-size: 0.85rem;
  color: #3b82f6;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #d1d5db;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background-color: transparent;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #3b82f6;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.85rem;
  color: #3b82f6;
}

.underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.form-group input:focus ~ .underline,
.form-group textarea:focus ~ .underline {
  width: 100%;
}

.modern-select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #d1d5db;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background-color: transparent;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 1rem;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.submit-button:hover i {
  transform: translateX(3px);
}

/* ===== HERO SECTION ===== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slideshow {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide:not(.active) {
  opacity: 0;
  z-index: 0;
}

.hero-content {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 1.5rem 2.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: white;
  animation: fadeInUp 1s ease-out;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounceIn 1.5s ease infinite;
}

.hero-content .subtitle {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  animation: fadeIn 2s ease;
}

.hero-button {
  display: inline-block;
  background: linear-gradient(45deg, #3b82f6, #1e40af);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hero-button:hover {
  background: linear-gradient(45deg, #1e40af, #3b82f6);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
}

.hero-button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.4s ease;
}

.hero-button:hover::after {
  width: 100%;
}

.slideshow-controls {
  position: absolute;
  top: 78%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
}

.slide-btn {
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slide-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.slide-dots {
  display: flex;
  gap: 0.5rem;
}

.slide-dots span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slide-dots span.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* Highlight Cards */
.highlight-card {
  animation: cardFadeIn 0.5s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ===== MISSION PAGE STYLES ===== */
.mission-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Mission & Vision Container */
.mission-vision-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Mission and Vision Cards */
.mission-card, .vision-card {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border: 3px solid;
    border-image: linear-gradient(135deg, #3b82f6, #1e40af) 1;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mission-card .card-icon, .vision-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-card h2, .vision-card h2 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mission-card p, .vision-card p {
    line-height: 1.6;
    color: #4b5563;
}

/* Values Header */
.values-header {
    text-align: center;
    margin-bottom: 3rem;
}

.values-header h2 {
    font-size: 2.2rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.values-header p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.value-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.value-item .value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-item p {
    line-height: 1.6;
    color: #4b5563;
}

/* CTA Section */
.mission-cta {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.mission-cta p {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mission-cta .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.mission-cta .cta-button:hover {
    transform: translateY(-3px);
}

/* ===== HEAD OFFICER MESSAGE SECTION ===== */
.officer-message {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.officer-message .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.officer-message .section-title {
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  position: relative;
}

.officer-message .section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #3498db;
  margin: 15px auto;
}

.officer-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

.officer-image {
  flex: 1;
  text-align: center;
}

.officer-image img {
  max-width: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.officer-image h3 {
  margin-top: 20px;
  color: #2c3e50;
}

.officer-image p {
  color: #7f8c8d;
  font-style: italic;
}

.officer-content {
  flex: 2;
}

.message-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.message-card h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.message-card p {
  line-height: 1.8;
  color: #34495e;
}

/* Sticky Tabs */
.sticky-tabs {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

/* Enhanced Tab Buttons */
.tab-button {
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.tab-button.active::after,
.tab-button:hover::after {
  transform: translateX(0);
}

.tab-button:hover {
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  color: #ffffff;
}

/* Animated Tab Content */
.tab-content {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animated Activity List */
.activity-list li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: backwards;
}

.activity-list li:nth-child(1) { animation-delay: 0.1s; }
.activity-list li:nth-child(2) { animation-delay: 0.2s; }
.activity-list li:nth-child(3) { animation-delay: 0.3s; }
.activity-list li:nth-child(4) { animation-delay: 0.4s; }
.activity-list li:nth-child(5) { animation-delay: 0.5s; }

.activity-list li:hover {
  transform: translateX(5px);
  background-color: rgba(59, 130, 246, 0.1);
}

/* Glowing See More Button */
.see-more {
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #ffffff;
}

.see-more::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.see-more:hover::after {
  left: 100%;
}

/* Animated Team Member Cards */
.team-member {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: backwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }

.team-member:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.member-photo {
  background: #e0f2fe;
  transition: background 0.3s ease;
}

.team-member:hover .member-photo {
  background: #3b82f6;
}

/* Section Title Animation */
.section-title {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  color: #1e40af;
  animation: fadeInUp 0.5s ease-out;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
}

/* Enhanced Service Card with Gradient Border */
.service-card {
  position: relative;
  overflow: hidden;
  border: none;
  background: white;
  animation: cardFadeIn 0.5s ease-out;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-image: linear-gradient(135deg, #3b82f6, #1e40af) 1;
  z-index: -1;
}

/* Bounce Effect for Service Icons */
.service-icon {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(5deg);
  color: #1e40af;
}

/* Parallax Effect for Header */
.parallax-header {
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.parallax-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.7), rgba(30, 64, 175, 0.7));
  z-index: 1;
}

.parallax-header .header-content,
.parallax-header .header-decoration {
  position: relative;
  z-index: 2;
}

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounceIn {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.news-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.news-image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 0.5rem;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    background: #f5f5f5;
}

.existing-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    position: relative;
    margin-bottom: 1rem;
}

.image-item img {
    max-width: 100px;
    border-radius: 8px;
}

.image-item .delete-button.small {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .subtitle {
    font-size: 1.1rem;
  }
  
  .tab-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tab-button {
    width: 100%;
    text-align: left;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  
  .tab-button.active {
    border-bottom: none;
    border-left-color: #1e40af;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .mission-card,
  .vision-card {
    padding: 1.5rem;
  }
  
  .news-article.featured {
    flex-direction: column;
  }
  
  .news-article.featured .news-image {
    height: 200px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    padding: 3rem 1.5rem;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }
  
  .history-card {
    max-height: 300px;
  }
  
  /* Officer Message Responsive */
  .officer-container {
    flex-direction: column;
  }
  
  .officer-image {
    margin-bottom: 30px;
  }
  
  .officer-image img {
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .cta {
    padding: 2rem 1rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .history-card {
    max-height: 250px;
  }
  
  /* Officer Message Responsive */
  .officer-message {
    padding: 40px 0;
  }
  
  .officer-image img {
    max-width: 200px;
  }
  
  .message-card {
    padding: 20px;
  }
}