/* ========================================
KADSWAC - UPDATED & CLEANED STYLESHEET
======================================== */

/* =======================
VARIABLES
======================= */
:root {
  --primary: #0066cc;
  --primary-dark: #004c99;
  --secondary: #00a8cc;
  --light: #f0f8ff;
  --dark: #333;
  --gray: #777;
  --white: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* =======================
RESET & BASE
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =======================
BUTTONS
======================= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* =======================
SECTIONS
======================= */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary);
}

.section-title h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

/* =======================
HEADER TOP
======================= */
.header-top {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 10px 0;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

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

.contact-info,
.emergency-contact {
  display: flex;
  gap: 18px;
}

.contact-info span,
.emergency-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  backdrop-filter: blur(3px);
  transition: var(--transition);
}

.contact-info span:hover,
.emergency-contact span:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* =======================
MAIN HEADER
======================= */
.header-main {
  background: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

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

.logo-section img {
  height: 95px;
  border-radius: 6px;
  border: 3px solid var(--primary);
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.17);
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.brand .tagline {
  font-size: 0.9rem;
  color: var(--gray);
}

nav ul {
  display: flex;
  gap: 25px;
}

nav a {
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  bottom: -4px;
  transition: width 0.3s ease;
}

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

.mobile-menu-btn { display: none; }

/* =======================
HERO SLIDESHOW
======================= */
.hero {
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  animation: heroSlides 40s infinite ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 3rem;
  text-shadow: 0 5px 16px rgba(0,0,0,0.7);
}

.hero-content p {
  font-size: 1.2rem;
  color: #f5f5f5;
}

@keyframes heroSlides {
  0%   { background-image: url('../images/slide1.jpg'); }
  20%  { background-image: url('../images/slide2.jpg'); }
  40%  { background-image: url('../images/slide3.jpg'); }
  60%  { background-image: url('../images/slide4.jpg'); }
  80%  { background-image: url('../images/slide5.jpg'); }
  100% { background-image: url('../images/slide1.jpg'); }
}

/* =======================
ABOUT - CORPORATION
======================= */
.about-corp {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  line-height: 1.8;
  box-shadow: var(--shadow);
  text-align: justify;
}

/* =======================
MISSION / VISION / CORE VALUES
======================= */
.mission-vision-core {
  background: transparent;
  padding: 40px 0;
}

.mission-vision-core .grid-2 {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.mission-vision-core .mission,
.mission-vision-core .vision,
.mission-vision-core .core-values {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  flex: 1 1 300px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: var(--transition);
  border-left: 6px solid var(--primary);
  min-width: 260px;
  display: flex;
  flex-direction: column;
}

.mission-vision-core h3 {
  margin-bottom: 12px;
  color: var(--primary-dark);
}

/* =======================
PRIORITY AREAS
======================= */
.priority-areas .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 25px;
}

.area-card {
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.area-card:hover { transform: translateY(-5px); }

.area-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* =======================
MD WELCOME SECTION
======================= */
.welcome-md .welcome-flex {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.md-image img {
  width: 340px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(0,0,0,0.25);
  object-fit: cover;
}

.md-welcome { flex: 1; }

.md-welcome h2 {
  color: var(--primary-dark);
  font-size: 1.9rem;
  margin-bottom: 15px;
}

.md-welcome p {
  line-height: 1.8;
  text-align: justify;
  white-space: pre-line;
}

/* =======================
DEPARTMENTS ACCORDION
======================= */
.departments .accordion {
  max-width: 900px;
  margin: auto;
}

.accordion-item {
  background: #fff;
  margin-bottom: 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-left: 6px solid var(--primary);
}

.accordion-header {
  padding: 18px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header.active {
  background: var(--primary-dark);
}

.accordion-body {
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  line-height: 1.7;
  transition: height 0.35s ease, padding 0.35s ease, opacity 0.35s ease;
  border-left: 6px solid var(--primary);
  background: #f9f9f9;
  word-wrap: break-word;
  white-space: pre-line;
}

.accordion-body.open {
  padding: 20px;
  opacity: 1;
}

.accordion-item.open {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =======================
FOOTER
======================= */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 40px;
}

.footer-bottom {
  margin-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding-top: 18px;
}

/* =======================
RESPONSIVE (900px)
======================= */
@media (max-width: 900px) {
  .welcome-md .welcome-flex {
    flex-wrap: wrap;
    text-align: center;
  }
  .md-image img {
    width: 100%;
    max-width: 380px;
  }

  .mission-vision-core .grid-2 {
    gap: 18px;
  }
}

/* =======================
RESPONSIVE (MOBILE MENU FIX)
======================= */
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 9999;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav a {
    font-size: 1rem;
    color: #333;
    display: block;
    width: 100%;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-dark);
  }

  .hero-content h2 {
    font-size: 2.3rem;
  }

  .welcome-md .welcome-flex {
    flex-direction: column;
  }
}
