/* Custom Styles for Pharmacy Council of Pakistan */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

:root {
    --pcp-primary-dark: #004d33;
    --pcp-primary: #006a4e;
    --pcp-primary-light: #05a86b;
    --pcp-accent: #20e394;
    --pcp-accent-glow: #00ffaa;
    --pcp-bg-light: #f4faf7;
    --pcp-card-bg: #048256;
    --pcp-dark-grid: #012b1d;
    --pcp-text-dark: #123629;
    --pcp-text-muted: #527568;
    --pcp-font: "Plus Jakarta Sans", sans-serif;
}

body {
    font-family: var(--pcp-font);
    color: var(--pcp-text-dark);
    background-color: #f7fcfa;
    overflow-x: hidden;
}

/* Header & Navbar */
.top-header {
    background-color: #ffffff;
    border-bottom: 2px solid #e1f3ec;
    box-shadow: 0 2px 10px rgba(0, 77, 51, 0.05);
}

.brand-logo {
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-link-custom {
    color: #1a4d3b !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--pcp-primary-light) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background:
        linear-gradient(
            180deg,
            rgba(0, 55, 36, 0.88) 0%,
            rgba(0, 85, 55, 0.78) 100%
        ),
        url("../images/hero_image_bg.jpg") center/cover no-repeat;
    padding: 80px 0 100px 0;
    color: #ffffff;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 850px;
    margin: 15px auto 30px auto;
    font-weight: 400;
    line-height: 1.6;
    color: #e2f7ef;
}

.pill-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--pcp-accent);
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(32, 227, 148, 0.35);
    position: relative;
}

/* Connecting Nodes Line */
.connecting-nodes-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28%;
    position: relative;
    max-width: 750px;
    margin: 25px auto 20px auto;
}

.connecting-nodes-bar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #c084fc, #4ade80, #2dd4bf);
    z-index: 1;
    box-shadow: 0 0 8px rgba(32, 227, 148, 0.6);
}

.node-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 12px currentColor;
    border: 2px solid #ffffff;
}

.node-purple {
    background: #c084fc;
    color: #c084fc;
}

.node-green {
    background: #4ade80;
    color: #4ade80;
}

.node-teal {
    background: #2dd4bf;
    color: #2dd4bf;
}

/* Feature Cards */
.feature-card {
    background: linear-gradient(135deg, #05a86b 0%, #00bd82 100%);
    border-radius: 22px;
    padding: 32px 24px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 168, 107, 0.35);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 168, 107, 0.5);
}

