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

/* CSS Variables */
:root {
    --primary-color: #26c0cd;
    --secondary-color: #26c0cd;
    --accent-color: #FFD166;
    --dark-color: #292F36;
    --light-color: #F7FFF7;
    --gray-color: #E5E5E5;
    --text-color: #292F36;
    --text-secondary: #6C757D;
    --border-radius: 20px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
    --header-height: 80px;
}

/* Breadcrumb Styles */
.breadcrumb {
    padding: 1rem 2rem;
    background-color: rgba(247, 255, 247, 0.5);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

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

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

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 600px;
    max-height: 600px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.carousel-content-bottom {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90%;
    max-width: 800px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    color: white;
    box-sizing: border-box;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-content-bottom h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.carousel-content-bottom p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.carousel-indicators {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: white;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.carousel-control.prev {
    left: 2rem;
}

.carousel-control.next {
    right: 2rem;
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 25px 25px;
    box-shadow: var(--box-shadow);
    padding: 1rem;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: rgba(38, 192, 205, 0.1);
}

.search-result-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

/* Hide White Noise Timer */
.white-noise-timer {
    display: none !important;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Article Content Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hide the first h1 in article content (already shown in page header) */
.article-content > h1:first-of-type {
    display: none;
}

.article-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.2;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--dark-color);
}

.article-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.article-content p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-content img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    margin: 0.8rem auto;
    display: block;
}

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

.article-content li {
    margin-bottom: 0.2rem;
    line-height: 1.5;
}

.article-content strong {
    font-weight: 600;
    color: var(--dark-color);
}

.article-content em {
    font-style: italic;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

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

.article-content a:hover {
    color: var(--secondary-color);
}

/* Table Styles */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-content table thead {
    background-color: var(--primary-color);
    color: white;
}

.article-content table th {
    padding: 0.6rem;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 0.6rem;
    border-bottom: 1px solid var(--gray-color);
}

.article-content table tr:last-child td {
    border-bottom: none;
}

.article-content table tr:hover {
    background-color: rgba(38, 192, 205, 0.05);
}

/* References Section */
.references-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-color);
}

.references-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.references-section ol {
    padding-left: 2rem;
}

.references-section li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.references-section li a {
    color: var(--primary-color);
    text-decoration: underline;
}

.references-section li a:hover {
    color: var(--secondary-color);
}

/* Related Articles Section */
.related-articles {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-color);
}

.related-articles h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

/* Tags Section */
.tags-section {
    margin-top: 0.5rem;
    text-align: center;
}

.tags-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
    display: inline-block;
}

.tags-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
    align-items: center;
}

