/* ==========================================
   HEALTHSUPPS.COM - MAIN STYLESHEET
   ========================================== */

/* ROOT VARIABLES */
:root {
    --primary-color: #2c7a3f;
    --secondary-color: #4a9d5f;
    --accent-color: #ff6b35;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --red-color: #d32f2f;
    --success-color: #28a745;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

/* HEADER */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo img {
    height: 90px;
    width: auto;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-dropdown select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 15px;
    background: white;
    cursor: pointer;
}

/* BREADCRUMB */
.breadcrumb {
    background: var(--bg-gray);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* CATEGORY PAGE STYLES */
.category-description {
    padding: 40px 0;
    background: white;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
}

.description-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.category-products-section {
    padding: 60px 0;
    background: var(--bg-gray);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px 0;
    font-size: 0.95rem;
}

.product-rating .stars {
    color: #ffc107;
    font-size: 1rem;
}

.product-rating .rating-number {
    font-weight: 600;
    color: var(--text-color);
}

.product-rating .reviews {
    color: var(--text-light);
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 15px;
}

/* CATEGORIES GRID */
.categories-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.category-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0;
    color: var(--text-color);
    font-weight: 500;
}

/* PRODUCTS GRID */
.latest-products-section,
.products-grid-section {
    padding: 60px 0;
    background: var(--bg-gray);
}

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

/* CLEAN PRODUCT LIST LAYOUT (like healthy-exam.com) */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.product-list-item {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e8e8e8;
    align-items: flex-start;
}

.product-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.product-content h3 a {
    color: #0e76a8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-content h3 a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.product-category {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    text-transform: capitalize;
}

.product-description {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.product-image-side {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px;
}

.product-image-side img {
    width: 100%;
    height: auto;
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
    object-fit: contain;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

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

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.badge-new {
    background: var(--accent-color);
    color: white;
}

.badge-bestseller {
    background: var(--success-color);
    color: white;
}

.product-image {
    height: 250px;
    overflow: hidden;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #ffc107;
    font-size: 1rem;
}

.rating-number {
    font-weight: 600;
    color: var(--text-color);
}

.reviews {
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 122, 63, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* TRUST SECTION */
.trust-section {
    padding: 60px 0;
    background: var(--bg-gray);
    text-align: center;
}

.trust-section h2.red {
    color: var(--red-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.trust-badges {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.trust-badges img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* FOOTER */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* PAGE HERO */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* CONTACT PAGE */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

.contact-info {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 15px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* BLOG GRID */
.blog-grid-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-gray);
}

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

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: var(--text-color);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
}

/* LEGAL PAGES */
.legal-section {
    padding: 60px 0;
}

.legal-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 40px;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ABOUT PAGE */
.about-section {
    padding: 60px 0;
}

.about-section.gray-bg {
    background: var(--bg-gray);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* PRODUCT DETAIL PAGE STYLES */
.product-detail-section {
    padding: 60px 0;
    background: white;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
}

/* Left Column - Product Info */
.product-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Product Images with Thumbnail (Reference Site Style) */
.product-images-wrapper {
    display: flex;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.product-main-image {
    flex: 1;
    max-width: 450px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.product-main-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.product-thumbnail {
    width: 100px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Dark Title Bar (Reference Site Style) */
.product-title-bar {
    background: #2c3e50;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-title-bar h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

/* Product Description Content */
.product-description-content {
    line-height: 1.8;
    color: var(--text-color);
}

.product-description-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.product-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.product-benefits li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-color);
}

.product-benefits li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Why Choose Section */
.product-why-choose {
    margin-top: 30px;
}

.product-why-choose h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.why-choose-list {
    list-style: none;
    padding: 0;
}

.why-choose-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-color);
}

.why-choose-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.product-header h1 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-category-label {
    color: #888;
    font-size: 1rem;
    margin-bottom: 20px;
}

.product-short-desc {
    padding: 20px;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

.product-short-desc p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
}

.product-full-desc {
    line-height: 1.8;
}

.product-full-desc h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 30px 0 15px 0;
}

.product-full-desc h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 25px 0 12px 0;
}

.product-full-desc p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-full-desc ul {
    margin: 15px 0 15px 25px;
    line-height: 2;
}

.product-full-desc li {
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Right Sidebar */
.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Buy Now Button */
.product-cta-box {
    background: white;
    border-radius: 8px;
}

.btn-buy-now {
    background: #e74c3c;
    color: white;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    display: block;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Affiliate Links Box */
.affiliate-links-box {
    background: white;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.affiliate-link {
    display: block;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.affiliate-link:last-child {
    border-bottom: none;
}

.affiliate-link:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 30px;
}

.product-cta-box,
.product-rating-box,
.product-features-box,
.product-links-box {
    background: var(--bg-gray);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-large {
    padding: 18px 30px;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    display: block;
}

.cta-note {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-rating-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-stars .stars {
    color: #ffc107;
    font-size: 1.5rem;
}

.rating-stars .rating-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.rating-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 30px 1fr 50px;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.bar-label {
    color: var(--text-light);
}

.bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
}

.bar-percent {
    text-align: right;
    color: var(--text-light);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-color);
}

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

.quick-links {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-links a:hover {
    text-decoration: underline;
}

/* Similar Products */
.similar-products-section {
    padding: 60px 0;
    background: var(--bg-gray);
}

.products-grid-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card-simple {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image-simple {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-image-simple img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-simple h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-card-simple h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.product-card-simple h3 a:hover {
    color: var(--primary-color);
}

.rating-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.rating-simple .stars {
    color: #ffc107;
}

.rating-simple span:last-child {
    font-weight: 600;
}

/* Rating Box */
.product-rating-box {
    background: var(--bg-gray);
    padding: 25px;
    border-radius: 8px;
}

.product-rating-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-stars .stars {
    color: #ffc107;
    font-size: 1.5rem;
}

.rating-stars .rating-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.rating-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 30px 1fr 50px;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.bar-label {
    color: var(--text-light);
}

.bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
}

.bar-percent {
    text-align: right;
    color: var(--text-light);
}

/* Features Box */
.product-features-box {
    background: var(--bg-gray);
    padding: 25px;
    border-radius: 8px;
}

.product-features-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-color);
    font-size: 0.95rem;
}

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

/* BLOG POST STYLES */
.blog-post-article {
    padding: 60px 0;
    background: white;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

/* Blog Post Content */
.blog-post-content {
    max-width: 800px;
}

.blog-featured-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
}

.blog-post-body {
    line-height: 1.8;
    color: var(--text-color);
}

.blog-intro {
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

.blog-post-body h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 40px 0 20px 0;
    font-weight: 600;
}

.blog-post-body h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.blog-post-body p {
    margin-bottom: 20px;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 20px 0 20px 30px;
}

.blog-post-body li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.blog-post-body ol {
    list-style: decimal;
}

.inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.inline-link:hover {
    text-decoration: underline;
}

.blog-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.blog-notice p {
    margin-bottom: 10px;
}

.blog-notice p:last-child {
    margin-bottom: 0;
}

.blog-cta-fullwidth {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 12px;
    margin: 50px 0 40px 0;
}

.blog-cta-fullwidth .cta-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-cta-fullwidth .cta-header h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.blog-cta-fullwidth .cta-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

.cta-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.cta-product-btn {
    background: white;
    color: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-product-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-product-btn .product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cta-product-btn .btn-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.blog-cta-fullwidth .cta-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.blog-cta-fullwidth .cta-footer p {
    font-size: 1.1rem;
    margin: 0;
}

.blog-cta-fullwidth .cta-footer a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.blog-cta-fullwidth .cta-footer a:hover {
    opacity: 0.8;
}

/* Share Buttons */
.blog-share {
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    margin: 40px 0;
}

.blog-share h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.pinterest {
    background: #e60023;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-card h4 {
    padding: 15px;
    margin: 0;
}

.related-post-card h4 a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
}

.related-post-card h4 a:hover {
    color: var(--primary-color);
}

.related-date {
    padding: 0 15px 15px 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg-gray);
    padding: 25px;
    border-radius: 12px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Popular Posts Widget */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.popular-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-posts-list a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-posts-list a:hover {
    opacity: 0.8;
}

.popular-posts-list img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.popular-post-info h4 {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 12px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.categories-list a:hover {
    background: var(--primary-color);
    color: white;
}

.categories-list span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Newsletter Widget */
.sidebar-newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.sidebar-newsletter h3 {
    color: white;
}

.sidebar-newsletter p {
    margin-bottom: 20px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #f0f0f0;
}

.newsletter-note {
    font-size: 0.85rem;
    margin-top: 12px;
    opacity: 0.8;
}

/* Featured Product Widget */
.sidebar-featured-product .featured-product-card {
    text-align: center;
}

.sidebar-featured-product img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.sidebar-featured-product h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.sidebar-featured-product p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.sidebar-featured-product .rating-simple {
    justify-content: center;
    margin-bottom: 15px;
}

/* Inline Product CTA Buttons */
.product-cta-inline {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-inline-cta {
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-inline-cta:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.product-cta-inline .cta-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* BLOG LISTING PAGE STYLES */
.blog-filter-section {
    padding: 40px 0 20px 0;
    background: white;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: var(--primary-color);
    color: white;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
}

.blog-posts-section {
    padding: 60px 0;
    background: white;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-post-image {
    position: relative;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-date,
.blog-read-time {
    display: flex;
    align-items: center;
}

.blog-post-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-post-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-content h3 a:hover {
    color: var(--primary-color);
}

.blog-post-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 18px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   PARTNER PRODUCTS SECTION CSS - COMPACT ONE ROW
   Add this to your main.css file
   ============================================ */

/* Partner Products Section */
.partner-products-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.partner-products-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.partner-card {
    background: white;
    border-radius: 8px;
    padding: 15px 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    width: 140px;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.partner-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.partner-icon svg {
    width: 24px;
    height: 24px;
}

.partner-card:hover .partner-icon {
    transform: scale(1.1) rotate(5deg);
}

.partner-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0 5px;
    color: #2c3e50;
    line-height: 1.3;
}

.partner-card p {
    font-size: 11px;
    color: #7f8c8d;
    margin: 0 0 8px;
    line-height: 1.4;
}

.partner-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    color: white;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.partner-link-icon svg {
    width: 12px;
    height: 12px;
}

.partner-card:hover .partner-link-icon {
    background: #764ba2;
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .partner-products-section {
        padding: 30px 0;
    }
    
    .partner-products-grid {
        gap: 12px;
    }
    
    .partner-card {
        width: 130px;
        padding: 12px 10px;
    }
    
    .partner-icon {
        width: 40px;
        height: 40px;
    }
    
    .partner-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .partner-card h3 {
        font-size: 13px;
    }
    
    .partner-card p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .partner-products-grid {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .partner-card {
        width: 110px;
        padding: 10px 8px;
    }
    
    .partner-icon {
        width: 35px;
        height: 35px;
    }
    
    .partner-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .partner-card h3 {
        font-size: 12px;
        margin: 6px 0 4px;
    }
    
    .partner-card p {
        font-size: 9px;
        margin-bottom: 6px;
    }
    
    .partner-link-icon {
        width: 18px;
        height: 18px;
    }
    
    .partner-link-icon svg {
        width: 10px;
        height: 10px;
    }
}