/********** Template CSS **********/
:root {
    --primary: #3CB815;
    --secondary: #F65005;
    --light: #F7F8FC;
    --dark: #111111;
    --body-font: 'Open Sans', sans-serif;
    --heading-font: 'Lora', serif;
}

body {
    color: #555;
    font-family: var(--body-font);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-icon {
    background: url(../img/bg-icon.png) center center repeat;
    background-size: contain;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
    border-radius: 50rem;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}


/*** Navbar ***/
.navbar {
    transition: 0.5s;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: #555555;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
    }
    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}


/*** Hero Section - FINAL FIX ***/
#home {
    padding-top: 75px; 
}
.hero-banner {
    position: relative;
    width: 100%;
    height: auto; /* Allow natural height based on aspect ratio */
    max-height: 85vh; /* Set a maximum height for very large screens */
    overflow: hidden;
}
.hero-banner img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
}
.hero-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}
.hero-caption h1, .hero-caption p {
    color: #fff;
}


/*** Redesigned Category Section ***/
.category-item {
    padding: 2rem 0;
}
.category-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}
.category-item img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 15px;
}
.category-item:hover img {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.category-item h2 {
    font-weight: 700;
    color: var(--dark);
}


/*** Improved FAQ Design ***/
#faq .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}
#faq .accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    background-color: #FFFFFF;
}
#faq .accordion-button:not(.collapsed) {
    color: #FFFFFF;
    background-color: var(--primary);
    box-shadow: none;
}
#faq .accordion-button:focus {
    box-shadow: 0 0 0 .25rem rgba(60, 184, 21, 0.2);
}
#faq .accordion-button::after {
    font-family: "Font Awesome 5 Free";
    content: "\f067"; /* Plus Icon */
    font-weight: 900;
    background-image: none;
    transition: transform 0.3s ease-in-out;
}
#faq .accordion-button:not(.collapsed)::after {
    content: "\f068"; /* Minus Icon */
    transform: rotate(360deg);
}


/*** Professional Product Page Design ***/
.product-page-header {
    padding-top: 150px;
    padding-bottom: 3rem;
    text-align: center;
}

.product-entry {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}
.product-entry:last-child {
    border-bottom: none;
}
.product-entry .product-image img {
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}
.product-entry:hover .product-image img {
    transform: scale(1.03);
}
.product-entry .product-category {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.product-entry h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}
.product-entry .lead {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}
.product-tabs .nav-pills .nav-link {
    background-color: #f0f0f0;
    color: var(--dark);
    border-radius: 50rem;
    margin-right: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid transparent;
}
.product-tabs .nav-pills .nav-link.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.product-tabs .tab-content {
    padding-top: 1.5rem;
}
.product-tabs .tab-content ul {
    list-style-type: none;
    padding-left: 0;
}
.product-tabs .tab-content ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}
.product-tabs .tab-content ul li::before {
    content: '\f058'; /* Font Awesome check circle solid */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 3px;
}
.tech-specs-table {
    width: 100%;
    margin-top: 1rem;
}
.tech-specs-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}
.tech-specs-table tr:last-child td {
    border-bottom: none;
}
.tech-specs-table td:first-child {
    font-weight: 600;
    color: var(--dark);
    width: 40%;
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}
.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}
.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}
.footer .copyright a {
    color: var(--light);
}
.footer .copyright a:hover {
    color: var(--primary);
}