/* ==========================================================================
   Custom Site CSS (Health Department Rewari)
   Extracted from inline <style> blocks (home page, header, footer) so the
   same rules apply consistently across ALL front-end pages, not just home.
   ========================================================================== */

/* ---- Global page-title / team block tweaks (was in header.php) ---- */
.page-title .content-box {
    padding: 50px 0;
}
.team-block-three .lower-content {
    margin: 0 0px;
    padding: 10px 5px;
}

/* ---- Home page: hero, about, notices/news, stay-home ---- */
:root{
    --rw-primary:#0f7a5c;
    --rw-primary-dark:#0a5a43;
    --rw-accent:#02c06d;
    --rw-dark:#122220;
    --rw-text-muted:#667572;
    --rw-radius:14px;
}

/* ===== HERO SLIDER ===== */
.rw-hero{
    position:relative;
    width:100%;
    overflow:hidden;
    background:#0f2620;
}
.rw-hero .swiper-container{
    width:100%;
    height:auto;
    --rw-media-h: clamp(220px, 42vw, 480px);
}
.rw-hero .swiper-slide{
    position:relative;
    width:100%;
    display:flex;
    flex-direction:column;
}
.rw-hero .rw-slide-media{
    position:relative;
    width:100%;
    height:var(--rw-media-h);
    background:linear-gradient(135deg, #0f2620 0%, #163a2f 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.rw-hero .rw-slide-media img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
}
.rw-hero .rw-slide-caption{
    background:#fff;
    padding:22px clamp(20px,5vw,60px);
    display:flex;
    flex-direction:column;
    gap:8px;
}
.rw-hero .rw-slide-caption .rw-tag{
    display:inline-block;
    background:var(--rw-accent);
    color:#fff;
    font-size:11px;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
    padding:5px 12px;
    border-radius:30px;
    width:fit-content;
}
.rw-hero .rw-slide-caption h2{
    font-size:clamp(18px, 2.4vw, 28px);
    font-weight:700;
    line-height:1.3;
    margin:2px 0 0;
    color:var(--rw-dark);
}
.rw-hero .rw-slide-caption p{
    font-size:14px;
    line-height:1.6;
    color:var(--rw-text-muted);
    margin:0;
    max-width:760px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.rw-hero .rw-slide-caption a.rw-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:fit-content;
    background:var(--rw-primary);
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    padding:10px 22px;
    border-radius:30px;
    margin-top:4px;
    transition:background .25s ease, transform .25s ease;
}
.rw-hero .rw-slide-caption a.rw-btn:hover{
    background:var(--rw-primary-dark);
    transform:translateY(-2px);
    color:#fff;
}
.rw-hero .rw-hero-nav{
    position:absolute;
    top:calc(var(--rw-media-h) / 2);
    transform:translateY(-50%);
    z-index:3;
    width:40px;
    height:40px;
    border-radius:50%;
    background:rgba(255,255,255,0.15);
    border:1px solid rgba(255,255,255,0.4);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background .25s ease;
    font-size:15px;
}
.rw-hero .rw-hero-nav:hover{ background:rgba(255,255,255,0.32); }
.rw-hero .rw-hero-prev{ left:16px; }
.rw-hero .rw-hero-next{ right:16px; }
.rw-hero .rw-hero-pagination{
    position:absolute;
    z-index:3;
    top:calc(var(--rw-media-h) - 26px);
    left:0;
    right:0;
    display:flex;
    justify-content:center;
    gap:8px;
}
.rw-hero .rw-hero-pagination span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:rgba(255,255,255,0.5);
    cursor:pointer;
    transition:all .25s ease;
}
.rw-hero .rw-hero-pagination span.active{
    background:#fff;
    width:22px;
    border-radius:6px;
}
@media (max-width:767px){
    .rw-hero .swiper-container{ --rw-media-h: clamp(200px, 55vw, 320px); }
    .rw-hero .rw-slide-caption{ padding:16px 18px 20px; }
    .rw-hero .rw-slide-caption p{ -webkit-line-clamp:3; }
    .rw-hero .rw-hero-nav{ width:34px; height:34px; font-size:13px; }
}

