/* 
 * Pakistan Bar Council - Modern Government Theme
 * Primary: #0B5D36, Secondary: #114A2B, Accent: #C6A34D, Background: #F7F9FA
 */

:root {
    --pbc-primary: #0b5d36;
    --pbc-secondary: #114a2b;
    --pbc-accent: #c6a34d;
    --pbc-bg: #f7f9fa;
    --pbc-text: #333333;
    --pbc-white: #ffffff;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--pbc-bg);
    color: var(--pbc-text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: "Poppins", sans-serif;
}

/* Background Utilities */
.bg-primary-green {
    background-color: var(--pbc-primary) !important;
}
.bg-dark-green {
    background-color: var(--pbc-secondary) !important;
}
.bg-gold {
    background-color: var(--pbc-accent) !important;
}
.bg-light-gray {
    background-color: var(--pbc-bg) !important;
}

/* Text Utilities */
.text-primary {
    color: var(--pbc-primary) !important;
}
.text-secondary {
    color: var(--pbc-secondary) !important;
}
.text-gold {
    color: var(--pbc-accent) !important;
}

/* Hover Utilities */
.hover-gold:hover {
    color: var(--pbc-accent) !important;
}
.transition-all {
    transition: all 0.3s ease;
}

/* Header & Nav */
.utility-bar a {
    opacity: 0.9;
}
.utility-bar a:hover {
    opacity: 1;
    text-decoration: none;
}
.main-header {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    color: var(--pbc-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 1.2rem !important;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--pbc-primary);
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--pbc-accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 30px;
}

.hover-dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.dropdown-item {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
}
.dropdown-item:hover {
    background-color: var(--pbc-bg);
    color: var(--pbc-primary);
}

/* Buttons */
.btn-primary {
    background-color: var(--pbc-primary);
    border-color: var(--pbc-primary);
}
.btn-primary:hover {
    background-color: var(--pbc-secondary);
    border-color: var(--pbc-secondary);
}
.btn-gold {
    background-color: var(--pbc-accent);
    border-color: var(--pbc-accent);
    color: white;
}
.btn-gold:hover {
    background-color: #b59240;
    border-color: #b59240;
    color: white;
}
.btn-outline-primary {
    color: var(--pbc-primary);
    border-color: var(--pbc-primary);
}
.btn-outline-primary:hover {
    background-color: var(--pbc-primary);
    color: white;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11, 93, 54, 0.1);
    border-color: var(--pbc-accent);
}

/* Gradient Borders */
.gradient-border-card {
    position: relative;
    border-radius: 16px;
    background: #fff;
    background-clip: padding-box;
    border: solid 2px transparent;
    border-radius: 16px;
    transition: all 0.3s ease;
}
.gradient-border-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--pbc-primary), var(--pbc-accent));
}
.gradient-border-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--pbc-secondary);
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--pbc-accent);
    border-radius: 3px;
}

/* Hero Section */
.hero-slider-container {
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}
.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11, 93, 54, 0.9) 0%,
        rgba(11, 93, 54, 0.4) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    /* padding-top: 15vh; */
}
.hero-content h1 {
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-quick-access {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 380px;
}
@media (max-width: 991px) {


    .hero-quick-access {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        margin-top: 30px;
        padding: 0 15px;
    }
    .hero-slider-container {
        height: auto;
        min-height: 400px;
    }
    .hero-overlay {
        background: rgba(11, 93, 54, 0.85);
    }
    .hero-content {
        padding-top: 8vh;
        padding-bottom: 4vh;
    }
    /* Take full width on md */
    .hero-content.col-lg-6 {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 576px) {
    .hero-slider-container {
        min-height: 320px;
    }
    .hero-content {
        padding-top: 4vh;
        padding-bottom: 3vh;
    }
    .hero-content h1 {
        font-size: clamp(1.4rem, 6vw, 2.2rem);
    }
    .hero-content .lead {
        font-size: 0.88rem;
        max-width: 100% !important;
    }
    .hero-content .badge {
        font-size: 0.68rem;
    }
}

.qa-card {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    /* margin-bottom: 12px; */
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--pbc-text);
        padding: 0 7px;
    max-height: 76px;
    border-left: 4px solid var(--pbc-primary);
}
.qa-card:hover {
    transform: translateX(-10px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: var(--pbc-accent);
}
.qa-icon {
    font-size: 1.3rem;
    color: var(--pbc-primary);
    margin-right: 15px;
    width: 40px;
    text-align: center;
}
.qa-content span {
    font-size: 0.7rem;
    /* color: var(--pbc-secondary); */
}

/* Stats Counter */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pbc-primary), var(--pbc-accent));
}
.stat-icon {
    font-size: 2.5rem;
    color: var(--pbc-accent);
    margin-bottom: 15px;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--pbc-secondary);
    font-family: "Poppins", sans-serif;
    line-height: 1;
    margin-bottom: 10px;
}

/* News Cards */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.news-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
.news-card img {
    height: 220px;
    object-fit: cover;
}
.news-date {
    font-size: 0.8rem;
    color: var(--pbc-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services / Directory Grid */
.service-box {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.service-box:hover {
    background: var(--pbc-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(11, 93, 54, 0.2);
}
.service-box:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
.service-box:hover h5,
.service-box:hover p {
    color: white !important;
}
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(11, 93, 54, 0.05);
    color: var(--pbc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

/* Partners Carousel */
.partner-logo {
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
    padding: 20px;
    max-height: 120px;
    object-fit: contain;
}
.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* footer */
.site-footer {
    background: linear-gradient(135deg, #14351f 0%, #1e4a2c 100%);
    padding: 40px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-main-row {
    position: relative;
    z-index: 2;
    padding-bottom: 20px;
}

.footer-logo {
    width: 116px;
    /* height: 102px; */
    /* object-fit: contain; */
}

.footer-tagline {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-socials .footer-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.footer-socials .footer-social-icon:hover {
    background: var(--pbc-accent, #b8860b);
    color: #14351f;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

.footer-links a i {
    font-size: 0.65rem;
    margin-right: 4px;
    color: var(--pbc-accent, #b8860b);
}

.footer-links a:hover {
    color: var(--pbc-accent, #b8860b);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
}

.footer-contact i {
    color: var(--pbc-accent, #b8860b);
    width: 16px;
}

.footer-subscribe-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 6px;
}

.footer-subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-subscribe-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--pbc-accent, #b8860b);
    box-shadow: none;
    color: #fff;
}

.footer-subscribe-btn {
    background: var(--pbc-accent, #b8860b);
    color: #14351f;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 6px;
    padding: 8px 12px;
    border: none;
    transition: all 0.2s ease;
}

.footer-subscribe-btn:hover {
    background: #fff;
    color: #14351f;
}

.footer-building-silhouette {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 320px;
    height: 100%;
    background-image: url("{{ asset("/styles/images/building-silhouette.png") }}");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    padding-top: 15px;
    position: relative;
    z-index: 2;
}
