/* PharmaCrafts Theme - Professional Pharmaceutical Style */

:root {
    --ph-primary: #004b93;
    --ph-primary-dark: #00366b;
    --ph-secondary: #00a294;
    --ph-accent: #5a4fcf;
    --ph-bg: #f8fafc;
    --ph-bg-card: #ffffff;
    --ph-text: #1e293b;
    --ph-text-muted: #64748b;
    --ph-border: #e2e8f0;
    --ph-success: #10b981;
    --ph-warning: #f59e0b;
    --ph-danger: #ef4444;
    --ph-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ph-radius: 12px;
}

body {
    background-color: var(--ph-bg);
    color: var(--ph-text);
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Header Redesign */
#header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--ph-primary);
}

.nav-main {
    background-color: var(--ph-primary) !important;
}

.nav-main .navbar-nav>li>a {
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.nav-main .navbar-nav>li>a:hover {
    background-color: var(--ph-primary-dark) !important;
    color: var(--ph-secondary) !important;
}

/* Cards & Content */
.post-item {
    background: var(--ph-bg-card);
    border-radius: var(--ph-radius);
    overflow: hidden;
    box-shadow: var(--ph-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--ph-border);
    margin-bottom: 25px;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.post-item .title {
    color: var(--ph-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 15px;
}

/* Category Badges */
.category-label {
    background-color: var(--ph-secondary) !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Section Titles */
.section-head {
    border-bottom: 2px solid var(--ph-primary);
    margin-bottom: 25px;
    position: relative;
}

.section-head .title {
    background-color: var(--ph-primary);
    color: #ffffff;
    display: inline-block;
    padding: 8px 25px;
    border-radius: var(--ph-radius) var(--ph-radius) 0 0;
    margin-bottom: 0;
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item {
    animation: fadeIn 0.5s ease forwards;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ph-primary);
    font-weight: 700;
}

/* Button Gradients */
.btn-pharma {
    background: linear-gradient(135deg, var(--ph-primary) 0%, var(--ph-secondary) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 75, 147, 0.2);
}

.btn-pharma:hover {
    background: linear-gradient(135deg, var(--ph-primary-dark) 0%, var(--ph-primary) 100%);
    transform: scale(1.02);
}

/* Glassmorphism for Navbar */
.nav-main {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(0, 75, 147, 0.95) !important;
}

/* Custom Checkboxes/Radios for Pharma Polls */
.poll-option input[type="radio"] {
    accent-color: var(--ph-secondary);
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .section-head .title {
        width: 100%;
        border-radius: 8px 8px 0 0;
    }
}

/* Sidebar Widget Styling */
.sidebar-widget {
    background: var(--ph-bg-card);
    border-radius: var(--ph-radius);
    padding: 0;
    margin-bottom: 30px;
    box-shadow: var(--ph-shadow);
    border: 1px solid var(--ph-border);
    overflow: hidden;
}

.widget-head {
    background: var(--ph-primary);
    padding: 12px 20px;
    border-bottom: none;
}

.widget-head .title {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-body {
    padding: 20px;
}

/* Specific Widget Accents */
.widget-popular-posts .widget-head {
    background: linear-gradient(135deg, var(--ph-primary) 0%, var(--ph-accent) 100%);
}

.widget-follow-us .widget-head {
    background: linear-gradient(135deg, var(--ph-secondary) 0%, var(--ph-primary) 100%);
}

/* Tag Cloud */
.tag-list li a {
    background: var(--ph-bg);
    color: var(--ph-primary);
    border: 1px solid var(--ph-border);
    border-radius: 20px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.tag-list li a:hover {
    background: var(--ph-primary);
    color: #ffffff;
}

/* Footer Styling */
#footer {
    background-color: #002d5a;
    color: #cbd5e1;
    padding-top: 60px;
    border-top: 5px solid var(--ph-secondary);
}

#footer title,
#footer h4 {
    color: #ffffff !important;
}

#footer a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--ph-secondary);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-widget .title-line {
    background-color: var(--ph-secondary);
}

.newsletter-button {
    background: var(--ph-secondary) !important;
    border-radius: 0 25px 25px 0 !important;
}

.newsletter-input {
    border-radius: 25px 0 0 25px !important;
}

/* Professional Pharma Icons pseudo-classes */
.fa-pills {
    color: #f43f5e;
}

.fa-flask-vial {
    color: #8b5cf6;
}

.fa-microscope {
    color: #0ea5e9;
}

.fa-box-open {
    color: #f59e0b;
}