/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #555;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.8rem;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    margin-right: 20px;
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
}

.search-bar {
    display: flex;
    flex: 0 0 250px; /* Reduced width from 400px to 250px */
    margin: 0 15px;
    height: 35px; /* Added fixed height */
}

.search-bar input {
    flex: 0.5;
    padding: 8px 12px; /* Reduced padding */
    border: 1px solid #eee;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.85rem; /* Smaller font size */
    height: 100%;
}

.search-bar button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0 12px; /* Reduced padding */
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background-color: #555;
}

.search-bar button i {
    font-size: 0.9rem; /* Smaller icon */
}

.main-menu {
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0 10px;
}

.main-menu li a {
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-menu li a:hover,
.main-menu li a.active {
    color: #000;
}

.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s;
}

.main-menu li a:hover::after,
.main-menu li a.active::after {
    width: 100%;
}

.user-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.user-actions a {
    text-decoration: none;
    color: #333;
    margin-left: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.user-actions a i {
    margin-right: 5px;
    font-size: 1.1rem;
}

#cart-btn {
    position: relative;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #333;
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000000;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Categories */
.featured-categories {
    background-color: #f9f9f9;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-item.large {
    grid-column: span 2;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    text-align: center;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Product Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    font-weight: 700;
    color: #333;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.9);
    padding: 10px;
    display: flex;
    justify-content: center;
    transition: bottom 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    background: none;
    border: none;
    margin: 0 10px;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.product-actions button:hover {
    color: #000;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.badge.new {
    background-color: #4CAF50;
    color: #fff;
}

.badge.sale {
    background-color: #F44336;
    color: #fff;
}

.badge.bestseller {
    background-color: #FFC107;
    color: #333;
}

/* Footer Styles */
footer {
    background-color: #222;
    color: #aaa;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.footer-column p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-info li i {
    margin-right: 12px;
    color: #fff;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    padding-top: 3px;
}

.social-media {
    margin-top: 20px;
}

.social-media a {
    display: inline-block;
    margin-right: 15px;
    color: #aaa;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #fff;
}

.social-media a:last-child {
    margin-right: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #888;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #555;
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Lab Page Card Layout */
.labs {
    padding: 40px 0;
}

/* Grid system similar to Bootstrap */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-3, .col-md-6, .col-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Margin and padding utilities */
.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* Card styles */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.h-100 {
    height: 100%!important;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.d-flex {
    display: flex!important;
}

.flex-column {
    flex-direction: column!important;
}

.justify-content-between {
    justify-content: space-between!important;
}

.card-title {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #555;
    text-decoration: underline;
}

.card-text {
    margin-bottom: 0.5rem;
}

.card-text a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-text a:hover {
    color: #333;
    text-decoration: underline;
}

/* Page Banner */
.page-banner {
    background-color: #f9f9f9;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/placeholder-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 10px;
    color: #ddd;
}

.breadcrumb-item.active {
    color: #ddd;
}

/* Products Page Layout - Updated */
.products-page-content .container {
    display: flex;
    gap: 30px;
}

.filters-sidebar {
    flex: 0 0 280px; /* Fixed width sidebar */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    height: fit-content; /* So it doesn't stretch full page height */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters-sidebar h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    color: #333;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    color: #333;
}

.filter-list {
    list-style: none;
    padding-left: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-list input[type="checkbox"],
.filter-list input[type="radio"] {
    margin-right: 8px;
}

.filter-apply-btn {
    width: 100%;
    margin-top: 10px;
}

.product-listing {
    flex-grow: 1; /* Takes remaining space */
}

.product-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-item-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-item-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-item-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.product-item-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-item-card .product-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}

.product-item-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
    min-height: 2.4em; /* For 2 lines of text */
}

.product-item-card .price {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}

.product-item-card .add-to-cart-button {
    width: calc(100% - 30px);
    margin: 0 15px 15px 15px;
    font-size: 0.85rem;
    padding: 10px;
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: inline-block;
}

.pagination ul li {
    display: inline;
    margin: 0 5px;
}

.pagination ul li a {
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
}

.pagination ul li a.active,
.pagination ul li a:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* Product Sorting Options */
.product-sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-count {
    font-size: 0.9rem;
    color: #666;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-options label {
    margin-right: 10px;
    font-size: 0.9rem;
    color: #666;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
}

/* Contact Page Styles */
.contact-section {
    padding: 60px 0;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-form-container {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
}

.form-header {
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.form-header p {
    color: #666;
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #333;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    margin-top: 10px;
}

.form-submit .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

.contact-info-container {
    flex: 0 0 350px;
}

.info-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-header {
    margin-bottom: 25px;
}

.info-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.info-header p {
    color: #666;
    font-size: 0.95rem;
}

.info-content {
    flex-grow: 1;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.info-icon i {
    color: #333;
    font-size: 1.2rem;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.info-text p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 5px;
}

.info-text a {
    color: #666;
    transition: color 0.3s;
}

.info-text a:hover {
    color: #333;
}

.social-links {
    margin-top: 20px;
}

.social-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: #333;
    color: #fff;
}

.map-container {
    margin-top: 40px;
}

.map-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* About Page Styles */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.about-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
}

/* Story Section */
.story-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.story-image {
    flex: 0 0 45%;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.story-text {
    flex: 1;
}

.story-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.story-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

/* Mission & Vision Section */
.bg-light {
    background-color: #f9f9f9;
}

.mission-vision-grid {
    display: flex;
    gap: 30px;
}

.mission-box, .vision-box {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.mission-icon, .vision-icon {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.mission-icon i, .vision-icon i {
    font-size: 2rem;
    color: #333;
}

.mission-box h3, .vision-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.mission-box p, .vision-box p {
    line-height: 1.7;
    color: #555;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 1.8rem;
    color: #333;
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.value-item p {
    line-height: 1.7;
    color: #555;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.member-role {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.member-desc {
    line-height: 1.7;
    color: #555;
}

/* Testimonials Section */
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonial-item {
    flex: 0 0 calc(50% - 15px);
    min-width: 300px;
}

.testimonial-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-rating {
    margin-bottom: 15px;
    color: #f1c40f; /* Star color */
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.testimonial-author p {
    color: #666;
    font-size: 0.9rem;
}

/* Auth Page Styles */
.auth-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #333;
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: #333;
}

.tab-btn.active:after {
    width: 100%;
}

.auth-forms {
    padding: 30px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-with-icon input:focus {
    border-color: #333;
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #333;
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.btn-auth:hover {
    background-color: #555;
}

.social-login {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s;
}

.social-btn i {
    margin-right: 8px;
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.google {
    background-color: #db4437;
}

.social-btn:hover {
    opacity: 0.9;
}

.form-terms {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-terms input {
    margin-right: 8px;
    margin-top: 5px;
}

.form-terms label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.form-terms a {
    color: #333;
    text-decoration: underline;
}

/* Blog Page Styles */
.blog-section {
    padding: 50px 0;
}

.blog-layout {
    display: flex;
    gap: 30px;
}

.blog-main {
    flex: 1;
}

.blog-sidebar {
    flex: 0 0 300px;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.blog-post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-image {
    position: relative;
    height: 180px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #333;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.85rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

.post-meta i {
    margin-right: 5px;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #555;
}

.post-excerpt {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.9rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
    margin-top: auto;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: #555;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Blog Pagination */
.blog-pagination {
    text-align: center;
    margin-top: 20px;
}

.blog-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination ul li {
    margin: 0 5px;
}

.blog-pagination ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.blog-pagination ul li a.active,
.blog-pagination ul li a:hover {
    background-color: #333;
    color: #fff;
}

/* Blog Sidebar */
.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Search Widget */
.search-widget form {
    display: flex;
    position: relative;
}

.search-widget input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-widget button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: none;
    border: none;
    padding: 0 15px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.search-widget button:hover {
    color: #333;
}

/* Categories Widget */
.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget ul li {
    border-bottom: 1px solid #eee;
}

.categories-widget ul li:last-child {
    border-bottom: none;
}

.categories-widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.categories-widget ul li a:hover {
    color: #333;
}

.categories-widget ul li a span {
    color: #999;
    font-size: 0.85rem;
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
}

.recent-post-image {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    flex: 1;
}

.recent-post-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-info h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-info h4 a:hover {
    color: #555;
}

.recent-post-info .post-date {
    font-size: 0.8rem;
    color: #666;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    color: #555;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tags-cloud a:hover {
    background-color: #333;
    color: #fff;
}