/* 
 * Smart Shop - Main CSS
 * Version: 2.0 - Enhanced with modern animations
 */

/* ======== CSS VARIABLES ======== */
:root {
    --primary-color: #2E86AB;
    --secondary-color: #A23B72;
    --accent-color: #f5e107;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --error-color: #DC3545;
    --info-color: #17a0b8;
    --text-color: #1c1d1d;
    --text-dark: #212122;
    --text-light: #282829;
    --light-gray: #F8F9FA;
    --light-bg: #F8F9FA;
    --dark-bg: #05811b;
    --border-color: #DEE2E6;
    --primary-rgb: 46, 134, 171;
    --gradient-primary: linear-gradient(135deg, #045b14 0%, #1a5706 100%);
    --gradient-secondary: linear-gradient(135deg, #057012 0%, #068125 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.16);
}

/* ======== PRELOADER ======== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.5s ease;
}

#preloader .spinner-border {
    width: 3rem;
    height: 3rem;
    color: white;
    animation: spinnerGlow 1.5s linear infinite;
}

.preloader-logo {
    margin-bottom: 2rem;
    animation: preloaderPulse 2s infinite;
}

.preloader-logo img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.preloader-text {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    animation: preloaderText 2s infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes preloaderText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes spinnerGlow {
    0% { 
        border-color: rgba(255, 255, 255, 0.3);
        border-top-color: white;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% { 
        border-color: rgba(255, 255, 255, 0.1);
        border-top-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }
    100% { 
        border-color: rgba(255, 255, 255, 0.3);
        border-top-color: white;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

/* ======== GENERAL STYLES ======== */

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #09610b;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: #09610b;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var#09610b;
    border-color: #09610b;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ======== PRELOADER ======== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ======== HEADER ======== */
.top-bar {
    font-size: 0.9rem;
    background: var(--gradient-primary) !important;
}

.top-bar .social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transform: scale(1.1);
}

.navbar {
    padding: 1rem 0;
    background-color: #fff !important;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-main {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-nav .nav-link {
    padding: 1rem 1.2rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

/* Cart Icon */
.cart-icon-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.cart-icon-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    display: none;
}

/* ======== PAGE HEADER ======== */
.page-header {
    padding: 3rem 0;
    background-color: var(--primary-color);
    color: #fff;
    margin-bottom: 2rem;
}

.page-header .page-title {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    text-transform: uppercase;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ======== HERO SECTION ======== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .carousel-item {
    position: relative;
}

.hero-section .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none !important;
    z-index: 1;
}

.hero-section .carousel-item img {
    height: 70vh;
    min-height: 500px;
    object-fit: cover;
    width: 100%;
}

.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.hero-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* ======== ABOUT SECTION ======== */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content {
    padding-right: 2rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02) rotate(1deg);
}

.section-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    line-height: 1.8;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* ======== PARTNERS SECTION ======== */
.partners-section {
    padding: 5rem 0;
    background-color: #fff;
}

.partners-logo-container {
    margin-bottom: 3rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px; /* increased 1.5x from 100px */
    padding: 1rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 134, 171, 0.1);
}

.partner-logo:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.partner-logo img {
    max-width: 180px; /* increased 1.5x from 120px */
    max-height: 90px; /* increased 1.5x from 60px */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none; /* show full color */
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: none; /* remain colored on hover */
    transform: scale(1.1);
}

.achievements-banner {
    background: var(--gradient-primary);
    border-radius: 25px;
    padding: 3rem 2rem;
    color: #fff;
    box-shadow: var(--shadow-heavy);
}

.achievement-item {
    text-align: center;
    padding: 1rem;
}

.achievement-item i {
    color: var(--accent-color);
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.achievement-item h3 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.achievement-item p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}
/* ======== FEATURES SECTION ======== */
.features-section {
    padding: 6rem 0;
    background-color: #fff;
}

.feature-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(46, 134, 171, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
}

