/* ==========================================================
   KAELO TECHNICAL & VOCATIONAL COLLEGE ( KAELO TVC) WEBSITE STYLE
   Author: Abraham Nthuka
   Updated: November 2025
========================================================== */

/* =======================
   COLOR VARIABLES
======================= */
:root {
  /* Palette */
  --primary-color: #003366; /* deep navy */
  --primary-600: #00264d;
  --muted: #6b7280;
  --bg: #f7fafc;
  --surface: #ffffff;
  --accent-color: #d4af37; /* gold */
  --success: #16a34a;
  --danger: #dc2626;

  /* Typography */
  --text-dark: #0f172a;
  --text-muted: #475569;

  /* Layout */
  --max-width: 1200px;
  --radius: 10px;
  --shadow-sm: 0 2px 6px rgba(2,6,23,0.06);
  --shadow-md: 0 8px 30px rgba(2,6,23,0.08);
  --border-color: rgba(15,23,42,0.06);
}

/* =======================
   GLOBAL STYLES
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =======================
   NAVIGATION
======================= */
/* =======================
   NAVIGATION FIX
======================= */
.navbar {
  background-color: var(--primary-color);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}

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

.logo img { height: 54px; object-fit: contain; }

.site-name {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.2rem;
  margin: 0;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.18s ease;
}

.nav-link:hover, .nav-link:focus {
  color: var(--primary-color);
  background: var(--accent-color);
  transform: translateY(-2px);
}


/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 6px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    background-color: var(--surface);
    width: 100%;
    text-align: center;
    transition: all 0.22s ease;
    padding: 1rem 0;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    z-index: 1100;
  }
  .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu li { padding: 0.65rem 0; }
  .nav-link { color: var(--text-dark); }
}

/* =======================
   CAROUSEL SECTION
======================= */
.carousel-section {
  width: 100%;
  overflow: hidden;
  background-color: var(--secondary-color);
}

.carousel {
  position: relative;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  height: 500px;
  background-color: #000;
  border-radius: 8px;
}

.carousel-slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  animation: fadeEffect 1.2s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide.active { display: block; }

.carousel-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--secondary-color);
  text-align: center;
  padding: 15px 25px;
  border-radius: 5px;
  max-width: 80%;
}

.carousel-caption h2 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* =======================
   GLOBAL RESPONSIVE UTILITIES
   - Make media and UI elements fluid and stack nicely on small screens
======================== */

/* Fluid images, iframes and videos */
img, picture, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tables and embedded content should scroll on small screens */
.responsive-table {
  width: 100%;
  overflow-x: auto;
}

/* Make primary CTAs more touch-friendly on small screens */
.btn, .button, .cta, .login-btn {
  min-height: 44px;
  line-height: normal;
}

/* Utility: stack buttons full width on very small screens */
@media (max-width: 480px) {
  .btn-full-mobile {
    width: 100% !important;
    display: block !important;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Reduce large hero/carousel height on small screens */
  .carousel {
    height: 320px;
  }

  /* Make card grids stack */
  .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }

  /* Responsive buttons on small screens */
  .btn, .button, .cta, .login-btn, .hero-buttons .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .apply-btn-floating, .graduation-btn {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .carousel { height: 380px; }
  .container { padding-left: 14px; padding-right: 14px; }

  /* Make buttons responsive at tablet breakpoint */
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Responsive CTA styling at tablet */
  .cta, .apply-btn-floating {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
  }
}


.carousel-caption p {
  font-size: 1.1rem;
}

/* Arrows */
.carousel-prev, .carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 14px;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  user-select: none;
  transition: background 0.3s;
  z-index: 5;
}
.carousel-prev:hover, .carousel-next:hover {
  background: rgba(0, 0, 0, 0.7);
}
.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

/* Dots */
.carousel-dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
}
.dot.active { background: var(--accent-color); }
.dot:hover { background: #fff; }

/* Fade Animation */
@keyframes fadeEffect {
  from { opacity: 0.4; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* Mobile Carousel */
@media (max-width: 768px) {
  .carousel { height: 280px; }
  .carousel-caption { bottom: 20px; padding: 10px 15px; }
  .carousel-caption h2 { font-size: 1.3rem; }
  .carousel-caption p { font-size: 0.9rem; }
  .carousel-prev, .carousel-next { font-size: 18px; padding: 10px; }
}

/* =======================
   HERO SECTION
======================= */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d99 100%);
  color: var(--secondary-color);
  padding: 100px 20px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--surface);
  box-shadow: 0 6px 18px rgba(0,38,77,0.12);
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--surface);
}
.btn-secondary:hover { transform: translateY(-2px); }

