/* CSS Variables */
:root {
    --primary-color: #e63946;
    --secondary-color: #f4a261;
    --accent-color: #2a9d8f;
    --dark: #222222;
    --light: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --border-color: #dee2e6;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #4a5f7f 50%, #5a7fb8 100%);
    padding: 40px 20px;
    color: #ffffff;
}

.hero-content {
    /* For legacy layouts; hero layout now mainly controlled by .hero-container */
    display: block;
}

/* Shop-style Hero Layout */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.hero-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: center;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
    text-align: center;
}

/* Enhanced Search Box (from shop hero) */
.search-container {
    max-width: 500px;
    margin: 0 auto 20px;
    position: relative;
    height: 30px;
}

.search-box {
    display: flex;
    border-radius: 25px 25px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: #ffffff;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 48px;
}

.search-box:focus-within {
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #f39c12;
}

.search-box input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 16px;
    background: transparent;
    outline: none;
    font-family: 'Poppins', sans-serif;
    color: #333333;
    border-radius: 50px 0 0 50px;
}

.search-box input::placeholder {
    color: #999999;
    font-weight: 400;
}

.search-box button {
    padding: 16px 24px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100%;
    border-radius: 0 50px 50px 0;
    font-family: 'Poppins', sans-serif;
}

.search-box button:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: scale(1.02);
}

.search-box button:active {
    transform: scale(0.98);
}

.search-box button i {
    font-size: 16px;
}

.search-box button .search-text {
    display: inline;
    font-size: 15px;
}

/* Trending tags & trust badges */
.trending {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
    text-align: left;
    margin-top: 15px;
    margin-left: 0;
    clear: both;
    width: 100%;
}

.trending-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

.trust-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    color: #2c3e50;
    font-weight: 500;
}

/* Hero gift cards grid */
.hero-cards {
    perspective: 1000px;
    margin-top: 20px;
}

.cards-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    transform: rotateY(-5deg) rotateX(3deg);
}

.gift-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 15px;
    border-radius: 10px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    font-weight: 600;
}

.gift-card:hover {
    transform: translateY(-3px);
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    animation: fadeIn 1s ease;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #e63946, #f4a261);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--gray);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(to right, #e63946, #f4a261);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 3px;
    background: linear-gradient(45deg, #e63946, #f4a261, #2a9d8f);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderSpin 3s infinite linear;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
}

.hero-slider {
    flex: 1;
    min-width: 300px;
    height: 400px;
    position: relative;
    perspective: 1000px;
}

.slide {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.9) rotateY(20deg);
    transition: all 1s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1) rotateY(0);
    z-index: 10;
}

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

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(244, 162, 97, 0.1) 100%);
    animation: float 15s infinite ease-in-out;
}

/* Partners Section */
.partners {
    padding: 60px 0;
    background: var(--light);
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-heading p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--gray);
}

.partners-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.partners-heading {
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.partners-heading h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.partners-heading p {
    color: var(--gray);
}

.logo-scroll {
    flex: 2;
    min-width: 300px;
    overflow: hidden;
    position: relative;
    height: 100px;
}

.logo-scroll-inner {
    display: flex;
    animation: logoScroll 20s infinite linear;
}

.logo-item {
    flex: 0 0 auto;
    width: 150px;
    height: 80px;
    margin: 0 20px;
    background: var(--light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Categories Section */
.categories {
    padding: -80px 0;
    position: relative;
    overflow: hidden;
    background: var(--light);
}

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

/* Center all category cards */
.categories-grid .category-card h3,
.categories-grid .category-card p {
    text-align: center !important;
}

/* Center Amazon description paragraph specifically */
.categories-grid .category-card:nth-child(1) p {
    text-align: center !important;
}
.categories-grid .category-card:nth-child(2) p {
    text-align: center !important;
}
.categories-grid .category-card:nth-child(3) p {
    text-align: center !important;
}
.categories-grid .category-card:nth-child(4) p {
    text-align: center !important;
}
.categories-grid .category-card:nth-child(5) p {
    text-align: center !important;
}
.categories-grid .category-card:nth-child(6) p {
    text-align: center !important;
}
.categories-grid .category-card:nth-child(7) p {
    text-align: center !important;
}
.categories-grid .category-card:nth-child(8) p {
    text-align: center !important;
}

.category-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 25px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

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

.category-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #e63946, #f4a261);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.category-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--gray);
}

.card-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #e63946, #f4a261);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(45deg, #e63946, #f4a261, #2a9d8f);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderSpin 3s infinite linear;
}

.card-button:hover {
    transform: scale(1.05);
}

.view-all {
    text-align: center;
    margin-top: 10px;
    padding: 20px 10px;
}

/* Popular Cards Section */
.popular-cards {
    padding: -100px 0;
    background: var(--light);
}

.cards-slider {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
}

.cards-container {
    display: flex;
    transition: transform 0.5s ease;
}

.card-item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 25px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.card-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
}

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

