/* CRM Reviewz – G2/Capterra-style review site */
/* Colors: #ff8080 (coral), #6a68ee (purple), #e6e6e6 (light gray) */

:root {
    --primary-color: #ff8080;
    --primary-dark: #e66a6a;
    --secondary-color: #6a68ee;
    --secondary-dark: #5553d4;
    --accent-color: #e6e6e6;
    --text-color: #1a1a2e;
    --text-muted: #5a5a72;
    --bg-color: #ffffff;
    --bg-alt: #f8f8fa;
    --border-color: #e0e0e8;
    --shadow: 0 2px 12px rgba(26, 26, 46, 0.06);
    --shadow-hover: 0 8px 24px rgba(106, 104, 238, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-alt);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Header ----- */
.main-header {
    background: var(--bg-color);
    border-bottom: 2px solid var(--accent-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.main-menu > ul > li {
    position: relative;
}

.main-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.main-menu a:hover {
    color: var(--secondary-color);
    background: var(--accent-color);
}

.header-cta {
    display: inline-block;
    background: var(--secondary-color);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--secondary-dark) !important;
    color: white !important;
}

.menu-dropdown > a::after {
    content: ' ▾';
    font-size: 0.75em;
    opacity: 0.8;
}

.menu-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--bg-color);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.menu-dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 6px;
}

.menu-dropdown:hover .menu-dropdown-content {
    display: block;
}

.menu-dropdown-content a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-color);
    border-radius: 0;
}

.menu-dropdown-content a:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: 0.3s;
}

/* ----- Buttons / CTAs ----- */
.btn-cta {
    display: inline-block;
    background: var(--secondary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(106, 104, 238, 0.3);
}

.btn-cta:hover {
    background: var(--secondary-dark);
    color: white !important;
    transform: translateY(-1px);
}

.btn-cta-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-cta-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.hero-cta {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    padding: 0.9rem 2rem;
}

.footer-cta {
    margin-top: 0.75rem;
    display: inline-block;
}

/* ----- Main content ----- */
.main-content {
    min-height: calc(100vh - 180px);
    padding: 2rem 0 3rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.content-area {
    flex: 1;
}

.page-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

/* ----- Hero ----- */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #8583f0 100%);
    color: white;
    padding: 3.5rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-hover);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 540px;
    margin: 0 auto;
}

/* ----- Highlighted article ----- */
.highlighted-article {
    margin-bottom: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s;
}

.highlighted-article:hover {
    box-shadow: var(--shadow-hover);
}

.highlighted-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.highlighted-article-image {
    width: 100%;
    overflow: hidden;
}

.highlighted-article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 380px;
}

.highlighted-article-content {
    padding: 1.75rem;
}