.tag-link {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: rgba(38, 192, 205, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

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


/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--light-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar.collapsed {
    transform: translateX(-100%);
    width: 0;
    padding: 0;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    color: white;
    z-index: 1000;
    margin-right: 1rem;
    flex-shrink: 0;
}

.sidebar:not(.collapsed) {
    z-index: 1000;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

/* Sidebar Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    background-color: transparent;
}

.sidebar-logo img {
    height: 48px;
    width: auto;
    border-radius: 12px;
    display: block;
    background-color: transparent;
    border: none;
    outline: none;
}

/* Sidebar Nav */
.sidebar-nav {
    margin-bottom: 3rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section h2 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.collapse-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.collapse-btn:hover {
    color: var(--secondary-color);
    transform: rotate(180deg);
}

.nav-section ul {
    list-style: none;
    transition: var(--transition);
}

.nav-section li {
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-section a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    flex: 1;
}

.sub-collapse-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.sub-collapse-btn:hover {
    color: var(--secondary-color);
    transform: rotate(180deg);
}

.sub-nav {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    display: none;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.sub-nav::-webkit-scrollbar {
    width: 0;
}

.sub-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sub-nav::-webkit-scrollbar-thumb {
    background: transparent;
}

.sub-nav.show {
    display: block;
}

.sub-nav li {
    margin-bottom: 0.3rem;
}

.sub-nav a {
    padding: 0.8rem;
    font-size: 0.9rem;
}

.nav-title {
    cursor: pointer;
}

.nav-section h2 {
    cursor: default;
}

/* Ensure all emojis are not italic */
i {
    font-style: normal;
}

.nav-section a:hover,
.nav-section a.active {
    background-color: rgba(38, 192, 205, 0.1);
    color: var(--secondary-color);
    transform: translateX(5px);
}

.nav-section a i {
    font-size: 1.2rem;
    font-style: normal;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-color);
}

.sidebar-footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    transition: var(--transition);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(247, 255, 247, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin: 0 2rem;
}

.header-search input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid var(--gray-color);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 169, 74, 0.1);
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

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

.header-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
}

.header-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section-title p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 0.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Brands Grid - For secondary pages (2 columns) */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Home Page Sections - Single row, max 6 items */
.home-section .brands-grid,
.home-section .tools-grid,
.home-section .knowledge-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 1200px;
    margin: 0 auto;
}

.home-section .brands-grid::-webkit-scrollbar,
.home-section .tools-grid::-webkit-scrollbar,
.home-section .knowledge-grid::-webkit-scrollbar {
    height: 6px;
}

.home-section .brands-grid::-webkit-scrollbar-track,
.home-section .tools-grid::-webkit-scrollbar-track,
.home-section .knowledge-grid::-webkit-scrollbar-track {
    background: var(--gray-color);
    border-radius: 3px;
}

.home-section .brands-grid::-webkit-scrollbar-thumb,
.home-section .tools-grid::-webkit-scrollbar-thumb,
.home-section .knowledge-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.home-section .brands-grid::-webkit-scrollbar-thumb:hover,
.home-section .tools-grid::-webkit-scrollbar-thumb:hover,
.home-section .knowledge-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Limit to max 6 items on home page */
.home-section .brands-grid > *:nth-child(n+7),
.home-section .tools-grid > *:nth-child(n+7),
.home-section .knowledge-grid > *:nth-child(n+7) {
    display: none;
}

.brand-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    display: block;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.brand-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-card-link:hover {
    text-decoration: none;
}

.brand-card-link:hover .brand-card {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.brand-card-header {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}

.brand-card-header .card-image-wrapper {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.brand-icon {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.mcdonalds .brand-card-header {
    background-color: #26c0cd;
}

.subway .brand-card-header {
    background-color: #26c0cd;
}

.brand-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.brand-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.brand-card-body p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.brand-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.brand-link {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

.brand-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.brand-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Tools Section */
.tools-section {
    background-color: #F0F4F8;
}

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

.tools-scroll {
    position: relative;
    overflow: hidden;
}

.tools-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.tools-wrapper .knowledge-card {
    flex: 0 0 300px;
    width: 300px;
}

.tools-wrapper::-webkit-scrollbar {
    height: 6px;
}

.tools-wrapper::-webkit-scrollbar-track {
    background: var(--gray-color);
    border-radius: 3px;
}

.tools-wrapper::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.tools-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.tool-card {
    flex: 0 0 300px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tool-card-header {
    height: 180px;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

.tool-card-header .card-image-wrapper {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
}

.tool-card-header img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

.tool-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.tool-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.tool-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tool-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--light-color);
    color: var(--secondary-color);
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.8rem;
    border: 1px solid var(--secondary-color);
    min-width: 120px;
    text-align: center;
}

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

/* Knowledge Grid */
.knowledge-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 1200px;
    margin: 0 auto;
}

.knowledge-grid::-webkit-scrollbar {
    height: 6px;
}

.knowledge-grid::-webkit-scrollbar-track {
    background: var(--gray-color);
    border-radius: 3px;
}

.knowledge-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.knowledge-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.knowledge-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 450px;
    flex: 0 0 300px;
    width: 300px;
}

.knowledge-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.knowledge-card-link:hover {
    text-decoration: none !important;
}

.knowledge-card {
    text-decoration: none !important;
}

.knowledge-card * {
    text-decoration: none !important;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.knowledge-card-header {
    height: 180px;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

.knowledge-card-header .card-image-wrapper {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
}

.knowledge-card-header img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}


.knowledge-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.knowledge-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    flex-shrink: 0;
}

.knowledge-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    max-height: 4.5em;
}

.knowledge-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: auto;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

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

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

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1002;
        width: 80%;
        max-width: 300px;
    }

    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    .header {
        padding: 0.5rem 0.8rem;
        position: sticky;
        top: 0;
        flex-wrap: nowrap;
        gap: 0.5rem;
        height: auto;
        min-height: var(--header-height);
        align-items: center;
        z-index: 900;
    }

    .header-search {
        flex: 1;
        max-width: 100%;
        margin: 0;
        flex-shrink: 1;
        position: relative;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        flex-shrink: 0;
    }
    
    .header-search input {
        padding: 0.6rem 0.6rem 0.6rem 2rem;
        font-size: 0.7rem;
        height: 36px;
        width: 100%;
    }
    
    .header-search i {
        left: 0.7rem;
        font-size: 0.8rem;
    }
    
    .header-action {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .lang-dropdown-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        height: 32px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    /* Secondary pages: 2 columns on mobile */
    .brands-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Home page sections: horizontal scroll on mobile */
    .home-section .brands-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding: 1rem 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: none;
    }
    
    .home-section .brands-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .home-section .brands-grid::-webkit-scrollbar-track {
        background: var(--gray-color);
        border-radius: 3px;
    }
    
    .home-section .brands-grid::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 3px;
    }
    
    .brand-card {
        flex: 0 0 250px;
    }

    .tools-wrapper {
        padding: 1rem 0;
    }

    .tool-card {
        flex: 0 0 250px;
    }

    .tools-wrapper .knowledge-card {
        flex: 0 0 280px;
        width: 280px;
    }

    .knowledge-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding: 1rem 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: none;
    }
    
    .knowledge-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .knowledge-grid::-webkit-scrollbar-track {
        background: var(--gray-color);
        border-radius: 3px;
    }
    
    .knowledge-grid::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 3px;
    }
    
    .knowledge-card {
        flex: 0 0 250px;
    }
    
    /* Mobile sidebar toggle */
    .sidebar-toggle {
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
        z-index: 1000;
    }
}

/* iPhone SE Specific Adjustments */
@media (max-width: 375px) {
    .header {
        gap: 0.3rem;
        padding: 0.5rem 0.6rem;
    }
    
    .sidebar-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        margin-right: 0.3rem;
    }
    
    .header-search input {
        padding: 0.5rem 0.5rem 0.5rem 1.8rem;
        font-size: 0.65rem;
        height: 32px;
    }
    
    .header-action {
        width: 28px;
        height: 28px;
    }
    
    .lang-dropdown-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        height: 28px;
    }
}

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

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--gray-color);
    transition: var(--transition);
}

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

.pagination-current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
