/* ===== CUSTOM STYLES FOR WASSALA SOFTWARE ===== */

/* Root Variables - Light Theme */
:root {
    /* Color Variables */
    --primary-color: #2c5aa0;
    --primary-dark: #1e3d6f;
    --primary-light: #4a7bc8;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Font Variables - Dynamic */
    --font-family-primary: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Poppins', 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Theme-specific variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-primary: #e9ecef;
    --border-secondary: #dee2e6;
    --shadow-primary: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-secondary: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-tertiary: 0 8px 16px rgba(0, 0, 0, 0.15);

    /* Unified Card Overhaul - Blog and Service */
    --card-radius: 14px;
    --card-border: rgba(17, 24, 39, 0.08);
    --card-shadow-sm: 0 6px 16px rgba(0, 0, 0, .06);
    --card-shadow-md: 0 12px 28px rgba(0, 0, 0, .12);
    --card-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* Dark Theme Variables */
[data-bs-theme="dark"] {
    /* Color Variables */
    --primary-color: #4a7bc8;
    --primary-dark: #2c5aa0;
    --primary-light: #6b9bdd;
    --secondary-color: #1a1a1a;
    --text-dark: #ffffff;
    --text-light: #b0b0b0;
    --border-color: #333333;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Theme-specific variables */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-primary: #30363d;
    --border-secondary: #21262d;
    --shadow-primary: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-secondary: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-tertiary: 0 8px 16px rgba(0, 0, 0, 0.5);

    /* Font Variables - Ensure proper contrast in dark mode */
    --font-family-primary: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Poppins', 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

    /* Bootstrap Dark Theme Colors */
    --bs-body-bg: #0d1117;
    --bs-body-color: #e6edf3;
    --bs-secondary-bg: #161b22;
    --bs-tertiary-bg: #21262d;
    --bs-border-color: #30363d;
    --bs-border-color-translucent: rgba(240, 246, 252, 0.1);
    --bs-primary: #58a6ff;
    --bs-secondary: #6e7681;
    --bs-success: #3fb950;
    --bs-info: #79c0ff;
    --bs-warning: #d29922;
    --bs-danger: #f85149;
    --bs-light: #f0f6fc;
    --bs-dark: #0d1117;
}

/* Font and Color Consistency for Theme Switching */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .page-layout {
    font-family: var(--font-family-primary) !important;
    color: var(--text-primary) !important;
    background-color: var(--bg-primary) !important;
}

[data-bs-theme="light"] body,
[data-bs-theme="light"] .page-layout {
    font-family: var(--font-family-primary) !important;
    color: var(--text-primary) !important;
    background-color: var(--bg-primary) !important;
}

/* Ensure proper font rendering across themes */
* {
    font-family: var(--font-family-primary);
}

/* Headings font consistency */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading) !important;
    font-weight: 600;
}

/* Text color consistency */
[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] div,
[data-bs-theme="dark"] .text-muted {
    color: var(--text-primary) !important;
}

[data-bs-theme="light"] p,
[data-bs-theme="light"] span,
[data-bs-theme="light"] div,
[data-bs-theme="light"] .text-muted {
    color: var(--text-primary) !important;
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap');

/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    transition: var(--transition);
    margin: 0;
    padding: 0;
}

/* Theme-specific backgrounds */
[data-bs-theme="light"] body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

[data-bs-theme="dark"] body {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
}

/* Font Size Classes */
.font-size-small {
    --font-size-base: 0.875rem;
    --font-size-sm: 0.75rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
}

.font-size-medium {
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
}

.font-size-large {
    --font-size-base: 1.125rem;
    --font-size-sm: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.375rem;
    --font-size-2xl: 1.625rem;
    --font-size-3xl: 2rem;
}

.font-size-xlarge {
    --font-size-base: 1.25rem;
    --font-size-sm: 1.125rem;
    --font-size-lg: 1.375rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.25rem;
}