.card-item p {
    color: var(--gray);
    margin-bottom: 15px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.slider-arrow:hover {
    background: linear-gradient(to right, #e63946, #f4a261);
    color: white;
}

/* Testimonials Section */
.testimonials {
    padding: 20px 20px;
    position: relative;
    overflow: hidden;
    background: var(--light);
}

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

.testimonial-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #f0f0f0;
}

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

.testimonial-card:hover::before {
    animation: borderSpin 3s infinite linear;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(45deg, #e63946, #f4a261, #2a9d8f);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #e63946;
}

.testimonial-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    line-height: 1.6;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.blog-slider {
    position: relative;
    max-width: 1400px;
    margin: 40px auto;
    overflow: hidden;
    padding: 0 80px;
}

.blog-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.blog-card {
    flex: 0 0 calc(25% - 24px);
    min-width: calc(25% - 24px);
    margin: 0 12px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-card.compact {
    flex: 0 0 calc(18% - 20px);
    min-width: calc(350px - 20px);
    margin: 0 10px;
    border-radius: 16px;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(230, 57, 70, 0.2);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card.compact img {
    height: 140px;
}

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

.blog-content {
    padding: 24px;
    position: relative;
}

.blog-card.compact .blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.blog-card.compact .blog-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Post Meta Compact */
.post-meta-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #666;
}

.post-meta-compact span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.7rem;
}

.post-meta-compact .category {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    flex: 1;
    text-align: center;
}

.post-meta-compact .views {
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
    font-size: 0.65rem;
}

/* Review Box */
.review-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff3cd;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
}

.review-box .stars {
    display: flex;
    gap: 1px;
}

.review-box .stars i {
    color: #ffc107;
    font-size: 0.7rem;
}

.review-box .rating-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: #856404;
    background: none !important;
    padding: 0 !important;
}

/* Compact Button */
.card-button.compact {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.blog-content p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Enhanced Blog Controls */
.blog-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.blog-prev-arrow,
.blog-next-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
    font-size: 20px;
}

.blog-prev-arrow::before,
.blog-next-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.blog-prev-arrow:hover::before,
.blog-next-arrow:hover::before {
    opacity: 1;
}

.blog-prev-arrow:hover,
.blog-next-arrow:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.3);
    color: white;
}

.blog-prev-arrow:active,
.blog-next-arrow:active {
    transform: translateY(0) scale(0.95);
}

/* Blog Indicators */
.blog-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.blog-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--light);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.faq-question {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--gray);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-question i {
    transition: transform 0.3s ease;
}

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

@keyframes borderSpin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(10px) rotate(5deg); }
    50% { transform: translateY(-10px) translateX(20px) rotate(0deg); }
    75% { transform: translateY(-30px) translateX(10px) rotate(-5deg); }
}

