/* --------------------------------------------- */
/*          AG-WEB CSS       */
/* --------------------------------------------- */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

 /* html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}*/

main {
  flex: 1 0 auto; /* makes the main content take available space */
}

    /*🔹 Custom Styling*/

/* --- Topbar --- */
.topbar {
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  
}
.hover-link {
  transition: all 0.3s ease;
}
.hover-link:hover {
  color: #ffc107; /* Bright hover color */
  text-decoration: underline;
}
.topbar .btn-outline-light {
  border-color: rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}
.topbar .btn-outline-light:hover {
  background: #fff;
  color: #000;
}

/* --- Logo Bar --- */
.logo-bar {
  background: linear-gradient(90deg, #eaf4ff, #cde1ff);
  border-bottom: 3px solid #0d6efd;
}
.logo-bar h5 {
  font-size: 0.95rem;
  letter-spacing: 0.6px;
}
.logo-bar h4 {
  font-size: 1.6rem;
  letter-spacing: 1px;
}
.logo-bar img {
  max-height: 65px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.logo-bar img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.heading-official {
  background: linear-gradient(90deg, #0d47a1, #1976d2, #42a5f5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
}



/*nav style*/


/* Gradient text for logo & titles */
/*.text-gradient {
  background: linear-gradient(90deg, #032257ff, #f0b429);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}*/



/* Navbar links */
.navbar .nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.6rem 1rem;
  color: #02265f;
  transition: color 0.3s ease;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #0b3d91, #f0b429);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}



/* Mega menu */
.mega-menu {
  min-width: 600px;
  border-radius: 1rem;
}
.mega-menu h6 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dropdown-menu .dropdown-item {
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  color: #02265fff;
  transition: background 0.3s ease, color 0.2s ease;
}
.dropdown-menu .dropdown-item:hover {
  background: rgba(13, 110, 253, 0.08);
  color: #0b3d91;
}




/* Icon animation */
.icon-hover {
  
  transition: transform 0.3s ease, color 0.3s ease;
}
.dropdown-item:hover .icon-hover {
  transform: scale(1.2) rotate(5deg);
  color: #0b3d91 !important;
}

/* Mobile tweaks */
@media (max-width: 992px) {
  .mega-menu {
    min-width: 100%;
    border-radius: 0.5rem;
  }
}

/*services cards*/

.text-gradient {
  background: linear-gradient(90deg, #0b3d91, #f0b429);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card {
  border-radius: 1rem;
  transition: all 0.35s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}

/* Gradient button */
.btn-gradient {
  background: linear-gradient(90deg, #0b3d91, #f0b429);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.45rem 1.2rem;
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
/* mwanga wa sheria na kalenda*/

/* Section Marker & Title */
.section-marker {
  width: 8px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, #0b3d91, #f0b429);
}
.section-title-text {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0b3d91;
}

/* Premium Cards */
.card-premium {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.shadow-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}
.card-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #0b3d91, #f0b429, #d69a00);
  background-size: 200% 200%;
  animation: borderFlow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* Icon */
.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, #0b3d91, #092f6e);
  box-shadow: 0 8px 20px rgba(11,61,145,0.35);
  transition: all 0.4s ease;
}

.icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: #f9fafc;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.card-premium:hover .icon-wrapper {
  background: linear-gradient(135deg, #f0b429, #d69a00);
  transform: scale(1.2) rotate(-6deg);
}

/* Links */
.link-arrow {
  color: #0b3d91;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}
.link-arrow::after {
  content: " →";
  transition: transform 0.3s ease;
}
.link-arrow:hover {
  color: #d69a00;
}
.link-arrow:hover::after {
  transform: translateX(6px);
}

/* Buttons */
.btn-outline-theme {
  border: 2px solid #0b3d91;
  color: #0b3d91;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline-theme:hover {
  background: linear-gradient(90deg, #0b3d91, #092f6e);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Gradient Header for Kalenda */
.bg-gradient-theme {
  background: linear-gradient(90deg, #0b3d91, #f0b429);
}

/* List Group */
.list-group-item {
  padding: 0.9rem 1rem;
  border: none;
  border-bottom: 1px solid #f1f1f1;
  transition: all 0.3s ease;
}
.list-group-item:hover {
  background: rgba(240,180,41,0.1);
}
/* HABARI NA MATUKIO SECTION */

/* Section Title */
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0b3d91;
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.section-title h2::after {
  content: "";
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #0b3d91, #f0b429);
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 4px;
}
.section-title p {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Buttons */
.btn-theme {
  background: linear-gradient(90deg, #0b3d91, #f0b429);
  color: #fff;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all 0.4s ease;
}
.btn-theme:hover {
  background: linear-gradient(90deg, #f0b429, #d69a00);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* News Card */
.news-card {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.shadow-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Image Wrapper */
.news-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Ensures responsive scaling */
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
}
.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.news-card:hover .news-img-wrapper img {
  transform: scale(1.08);
}

/* Text */
.news-card h5 {
  font-size: 1.05rem;
  color: #0b3d91;
  margin-bottom: 0.5rem;
}
.news-card p {
  color: #6c757d;
  font-size: 0.85rem;
  flex-grow: 1;
}

/* Footer / Date Row */
.news-card small i {
  color: #0b3d91;
}

/* Responsive */
@media (max-width: 992px) {
  .news-img-wrapper {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 768px) {
  .news-img-wrapper {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 575px) {
  .news-img-wrapper {
    aspect-ratio: 1 / 1; /* Square ratio for small screens */
  }
}


/* tafuta huduma na bodi ya tangazo*/

/* Style Enhancements */
.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0b3d91, #f0b429);
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 4px;
}
.btn-theme {
  background: linear-gradient(90deg, #0b3d91, #6e6c09ff);
  color: #fff;
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
}
.btn-theme:hover {
  background: linear-gradient(90deg, #f0b429, #d69a00);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-theme-outline {
  border: 2px solid #0b3d91;
  color: #0b3d91;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  transition: all 0.3s ease;
}
.btn-theme-outline:hover {
  background: #0b3d91;
  color: #fff;
}
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 1.5rem rgba(0,0,0,0.12);
}

/*footer start*/
/* Gradient background */
/* Footer background with overlay */
footer {
  flex-shrink: 0; /* prevents footer from shrinking */
}
.footer-bg {
  background: url('../img/jengo.JPG') no-repeat center center;
  background-size: cover;
  position: relative;
}
/* Semi-transparent overlay so text is readable */
.footer-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 16, 76, 0.7); /* blue/black overlay */
  z-index: 1;
}

/* Make sure footer content stays above overlay */
.footer-bg .container {
  position: relative;
  z-index: 2;
}
/* Glow icons */
.glow-icon {
  text-shadow: 0 0 8px #ffc107aa, 0 0 16px #ffc10766;
}

/* Social icons */
.social-icon {
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-icon:hover {
  transform: scale(1.2);
  color: #fff;
}

/* Social brand colors with glow */
.social-icon.facebook:hover { background-color: #1877f2; box-shadow: 0 0 12px #1877f2; }
.social-icon.twitter:hover { background-color: #000; box-shadow: 0 0 12px #000; }
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); box-shadow: 0 0 12px #fd5949; }
.social-icon.linkedin:hover { background-color: #0a66c2; box-shadow: 0 0 12px #0a66c2; }
.social-icon.youtube:hover { background-color: #ff0000; box-shadow: 0 0 12px #ff0000; }


/* Link glow hover */
.link-glow:hover {
  color: #ffc107 !important;
  text-shadow: 0 0 8px #ffc10755;
  transition: all 0.3s;
}

/* Dark form input */
.form-control-dark {
  background-color: #2c2c2c;
  border: 1px solid #444;
  color: #f8f9fa;
}
.form-control-dark:focus {
  border-color: #ffc107;
  box-shadow: 0 0 6px #ffc107aa;
}

/* Glow button */
.glow-btn {
  box-shadow: 0 0 8px #ffc10766;
  transition: all 0.3s;
}
.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px #ffc107aa, 0 0 24px #ffc10755;
}

/* Animated background circles */
.footer-glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  z-index: 1;
}
.circle1 {
  width: 200px; height: 200px;
  background: #ffc107;
  top: -50px; left: -50px;
  animation: floatCircle 8s ease-in-out infinite alternate;
}
.circle2 {
  width: 300px; height: 300px;
  background: #ff9800;
  bottom: -100px; right: -100px;
  animation: floatCircle 10s ease-in-out infinite alternate-reverse;
}
@keyframes floatCircle {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(20px) rotate(45deg); }
  100% { transform: translateY(0) rotate(90deg); }
}

/* Scroll fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/*footer end*/


.breadcrumb .breadcrumb-link {
  font-weight: 500; /* or 600 if you prefer */
  position: relative;
  padding: 0.6rem 1rem;
  color: #00008B !important; /* override Bootstrap */
  transition: color 0.3s ease, background 0.3s ease;
}

.breadcrumb .breadcrumb-link:hover {
  color: #f0b429 !important;
  background-color: rgba(240, 180, 41, 0.1);
}

/* Floating shapes */
.floating-shape { position:absolute; border-radius:50%; opacity:0.15; animation: float 15s linear infinite; z-index:1;}
.shape1 { width:200px; height:200px; background:#0d6efd; top:10%; left:5%; animation-duration:20s;}
.shape2 { width:150px; height:150px; background:#6fa8dc; top:30%; right:10%; animation-duration:25s;}
.shape3 { width:100px; height:100px; background:#0d6efd; bottom:15%; left:15%; animation-duration:18s;}
.shape4 { width:180px; height:180px; background:#6fa8dc; bottom:10%; right:20%; animation-duration:22s;}
@keyframes float { 0% {transform: translateY(0) rotate(0deg);} 50% {transform: translateY(-20px) rotate(180deg);} 100% {transform: translateY(0) rotate(360deg);} }