/* Font Family Classes */
.font-inter {
    --font-family-primary: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.font-poppins {
    --font-family-primary: 'Poppins', 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Poppins', 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.font-roboto {
    --font-family-primary: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.font-open-sans {
    --font-family-primary: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.font-lato {
    --font-family-primary: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

.font-montserrat {
    --font-family-primary: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

.font-source-sans-pro {
    --font-family-primary: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
}

.font-nunito {
    --font-family-primary: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
}

/* Theme Controls Styles */
.theme-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.theme-settings-dropdown {
    position: relative;
}

.theme-settings-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.theme-settings-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.theme-settings-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-tertiary);
    padding: 1rem;
    min-width: 250px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.settings-section {
    margin-bottom: 1rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h6 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.color-scheme-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-scheme-btn {
    background: transparent;
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.color-scheme-btn:hover {
    transform: scale(1.1);
}

.color-scheme-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: var(--transition);
}

.color-preview.default {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

.color-preview.blue {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.color-preview.green {
    background: linear-gradient(45deg, #10b981, #059669);
}

.color-preview.purple {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
}

/* Color Scheme Support */
/* .color-scheme-default uses default theme colors */

.color-scheme-blue {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --accent-color: #06b6d4;
}

.color-scheme-green {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --accent-color: #84cc16;
}

.color-scheme-purple {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --accent-color: #ec4899;
}

/* Dark theme color scheme overrides */
[data-bs-theme="dark"].color-scheme-blue {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #93c5fd;
    --accent-color: #22d3ee;
}

[data-bs-theme="dark"].color-scheme-green {
    --primary-color: #34d399;
    --primary-dark: #10b981;
    --primary-light: #6ee7b7;
    --accent-color: #a3e635;
}

[data-bs-theme="dark"].color-scheme-purple {
    --primary-color: #a78bfa;
    --primary-dark: #8b5cf6;
    --primary-light: #c4b5fd;
    --accent-color: #f472b6;
}

/* Comment System Styles */
.comment-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.comment-header {
    margin-bottom: 2rem;
    text-align: center;
}

.comment-header h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.comment-form {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.comment-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.comment-item:hover {
    box-shadow: var(--shadow-secondary);
}

.comment-item.reply {
    margin-left: 2rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary-color);
}

.comment-content {
    position: relative;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0;
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.comment-date {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.comment-body {
    margin-bottom: 1rem;
}

.comment-body p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-primary);
}

.replies {
    margin-top: 1rem;
}

.empty-comments {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-comments i {
    color: var(--text-muted);
}

/* Comment Management Styles */
.comment-preview {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.4;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.nav-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-tabs .nav-link {
    color: var(--text-primary);
    border-color: var(--border-primary);
}

.nav-tabs .nav-link:hover {
    border-color: var(--border-secondary);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-settings-panel {
        right: -50px;
        min-width: 200px;
    }

    .comment-item.reply {
        margin-left: 1rem;
    }

    .comment-form {
        padding: 1rem;
    }

    .comment-section {
        padding: 1rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    color: var(--bs-body-color);
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

h5 {
    font-size: var(--font-size-base);
}

h6 {
    font-size: var(--font-size-sm);
}

/* Glassmorphism Effect */
.glassmorphism {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(44, 90, 160, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(44, 90, 160, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>');
    background-size: cover;
    background-position: bottom;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-hero-image {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.floating-card span {
    font-size: 0.9rem;
    white-space: nowrap;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--text-dark);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-rating {
    margin: 0.75rem 0;
    color: #ffc107;
}

.product-rating .rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(44, 90, 160, 0.1);
    line-height: 1;
}

.feature-card-small {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.feature-card-small:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.feature-icon-small {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card-small h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card-small p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-left: 1rem;
}

.author-info h6 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

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

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
    background: white;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid var(--border-color);
    border-top: 0.25rem solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .card-header {
        padding: 1rem;
    }
}

/* RTL Support */
[dir="rtl"] .hero-section::before {
    transform: scaleX(-1);
}

[dir="rtl"] .feature-card::before {
    right: 0;
    left: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Toast Notifications */
.toast {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Admin Panel Styles */
.admin-sidebar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    min-height: 100vh;
    box-shadow: var(--shadow-medium);
}

.admin-content {
    background: var(--secondary-color);
    min-height: 100vh;
}

.admin-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    margin-bottom: 1.5rem;
}

.admin-card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.dashboard-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.dashboard-stats .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    min-width: 100px;
}

.dashboard-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.dashboard-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin Cards */
.admin-card {
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.admin-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    font-weight: 600;
    padding: 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), #20c997);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card .stat-label {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.stat-card .stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Recent Items */
.recent-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item:hover {
    background: rgba(44, 90, 160, 0.05);
}

.recent-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 1rem;
    font-size: 1.2rem;
}

.recent-item-content {
    flex: 1;
}

.recent-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

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

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.quick-action-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-action-btn span {
    font-weight: 600;
}

/* Responsive Design for Admin */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }

    .dashboard-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .dashboard-stats .stat-item {
        min-width: auto;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), #20c997);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--primary-light)) 1;
}

/* Image Placeholders */
.image-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
    border-radius: var(--border-radius);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: var(--text-light);
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Search and Filter Bar */
.search-filter-bar {
    position: relative;
    z-index: 2;
}

.search-filter-bar .form-control,
.search-filter-bar .form-select {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.search-filter-bar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-filter-bar .form-control:focus,
.search-filter-bar .form-select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: white;
}

.search-filter-bar .btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.search-filter-bar .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Products Section */
.products-section {
    background: #f8f9fa;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card Enhancements */
.product-card {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-rating {
    margin: 0.75rem 0;
    color: #ffc107;
}

.product-rating .rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Loading States */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.3rem solid var(--border-color);
    border-top: 0.3rem solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Product Details Page */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.product-gallery {
    position: sticky;
    top: 2rem;
}

.main-image {
    position: relative;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.main-image:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

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

.product-details {
    padding-left: 2rem;
}

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

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

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

.product-price-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

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

.product-description,
.product-features {
    margin-bottom: 2rem;
}

.product-description h5,
.product-features h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.features-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-weight: 500;
}

.product-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-selector .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.out-of-stock {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-info .alert {
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid var(--primary-color);
}

.contact-info .alert h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info .alert p {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Related Products */
.related-products {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-products h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Responsive Design for Products */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .search-filter-bar .row>div {
        margin-bottom: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-details {
        padding-left: 0;
        margin-top: 2rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .action-buttons,
    .out-of-stock {
        flex-direction: column;
    }

    .action-buttons .btn,
    .out-of-stock .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transition: width 0.6s ease;
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

/* Tables */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(44, 90, 160, 0.05);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1rem 2rem 2rem;
}

/* ===== LOGO STYLES ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 60px;
    }
}

/* Dark theme logo adjustments */
[data-bs-theme="dark"] .logo-text {
    color: var(--primary-light);
}

[data-bs-theme="dark"] .logo-subtitle {
    color: var(--text-muted);
}

/* ===== GLASS HEADER STYLES ===== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-header .header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    z-index: -1;
}

.glass-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-header .header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.glass-header .nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-header .nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.glass-header .nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.glass-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.glass-header .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-header .logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 25px;
    text-decoration: none;
    color: #dc3545;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.glass-header .logout-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

/* ===== GLASS FOOTER STYLES ===== */
.glass-footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    overflow: hidden;
    height: 250px;
    margin-top: auto;
    background: #7325ce;
}

.footer-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.footer-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #1976d2;
    clip-path: polygon(0 0, 100% 0, 50% 100%, 0 100%);
}

.footer-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #7b1fa2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%);
}

.footer-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-size: 0.8rem;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo-image:hover {
    transform: scale(1.1);
}

/* Footer Location Styles */
.footer-location {
    color: white;
    text-align: center;
}

.footer-location h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.location-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-info i {
    width: 16px;
    text-align: center;
}

/* Footer Social Styles */
.footer-social-section {
    color: white;
    text-align: center;
}

.footer-social-section h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}

/* Footer Newsletter Styles */
.footer-newsletter {
    color: white;
    text-align: center;
}

.footer-newsletter h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.newsletter-input {
    width: 100%;
    max-width: 200px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.8rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Footer Services Styles */
.footer-services {
    color: white;
    text-align: center;
}

.footer-services h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

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

.footer-services li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Footer Company Styles */
.footer-company {
    color: white;
    text-align: center;
}

.footer-company h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.company-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.4;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.65rem;
    margin: 0;
}

/* Footer Links Styles */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-services {
    color: white;
    text-align: center;
}

.footer-services h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-services li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact {
    color: white;
    text-align: center;
}

.footer-contact h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info i {
    width: 16px;
    text-align: center;
}

/* Responsive Design for Header and Footer */
@media (max-width: 768px) {
    .glass-header .header-content {
        padding: 1rem;
    }

    .glass-header .header-nav {
        display: none;
    }

    .glass-footer {
        height: 300px;
    }

    .footer-content {
        padding: 0.5rem 0;
        font-size: 0.7rem;
    }

    .footer-logo-image {
        width: 60px;
        height: 60px;
    }

    .footer-services,
    .footer-location,
    .footer-social-section,
    .footer-newsletter,
    .footer-company {
        margin-top: 0.5rem;
    }

    .footer-services h6,
    .footer-location h6,
    .footer-social-section h6,
    .footer-newsletter h6,
    .footer-company h6 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .footer-services li,
    .location-info p,
    .company-info p,
    .newsletter-input {
        font-size: 0.65rem;
    }

    .social-link {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .glass-footer {
        height: 350px;
    }

    .footer-logo-image {
        width: 50px;
        height: 50px;
    }

    .footer-content {
        padding: 0.3rem 0;
        font-size: 0.65rem;
    }

    .footer-services,
    .footer-location,
    .footer-social-section,
    .footer-newsletter,
    .footer-company {
        margin-top: 0.3rem;
    }

    .footer-services h6,
    .footer-location h6,
    .footer-social-section h6,
    .footer-newsletter h6,
    .footer-company h6 {
        font-size: 0.7rem;
    }

    .footer-services li,
    .location-info p,
    .company-info p,
    .newsletter-input {
        font-size: 0.6rem;
    }

    .social-link {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .newsletter-form {
        gap: 0.2rem;
    }
}

/* ===== RICH TEXT EDITOR RESPONSIVE STYLES ===== */
.richtexteditor {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .richtexteditor {
        min-width: 100% !important;
        width: 100% !important;
    }

    rte-toolbar {
        flex-wrap: wrap !important;
        overflow-x: auto !important;
    }

    rte-toolbar rte-button {
        min-width: 40px !important;
        height: 40px !important;
    }

    rte-content {
        min-height: 200px !important;
        padding: 10px !important;
    }
}

@media (max-width: 576px) {
    .richtexteditor {
        border-radius: 8px !important;
    }

    rte-toolbar {
        padding: 5px !important;
    }

    rte-toolbar rte-button {
        min-width: 35px !important;
        height: 35px !important;
        font-size: 12px !important;
    }

    rte-content {
        min-height: 150px !important;
        padding: 8px !important;
        font-size: 14px !important;
    }
}

/* Ensure proper display on all screen sizes */
.rte-responsive-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.rte-responsive-container .richtexteditor {
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== MAIN CONTENT ADJUSTMENTS ===== */
.glass-main {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    padding: 0;
    margin: 0;
    flex: 1;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-image-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.floating-card.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 10%;
    right: 15%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.main-hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hero-logo-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: pulse 4s ease-in-out infinite;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-image-container {
        height: 300px;
        margin-top: 2rem;
    }

    .floating-card {
        padding: 15px;
        font-size: 0.8rem;
    }

    .floating-card.card-1 {
        top: 10%;
        left: 5%;
    }

    .floating-card.card-2 {
        top: 5%;
        right: 5%;
    }

    .floating-card.card-3 {
        bottom: 10%;
        left: 2%;
    }

    .hero-logo-container {
        padding: 20px;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }

    .floating-card {
        display: none;
    }

    .hero-logo-container {
        padding: 15px;
    }

    .hero-logo {
        width: 60px;
        height: 60px;
    }
}

/* Blog card enhancements */
.blog-card {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.blog-card .product-image {
    border-radius: 10px;
    overflow: hidden;
}

.blog-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    border-color: rgba(13, 110, 253, .2);
}

.blog-card:hover .product-image img {
    transform: scale(1.03);
}

.blog-card .badge {
    border-radius: 999px;
}

/* Service card enhancements */
.service-card {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card .product-image {
    border-radius: 10px;
    overflow: hidden;
}

.service-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    border-color: rgba(13, 110, 253, .2);
}

.service-card:hover .product-image img {
    transform: scale(1.03);
}

.service-card .badge {
    border-radius: 999px;
}

/* Unified Card Overhaul - Blog and Service */
.product-card.blog-card,
.product-card.service-card {
    border-radius: var(--card-radius);
    border: 1px solid var(--card-border);
    background: #fff;
    box-shadow: var(--card-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card.blog-card:hover,
.product-card.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-md);
    border-color: rgba(13, 110, 253, .25);
}

.product-card .product-image {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-top-left-radius: calc(var(--card-radius) - 1px);
    border-top-right-radius: calc(var(--card-radius) - 1px);
    background: #f3f4f6;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* Overlay button area refined */
.product-card .product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0.75rem 0.75rem;
    background: transparent;
    pointer-events: none;
}

.product-card .product-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--card-overlay);
    opacity: 0;
    transition: opacity .22s ease;
}

.product-card:hover .product-overlay::after {
    opacity: 1;
}

.product-card .product-overlay>* {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Tag chips inside overlay or info */
.product-card .tag-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #111827;
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, .06);
}

/* Info area */
.product-card .product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-card .product-info h5,
.product-card .product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.product-card .product-description,
.product-card p {
    color: #4b5563;
    font-size: .92rem;
}

/* Footer/meta row */
.product-card .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(17, 24, 39, .08);
}

.product-card .meta-row small {
    color: #6b7280;
}

/* Compact badges */
.product-card .badge {
    border-radius: 999px;
    font-weight: 700;
}

/* Dark theme adjustments */
.theme-dark .product-card.blog-card,
.theme-dark .product-card.service-card {
    background: #0f172a;
    border-color: rgba(148, 163, 184, .12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

.theme-dark .product-card .product-image {
    background: #111827;
}

.theme-dark .product-card .product-overlay::after {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, .75) 100%);
}

.theme-dark .product-card .product-info h5 {
    color: #e5e7eb;
}

.theme-dark .product-card .product-description {
    color: #94a3b8;
}

.theme-dark .product-card .meta-row {
    border-top-color: rgba(148, 163, 184, .12);
}

.theme-dark .product-card .tag-chip {
    background: rgba(30, 41, 59, .85);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .12);
}

/* Responsive tuning */
@media (max-width: 768px) {
    .product-card .product-info {
        padding: .85rem .9rem 1rem;
    }
}

/* Editor table default look */
.editor-table,
.service-content table,
.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.editor-table th,
.editor-table td,
.service-content table th,
.service-content table td,
.article-content table th,
.article-content table td {
    padding: 0.75rem 1rem;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    text-align: right;
}

.editor-table tr>th:last-child,
.editor-table tr>td:last-child,
.service-content table tr>th:last-child,
.service-content table tr>td:last-child,
.article-content table tr>th:last-child,
.article-content table tr>td:last-child {
    border-right: 0;
}

.editor-table thead th,
.service-content table thead th,
.article-content table thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
}

.editor-table tbody tr:nth-child(even),
.service-content table tbody tr:nth-child(even),
.article-content table tbody tr:nth-child(even) {
    background: #fafafa;
}

.editor-table tbody tr:hover,
.service-content table tbody tr:hover,
.article-content table tbody tr:hover {
    background: #f5f5f5;
}

/* Make images inside content responsive */
.service-content img,
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Enhanced inner borders for tables */
.service-content table,
.article-content table {
    border-collapse: separate;
    border-spacing: 0;
}

.service-content table th,
.service-content table td,
.article-content table th,
.article-content table td {
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.service-content table tr>th:last-child,
.service-content table tr>td:last-child,
.article-content table tr>th:last-child,
.article-content table tr>td:last-child {
    border-right: 0;
}

.service-content table thead th,
.article-content table thead th {
    background: var(--gray-50);
    color: var(--gray-700);
}

/* Home Page Specific Styles */
.home-about-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2d2d9f;
    line-height: 1.4;
    margin-bottom: 15px;
}

.home-about-text {
    font-size: 1.25rem;
    color: #3d3d3d;
    line-height: 1.9;
    font-weight: 500;
    margin-bottom: 30px;
}

.home-feature-list {
    list-style: none;
    padding: 0;
    direction: rtl;
    margin-bottom: 35px;
}

.home-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
}

.home-feature-icon {
    min-width: 32px;
    height: 32px;
    background: #3265df;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.home-feature-text {
    font-size: 17px;
    font-weight: 600;
    color: #2b2b2b;
    line-height: 1.8;
}

.home-cta-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
}

/* ===== BLOG DETAILS STYLES ===== */

.blog-details-page {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

.blog-article {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    padding-bottom: 2rem;
}

/* Article Header */
.article-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    float: right;
    padding-left: 0.5rem;
    color: var(--text-muted);
    content: "/";
}

[dir="rtl"] .breadcrumb-item+.breadcrumb-item::before {
    float: right;
    padding-right: 0;
    padding-left: 0.5rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.meta-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-icon {
    color: var(--primary-color);
}

.tags-section {
    display: flex;
    justify-content: center;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.article-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.article-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Featured Image */
.featured-image-section {
    width: 100%;
    margin-bottom: 3rem;
}

.featured-image-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

/* Summary Section */
.summary-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.summary-card {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(44, 90, 160, 0.1));
    border-right: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
}

.summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
    font-style: italic;
}

/* Table of Contents */
.table-of-contents {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    cursor: pointer;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.toc-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.toc-content.show {
    padding: 1rem 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.toc-item {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.toc-item:last-child {
    border-bottom: none;
}

.toc-item:hover {
    color: var(--primary-color);
    padding-right: 0.5rem;
}

.toc-level-1 {
    font-weight: 700;
}

.toc-level-2 {
    padding-right: 1rem;
}

.toc-level-3 {
    padding-right: 2rem;
    font-size: 0.95rem;
}

/* Content Section */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
}

.content-divider {
    height: 2px;
    background: var(--border-color);
    width: 100%;
    border-radius: 2px;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-light);
}

.article-content blockquote {
    border-right: 4px solid var(--primary-color);
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Reading Progress */
.reading-progress {
    margin-top: 3rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.reading-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.social-share {
    text-align: center;
}

.share-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: white;
}

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

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

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

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy {
    background: var(--text-secondary);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.btn-back {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-back:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.btn-edit {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

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

/* Similar Articles */
.similar-articles-section {
    margin-top: 4rem;
}

.similar-articles-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.similar-articles-section .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .article-header {
        padding: 2rem 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .featured-image-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .blog-details-page {
        padding: 1rem 0;
    }

    .blog-article {
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .article-header {
        padding: 1rem;
    }

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

    .featured-image-container {
        height: 250px;
        border-radius: 12px;
    }

    .featured-image-section {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .content-section,
    .summary-section,
    .table-of-contents,
    .article-footer {
        padding: 0 1rem;
    }

    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-back,
    .btn-edit {
        width: 100%;
        justify-content: center;
    }
}