@keyframes logoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive hero layout (same as shop hero) */
@media (max-width: 767px) {
    .hero {
        padding: 30px 15px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .search-container {
        max-width: 100%;
        margin: 0 auto 15px;
    }

    .trending {
        text-align: left;
        margin-left: 0;
    }

    .trending-tags {
        justify-content: flex-start;
    }

    .search-box input {
        padding: 14px 20px;
        font-size: 15px;
    }

    .search-box button .search-text {
        display: none;
    }

    .search-box button {
        padding: 14px 18px;
        min-width: 60px;
    }

    .cards-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gift-card {
        padding: 15px 10px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-content h1,
    .hero-content p,
    .trending {
        text-align: left;
    }

    .search-container {
        margin-left: 0;
        margin-right: 0;
    }

    .trending-tags {
        justify-content: flex-start;
    }

    .trust-badges {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .search-container {
        max-width: 650px;
    }

    .search-box input {
        padding: 18px 28px;
        font-size: 17px;
    }

    .search-box button {
        padding: 18px 32px;
        font-size: 16px;
        min-width: 140px;
    }

    .search-box button .search-text {
        font-size: 16px;
    }
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
}

.navbar-brand .logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #e63946, #f4a261);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 10px;
    margin-bottom: 0;
}

.logo-icon {
    font-size: 2rem;
    color: #e63946;
}

.navbar-nav .nav-link {
    color: #222222;
    font-weight: 500;
    padding: 10px 15px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #5BBB7B;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.dropdown-item {
    padding: 8px 15px;
}

.dropdown-item:hover {
    background-color: rgba(91, 187, 123, 0.1);
    color: #5BBB7B;
}

.header-actions {
    gap: 10px;
}

.btn-outline {
    border: 1px solid #5BBB7B;
    color: #5BBB7B;
}

.btn-outline:hover {
    background-color: #5BBB7B;
    color: white;
}

.btn-login {
    color: #6B7177;
}

.btn-login:hover {
    color: #5BBB7B;
}

.btn-register {
    background-color: #5BBB7B;
    color: white;
    border-radius: 5px;
    padding: 10px 20px;
}

.btn-register:hover {
    background-color: #43a062;
    color: white;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-widget h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

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

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #999;
    text-decoration: none;
}

.footer-widget ul li a:hover {
    color: #5BBB7B;
}

.newsletter-form .input-group {
    border-radius: 5px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: white;
}

.newsletter-form .btn-subscribe {
    background-color: #5BBB7B;
    color: white;
    border: 1px solid #5BBB7B;
}

.newsletter-form .btn-subscribe:hover {
    background-color: #43a062;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-link {
    color: #999;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.app-link:hover {
    color: #5BBB7B;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    margin-top: 40px;
}

.copyright {
    margin-bottom: 0;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-links a {
    color: #999;
    text-decoration: none;
}

.footer-links a:hover {
    color: #5BBB7B;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #5BBB7B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #43a062;
    color: white;
}

/* Responsive Blog Styles */
@media (max-width: 1400px) {
    .blog-slider {
        max-width: 1200px;
        padding: 0 60px;
    }
}

@media (max-width: 1200px) {
    .blog-card {
        flex: 0 0 calc(33.333% - 20px);
        min-width: calc(33.333% - 20px);
    }
    
    .blog-card.compact {
        flex: 0 0 calc(23% - 18px);
        min-width: calc(23% - 18px);
        margin: 0 9px;
    }
    
    .blog-slider {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .card-item {
        flex: 0 0 calc(50% - 20px);
    }
    
    .blog-card {
        flex: 0 0 calc(50% - 20px);
        min-width: calc(50% - 20px);
    }
    
    .blog-card.compact {
        flex: 0 0 calc(33.333% - 16px);
        min-width: calc(33.333% - 16px);
    }
    
    .blog-slider {
        padding: 0 30px;
    }
    
    .blog-prev-arrow,
    .blog-next-arrow {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero-text, .hero-slider {
        flex: 100%;
    }
    
    .card-item {
        flex: 0 0 calc(100% - 20px);
    }
    
    /* Mobile Material Design Blog Cards */
    .blog-card {
        flex: 0 0 calc(100% - 20px);
        min-width: calc(100% - 20px);
        border-radius: 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        margin: 0 10px 20px 10px;
    }
    
    .blog-card.compact {
        flex: 0 0 calc(50% - 16px);
        min-width: calc(50% - 16px);
        border-radius: 20px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    }
    
    .blog-slider {
        padding: 0 20px;
        margin: 20px auto;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-card.compact .blog-content {
        padding: 16px;
    }
    
    .blog-prev-arrow,
    .blog-next-arrow {
        width: 44px;
        height: 44px;
        font-size: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    
    .blog-controls {
        margin-top: 24px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .blog-card.compact {
        flex: 0 0 calc(100% - 16px);
        min-width: calc(100% - 16px);
    }
    
    .post-meta-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .review-box {
        margin-top: 4px;
    }
}

@media (max-width: 576px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
