/* 
* WASA Jhelum Website Styles
* Professional Blue Color Scheme
*/

:root {
    --primary: #2563eb;      /* Royal Blue */
    --primary-dark: #1e40af;  /* Darker Blue */
    --primary-light: #60a5fa; /* Lighter Blue */
    --secondary: #0284c7;     /* Sky Blue */
    --accent: #0ea5e9;        /* Bright Blue */
    --light: #f0f9ff;         /* Very Light Blue */
    --dark: #0f172a;          /* Dark Navy */
    --text-dark: #1e293b;     /* Dark Text */
    --text-light: #ffffff;    /* Light Text */
    --gray-light: #f8fafc;    /* Light Gray Background */
    --gray: #64748b;          /* Medium Gray */
    --success: #10b981;       /* Green */
    --warning: #f59e0b;       /* Amber */
    --danger: #ef4444;        /* Red */
    --info: #06b6d4;          /* Cyan */
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--gray-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Custom Background Colors */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-light-blue {
    background-color: var(--light) !important;
}

.bg-dark-blue {
    background-color: var(--dark) !important;
}

.bg-breadcrumb {
    background-color: var(--secondary) !important;
    background-image: linear-gradient(to right, var(--secondary), var(--primary-dark));
    padding-bottom: 1.5rem !important;
}

/* Header Styles */
header .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

header .navbar-dark .navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

header .navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-light);
}

.top-bar {
    font-size: 0.9rem;
    background-color: var(--dark);
    color: var(--text-light);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(2, 132, 199, 0.8)), url('../images/wasa_slider.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    padding: 12rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-section p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-section .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    background-color: var(--text-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card .card-body {
    padding: 1.8rem;
    position: relative;
    z-index: 1;
}

.service-card .card-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.service-card .card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.service-card:hover .card-title::after {
    width: 80px;
}

.service-card .btn {
    margin-top: 0.5rem;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Section Styling */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Stats Counter */
.stats-counter {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 3rem 0;
}

.stats-counter .counter-item {
    text-align: center;
}

.stats-counter .counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-counter .counter-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Map Styles */
.map-legend-item {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

/* News & Updates */
.news-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
    background-color: var(--text-light);
}

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

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-date {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.contact-form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #0369a1;
    border-color: #0369a1;
}

/* Footer Styling */
footer {
    color: var(--text-light);
    background-color: var(--dark);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-light);
}