/* ======== BENEFITS SECTION ======== */
.benefits-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.benefit-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border-left: 5px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--gradient-primary);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.benefit-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.benefit-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
    color: var(--light-text);
}

.benefit-list li i {
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: var(--success-color);
    font-size: 1.2rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======== FEATURED PRODUCTS ======== */
.product-card {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
    margin-bottom: 1.5rem;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-body {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    height: 3rem;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* ======== TESTIMONIALS ======== */
.testimonials {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: #fff;
}

.testimonials .section-title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.testimonials .section-title::after {
    background: var(--accent-color);
}

.testimonial-card {
    padding: 3rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 1);
}

.testimonial-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-img {
    transform: scale(1.1);
}

.testimonial-position {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--light-text);
}

.testimonial-content .fa-quote-left {
    color: var(--primary-color);
    opacity: 0.3;
}

/* ======== NEWS SECTION ======== */
.news-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem;
    text-align: center;
    border-radius: 5px;
    min-width: 60px;
}

.news-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-categories {
    margin-bottom: 0.8rem;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    height: 3rem;
    overflow: hidden;
}

.news-excerpt {
    color: #777;
    margin-bottom: 1rem;
    height: 4.8rem;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #777;
}

.news-meta span {
    margin-right: 1rem;
}

.news-meta i {
    margin-right: 0.3rem;
}

/* ======== GALLERY SECTION ======== */
.gallery-section {
    padding: 6rem 0;
    background-color: #fff;
}

.gallery-item {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ======== CONTACT FORM ======== */
.contact-form-section {
    padding: 6rem 0;
    background: var(--gradient-secondary);
    color: #fff;
}

.contact-form-section .section-title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(46, 134, 171, 0.1);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 134, 171, 0.25);
    background: #fff;
}

.contact-form .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.privacy-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.privacy-note i {
    color: var(--accent-color);
}