.btn:focus-visible {
  outline: 3px solid rgba(212,175,55,0.18);
  outline-offset: 3px;
}

.link-btn {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  transition: color 0.3s;
}
.link-btn:hover { color: var(--accent-color); }
.notice-board {
  background-color: #f9f9f9;
  padding: 60px 0;
  text-align: center;
}

.notice-header h1 {
  color: #003366;
  font-weight: 700;
}

.notice-header p {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.hero-buttons {
  margin-top: 15px;
}

.hero-buttons .btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin: 0 8px;
}

.btn-primary {
  background-color: #003366;
  color: #fff;
}

.btn-secondary {
  background-color: #d4af37;
  color: #fff;
}

.news-events {
  margin-top: 50px;
  text-align: left;
}

.news-events h2 {
  color: #003366;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-subtitle {
  color: #555;
  margin-bottom: 25px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-left: 5px solid #003366;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  border-radius: 6px;
  padding: 20px;
}

.news-date {
  background-color: #003366;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  margin-right: 15px;
  flex-shrink: 0;
}

.news-date .day {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}

.news-date .month {
  display: block;
  font-size: 0.9rem;
.news-item {
  display: flex;
  align-items: flex-start;
  background: var(--surface);
  border-left: 6px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-details p {
  color: #555;
  margin: 0 0 10px;
  line-height: 1.4;
}

.read-more {
  color: #d4af37;
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* =======================
   STATS SECTION
======================= */
.stats {
  background-color: var(--bg-light);
  padding: 60px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--accent-color);
}

/* Forms & Inputs (improve visuals) */
.input, input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.input:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(0,38,77,0.08);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
tbody tr:hover { background: rgba(2,6,23,0.03); transform: translateY(-1px); }

/* Card hover */
.program-card, .department-card, .team-card, .stat-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.program-card:hover, .department-card:hover, .team-card:hover, .stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-card h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* =======================
   PROGRAMS SECTION
======================= */
.programs {
  padding: 60px 20px;
}

.programs h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.program-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  border-left: 5px solid var(--accent-color);
  transition: 0.3s;
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.program-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.program-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* =======================
   CTA SECTION
======================= */
.cta {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 60px 20px;
  text-align: center;
}
.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* =======================
   FOOTER
======================= */
.footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
}

/* =======================
   RESPONSIVE ADJUSTMENTS
======================= */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .programs h2, .cta h2 { font-size: 1.8rem; }
}
/* Notice Board Section */
.notice-board {
  background-color: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.notice-board h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 15px;
}

.notice-board p {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.notice-board .hero-buttons .btn {
  margin: 5px;
}
/* HAMBURGER MENU STYLING */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger span {
  background-color: #003366;
  height: 3px;
  width: 100%;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Active (X) animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Show hamburger only on small screens */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background: #fff;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 15px;
    border-bottom: 1px solid #eee;
  }
}
.page-header {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

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

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.about-content {
  padding: 60px 20px;
  background: var(--bg-light);
}

.about-section {
  margin-bottom: 50px;
}

.about-section h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.about-section p {
  color: var(--text-dark);
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.value-card h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}
/* Principal Message */
.principal-message {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.principal-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.principal-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
}

.principal-text {
  max-width: 600px;
  text-align: left;
}

.principal-text h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.principal-title {
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.principal-message-text {
  color: var(--text-dark);
  line-height: 1.7;
}

/* Meet Our Team */
.team {
  background: var(--bg-light);
  padding: 60px 20px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-card h3 {
  color: var(--primary-color);
}

.team-card .position {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card .bio {
  color: var(--text-light);
  font-size: 0.95rem;
}

.no-data {
  color: var(--text-light);
  font-style: italic;
  margin-top: 20px;
}
.download-btn {
    display: inline-block;
    background-color: #003366;
    color: #fff;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
    background-color: #00264d;
    transform: translateY(-3px);
}

.prospectus-desc {
    color: #444;
    font-size: 16px;
    margin-bottom: 15px;
}

/* ===== Academics Page ===== */
.academics-content {
    padding: 60px 0;
    background: #f9fafc;
}

.departments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.department-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.department-card h3 {
    color: #003366;
    margin-bottom: 10px;
}

.department-card p {
    margin: 6px 0;
    color: #555;
}

.department-card ul {
    margin-top: 10px;
    padding-left: 20px;
}

.department-card ul li {
    list-style-type: square;
    margin-bottom: 6px;
    color: #444;
}

.no-data {
    text-align: center;
    color: #777;
    font-style: italic;
}

