:root{
  --patnas-green: #4E7A40;
  --patnas-yellow: #F2EE11;
  --muted: #e7f3e6;
  --dark: #2f5d38;
  --light: #f9fdf8;
  --text: #153;

  --radius-sm: 6px;
  --radius-md: 20px;

  --transition: 280ms ease;

  --top-bar-height: 0px;
  --nav-height: 0px;

  --bs-warning: var(--patnas-yellow) !important;
  --bs-warning-rgb: 242, 238, 17 !important;
}

*{ box-sizing:border-box; }

html, body{
  margin:0; padding:0;
  height:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--top-bar-height) + var(--nav-height) + 10px);
}

body{
  font-family:"Inter", sans-serif;
  color:var(--text);
}
body:not(.home-page) .hero-video {
    height: auto !important;
    min-height: 260px;
}
main{
  padding-top:calc(var(--top-bar-height) + var(--nav-height));
}

.container{
  width:100%;
  max-width:1140px;
  margin:0 auto;
  padding:0 16px;
}

a{
  color:var(--patnas-green);
  text-decoration:none;
  transition:var(--transition);
}
a:hover{
  color:var(--dark);
  text-decoration:underline;
}
.btn-warning{
  background-color:var(--patnas-yellow) !important;
  border-color:var(--patnas-yellow) !important;
  color:var(--dark) !important;
  font-weight:700;
}
.btn-warning:hover{
  background-color:#e6e30f !important;
  border-color:#e6e30f !important;
}
.top-info-bar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:var(--dark);
  color:var(--patnas-yellow);
  padding:6px 0;
  z-index:2000;
  font-size:0.92rem;
}
.top-info-bar a{
  color:var(--patnas-yellow);
}
.site-header{
  position:fixed;
  top:var(--top-bar-height);
  width:100%;
  background:var(--patnas-green);
  box-shadow:0 6px 20px rgba(0,0,0,0.13);
  z-index:1990;
}

.navbar{
  padding:14px 0;
}

.logo-img{
  height:85px;
  width:85px;
  border-radius:50%;
  object-fit:cover;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-title{
  font-size:1.45rem;
  font-weight:800;
  color:#fff;
}
.brand-slogan{
  font-size:.85rem;
  margin-top:2px;
  font-style:italic;
  color:var(--patnas-yellow);
}

.navbar-nav{
  gap:5px;
}

.nav-link{
  color:#fff !important;
  font-weight:600;
  padding:8px 12px;
  border-radius:8px;
  line-height: 1;
}

.nav-link:hover,
.nav-link.active{
  background:rgba(255,255,255,0.08);
  color:var(--patnas-yellow) !important;
}

.dropdown-menu{
  margin-top:8px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.1);
}
.dropdown-item:hover{
  background:var(--muted);
}

.hero-video{
  position:relative;
  height:calc(100vh - (var(--top-bar-height) + var(--nav-height)));
  overflow:hidden;
  background:var(--patnas-green);
  color:#fff;
}

.hero-video .bg-video,
.hero-video .video-overlay{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-video .video-overlay{
  background:rgba(0,0,0,0.25);
  z-index:1;
}

.hero-video .container{
  position:relative;
  height:100%;
  padding-bottom:40px;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-end;
}

.hero-title{
  font-size:clamp(2.2rem,4vw,3.6rem);
  font-weight:800;
  text-align:right;
}

.hero-lead{
  font-size:clamp(1rem,1.5vw,1.3rem);
  opacity:.9;
  text-align:right;
}

@media (max-width:992px){
  .hero-video{
    height:calc(75vh - (var(--top-bar-height) + var(--nav-height)));
  }
  .hero-video .container{
    align-items:center;
    text-align:center;
  }
}
@media(max-width:768px){
  .hero-video{
    height:260px;
  }
  .logo-img{
    height:58px;
    width:58px;
  }
}

@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
  }

  .navbar .dropdown-menu {
    margin-top: 0;
  }
}

.contact-hero-section{
  background: linear-gradient(135deg, var(--patnas-green), var(--dark));
  padding: 70px 0;
  text-align: center;
  color: #fff;
}

.contact-title{
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--patnas-yellow);
}

.contact-card{
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
}
.contact-wrapper {
  max-width: 960px;   /* keeps it tight & centered */
}
@media (min-width: 992px) {
  .contact-wrapper .row {
    align-items: start;
  }

  .info-card {
    height: 100%;
  }
}

.govern-img {
  width: 150px; 
  height: 150px;
  object-fit: cover;
  border: 1.5px solid var(--patnas-green);
}

.govern-card {
 box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  object-fit: cover;
  background: #fff;
  transition: .25s ease;
  height: 100%; 
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.govern-card:hover {
  transform: translateY(-6px);
}

.product-hero-section {
  background: linear-gradient(135deg, var(--patnas-green), var(--dark));
  padding: 70px 0 60px;
  color: #fff;
}

.product-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--patnas-green);
}

.product-subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  color: var(--patnas-green);
  margin: 0;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  padding: 25px;
  border-top: 5px solid var(--patnas-green);
  transition: .25s ease;
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.12);
}