footer a {
    color: var(--text-light);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

footer .social-icons a {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-right: 1rem;
}

footer .social-icons a:hover {
    transform: translateY(-3px);
}

/* Custom Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-light {
    background-color: var(--gray-light) !important;
}

/* Breadcrumb Styling */
.breadcrumb {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 5px !important;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 6rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stats-counter .counter-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .top-bar span {
        display: block;
        margin: 0.25rem 0;
    }
    
    .top-bar .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
    
    .breadcrumb {
        display: none;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    /* Premium gradient with subtle depth */
    background: radial-gradient(circle at 30% 30%, #25D366 0%, #1EBE57 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 1050;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: fixed;
    overflow: visible;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.whatsapp-float i {
    font-size: 2rem;
    transition: transform 0.2s ease;
}

.whatsapp-tooltip {
    position: fixed;
    left: 94px; /* 64px button + 30px gap */
    bottom: 28px;
    background: #111827; /* dark slate */
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    z-index: 1049;
    display: none;
}

.whatsapp-float:hover + .whatsapp-tooltip {
    display: block;
}
.whatsapp-float:hover i {
    transform: translateY(-1px) scale(1.08);
}

/* Animated glow ring for a professional look */
.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    animation: whatsappPulse 2.6s ease-out infinite;
    pointer-events: none;
}

/* Soft ambient glow under the button */
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,211,102,0.35) 0%, rgba(37,211,102,0) 60%);
    filter: blur(6px);
    opacity: 0.6;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.whatsapp-float:hover::after {
    opacity: 0.85;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 1050;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.back-to-top i {
    font-size: 1.4rem;
}

/* Visible state when scrolled down */
.back-to-top.show {
    display: flex;
}

/* =========================
   Organizational Chart
   ========================= */
.org-chart {
    --line-color: #9ca3af; /* slate-400 */
    --node-bg: #ffffff;
    --node-border: #e5e7eb; /* gray-200 */
    --node-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.org-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 12px 0;
}

.org-node {
    background: var(--node-bg);
    border: 1px solid var(--node-border);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 150px;
    text-align: center;
    box-shadow: var(--node-shadow);
}
.org-node h6, .org-node .title {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}
.org-node .subtitle, .org-node small {
    display: block;
    color: #6b7280; /* gray-500 */
    font-size: 0.78rem;
    margin-top: 4px;
}
.org-node.compact {
    padding: 6px 10px;
    min-width: 120px;
}

.org-connector-v {
    width: 2px;
    height: 24px;
    background: var(--line-color);
    margin: 8px auto;
}
.org-connector-h {
    height: 2px;
    background: var(--line-color);
    margin: 8px 0;
}

.org-section-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.org-counts {
    background: #f8fafc; /* slate-50 */
    border: 1px solid var(--node-border);
    border-radius: 10px;
    box-shadow: var(--node-shadow);
}
.org-counts .stat {
    text-align: center;
}
.org-counts .stat h4 {
    margin: 0;
    font-size: 1.25rem;
}
.org-counts .stat small {
    color: #6b7280;
}

/* Four-column grid helpers */
.org-grid .org-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* =========================
   Quick Services Portal
   ========================= */
.quick-services { background: #f9fafb; }
.qs-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.qs-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,0.10); }
.qs-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px; margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.qs-title { font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.qs-text { color: #6b7280; margin-bottom: 12px; }
.qs-btn { border-radius: 999px; padding: 8px 16px; font-weight: 600; color: #fff; border: none; }

/* Color themes */
.qs-blue { background: radial-gradient(circle at 30% 30%, #4f8dfd 0%, #2563eb 100%); }
.qs-green { background: radial-gradient(circle at 30% 30%, #38d39f 0%, #10b981 100%); }
.qs-teal { background: radial-gradient(circle at 30% 30%, #39d4e6 0%, #06b6d4 100%); }
.qs-yellow { background: radial-gradient(circle at 30% 30%, #facc15 0%, #f59e0b 100%); color: #111827; }

.qs-btn.qs-blue { background-color: #2563eb; }
.qs-btn.qs-green { background-color: #10b981; }
.qs-btn.qs-teal { background-color: #06b6d4; }
.qs-btn.qs-yellow { background-color: #f59e0b; color: #111827; }

@media (max-width: 576px) {
    .qs-card { padding: 20px 16px; }
    .qs-icon { width: 56px; height: 56px; font-size: 22px; }
}
/* Development Works table refinements */
.dev-table th,
.dev-table td {
  vertical-align: middle;
}

.dev-table thead.table-light th {
  background-color: #f8f9fa;
}

.dev-table tbody tr:hover {
  background-color: #f6faff;
}

.dev-table th:first-child,
.dev-table td:first-child {
  width: 80px;
  text-align: center;
}

.dev-table th:nth-last-child(1),
.dev-table td:nth-last-child(1) {
  width: 140px;
  }
.tender-pdf-icon {
  font-size: 1.6rem;
  line-height: 1;
  vertical-align: middle;
  padding: 2px 6px;
  border-radius: 6px;
  background-color: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25) inset;
}
/* Homepage single-image carousel styling */
.home-carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.home-carousel img {
  max-height: 480px;
  object-fit: cover;
}
.home-carousel .carousel-indicators {
  position: absolute;
  bottom: 12px;
}
.home-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.6);
  border: none;
  margin: 0 6px;
}
.home-carousel .carousel-indicators .active {
  background-color: #ffffff;
  width: 12px;
  height: 12px;
}
.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next {
  width: 48px;
}
.home-carousel .carousel-control-prev-icon,
.home-carousel .carousel-control-next-icon {
  filter: invert(1) grayscale(1) brightness(2);
}

/* Thumbnail multi-image carousel styling */
.thumb-carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.thumb-carousel .thumb-item img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.thumb-carousel .thumb-item img:hover {
  transform: scale(1.02);
}
.thumb-carousel .carousel-control-prev,
.thumb-carousel .carousel-control-next {
  width: 48px;
}
.thumb-carousel .carousel-control-prev-icon,
.thumb-carousel .carousel-control-next-icon {
  filter: invert(1) grayscale(1) brightness(2);
}
.gallery-section {
  background: linear-gradient(180deg, #f9fafb 0%, #eef7ff 100%);
}
.gallery-section .section-title {
  color: var(--primary-dark);
}
.gallery-section .section-title::after {
  width: 80px;
  background-color: var(--accent);
}
.thumb-carousel .thumb-item a {
  display: block;
  border: 1px solid transparent;
  border-radius: 12px;
}
.thumb-carousel .thumb-item a:hover {
  border-color: var(--accent);
}
.thumb-carousel .carousel-control-prev,
.thumb-carousel .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(2, 132, 199, 0.35);
  border-radius: 50%;
}