.highlight-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.highlighted-article-title {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlighted-article-title:hover {
    color: var(--secondary-color);
}

.highlighted-article-intro {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.read-more {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ----- Categories grid ----- */
.main-categories {
    margin-bottom: 2.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1.5rem;
}

.category-card h3 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.category-count {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ----- Posts grid ----- */
.latest-posts,
.popular-posts,
.tags-section {
    margin-bottom: 2.5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

.post-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.post-content {
    padding: 1.25rem;
}

.post-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.post-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.post-content h3:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ----- Popular posts list ----- */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-post-item {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.popular-post-item:hover {
    border-color: var(--secondary-color);
}

.popular-post-item a {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.popular-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.popular-content h4 {
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.popular-content h4:hover {
    color: var(--secondary-color);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ----- Tags ----- */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.tag-link:hover {
    background: var(--secondary-color);
    color: white;
}

/* ----- Sidebar ----- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.sidebar a {
    text-decoration: none;
    color: inherit;
}

.widget {
    background: var(--bg-color);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.widget h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.widget ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-thumbnail {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    float: left;
    margin-right: 0.85rem;
}

.widget-title {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.widget-title:hover {
    color: var(--secondary-color);
}

.no-tags {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ----- Ad widgets (prominent) ----- */
.ad-widget {
    position: relative;
}

.ad-widget-prominent {
    background: linear-gradient(145deg, #fafaff 0%, #f0efff 100%);
    border: 2px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(106, 104, 238, 0.12);
}

.ad-label {
    display: inline-block;
    position: absolute;
    top: -10px;
    left: 1rem;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.ad-promo {
    text-align: center;
    padding-top: 0.5rem;
}

.ad-promo-text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ad-promo-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: white !important;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.ad-promo-btn:hover {
    background: var(--secondary-dark);
    color: white !important;
}

.ad-widget-in-article {
    margin: 2rem 0;
}

.ad-widget-below-post {
    margin-top: 2rem;
}

/* Legacy ad styles */
.ad-ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.ad-promo-logo {
    max-width: 120px;
    max-height: 44px;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

/* ----- Category page ----- */
.category-header {
    margin-bottom: 1.5rem;
}

.category-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.category-description {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
    margin-top: 1rem;
    line-height: 1.7;
}

.category-tags {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.category-tags h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.tag-header .tag-meta {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ----- Posts list (category/tag) ----- */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-item:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.post-item a {
    display: flex;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.post-item-image {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
}

.post-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item-content {
    padding: 1.5rem;
    flex: 1;
}

.post-item-content h2 {
    color: var(--text-color);
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.post-item-content h2:hover {
    color: var(--secondary-color);
}

/* ----- Pagination ----- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--text-muted);
}

/* ----- Single post ----- */
.single-post {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-header h1 {
    color: var(--text-color);
    font-size: 2.25rem;
    margin: 0.75rem 0;
    font-weight: 700;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-feature-image {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    display: block;
}

.single-post .post-content {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.single-post .post-content p {
    margin-bottom: 1rem;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.post-tags,
.post-categories {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-tags h3,
.post-categories h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-categories ul {
    list-style: none;
}

.post-categories li {
    margin-bottom: 0.5rem;
}

.post-categories a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-categories a:hover {
    text-decoration: underline;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
}

.nav-link {
    flex: 1;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: var(--bg-color);
    border-color: var(--secondary-color);
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.nav-next {
    text-align: right;
}

/* ----- Static pages ----- */
.static-page {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.static-page h1 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.static-content h2 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.static-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.static-content li {
    margin-bottom: 0.4rem;
}

/* ----- Contact ----- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-details {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.contact-form,
.advertising-form {
    background: var(--bg-alt);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-button {
    background: var(--secondary-color);
    color: white;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover {
    background: var(--secondary-dark);
}

.advertising-options {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.ad-option {
    background: var(--bg-color);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.ad-option h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.ad-option ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.contact-advertising,
.advertising-form-section {
    margin-top: 1.5rem;
}

/* ----- Alerts ----- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ----- Team ----- */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.team-card-image {
    flex: 0 0 25%;
    width: 25%;
    position: relative;
    height: 0;
    padding-bottom: 25%;
    border-radius: 50%;
    overflow: hidden;
    margin: 1.25rem;
    background: var(--accent-color);
}

.team-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.team-card-content {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.25rem 1.25rem 0;
}

.team-card-name {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.team-card-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.team-card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.team-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.team-tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ----- Companies ----- */
.companies-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-widget {
    background: var(--bg-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.company-widget-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    flex-wrap: wrap;
}

.company-widget-logo img {
    max-width: 110px;
    max-height: 44px;
    object-fit: contain;
}

.company-widget-name {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.company-widget-details {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.company-widget-details[hidden] {
    display: none;
}

.company-detail-block {
    padding-top: 1rem;
}

.company-detail-block h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.company-website-btn {
    display: inline-block;
    margin-top: 0.5rem;
}

.company-tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ----- Footer ----- */
.main-footer {
    background: var(--text-color);
    color: white;
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-section p {
    color: #b0b0c0;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: #b0b0c0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-cta {
    color: white !important;
    background: var(--secondary-color);
}

.footer-cta:hover {
    color: white !important;
    background: var(--secondary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #8888a0;
    font-size: 0.9rem;
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
        position: static;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .post-item a {
        flex-direction: column;
    }
    
    .post-item-image {
        width: 100%;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 1rem;
        border-bottom: 2px solid var(--accent-color);
        box-shadow: var(--shadow);
    }
    
    .main-menu.active {
        display: block;
    }
    
    .main-menu ul {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .header-cta {
        margin-left: auto;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-dropdown-content {
        position: static;
        display: none;
        background: var(--accent-color);
        margin-top: 0.5rem;
        margin-left: 1rem;
        border: none;
    }
    
    .menu-dropdown.active .menu-dropdown-content {
        display: block;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .categories-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        flex-direction: column;
    }
    
    .team-card-image {
        flex: none;
        width: 140px;
        padding-bottom: 0;
        height: 140px;
        margin: 1.25rem auto;
    }
    
    .team-card-content {
        padding: 0 1.25rem 1.25rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
}