.product-card h5 {
  color: var(--patnas-green);
  font-weight: 700;
}

.product-card p {
  color: #555;
  font-size: 0.95rem;
}

.icon-box {
  height: 55px;
  width: 55px;
  background: var(--patnas-green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 12px;
}
.icon-box i {
  color: var(--patnas-yellow);
  font-size: 1.5rem;
}

.site-footer {
  background: linear-gradient(180deg, var(--patnas-green), var(--dark));
  color: var(--light);
  padding: 55px 0 20px;
}

.site-footer h5 {
  color: var(--patnas-yellow);
  font-weight: 700;
}

.site-footer p,
.site-footer a,
.site-footer small {
  color: #f1f7ee !important;
}

.site-footer a:hover {
  color: var(--patnas-yellow) !important;
}
.section-separator {
  width: 100%;
  height: 1.1px;
  background:var(--patnas-green);
  margin: 40px auto;
  border-radius: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 15px;
  margin-top: 20px;
}

.footer-bottom small {
  color: var(--patnas-yellow) !important;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.py-5.fade-up {
  background: var(--patnas-yellow) !important;
   padding-bottom: 20px !important
   margin-bottom: 0 !important;
}
.info-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-left: 5px solid var(--patnas-green);
}

.custom-list .list-group-item {
  border: none;
  border-bottom: 1px solid #e7e7e7;
  padding: 12px 5px;
}

.custom-list .list-group-item:last-child {
  border-bottom: none;
}

.info-block h3 {
  color: var(--patnas-green);
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;       /* distance from bottom */
  right: 25px;        /* distance from RIGHT (your requirement) */
  width: 60px;t
  height: 60px;
  background: #25D366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  z-index: 4000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform .25s ease, background .25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  background: #1ebe5a;
  color: #fff !important;
}
.staff-card {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: .25s ease;
  height: 100%;         /* makes all cards equal height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.staff-card img {
  width: 150px; 
  height: 150px;
  object-fit: cover;
}

@media (min-width: 992px) {

  /* Set maximum width of inner content */
  .contact-wrapper {
    max-width: 900px !important;
    margin: 0 auto;
  }

  /* Make columns equal height */
  .contact-wrapper .info-card {
    height: 100%;
  }
  .branch-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}


  .branch-card {
    padding: 8px 0;
  }

  .contact-wrapper .row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }


  .contact-wrapper .col-lg-6 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}
.contact-page .container {
    max-width: 100% !important;
    padding-left: 25px;
    padding-right: 25px;
}

@media (min-width: 992px) {
   .navbar .dropdown-menu {
       position: absolute !important;
       top: 100%;
       left: 0;
       z-index: 3000;
   }
}
.navbar .dropdown-menu {
  background: var(--patnas-green) !important;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
}

.navbar .dropdown-menu .dropdown-item {
  color: var(--light) !important;
  font-weight: 500;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background: rgba(255,255,255,0.15) !important;
  color: var(--patnas-yellow) !important;
}
.about-section {
    position: relative;
    padding-top: 60px;
}

.about-watermark {
    position: absolute;
    top: 60px;
    left: 40%;
    transform: translateX(-50%);
    width: 300px;      
    opacity: 0.11;      
    z-index: 0;
    pointer-events: none; 
}

.about-section h2,
.about-section p,
.about-section ul {
    position: relative;
    z-index: 1;
}

.about-images {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.building-img {
    width: 48%;
    max-width: 420px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    object-fit: cover;
}
.branch-card {
    border-bottom: 2px solid rgba(78, 122, 64, 0.25); /* patnas green, 25% opacity */
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.branch-card:last-child {
    border-bottom: none; /* remove line after the last one */
}

.faq-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    cursor: pointer;
}

.faq-question {
    color: var(--patnas-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-answer {
    color: #333;
    display: none;
    padding-top: 6px;
}

.faq-answer.show {
    display: block;
}
.faq-yellow {
  color: var(--patnas-yellow) !important;
}
.faq-yellow:hover {
  color: #fff !important;
  text-decoration: underline;
}
.dept-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.news-img {
    width: 100%;
    height: 250px;          
    object-fit: cover;      
    border-radius: 8px;     
    display: block;
}

.news-title-link {
    text-decoration: none;
    color: var(--patnas-green);
    transition: .25s ease;
}
.news-title-link:hover {
    color: #333;
    text-decoration: underline;
}
.mpesa-step .step-icon {
  width: 38px;
  height: 38px;
  background: #3f51b5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mpesa-step {
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  .top-info-bar .small {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }

  .top-info-bar .faq-yellow {
    display: block;
    margin-top: 4px;
  }
}

.gallery-box {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-img {
    width: 100%;
    height: auto;       
    display: block;
    object-fit: cover;  
    border-radius: 10px;
}
@media (max-width: 768px) {
    .gallery-img {
        object-fit: contain !important;  
        max-height: none !important;     
        width: 100%;
        height: auto;                  
        background: #fff;                
    }
}

@media (max-width: 480px) {
    .gallery-img {
        object-fit: contain !important;
        max-height: none !important;
    }
}


}