.feature-icon-wrapper {
    width: 65px;
    height: 65px;
    background: #ffffff;
    color: #05a86b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.92;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Management Section */
.section-heading-custom {
    font-size: 2.2rem;
    font-weight: 800;
    color: #004d33;
}

.section-heading-custom span {
    color: var(--pcp-primary-light);
}

.management-card {
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 8px 20px rgba(0, 77, 51, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.management-card:hover {
    transform: translateY(-6px);
}

.management-img-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #eef8f4;
}

.management-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.management-badge {
    background: var(--pcp-primary-dark);
    color: #ffffff;
    padding: 16px 12px 24px 12px;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    margin-top: -1px;
}

.management-name {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.management-role {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* About Us Section */
.about-section {
    padding: 70px 0;
}

.about-tag {
    color: var(--pcp-primary-light);
    font-weight: 700;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pcp-primary-dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--pcp-text-dark);
    margin-bottom: 25px;
}

.btn-pill-green {
    background: linear-gradient(135deg, #006a4e 0%, #004d33 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 34px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 15px rgba(0, 106, 78, 0.3);
    transition: all 0.3s ease;
}

.btn-pill-green:hover {
    background: linear-gradient(135deg, #05a86b 0%, #006a4e 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(5, 168, 107, 0.4);
    transform: translateY(-2px);
}

/* Vector Frame Wrapper around Building Image */
.about-image-frame {
    position: relative;
    border-radius: 24px;
    padding: 8px;
    background: linear-gradient(135deg, #20e394 0%, #006a4e 100%);
    box-shadow: 0 15px 35px rgba(0, 77, 51, 0.2);
}

.about-image-frame::before {
    content: "";
    position: absolute;
    top: -12px;
    right: -12px;
    width: 60px;
    height: 60px;
    border-top: 5px solid #20e394;
    border-right: 5px solid #20e394;
    border-radius: 0 16px 0 0;
}

.about-image-frame::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 60px;
    height: 60px;
    border-bottom: 5px solid #20e394;
    border-left: 5px solid #20e394;
    border-radius: 0 0 0 16px;
}

.about-image-inner {
    border-radius: 18px;
    overflow: hidden;
}

.about-image-inner img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* Quick Access Banner Grid with Rich Emerald Glowing Cards */
.quick-access-banner {
    background: linear-gradient(180deg, #003622 0%, #002216 100%);
    border-radius: 24px;
    padding: 30px 20px;
    border: 2px solid #00e389;
    box-shadow: 0 0 35px rgba(0, 227, 137, 0.35);
    margin: 40px 0;
    position: relative;
}

.qa-card-box {
    background: linear-gradient(145deg, #005c3c 0%, #003d27 100%);
    border: 2px solid #00ffaa;
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    box-shadow:
        0 0 22px rgba(0, 255, 170, 0.3),
        inset 0 0 15px rgba(0, 255, 170, 0.15);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    height: 100%;
}

.qa-card-box:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 35px rgba(0, 255, 170, 0.55),
        inset 0 0 25px rgba(0, 255, 170, 0.3);
    border-color: #ffffff;
}

.qa-icon-wrapper {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 12px rgba(0, 255, 170, 0.8));
}

.qa-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.qa-card-subtitle {
    font-size: 0.95rem;
    color: #20e394;
    font-weight: 700;
}

/* Statistical Data Section */
.stats-section {
    background: linear-gradient(180deg, #005238 0%, #003826 100%);
    background-image:
        radial-gradient(
            circle at 80% 20%,
            rgba(32, 227, 148, 0.15) 0%,
            transparent 40%
        ),
        linear-gradient(180deg, #005238 0%, #003826 100%);
    color: #ffffff;
    padding: 70px 0;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.stats-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.stat-metric-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.4rem;
    color: var(--pcp-accent);
    background: rgba(32, 227, 148, 0.15);
    padding: 15px;
    border-radius: 12px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: #c0ebd9;
    margin-bottom: 0;
    font-weight: 500;
}

/* Stats Table */
.stats-table-wrapper {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.custom-stats-table {
    width: 100%;
    margin-bottom: 0;
    color: #ffffff;
}

.custom-stats-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--pcp-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.custom-stats-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
    font-weight: 600;
}

.custom-stats-table tr:hover td {
    background: rgba(255, 255, 255, 0.1);
}

/* Public Announcements Section */
.announcements-header {
    position: relative;
    padding-top: 20px;
}

.top-chevron-banner {
    background: linear-gradient(135deg, #20e394 0%, #006a4e 100%);
    height: 14px;
    width: 100%;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
    margin-bottom: 25px;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 77, 51, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 77, 51, 0.15);
}

.news-img-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 77, 51, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
}

.news-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a4d3b;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Sub-footer nav */
.subfooter-nav {
    border-top: 1px solid #d4ebd9;
    border-bottom: 1px solid #d4ebd9;
    padding: 15px 0;
    margin-top: 50px;
}

.subfooter-nav a {
    color: var(--pcp-primary-dark);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.subfooter-nav a:hover {
    color: var(--pcp-primary-light);
}

/* Footer Section */
.main-footer {
    background: #00472e;
    color: #ffffff;
    border-radius: 30px 30px 0 0;
    padding: 60px 0 20px 0;
    margin-top: 40px;
}

.footer-logo-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-logo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at top left,
        rgba(32, 227, 148, 0.15) 0%,
        transparent 60%
    );
}

.footer-logo-card img {
    max-width: 100%;
    border-radius: 12px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pcp-accent);
    margin-bottom: 15px;
}

.footer-links-list {
    list-style: none;
    padding-left: 0;
}

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

.footer-links-list a {
    color: #d6f2e6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--pcp-accent);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.88rem;
    color: #a3dac4;
}

/* Decorative Vectors & Floating Elements */
.vector-dots-grid {
    position: absolute;
    left: 25px;
    bottom: 40px;
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
}

.vector-squiggle {
    position: absolute;
    left: -40px;
    top: -25px;
    width: 65px;
    z-index: 4;
}

.vector-sparks {
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px;
}

.vector-contour-mesh {
    position: absolute;
    right: -25px;
    bottom: -30px;
    width: 200px;
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.vector-rosette {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    opacity: 0.45;
    pointer-events: none;
}

.vector-sawtooth-accent {
    position: absolute;
    right: -10px;
    top: -20px;
    width: 120px;
    opacity: 0.7;
    pointer-events: none;
}

/* 3D Medical Kit Graphic Illustration SVG */
.medical-kit-graphic {
    filter: drop-shadow(0 15px 30px rgba(0, 77, 51, 0.45));
    transition: transform 0.4s ease;
}

.medical-kit-graphic:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Responsive fixes */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

    .qa-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .qa-card:last-child {
        border-bottom: none;
    }
}
