/* =============================================
   Pharma365 - Corporate Pharma Website Styles
   Color Palette: White + Blue (#0d6efd) + Green (#198754)
   ============================================= */

/* Base Styles */
:root {
    --primary-blue: #0d6efd;
    --primary-green: #7ed957; /* Light leaf green */
    --dark-blue: #0a58ca;
    --light-blue: #e7f1ff;
    --light-green: #d1e7dd;
    --dark-bg: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    /* Brand teal/amber palette */
    --primary-teal: #0c7c7c;
    --primary-amber: #c8913a;
    --light-teal: #e0f3f3;
    --light-amber: #fdf3e3;
    --charcoal: #1e2d2d;
    --ivory: #f7f9f7;
    --gray-700: #495057;
}
/* Override Bootstrap .text-success to use leaf green */
.text-success {
    color: var(--primary-green) !important;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--dark-bg);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Navbar */
.navbar {
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

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

/* Hero Section */
/* Hero Carousel */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.carousel-caption-custom {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: #fff;
    padding: 60px 0;
}

.carousel-caption-custom h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.carousel-caption-custom p.lead {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-carousel-section:hover .carousel-control-prev,
.hero-carousel-section:hover .carousel-control-next {
    opacity: 1;
}

#heroCarousel .carousel-control-prev {
    left: 30px;
}

#heroCarousel .carousel-control-next {
    right: 30px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

#heroCarousel .carousel-indicators {
    margin-bottom: 30px;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    border-color: #fff;
    transform: scale(1.2);
}

.carousel-item {
    transition: opacity 1s ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    border: none;
    margin: 15px 0 0;
}

.section-divider-center {
    margin: 15px auto 0;
}

/* About Image */
.about-image-wrapper {
    position: relative;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.35);
    z-index: 2;
}

/* Cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-icon-blue {
    background: linear-gradient(135deg, #0c7c7c 0%, #0a5a8a 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(12, 124, 124, 0.35);
}

.feature-icon-green {
    background: linear-gradient(135deg, #c8913a 0%, #a0701e 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(200, 145, 58, 0.35);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

.stat-item h2 {
    font-size: 2.8rem;
    font-weight: 800;
}

/* Product Card */
.product-card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.product-card .card-body {
    padding: 20px;
}

.product-card .product-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-card .product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* Contact Form */
.contact-form .form-control {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Footer */
.footer {
    background: var(--dark-bg) !important;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* About Timeline */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 26px;
    height: 26px;
    background: var(--primary-blue);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: #fff;
}

/* Certifications */
.cert-badge {
    display: inline-flex;
    align-items: center;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 4px;
}

/* Search Filter */
.filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Navbar Dropdown */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
}

.navbar .dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: var(--primary-blue);
    color: #fff;
    padding-left: 25px;
}

.navbar .dropdown-toggle::after {
    font-size: 0.7rem;
}

/* Why Us Page */
.why-us-list {
    list-style: none;
    padding: 0;
}

.why-us-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.why-us-list li:last-child {
    border-bottom: none;
}

.why-gear-item {
    background: #fff;
    border-radius: 12px;
    width: 130px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.why-gear-item:hover {
    transform: translateY(-5px);
}

/* Team Page */
.team-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(12, 49, 49, 0.10);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-align: left;
    border: 1px solid rgba(12, 124, 124, 0.10);
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 44px rgba(12, 49, 49, 0.18);
}

.team-img-wrapper {
    background: radial-gradient(circle at 85% 20%, rgba(200, 145, 58, 0.26) 0%, rgba(12, 124, 124, 0.08) 45%, rgba(12, 124, 124, 0.02) 100%);
    padding: 22px 22px 0;
    position: relative;
}

.team-profile-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 18px 18px 0 0;
    margin: 0;
    display: block;
    border: 0;
    filter: saturate(0.92) contrast(1.03);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.team-card:hover .team-profile-img {
    transform: scale(1.04);
    filter: saturate(1.02) contrast(1.08);
}

.team-info {
    padding: 22px 24px 24px;
    position: relative;
}

.team-info h5 {
    color: var(--charcoal);
    letter-spacing: 0.2px;
}

.team-role {
    display: inline-block;
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-teal);
    background: rgba(12, 124, 124, 0.10);
    border: 1px solid rgba(12, 124, 124, 0.24);
    border-radius: 999px;
    padding: 6px 10px;
}

.team-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-amber));
    transition: width 0.35s ease;
}

.team-card:hover::after {
    width: 100%;
}

.team-collection > [class*="col-"]:nth-child(2n) .team-card {
    margin-top: 14px;
}

@media (max-width: 991px) {
    .team-collection > [class*="col-"]:nth-child(2n) .team-card {
        margin-top: 0;
    }

    .team-profile-img {
        height: 240px;
    }
}

/* Team Dark-Glass Variant */
.team-darkglass {
    background:
        radial-gradient(circle at 12% 15%, rgba(200, 145, 58, 0.22) 0%, transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(12, 124, 124, 0.22) 0%, transparent 36%),
        linear-gradient(160deg, var(--ivory) 0%, #f2f5f1 45%, #eef6f6 100%);
    position: relative;
}

.team-darkglass .section-title,
.team-darkglass .section-subtitle,
.team-darkglass .text-primary,
.team-darkglass .text-muted {
    color: var(--charcoal) !important;
}

.team-darkglass .section-subtitle {
    opacity: 0.9;
}

.team-darkglass .team-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
    border: 1px solid rgba(12, 124, 124, 0.14);
    box-shadow: 0 16px 34px rgba(12, 49, 49, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.team-darkglass .team-card:hover {
    box-shadow: 0 22px 46px rgba(12, 49, 49, 0.18);
}

.team-darkglass .team-img-wrapper {
    background: linear-gradient(180deg, rgba(12, 124, 124, 0.12), rgba(200, 145, 58, 0.08));
}

.team-darkglass .team-profile-img {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(12, 49, 49, 0.22);
}

.team-darkglass .team-info h5 {
    color: var(--charcoal);
}

.team-darkglass .team-info .text-muted {
    color: var(--gray-700) !important;
}

.team-darkglass .team-role {
    color: #fff;
    background: linear-gradient(90deg, rgba(12, 124, 124, 0.9), rgba(200, 145, 58, 0.85));
    border-color: rgba(255, 255, 255, 0.4);
}

.team-darkglass .team-card::after {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-amber));
}

/* Blog Page */
.blog-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-img-placeholder i {
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.4;
}

/* Partners Page */
.partner-logo-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.1);
    transform: translateY(-3px);
}

.partner-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.partner-logo-placeholder i {
    font-size: 2.5rem;
}

.partner-logo-placeholder span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.3;
}

/* Admin Styles */
.admin-sidebar {
    min-height: 100vh;
    background: var(--dark-bg);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 20px !important;
    border-radius: 8px;
    margin-bottom: 4px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.admin-sidebar .nav-link::after {
    display: none;
}

.stat-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-slide {
        min-height: 75vh;
    }

    .carousel-caption-custom h1 {
        font-size: 2rem;
    }

    .carousel-caption-custom {
        padding: 20px 0;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        display: none;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-item h2 {
        font-size: 2rem;
    }
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #1ebe57;
}

.call-btn {
    background: var(--primary-teal);
}

.call-btn:hover {
    background: var(--dark-teal);
}

.top-btn {
    background: var(--primary-amber);
    border: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-btn:hover {
    background: #ad792f;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}
