/* Global Styles */
/* file name assets/css/styles.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.7;
}

/* Topbar Styling */
.topbar {
    background: linear-gradient(90deg, #003366, #004080);
    color: white;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.topbar a {
    color: #fff;
    margin: 0 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topbar a:hover {
    color: #ffd700;
}

.topbar img {
    width: 22px;
    height: auto;
    vertical-align: middle;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar img:hover {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.9;
}

/* Desktop Navbar */
.navbar-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.4s ease;
}

.navbar-desktop.sticky-shadow {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d62828;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background: #d62828;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: calc(100% - 30px);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
    z-index: 1000;
}

.nav-links li:hover .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease-in-out;
}

.dropdown-item {
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease, padding-left 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    padding-left: 25px;
    color: #d62828;
}

.nav-icons a {
    margin-left: 15px;
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.nav-icons a:hover {
    color: #d62828;
}

/* Mobile Navbar */
.navbar-mobile {
    display: none;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-mobile .nav-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #d62828;
}

.nav-menu .dropdown-menu {
    display: none;
    padding-left: 20px;
    list-style: none;
    background: #f8f9fa;
}

.nav-menu .dropdown.active .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease-in-out;
}

.nav-menu .dropdown-menu li {
    border-bottom: none;
}

.nav-menu .dropdown-menu a {
    font-size: 14px;
}

/* Hero Section (Generic) */
.hero {
    background: linear-gradient(to right, #ffffffcc, #ffffffcc), url('https://via.placeholder.com/800x600') no-repeat right center;
    background-size: cover;
    padding: 100px 0;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #003366;
}

.hero p {
    font-size: 1.1rem;
    color: #333;
}

.hero .btn-primary {
    background-color: #d62828;
    border: none;
}

/* Hero Compare Section (Specific to monohydrate-vs-anhydrous.php) */
.hero-compare {
    background: linear-gradient(135deg, #003366, #336699);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-compare::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background-pattern.jpg') repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-compare .container {
    position: relative;
    z-index: 1;
}

.hero-compare h1 {
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero-compare p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* General Section */
.section {
    padding: 80px 20px;
}

.section h2 {
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #003366;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 70%;
    transform: translateX(-90%);
    width: 75%;
    height: 3px;
    background-color: #d62828;
}

/* Compare Section */
.compare-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.compare-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.compare-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.compare-card h4 {
    font-weight: 600;
    color: #003366;
    margin-bottom: 15px;
}

.compare-card i {
    color: #d62828;
    margin-right: 10 mettent
}

.compare-img {
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.img-caption {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin-top: 10px;
}

.compare-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 40px;
}

.table th,
.table td {
    vertical-align: middle;
    text-align: center;
}

.table th {
    background-color: #003366;
    color: white;
}

.table td {
    background-color: #fff;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.list-group-item {
    border: none;
    padding: 10px 0;
}

/* FAQ Section */
.faq-section {
    padding: 60px 20px;
    background-color: #fff;
}

.faq-section h2 {
    font-weight: 600;
    color: #003366;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #d62828;
}

.accordion-button {
    font-weight: 600;
    color: #003366;
}

.accordion-button:not(.collapsed) {
    background-color: #e6f3ff;
    color: #003366;
}

.accordion-button:focus {
    box-shadow: none;
}

/* Product Card */
.product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.floating-btn a {
    display: inline-block;
    margin-left: 10px;
    color: white;
    background: #28a745;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.floating-btn .chat-btn {
    background-color: #dc3545;
}

/* Footer */
footer {
    background: #111;
    color: #bbb;
    padding: 30px 0;
    font-size: 14px;
}

.footer-links a {
    color: #bbb;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-desktop {
        display: none;
    }

    .navbar-mobile {
        display: block;
    }

    .nav-menu.active {
        animation: slideDown 0.3s ease-in-out;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }

    .hero, .hero-compare {
        padding: 60px 20px;
    }

    .hero h1, .hero-compare h1 {
        font-size: 2rem;
    }

    .compare-section, .faq-section {
        padding: 40px 20px;
    }
}

@media (min-width: 769px) {
    .navbar-mobile {
        display: none;
    }

    .navbar-desktop {
        display: flex;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

.section-title-animate::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background-color: #d62828;
    animation: underlineGrow 1s ease forwards;
}

@keyframes underlineGrow {
    from {
        width: 0%;
    }
    to {
        width: 75%;
    }
}

 .zoom-img {
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .zoom-img:hover {
        transform: scale(1.05);
    }

    .modal-img {
        width: 100%;
        max-width: 700px;
    }  