/*
Theme Name: Clap Pakistan
Author: clappakistan
Author URI: https://clappakistan.com
Description: Dedicated professional platform for profiles and corporate news.
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #000000;
    /* Amber 500 */
    --primary-dark: #000000;
    --secondary: #1e293b;
    /* Slate 800 */
    --secondary-light: #334155;
    --accent: #10b981;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-paper: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --container: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Layout Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.justify-center {
    justify-content: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Global Section Header Responsive Fix */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allows stacking on small screens */
}

@media (max-width: 640px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-header .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 1024px) {

    .grid-cols-4,
    .grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-6 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-article-content h2 {
        font-size: 1.5rem !important;
        margin: 0.75rem 0 !important;
    }

    .main-article {
        height: 300px !important;
    }
}

@media (max-width: 1024px) {

    .grid-cols-4,
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 640px) {

    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 640px) {
    .timeline {
        padding-left: 1.25rem;
    }

    .timeline-item::before {
        left: calc(-1.25rem - 6px);
    }

    .top-bar-left .date,
    .top-bar-left .sep {
        display: none;
    }

    .profile-section {
        padding: 1.5rem;
    }
}

/* Header Styles */
/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }

    .top-bar .container {
        justify-content: center;
    }
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.main-header {
    background: var(--bg-paper);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.logo-area {
    text-align: center;
}

.site-logo {
    max-height: 90px;
    margin-bottom: 1rem;
}

.site-title {
    font-size: 2.75rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.site-title span {
    color: var(--primary);
}

.site-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.nav-bar {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .primary-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
    }

    .primary-menu-container.active {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
    }

    .primary-menu li a {
        padding: 0.75rem 2rem;
    }

    .nav-bar .container {
        padding: 0.5rem 1rem;
    }

    .header-search {
        width: 200px;
    }
}

@media (max-width: 640px) {
    .header-search {
        display: none;
        /* Hide search on very small screens to make room for logo/toggle */
    }

    .main-header {
        padding: 1.5rem 0;
    }

    .site-title {
        font-size: 2rem;
    }
}

.primary-menu {
    display: flex;
    list-style: none;
}

.primary-menu li a {
    color: white;
    padding: 1.25rem 1rem;
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.primary-menu li a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.header-search {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 2px;
    overflow: hidden;
    width: 280px;
}

.header-search input {
    border: none;
    padding: 0.5rem 1rem;
    flex: 1;
    font-size: 0.85rem;
    outline: none;
}

.header-search button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
}

/* Card Styles */
.card {
    background: var(--bg-paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
}

.card-content {
    padding: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Profile Specific Styles */
.profile-card {
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: -60px;
    border: 4px solid white;
    box-shadow: var(--shadow);
    background: white;
}

.profile-header-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

/* Single Profile / Portfolio Structure */
.profile-hero {
    background: var(--bg-paper);
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

.profile-hero-img {
    width: 240px;
    height: 240px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 4px solid var(--primary);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--primary);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 3px var(--bg-paper);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

/* Layout & Utilites */
.py-1 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-4 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: justify-content;
}

.flex-col {
    flex-direction: column;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.gap-3 {
    gap: 1.5rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-start {
    align-items: flex-start;
}

/* Grid Ratio & Layouts */
.main-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

@media (max-width: 1200px) {
    .main-sidebar-grid {
        grid-template-columns: 1fr;
    }
}

.profile-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {

    .main-sidebar-grid,
    .profile-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Hero Banners */
.news-hero-banner {
    padding: 4rem 0;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 30%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-bg-pattern {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
}

/* Single Profile Enhancements */
.profile-hero {
    background: var(--bg-paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .profile-header-main {
        padding: 0 1.5rem 1.5rem !important;
        text-align: center;
    }

    .profile-header-main .flex.items-start {
        flex-direction: column;
        align-items: center !important;
    }

    .profile-hero-info {
        padding-top: 1.5rem !important;
        width: 100%;
        min-width: 0 !important;
    }

    .profile-hero-info .flex.justify-between {
        flex-direction: column;
        align-items: center !important;
        gap: 1.25rem !important;
    }

    .profile-meta-grid {
        grid-template-columns: 1fr !important;
        text-align: left;
    }

    .profile-hero-actions {
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
    }

    .name-title-area h1 {
        font-size: 1.75rem !important;
    }

    .name-title-area .job-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
}

.profile-header-banner {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}

.profile-hero-image-wrapper {
    transition: 0.3s;
}

.profile-hero-image-wrapper:hover {
    transform: scale(1.02);
}

.profile-section {
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-paper);
    border: 1px solid var(--border);
}

.profile-section .section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
}

.skill-badge {
    background: #f1f5f9;
    color: var(--secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.skill-badge:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-list li i {
    color: var(--primary);
    width: 20px;
}

.info-list li .label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-list li strong {
    font-size: 1rem;
    color: var(--secondary);
}

/* Sidebar Styling */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-post-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sidebar-post-item:hover h5 a {
    color: var(--primary);
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    overflow: hidden;
    border-radius: 8px;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.sidebar-list li:last-child {
    border: none;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    color: var(--text-main);
}

.sidebar-link-count {
    background: var(--bg-main);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Filter Component */
.filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    background: white;
}

.input-group input {
    padding-left: 2.75rem;
}

/* Card Enhancements */
.featured-card-main .card-img-wrapper {
    height: 450px;
}

.news-card .card-img-wrapper {
    height: 240px;
}

@media (max-width: 768px) {

    .featured-card-main .card-img-wrapper,
    .news-card .card-img-wrapper {
        height: 200px;
    }
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-menu li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Pagination */
.pagination-wrapper ul {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0;
}

.pagination-wrapper li {
    list-style: none;
}

.pagination-wrapper .page-numbers {
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    background: white;
}

.pagination-wrapper .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Main Footer Styling */
.main-footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-widget h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Forms & Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-menu li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Additional specific helper classes for footer */
.footer-logo-img {
    max-height: 60px;
    margin-bottom: 1.5rem;
}

.footer-brand-title {
    font-size: 1.5rem;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.footer-social {
    margin-top: 1.5rem;
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-newsletter {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    flex: 1;
    outline: none;
}

/* Spacing Fixes */
.mt-4 {
    margin-top: 4rem !important;
}

/* Theme Overrides */
body.theme-orange {
    --primary: #f97316;
    /* Orange 500 */
    --primary-dark: #ea580c;
    --secondary: #431407;
    /* Very Deep Brown/Orange */
}

body.theme-orange .nav-bar {
    background: var(--primary);
}

body.theme-orange .top-bar {
    background: var(--secondary);
}

body.theme-orange .badge {
    background: var(--secondary);
}

/* Premium Card Utilities */
.card-img-wrapper.stage-bg {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.card-img-wrapper.stage-bg img {
    height: 90%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.news-card-horizontal {
    display: flex;
    flex-direction: row !important;
    min-height: 180px;
    align-items: stretch;
}

.news-card-horizontal .card-img-wrapper {
    width: 35%;
    flex-shrink: 0;
    height: auto !important;
}

.news-card-horizontal .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem !important;
}

@media (max-width: 640px) {
    .news-card-horizontal {
        flex-direction: column !important;
    }

    .news-card-horizontal .card-img-wrapper {
        width: 100%;
        height: 200px !important;
    }
}

/* Compact Card Utilities */
.card-content {
    padding: 1.25rem;
}

.news-card .card-img-wrapper {
    height: 200px;
}

.news-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.news-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Redesigned Featured Magazine Layout */
.magazine-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .magazine-hero {
        grid-template-columns: 1fr;
    }
}

.side-article-info h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

/* Premium PNG Stage */
.stage-bg {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.stage-bg img {
    mix-blend-mode: multiply;
}

/* Height Caps (Fixed Lints) */
.news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.main-article {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-lg);
    background: var(--secondary);
}

@media (max-width: 768px) {
    .main-article {
        height: 350px;
    }

    .main-article-content {
        padding: 1.5rem;
        text-align: center;
    }

    .main-article-content h2 {
        font-size: 1.5rem;
    }

    .main-article-content .flex {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .side-article-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .side-article-thumb {
        width: 100%;
        height: 200px;
    }
}

.main-article .main-article-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.main-article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    z-index: 2;
}

.main-article-content .badge {
    background: var(--primary);
    border: none;
}

.main-article-content h2 {
    font-size: 2.25rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.main-article-content h2 a:hover {
    color: var(--primary);
}

.side-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-article-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.side-article-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.side-article-thumb {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Profile Card Compact */
.profile-card {
    text-align: center;
}

.profile-header-banner {
    height: 80px;
    /* Reduced from 180px/100px */
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.border-avatar {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    border: 4px solid white;
    box-shadow: var(--shadow);
    border-radius: 50%;
    object-fit: cover;
}

.profile-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.75rem 0 0.25rem;
}

.profile-card-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.profile-card-company {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-card-footer {
    padding: 1.25rem !important;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.badge-light {
    background: white;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-size: 0.6rem;
    padding: 2px 8px;
}

/* Comment Section Styling */
.comments-area {
    margin-top: 4rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

#commentform {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comment-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

#commentform .submit {
    background: var(--primary);
    color: white;
    padding: 0.85rem 2.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

#commentform .submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Single Blog Page Refined Styles */
.blog-detail-card {
    background: var(--bg-paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.blog-hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.blog-content-area {
    padding: 3rem;
}

.blog-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.meta-share-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-share-mini .social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--secondary);
    border-radius: 50%;
    font-size: 0.8rem;
    transition: 0.3s;
}

.meta-share-mini .social-link:hover {
    background: var(--primary);
    color: white;
}

.blog-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.blog-body p {
    margin-bottom: 1.5rem;
}

.blog-tags-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}