/* ======== CTA SECTION ======== */
.cta-section {
    padding: 4rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section .lead {
    font-size: 1.3rem;
    opacity: 0.9;
}

.cta-section .btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: var(--shadow-heavy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-section .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.footer {
    background-color: #074e14;
    color: #fff;
    padding: 3rem 0 0;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.bottom-footer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    margin-top: 0rem;
}

/* ======== BACK TO TOP BUTTON ======== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ======== FLOATING SUPPORT BUTTONS ======== */
.floating-support {
    position: fixed;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: var(--shadow-heavy);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.floating-btn:hover::before {
    transform: translateX(100%);
}

.floating-btn:hover {
    transform: scale(1.2) rotate(10deg);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.call-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.zalo-btn {
    background: linear-gradient(135deg, #0068ff, #0084ff);
}

.messenger-btn {
    background: linear-gradient(135deg, #0084ff, #44a3f7);
}

.ai-btn {
    background: var(--gradient-primary);
    animation: pulse 2s infinite;
}

/* Custom Zalo lettermark for floating button */
.floating-btn .zalo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    font-size: 1.05em; /* scale relative to button icon size */
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}
@media (max-width: 767.98px) {
    .floating-btn .zalo-icon { font-size: 1.0em; }
}

/* Zalo image variant for floating button */
.floating-btn .zalo-img {
    display: block;
    width: 65%;
    height: 65%;
    object-fit: contain;
    filter: drop-shadow(0 0 0 rgba(0,0,0,0)); /* keep crisp */
}
@media (max-width: 767.98px) {
    .floating-btn .zalo-img { width: 70%; height: 70%; }
}
/* Floating support toggle button (mobile) */
.floating-support .floating-toggle {
    display: none; /* visible on mobile via media query */
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #0d6efd;
    color: #fff;
    box-shadow: var(--shadow-heavy);
    font-size: 1.15rem;
    cursor: pointer;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* ======== LOGIN/REGISTER MODALS ======== */
.modal-header {
    background-color: var(--primary-color);
    color: #fff;
}

.modal-header .btn-close {
    color: #fff;
}

/* ======== RESPONSIVE ADJUSTMENTS ======== */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
    }
    
    .hero-section .carousel-item img {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .floating-support {
        right: 20px;
        bottom: 80px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section .carousel-item img {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .achievement-item h3 {
        font-size: 2.5rem;
    }
    
    .feature-card,
    .benefit-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-img {
        width: 100px;
        height: 100px;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .navbar-brand .logo-main {
        max-height: 45px;
    }
    
    .cart-icon-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Make floating contact icons smaller on phones */
    .floating-support { right: 12px; bottom: 80px; }
    .floating-btn { width: 44px; height: 44px; font-size: 1rem; margin-bottom: 10px; }
    .floating-btn:hover { transform: scale(1.08) rotate(6deg); }
    /* Hide floating contact icons by default on phones, show toggle */
    .floating-support .floating-btn { display: none; }
    .floating-support .floating-toggle { display: flex; align-items: center; justify-content: center; }
    /* When expanded, show the contact icons stacked above the toggle */
    .floating-support.expanded .floating-btn { display: flex; }
}

@media (max-width: 575.98px) {
    .achievements-banner {
        padding: 2rem 1rem;
    }
    
    .achievement-item h3 {
        font-size: 2rem;
    }
    
    .partners-logo-container .col-6 {
        margin-bottom: 1rem;
    }
    
    .partner-logo {
        height: 120px; /* 1.5x of previous 80px */
    }
    
    .partner-logo img {
        max-width: 150px; /* 1.5x of previous 100px */
        max-height: 75px; /* 1.5x of previous 50px */
    }

    /* Extra small devices: even smaller floating icons */
    .floating-support { right: 10px; bottom: 76px; }
    .floating-btn { width: 40px; height: 40px; font-size: 0.95rem; margin-bottom: 8px; }
    .floating-support .floating-toggle { width: 46px; height: 46px; font-size: 1.05rem; }
}

/* =====================
   News & Sidebar Styles
   moved from inline <style> blocks in index.php and tin-tuc.php
   ===================== */

/* News section (homepage small lists) */
.news-section {
    background-color: #f8f9fa;
}

.news-section .section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
}

.news-container {
    max-height: 600px;
    overflow-y: auto;
}

.news-container::-webkit-scrollbar {
    width: 6px;
}

.news-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.news-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.news-item .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.news-item .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.news-item .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .badge {
    font-size: 10px;
}

.news-item img {
    transition: transform 0.3s ease;
}

.news-item .card:hover img {
    transform: scale(1.05);
}

/* Style cho logo khi làm ảnh mặc định */
.news-item img[src*="Logo1.png"] {
    background-color: #f8f9fa;
    padding: 10px;
    object-fit: contain !important;
}

/* News Detail Modal Styles */
#newsDetailModal .modal-dialog {
    max-width: 900px;
}

.news-detail { line-height: 1.6; }
.news-detail h2 { color: #333; font-weight: 600; line-height: 1.4; }
.news-detail .news-meta { border-bottom: 1px solid #eee; padding-bottom: 1rem; }
.news-detail .news-summary { background-color: #f8f9fa; }
.news-detail .news-content { font-size: 16px; line-height: 1.8; }
.news-detail .news-content h3 { color: #333; margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; }
.news-detail .news-content p { margin-bottom: 1.2rem; text-align: justify; }
.news-detail .news-content ul, .news-detail .news-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.news-detail .news-content li { margin-bottom: 0.5rem; }
.news-detail .news-content a { color: var(--primary-color); text-decoration: none; }
.news-detail .news-content a:hover { text-decoration: underline; }
.news-detail .news-content blockquote { border-left: 4px solid var(--primary-color); padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: #666; }

/* Smaller devices adjustments */
@media (max-width: 768px) {
    .news-section .col-md-6 { margin-bottom: 2rem; }
    .news-container { max-height: 400px; }
    .news-section .section-title { font-size: 1.5rem; }
}

/* Tin-tuc category featured layout */
.news-category-section {
    border-top: 2px solid var(--primary-color);
    padding-top: 20px;
    margin-top: 20px;
}

.news-category-section h4 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.news-category-section h4:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
}

.card-img-top { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }

.news-card { transition: transform 0.3s; }
.news-card:hover { transform: translateY(-5px); }

.news-category-section .featured-image {
    width: 100%;
    height: 480px; /* full, large banner look on desktop */
    object-fit: cover;
    display: block;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

@media (max-width: 768px) {
    .news-category-section .featured-image { height: 240px; }
}

/* Sidebar styles moved from tin-tuc.php */
.news-sidebar { position: sticky; top: 80px; }
.news-sidebar .sidebar-section h5 { font-size: 14px; font-weight: 600; }
#sidebar-carousel-inner .carousel-item img { transition: transform 0.35s ease; }
#sidebar-carousel-inner .carousel-item img:hover { transform: scale(1.03); }
@media (max-width: 991px) { .news-sidebar { position: static; } }

/* Sidebar carousel card small adjustments */
#sidebarCarousel .card { border: none; background: transparent; }
#sidebarCarousel .card-body { padding-top: 0.5rem; padding-bottom: 0.5rem; }
#sidebarCarousel .carousel-item { padding: 6px; }

/* Sidebar latest list */
#sidebar-latest li a { color: var(--text-dark); text-decoration: none; }
#sidebar-latest li a:hover { color: var(--primary-color); text-decoration: underline; }

/* small helper for text truncate inside cards */
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* End of moved styles */

/* ======== ANIMATIONS ======== */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slideInLeft {
    animation-name: slideInLeft;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slideInRight {
    animation-name: slideInRight;
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.bounceIn {
    animation-name: bounceIn;
}

/* Scroll animations */
.scroll-animate {
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animations */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #eff1f3 4%, #e2e2e2 25%, #eff1f3 36%);
    background-size: 1000px 100%;
}

/* ======== ABOUT PAGE ======== */
.about-intro .company-logo img {
    max-width: 200px;
}

.mission-card,
.vision-card,
.values-card {
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
    text-align: center;
}

.mission-card:hover,
.vision-card:hover,
.values-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.team-member {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-image img {
    border-radius: 10px;
    width: 100%;
}

.member-name {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.member-position {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.commitment-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
}

.commitment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.commitment-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ======== CONTACT PAGE ======== */
.contact-card {
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.contact-hours .working-hours {
    margin-bottom: 0;
}

.contact-hours .working-hours li {
    margin-bottom: 0.5rem;
}

.social-contact .social-links {
    display: flex;
    flex-wrap: wrap;
}

.social-contact .social-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: #f8f9fa;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-contact .social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.social-contact .social-link i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.chat-container {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.chat-message .message-content {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    max-width: 80%;
}

.chat-message .message-time {
    font-size: 0.7rem;
    margin-top: 0.3rem;
    color: #777;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.user .message-content {
    background-color: var(--primary-color);
    color: #fff;
}

.chat-message.bot .message-content {
    background-color: #e9ecef;
    color: var(--text-color);
}

/* ======== PARTNERSHIP PAGE ======== */
.model-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.model-card-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem;
}

.model-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.model-card-body {
    padding: 1.5rem;
    background-color: #fff;
}

.model-card-body h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.partner-testimonial {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    height: 100%;
}

.testimonial-author {
    font-style: italic;
    color: #777;
}

/* ======== NEWS PAGE ======== */
.news-categories-nav {
    margin-bottom: 2rem;
}

.news-categories-nav .nav-link {
    margin: 0 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.news-search {
    margin-bottom: 2rem;
}

/* ======== CUSTOM THEME OVERRIDES ======== */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-control, .form-select {
    height: calc(3rem + 2px);
    border-radius: 5px;
    padding: 0.5rem 1rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ======== CUSTOM UTILITIES ======== */
.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ======== CART OFFCANVAS ======== */
.offcanvas-end {
    width: 350px;
}

/* ======== ENHANCED ANIMATIONS ======== */

/* Scroll Animations */
.scroll-animate {
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animations */
.feature-card:nth-child(1) { animation-delay: 0ms; }
.feature-card:nth-child(2) { animation-delay: 100ms; }
.feature-card:nth-child(3) { animation-delay: 200ms; }
.feature-card:nth-child(4) { animation-delay: 300ms; }

/* Counter Animation Effects */
.counter {
    font-weight: 700;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.counter.counting {
    animation: pulse 0.3s ease-in-out infinite alternate;
    color: var(--accent-color);
}

.counter.count-complete {
    animation: countComplete 0.5s ease-out;
    color: var(--primary-color);
}

@keyframes countComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Typing Effect */
.typing-text {
    display: inline-block;
    border-right: 3px solid var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Button Hover Effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(241, 5, 115, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-content {
    text-align: center;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Enhanced Alert Styling */
.smart-alert {
    border-left: 4px solid;
    font-weight: 500;
    border-radius: 12px !important;
}

.smart-alert.alert-success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

.smart-alert.alert-danger {
    border-left-color: var(--error-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.smart-alert.alert-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
}

.smart-alert.alert-info {
    border-left-color: var(--info-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

/* CTA Pulse Animation */
.btn-pulse {
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 134, 171, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 134, 171, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 134, 171, 0); }
}

/* Chat Typing Animation */
.typing {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Cart Counter Animation */
.cart-counter {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-counter.updated {
    animation: cartUpdate 0.6s ease-out;
}

@keyframes cartUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); background-color: var(--success-color); }
    100% { transform: scale(1); }
}

/* Gallery Lightbox Effect */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '\f065';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Modal Animations */
.modal.fade .modal-dialog {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8) translateY(-50px);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Notification Slide Animation */
.toast {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
}

/* Progress Bar Animation */
.progress-bar {
    animation: progressFill 1.5s ease-out;
}

@keyframes progressFill {
    from { width: 0; }
}

/* Enhanced Link Hover Effects */
a:not(.btn):not(.nav-link):not(.footer-links a) {
    position: relative;
    transition: color 0.3s ease;
}

a:not(.btn):not(.nav-link):not(.footer-links a):hover {
    color: var(--primary-color);
}

a:not(.btn):not(.nav-link):not(.footer-links a)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

a:not(.btn):not(.nav-link):not(.footer-links a):hover::after {
    width: 100%;
}

/* ======== ENHANCED PRODUCT CARDS ======== */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(46, 134, 171, 0.1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.product-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

/* Ensure badges inside image container overlay correctly */
.product-img-container {
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    animation: discountPulse 2s infinite;
}

@keyframes discountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* no dark background so image won't be dimmed */
    background: transparent;
    display: flex;
    align-items: flex-end; /* keep button at bottom */
    justify-content: center;
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 220ms ease, opacity 220ms ease;
    pointer-events: none;
}

.product-overlay .btn {
    background: rgba(255,255,255,0.95);
}

/* Reveal only the bottom overlay (button) without dimming the image */
.product-card:hover .product-overlay,
.product-card:focus-within .product-overlay {
    opacity: 1;
    transform: translateY(0%);
    pointer-events: auto;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-description {
    line-height: 1.4;
    margin-bottom: 1rem;
}

.product-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.product-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-actions .btn:hover {
    transform: translateY(-1px);
}

/* Placeholder image */
.product-img img[src*="placeholder"],
.product-img img[src=""],
.product-img img:not([src]) {
    background: linear-gradient(135deg, var(--light-gray), #e9ecef);
    position: relative;
}

.product-img img[src*="placeholder"]::before {
    content: '📦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.5;
}

/* Error handling for missing images */
.product-img img {
    background-color: var(--light-gray);
}

/* Sidebar visual emphasis */
.news-sidebar {
    position: sticky;
    top: 80px; /* adjust to match header height */
    background: linear-gradient(180deg, rgba(10,28,68,0.98), rgba(5,17,45,0.98));
    color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.news-sidebar .sidebar-section {
    margin-bottom: 1rem;
}

.news-sidebar .sidebar-section h5 {
    color: #ffffff;
    margin-bottom: .5rem;
}

.news-sidebar .ratio iframe { border-radius: 6px; }

/* Carousel item titles */
#sidebarCarousel .card-body {
    padding: .35rem .5rem;
    color: rgba(255,255,255,0.95);
}

#sidebarCarousel .card-body .small { color: rgba(255,255,255,0.8); }

/* Make carousel controls more visible on dark background */
#sidebarCarousel .carousel-control-prev-icon,
#sidebarCarousel .carousel-control-next-icon {
    filter: invert(100%) brightness(200%);
}

/* Latest list on dark bg */
#sidebar-latest { margin: 0; padding-left: 0; }
#sidebar-latest li { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 8px 0; }
#sidebar-latest li a { color: rgba(255,255,255,0.95); }
#sidebar-latest li a:hover { color: #ffd54d; }

@media (max-width: 991px) {
    .news-sidebar { position: static; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
}

/* ======== Solutions headings: match TỔNG QUAN gradient/text color ======== */
.solution-title,
.solution-header .solution-title,
.solution-header .solution-title i,
.solution-title i,
.solution-header h3,
.solution-header h4,
.solution-suggestion .card-content h4,
.solution-suggestion .card-content p {
    color: #099437 !important; /* fixed dark-blue color */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

/* Ensure service/commitment icons and solution icons use the same fixed color */
.service-icon i,
.commitment-icon i,
.solution-title i,
.solution-header .solution-title i {
    color: #059919 !important;
    background: none !important;
}

.solution-menu {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px 24px;
  text-align: center;
}
.solution-menu__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 24px;
}
.solution-btn {
  background: linear-gradient(90deg, #4f8cff 0%, #38e6b0 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(79,140,255,0.12);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.solution-btn:hover {
  background: linear-gradient(90deg, #38e6b0 0%, #4f8cff 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(56,230,176,0.18);
}

/* CSS for filter buttons on technology solutions page */
.solution-filter .btn {
  background: linear-gradient(90deg, #4f8cff 0%, #38e6b0 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(79,140,255,0.12);
  padding: 12px 28px;
  margin: 0 6px 8px 0;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.solution-filter .btn.active,
.solution-filter .btn:hover {
  background: linear-gradient(90deg, #38e6b0 0%, #4f8cff 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(56,230,176,0.18);
}

.solution-submenu {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 32px 0 24px 0;
}
.solution-submenu__btn {
  background: linear-gradient(90deg, #4f8cff 0%, #38e6b0 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(79,140,255,0.12);
  padding: 12px 28px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.solution-submenu__btn:hover, .solution-submenu__btn.active {
  background: linear-gradient(90deg, #38e6b0 0%, #4f8cff 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(56,230,176,0.18);
}

.solution-submenu-bar {
  background: #fff;
  border-bottom: 1px solid #e3e3e3;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.solution-submenu-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.solution-submenu-list li {
  margin: 0;
}
.solution-submenu-link {
  display: block;
  padding: 14px 32px;
  color: #08304b;
  font-weight: 500;
  font-size: 1.08rem;
  text-decoration: none;
  border-right: 1px solid #e3e3e3;
  transition: background 0.2s, color 0.2s;
}
.solution-submenu-list li:last-child .solution-submenu-link {
  border-right: none;
}
.solution-submenu-link:hover, .solution-submenu-link.active {
  background: #f5faff;
  color: #0077c2;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .solution-submenu-link {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}