/* ===== ABOUT / WELCOME ===== */
.rw-about{ padding:60px 0; }
.rw-about .auto-container,
.rw-notice-section .auto-container{
    padding-left:20px;
    padding-right:20px;
}
.rw-about .rw-about-card{
    background:#fff;
    border-radius:var(--rw-radius);
    padding:4px 2px;
}
.rw-about h4{
    font-size:clamp(20px,2.6vw,28px);
    font-weight:700;
    color:var(--rw-dark);
    margin-bottom:14px;
}
.rw-about .rw-text{
    color:var(--rw-text-muted);
    text-align:justify;
    line-height:1.8;
    margin-bottom:18px;
}
.rw-about a.rw-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--rw-primary);
    font-weight:600;
    text-decoration:none;
}
.rw-about .rw-about-media{
    border-radius:var(--rw-radius);
    overflow:hidden;
    box-shadow:0 12px 30px rgba(15,122,92,0.15);
}
.rw-about .rw-about-media img{
    width:100%;
    height:100%;
    /* object-fit:cover; */
    display:block;
    /* aspect-ratio:4/3; */
}

/* ===== NOTICES / STAY HOME ===== */
.rw-notice-section{ padding:0 0 60px; }
.rw-notice-card{
    background:#fff;
    border-radius:var(--rw-radius);
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.07);
    height:100%;
    display:flex;
    flex-direction:column;
}
.rw-notice-head{
    background:linear-gradient(135deg, var(--rw-primary) 0%, var(--rw-accent) 100%);
    color:#fff;
    padding:18px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.rw-notice-head h4{ margin:0; font-size:19px; font-weight:700; }
.rw-notice-head .rw-notice-head-right{
    display:flex;
    align-items:center;
    gap:14px;
}
.rw-notice-head i.fa-bullhorn{ font-size:20px; opacity:.9; }
.rw-notice-head .rw-view-all{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:rgba(255,255,255,0.18);
    border:1px solid rgba(255,255,255,0.55);
    color:#fff;
    text-decoration:none;
    font-size:12.5px;
    font-weight:600;
    padding:6px 14px;
    border-radius:30px;
    white-space:nowrap;
    transition:background .25s ease;
}
.rw-notice-head .rw-view-all:hover{
    background:rgba(255,255,255,0.32);
    color:#fff;
}
.rw-notice-list{
    list-style:none;
    margin:0;
    padding:6px 0;
    max-height:420px;
    overflow-y:auto;
}
.rw-notice-list::-webkit-scrollbar{ width:6px; }
.rw-notice-list::-webkit-scrollbar-thumb{ background:#cfe4dd; border-radius:6px; }
.rw-notice-list li{
    border-bottom:1px solid #f0f2f1;
}
.rw-notice-list li:last-child{ border-bottom:none; }
.rw-notice-list li a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:13px 22px;
    color:#2b3a37;
    text-decoration:none;
    font-size:14.5px;
    line-height:1.4;
    transition:background .2s ease;
}
.rw-notice-list li a:hover{ background:#f3f9f6; color:var(--rw-primary-dark); }
.rw-notice-list li a i.fa-angle-double-right{ color:var(--rw-accent); flex-shrink:0; }
.rw-notice-list li a i.fa-file-pdf-o{ color:#dc3545; flex-shrink:0; }
.rw-notice-list li a img{ width:26px; flex-shrink:0; margin-left:auto; }
.rw-notice-empty{ padding:22px; color:var(--rw-text-muted); font-size:14px; }

.rw-stayhome{
    background:#fff;
    border-radius:var(--rw-radius);
    padding:34px 30px;
    height:100%;
    box-shadow:0 10px 30px rgba(0,0,0,0.07);
}
.rw-stayhome h4{
    font-size:clamp(19px,2.4vw,26px);
    font-weight:700;
    color:var(--rw-dark);
    margin-bottom:14px;
}
.rw-stayhome .rw-text{
    color:var(--rw-text-muted);
    text-align:justify;
    line-height:1.8;
}

@media (max-width:991px){
    .rw-about, .rw-notice-section{ padding-top:40px; padding-bottom:40px; }
    .rw-about .rw-about-media{ margin-top:26px; }
}

@media (max-width:575px){
    .rw-about .auto-container,
    .rw-notice-section .auto-container{ padding-left:16px; padding-right:16px; }
    .rw-stayhome{ padding:24px 20px; }
    .rw-notice-head{ padding:14px 16px; }
    .rw-notice-head h4{ font-size:17px; }
    .rw-notice-head .rw-view-all{ padding:5px 11px; font-size:11.5px; }
    .rw-notice-list li a{ padding:12px 18px; }
}

/* ---- Home page: leadership message block ---- */
.rw-leadership{ padding:60px 0; background-color:#f9f9f9; }
.rw-leadership .sec-title h2{
    font-size:clamp(22px,3vw,32px);
    font-weight:700;
}
.rw-leadership-card{
    background:#fff;
    padding:clamp(24px,4vw,35px) clamp(18px,4vw,30px);
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    transition:transform .3s ease;
    text-align:center;
}
.rw-leadership-card:hover{ transform:translateY(-4px); }
.rw-leadership-card img{
    width:130px;
    height:130px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #f0f0f0;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}
.rw-leadership-card h4{
    margin:18px 0 4px;
    font-size:clamp(18px,2.2vw,22px);
}
.rw-leadership-card h4 a{ color:#222; text-decoration:none; }
.rw-leadership-card .rw-designation{
    font-size:13px;
    color:#888;
    margin-bottom:16px;
    letter-spacing:.5px;
    text-transform:uppercase;
}
.rw-leadership-card .rw-read-more{
    display:inline-block;
    padding:8px 22px;
    border:1px solid #333;
    border-radius:30px;
    color:#333;
    text-decoration:none;
    font-size:14px;
    transition:all .3s ease;
}
.rw-leadership-card .rw-read-more:hover{
    background:var(--rw-primary, #0f7a5c);
    border-color:var(--rw-primary, #0f7a5c);
    color:#fff;
}
@media (max-width:575px){
    .rw-leadership{ padding:40px 0; }
    .rw-leadership-card img{ width:110px; height:110px; }
}

/* ---- Home page: custom 5-column grid helper ---- */
  .custom-col-2-5 {
      flex: 0 0 20%;
      max-width: 20%;
  }

  @media (max-width: 1199.98px) {
      .custom-col-2-5 {
          flex: 0 0 50%; /* Adjust for smaller screens */
          max-width: 50%;
      }
  }

/* ---- Home page: simple modal popup ---- */
/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    /* Hidden by default */
}

/* Modal Container */
.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
    padding: 20px;
    z-index: 1001;
    display: none;
    /* Hidden by default */
}

/* Modal Header */
.modal-header {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* Modal Body */
.modal-body {
    text-align: center;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* ---- Home page: gallery grid + CTA section ---- */
/* ===== GALLERY RESPONSIVE OVERRIDE ===== */
.gallery-section-two .fluid-container{
    padding-left:0;
    padding-right:0;
}
.gallery-section-two .wrapper-box{
    display:flex;
    flex-wrap:wrap;
}
.gallery-section-two .gallery-block-two{
    width:25%;
    box-sizing:border-box;
    padding:4px;
}
.gallery-section-two .gallery-block-two .image img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    border-radius:8px;
}
@media (max-width:991px){
    .gallery-section-two .gallery-block-two{ width:33.333%; }
    .gallery-section-two .gallery-block-two .image img{ height:220px; }
}
@media (max-width:767px){
    .gallery-section-two .fluid-container{ padding-left:14px; padding-right:14px; }
    .gallery-section-two .gallery-block-two{ width:50%; padding:6px; }
    .gallery-section-two .gallery-block-two .image img{ height:190px; }
}
@media (max-width:480px){
    .gallery-section-two .fluid-container{ padding-left:16px; padding-right:16px; }
    .gallery-section-two .gallery-block-two{ width:100%; padding:8px 0; }
}

/* ===== CTA SECTION ===== */
.rw-cta{
    position:relative;
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    padding:clamp(50px,8vw,90px) 20px;
    text-align:center;
}
.rw-cta::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(10,25,20,0.65);
}
.rw-cta .rw-cta-inner{
    position:relative;
    z-index:2;
    max-width:700px;
    margin:0 auto;
}
.rw-cta h1{
    color:#fff;
    font-size:clamp(24px,4vw,40px);
    font-weight:700;
    margin-bottom:24px;
}
.rw-cta .rw-cta-btn{
    display:inline-block;
    background:var(--rw-accent,#02c06d);
    color:#fff;
    text-decoration:none;
    font-weight:600;
    padding:14px 34px;
    border-radius:30px;
    transition:background .25s ease, transform .25s ease;
}
.rw-cta .rw-cta-btn:hover{
    background:var(--rw-primary-dark,#0a5a43);
    transform:translateY(-2px);
    color:#fff;
}

/* ---- Floating social icons (was in footer.php) ---- */
.social-icons-top {
    position: fixed;
    top: 250px;
    width: 40px;
    z-index: 8;
    right: -100px;
    transition: right 0.5s ease;
}

.social-icons-top.rightSide {
    right: 0;
}

.social-icons-top.rightSide,
.social-icons-top.leftSide ul li .content>a {
    right: 0;
}

.social-icons-top.leftSide ul li .content {
    padding: 0px 46px 0px 10px;
}

.social-icons-top.rightSide ul li .content {
    padding: 0px 10px 0px 46px;
}

.social-icons-top.leftSide ul li:hover {
    left: 100px;
}

.social-icons-top.rightSide ul li:hover {
    left: -100px;
}

.social-icons-top.leftSide ul li,
.social-icons-top.rightSide ul li .content>a,
.social-icons-top.rightSide ul li,
.social-icons-top.rightSide ul li .content>a {
    left: 0;
}


.social-icons-top.leftSide ul li a,
.social-icons-top.leftSide ul li p a {
    text-align: left;
}

.social-icons-top.rightSide ul li a,
.social-icons-top.rightSide ul li p a {
    text-align: left;
}

.social-icons-top ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.social-icons-top ul li {
    width: 140px;
    margin-bottom: 0;
    position: relative;
    transition: all .5s ease 0s;
}

.social-icons-top ul li.call {
    background-color: #4CAF50;
    /* New color for Call (green) */
}

.social-icons-top ul li.whatsapp {
    background-color: #25D366;
    /* New color for WhatsApp (green) */
}

.social-icons-top ul li.deposit {
    background-color: #3f51b5;
}

.social-icons-top ul li.facebook {
    background-color: #4267B2;
}

.social-icons-top ul li.telegram {
    background-color: #0088cc;
}


.social-icons-top ul li.twitter {
    background-color: #1DA1F2;
}

.social-icons-top ul li.instagram {
    background-image: linear-gradient(to right bottom, #5559c9, #c52684, #ef6a44, #f7bc4d);
}

.social-icons-top ul li.linkedin {
    background-color: #0077b5;
}

.social-icons-top ul li.youtube {
    background-color: #FF0000;
}

.social-icons-top ul li .content p .sociable {
    text-align: center;
    display: inline-block;
    padding: 0 7px;
    float: left;
    font-size: 20px;
}

.social-icons-top ul li .content {
    height: 40px;
    width: 100%;
    text-align: middle;
}


.social-icons-top ul li a,
.social-icons-top ul li p a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
    line-height: 40px;
    font-weight: 600;
}



.social-icons-top ul li a:hover,
.social-icons-top ul li p a:hover {
    color: rgba(255, 255, 255, 1) !important;
}


.social-icons-top ul li p {
    margin: 0 !important;
}

.social-icons-top ul li .content>a {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    line-height: 40px !important;
    font-size: 20px;
    display: block;
    position: relative;
    text-align: center;
    z-index: 5;
    opacity: 1 !important;
    position: absolute;
    top: 0px;
}

.social-icons-top ul li a .fa {
    font: 24px/40px FontAwesome;
}



.social-icons-top ul li a,
.social-icons-top ul li img {
    display: block;
}

@media only screen and (max-width: 991px) {

    .social-icons-top,
    .newUpdateBox {
        /*display: none !important;*/
    }
}

.social-icons-top.leftSide {
    left: -100px;
}

/* ---- Footer: Contact / Useful Links / Testimonial / Map widgets ---- */
.main-footer .rw-footer-widgets{
    padding: 60px 0 40px;
}
.main-footer .rw-footer-widgets .footer-widget{
    margin-bottom: 30px;
}
.main-footer .rw-footer-widgets .widget-title{
    color:#fff;
    font-size:19px;
    font-weight:700;
    margin-bottom:22px;
    position:relative;
    padding-bottom:12px;
}
.main-footer .rw-footer-widgets .widget-title:before{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:40px;
    height:2px;
    background:var(--rw-accent,#02c06d);
}
.main-footer .rw-contact-widget ul{
    list-style:none;
    margin:0;
    padding:0;
}
.main-footer .rw-contact-widget ul li{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:14px;
    color:rgba(255,255,255,0.75);
    font-size:14.5px;
    line-height:1.6;
}
.main-footer .rw-contact-widget ul li i{
    color:var(--rw-accent,#02c06d);
    margin-top:4px;
    flex-shrink:0;
    width:16px;
    text-align:center;
}
.main-footer .rw-contact-widget ul li a{
    color:rgba(255,255,255,0.75);
    text-decoration:none;
    transition:color .25s ease;
}
.main-footer .rw-contact-widget ul li a:hover{ color:#fff; }
.main-footer .rw-useful-links ul{
    list-style:none;
    margin:0;
    padding:0;
}
.main-footer .rw-useful-links ul li{
    margin-bottom:12px;
}
.main-footer .rw-useful-links ul li a{
    color:rgba(255,255,255,0.75);
    text-decoration:none;
    font-size:14.5px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:color .25s ease, padding-left .25s ease;
}
.main-footer .rw-useful-links ul li a:before{
    content:"\f105";
    font-family:"FontAwesome";
    color:var(--rw-accent,#02c06d);
}
.main-footer .rw-useful-links ul li a:hover{
    color:#fff;
    padding-left:4px;
}
.main-footer .rw-footer-testimonial{
    background:rgba(255,255,255,0.05);
    border-left:3px solid var(--rw-accent,#02c06d);
    padding:18px 20px;
    border-radius:6px;
}
.main-footer .rw-footer-testimonial i.fa-quote-left{
    color:var(--rw-accent,#02c06d);
    font-size:20px;
    margin-bottom:10px;
    display:block;
}
.main-footer .rw-footer-testimonial p{
    color:rgba(255,255,255,0.8);
    font-size:14px;
    line-height:1.7;
    font-style:italic;
    margin-bottom:14px;
}
.main-footer .rw-footer-testimonial .rw-author{
    color:#fff;
    font-size:14px;
    font-weight:600;
}
.main-footer .rw-footer-map{
    position:relative;
    width:100%;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
}
.main-footer .rw-footer-map iframe{
    display:block;
    width:100%;
    height:220px;
    border:0;
}
@media (max-width:991px){
    .main-footer .rw-footer-widgets{ padding:40px 0 20px; }
}
@media (max-width:575px){
    .main-footer .rw-footer-map iframe{ height:200px; }
}

/* ---- Home page: Testimonials (replaces old CTA block) ---- */
.rw-testimonial-section{
    padding:70px 0;
    background:#f9f9f9;
}
.rw-testimonial-section .sec-title{ margin-bottom:40px; }
.rw-testimonial-section .sec-title h5{
    color:var(--rw-accent,#02c06d);
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:8px;
}
.rw-testimonial-section .sec-title h2{
    font-size:clamp(22px,3vw,32px);
    font-weight:700;
    color:var(--rw-dark,#122220);
}
.rw-testimonial-card{
    background:#fff;
    border-radius:var(--rw-radius,14px);
    padding:50px 30px 34px;
    height:100%;
    width:100%;
    box-shadow:0 10px 30px rgba(0,0,0,0.06);
    transition:transform .3s ease, box-shadow .3s ease;
    position:relative;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
}
.rw-testimonial-card:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 34px rgba(0,0,0,0.1);
}
.rw-testimonial-card .rw-author-thumb{
    width:84px;
    height:84px;
    border-radius:50%;
    overflow:hidden;
    flex-shrink:0;
    border:3px solid #fff;
    box-shadow:0 6px 16px rgba(15,122,92,0.25);
    margin:-84px auto 16px;
    background:#fff;
}
.rw-testimonial-card .rw-author-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.rw-testimonial-card .rw-quote-icon{
    font-size:24px;
    color:var(--rw-accent,#02c06d);
    opacity:.4;
    margin-bottom:12px;
    display:block;
}
.rw-testimonial-card .rw-rating{
    margin-bottom:14px;
    color:#ffb400;
    font-size:13px;
    letter-spacing:2px;
}
.rw-testimonial-card .rw-testimonial-text{
    color:var(--rw-text-muted,#667572);
    font-size:14.5px;
    line-height:1.8;
    margin-bottom:22px;
    flex-grow:1;
}
.rw-testimonial-card .rw-testimonial-author{
    border-top:1px solid #f0f2f1;
    padding-top:16px;
    width:100%;
}
.rw-testimonial-card .rw-testimonial-author h5{
    margin:0 0 4px;
    font-size:15.5px;
    font-weight:700;
    color:var(--rw-dark,#122220);
}
.rw-testimonial-card .rw-testimonial-author span{
    font-size:12.5px;
    color:var(--rw-accent,#02c06d);
    text-transform:uppercase;
    letter-spacing:.5px;
    font-weight:600;
}
@media (max-width:767px){
    .rw-testimonial-section{ padding:50px 0; }
    .rw-testimonial-card{ padding:44px 22px 26px; }
}

/* ==========================================================================
   Gallery — Home page section + full Gallery listing/album pages
   ========================================================================== */

/* ---- Home page gallery section ---- */
.rw-home-gallery-section{
    padding:70px 0;
}
.rw-home-gallery-section .sec-title{ margin-bottom:36px; }
.rw-home-gallery-section .sec-title h5{
    color:var(--rw-accent,#02c06d);
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:8px;
}
.rw-home-gallery-section .sec-title h2{
    font-size:clamp(22px,3vw,32px);
    font-weight:700;
    color:var(--rw-dark,#122220);
}
.rw-home-gallery-card{
    position:relative;
    border-radius:var(--rw-radius,14px);
    overflow:hidden;
    height:260px;
    box-shadow:0 10px 26px rgba(0,0,0,0.08);
}
.rw-home-gallery-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}
.rw-home-gallery-card:hover img{
    transform:scale(1.08);
}
.rw-home-gallery-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(10,20,18,0.85) 0%, rgba(10,20,18,0.15) 45%, rgba(10,20,18,0) 70%);
}
.rw-home-gallery-overlay{
    position:absolute;
    top:50%;
    left:50%;
    right:auto;
    transform:translate(-50%, -50%);
    display:flex;
    gap:8px;
    z-index:3;
    opacity:0;
    transition:opacity .3s ease, transform .3s ease;
}
.rw-home-gallery-card:hover .rw-home-gallery-overlay{
    opacity:1;
    transform:translate(-50%, -50%);
}
.rw-home-gallery-overlay .rw-zoom-btn,
.rw-home-gallery-overlay .rw-link-btn{
    width:38px;
    height:38px;
    border-radius:50%;
    background:rgba(255,255,255,0.92);
    color:var(--rw-dark,#122220);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    transition:background .25s ease, color .25s ease;
}
.rw-home-gallery-overlay .rw-zoom-btn:hover,
.rw-home-gallery-overlay .rw-link-btn:hover{
    background:var(--rw-accent,#02c06d);
    color:#fff;
}
.rw-home-gallery-caption{
    position:absolute;
    left:20px;
    right:20px;
    bottom:16px;
    z-index:3;
}
.rw-home-gallery-caption h4{
    margin:0;
    font-size:17px;
    font-weight:700;
}
.rw-home-gallery-caption h4 a{
    color:#fff;
    text-decoration:none;
}
.rw-home-gallery-card.rw-gallery-featured{
    height:260px;
}
.rw-gallery-view-all{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
    padding:12px 30px;
    border-radius:50px;
    background:var(--rw-primary,#0f7a5c);
    color:#fff;
    font-weight:600;
    font-size:14.5px;
    text-decoration:none;
    transition:background .25s ease, transform .25s ease;
}
.rw-gallery-view-all:hover{
    background:var(--rw-primary-dark,#0a5a43);
    color:#fff;
    transform:translateY(-2px);
}

/* ---- Full Gallery page (listing + album detail) ---- */
.rw-gallery-section{
    padding:60px 0 70px;
}
.rw-gallery-toolbar{
    margin-bottom:26px;
}
.rw-gallery-back{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--rw-primary,#0f7a5c);
    font-weight:600;
    font-size:14.5px;
    text-decoration:none;
    transition:gap .25s ease, color .25s ease;
}
.rw-gallery-back:hover{
    gap:12px;
    color:var(--rw-primary-dark,#0a5a43);
}
.rw-gallery-card{
    position:relative;
    border-radius:var(--rw-radius,14px);
    overflow:hidden;
    height:260px;
    box-shadow:0 8px 22px rgba(0,0,0,0.08);
    background:#f2f4f3;
}
.rw-gallery-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}
.rw-gallery-card:hover img{
    transform:scale(1.07);
}
.rw-gallery-overlay{
    position:absolute;
    inset:0;
    background:rgba(10,20,18,0.35);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    opacity:0;
    transition:opacity .3s ease;
}
.rw-gallery-card:hover .rw-gallery-overlay{
    opacity:1;
}
.rw-gallery-overlay .rw-zoom-btn,
.rw-gallery-overlay .rw-link-btn{
    width:44px;
    height:44px;
    border-radius:50%;
    background:#fff;
    color:var(--rw-dark,#122220);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    transform:translateY(10px);
    transition:transform .3s ease, background .25s ease, color .25s ease;
}
.rw-gallery-card:hover .rw-gallery-overlay .rw-zoom-btn,
.rw-gallery-card:hover .rw-gallery-overlay .rw-link-btn{
    transform:translateY(0);
}
.rw-gallery-overlay .rw-zoom-btn:hover,
.rw-gallery-overlay .rw-link-btn:hover{
    background:var(--rw-accent,#02c06d);
    color:#fff;
}
.rw-gallery-count{
    position:absolute;
    top:14px;
    left:14px;
    background:rgba(0,0,0,0.55);
    color:#fff;
    font-size:12px;
    font-weight:600;
    padding:5px 12px;
    border-radius:50px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.rw-gallery-album .rw-gallery-caption{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:30px 16px 14px;
    background:linear-gradient(to top, rgba(10,20,18,0.9), rgba(10,20,18,0));
    z-index:2;
}
.rw-gallery-caption a{
    color:#fff;
    font-weight:700;
    font-size:15.5px;
    text-decoration:none;
}
.rw-gallery-pagination{
    margin-top:20px;
}
@media (max-width:767px){
    .rw-home-gallery-section{ padding:50px 0; }
    .rw-home-gallery-card,
    .rw-gallery-card{ height:220px; }
}

/* ==========================================================================
   Responsive side-padding fix — Page Detail (about/inner pages) + Contact Us
   Root cause: .auto-container has 0 side padding, and Bootstrap's .row
   negative margin cancels the .col-* gutter, so content sticks to the
   screen edge on mobile. Adding padding back at the container level.
   ========================================================================== */

/* ---- Inner page title / banner (used by page_detail.php, contact_us.php, etc.) ---- */
.page-title .auto-container{
    padding-left:20px;
    padding-right:20px;
}
@media (max-width:575px){
    .page-title .content-box{ padding:60px 0; }
    .page-title h1{ font-size:26px !important; }
}

/* ---- History / Page Detail content section ---- */
.history-section .auto-container{
    padding-left:20px;
    padding-right:20px;
}
@media (max-width:767px){
    .history-section{ padding:60px 0; }
}
@media (max-width:575px){
    .history-section{ padding:40px 0; }
}

/* ---- Page Detail — sub content section (cms_sub loop, no class) ---- */
.history-section + section .auto-container{
    padding-left:20px;
    padding-right:20px;
}

/* ---- Page Detail — gallery grid ---- */
.gallery-section-four .auto-container{
    padding-left:20px;
    padding-right:20px;
}
@media (max-width:767px){
    .gallery-section-four{ padding:50px 0 30px; }
}
@media (max-width:575px){
    .gallery-section-four .gallery-block-three{ margin-bottom:16px; }
}

/* ---- Contact Us — form + info section ---- */
.contact-form-section .auto-container{
    padding-left:20px;
    padding-right:20px;
}
@media (max-width:991px){
    .contact-form-section{ padding:70px 0 0; margin-bottom:70px; }
    .contact-info-three{ padding:40px 30px; margin-top:30px; }
}
@media (max-width:575px){
    .contact-form-section{ padding:40px 0 0; margin-bottom:40px; }
    .default-form-area .sec-title h1{ font-size:22px; }
    .contact-info-three{ padding:30px 20px; }
    .contact-info-three h4:before{ left:-20px; }
}



/* ==========================================================================
   GOVT LOGO BAR — updated (better spacing PC + mobile fix for hamburger overlap)
   Layout: [Logo] [Title + Subtitle] [Logo]
   ========================================================================== */

.rw-govt-bar{
    display:block;
    width:100%;
    background:#ffffff;
    padding:14px 0;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    box-sizing:border-box;
}
.rw-govt-bar .auto-container{
    padding-left:16px;
    padding-right:16px;
    box-sizing:border-box;
}

.rw-govt-row{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    gap:24px;                 /* was 10px -> more breathing room on PC */
    width:100%;
    max-width:760px;          /* was 640px -> wider so logos sit further apart */
    margin:0 auto;
}

/* Logos: fixed small box, never grow/shrink erratically */
.rw-govt-logo{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    width:clamp(38px, 9vw, 90px);
    height:clamp(38px, 9vw, 90px);
}
.rw-govt-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

/* Title block */
.rw-govt-info{
    flex:1 1 auto;
    min-width:0;
    max-width:320px;          /* was 280px -> a touch wider to match new gap */
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    text-decoration:none;
    gap:2px;
}
.rw-govt-title{
    display:block;
    font-size:clamp(12px, 3.4vw, 28px);
    font-weight:800;
    color:#0a5a3f;
    line-height:1.25;
    margin:0;
    word-break:break-word;
}
.rw-govt-subtitle{
    display:block;
    font-size:clamp(8.5px, 2.2vw, 15px);
    font-weight:600;
    color:#0a5a3f;
    opacity:.85;
    line-height:1.3;
    margin:0;
    word-break:break-word;
}

/* ---- Mobile: shift the whole row LEFT so the right logo doesn't
       collide with the hamburger toggle that sits at the far right
       of this same bar on small screens ---- */
@media (max-width:767px){
    .rw-govt-bar .auto-container{
        padding-right:70px;   /* reserve room for the hamburger button */
    }
    .rw-govt-row{
        margin:0;             /* stop auto-centering, let it hug the left */
        justify-content:flex-start;
        gap:10px;
    }
}

@media (max-width:360px){
    .rw-govt-bar .auto-container{
        padding-left:10px;
        padding-right:48px;
    }
    .rw-govt-row{ gap:6px; }
}

/* Tablet/desktop: extra breathing room */
@media (min-width:768px){
    .rw-govt-row{ gap:32px; }
    .rw-govt-info{ max-width:520px; }
}

@media (min-width:1200px){
    .rw-govt-row{ gap:40px; max-width:820px; }
}


