/* current.css */

/* ==================== General Navbar Styles ==================== */

/* Navbar Customization */
.navbar {
    padding: 10px;
}

.navbar .navbar-brand img {
    max-height: 40px;
}

.navbar .btn-link {
    color: #ffffff;
    cursor: pointer; /* Indicates interactivity */
}

.navbar .form-control {
    max-width: 300px;
}

.navbar .form-check-input {
    margin-top: 0.3rem;
}

.navbar .form-check-label {
    margin-bottom: 0;
    color: #ffffff;
    white-space: nowrap;
}

.navbar .bg-light {
    flex-wrap: nowrap;
}

/* Tooltip Styling */
.tooltip {
    background-color: #343a40;
    color: #fff;
}

/* ==================== General Footer Styles ==================== */

/* Footer styles */
.footer-custom {
    background-color: #343a40;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.footer-custom a {
    color: #ffffff;
    text-decoration: underline;
}

/* ==================== Best Price Per Amp Hour Styles ==================== */

/* Container for Best Deals */
.best-deals-home {
    /* Optional: Add specific styles if needed */
}

/* Responsiveness for Best Deals cards */
.best-deals-home .card {
    margin-bottom: 20px;
}

/* Adjust the header logos (card-img-top) for each section */
.best-deals-home .card-img-top {
    max-width: 300px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 10px;
    margin: 0 auto;
    display: block;
}

/* Ensure consistent size and alignment for all supplier logos */
.best-deals-home .card-img-supplier {
    max-width: 100px; /* Reduced from 150px to better fit smaller product images */
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 10px;
    margin: 0 auto;
}

/* Adjust product images */
/* Specific class for Best Deals product images */
.best-deals-home .card-img-product {
    max-width: 150px; /* Reduced from 250px to 120px (~20% smaller) */
    width: 100%; /* Ensures responsiveness */
    height: auto; /* Maintains aspect ratio */
    object-fit: contain;
    display: block;
    padding: 5px; /* Reduced padding for smaller images */
    margin: 0 auto;
}

/* Brand Logo Styling */
/* Scoped to Best Deals section */
.best-deals-home .brand-logo {
    max-width: 80%; /* Ensures brand image spans ~80% of the card width */
    height: auto;
    object-fit: contain;
}

/* Hover Effect for Brand Logos */
/* Scoped to Best Deals section */
.best-deals-home .brand-toggle:hover .brand-logo {
    transform: scale(1.05);
    transition: transform 0.3s;
}

/* Center Align Texts within Best Deals */
.best-deals-home .text-center {
    text-align: center !important;
}

/* ==================== Best Price Per Amp Hour Styles ==================== */

/* Container for Best Deals */
.best-deals {
    /* Optional: Add specific styles if needed */
}

/* Responsiveness for Best Deals cards */
.best-deals .card {
    margin-bottom: 20px;
}

/* Adjust the header logos (card-img-top) for each section */
.best-deals-home .card-img-top {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 10px;
    margin: 0 auto;
    display: block;
}

/* Ensure consistent size and alignment for all supplier logos */
.best-deals .card-img-supplier {
    max-width: 100px; /* Reduced from 150px to better fit smaller product images */
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 10px;
    margin: 0 auto;
}

/* Adjust product images */
/* Specific class for Best Deals product images */
.best-deals .card-img-product {
    max-width: 150px; /* Reduced from 250px to 120px (~20% smaller) */
    width: 100%; /* Ensures responsiveness */
    height: auto; /* Maintains aspect ratio */
    object-fit: contain;
    display: block;
    padding: 5px; /* Reduced padding for smaller images */
    margin: 0 auto;
}

/* Brand Logo Styling */
/* Scoped to Best Deals section */
.best-deals .brand-logo {
    max-width: 80%; /* Ensures brand image spans ~80% of the card width */
    height: auto;
    object-fit: contain;
}

/* Hover Effect for Brand Logos */
/* Scoped to Best Deals section */
.best-deals .brand-toggle:hover .brand-logo {
    transform: scale(1.05);
    transition: transform 0.3s;
}

/* Center Align Texts within Best Deals */
.best-deals .text-center {
    text-align: center !important;
}


/* ==================== General Styles ==================== */

/* Rotate chevron icon when the collapse is shown */
.collapse.show + button .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* Optional: Smooth transition for the icon */
button .fa-chevron-down {
    transition: transform 0.3s;
}

/* Optional: Add Hover Effect to Cards */
.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* ==================== Adjustments for Mobile Screens ==================== */

@media (max-width: 991.98px) {
    /* VAT Toggle */
    .navbar .form-check-label {
        font-size: 14px;
    }
    /* Align Icons */
    .navbar-toggler,
    .navbar .btn {
        margin-top: 0;
        align-self: center;
    }
    .navbar .navbar-brand img {
        max-height: 60px; /* Increased from 40px to 60px */
    }
    .navbar .search-input-mobile {
        max-width: 100px; /* Adjust this value as needed */
        flex: 1 1 auto;
    }
}

/* Ensure Icons Align Horizontally */
.navbar .d-flex .btn {
    margin-top: 0;
}

/* Responsive Adjustments for Brand Images */
/* Ensures brand logos maintain consistent sizing on smaller screens */
@media (max-width: 767.98px) {
    .best-deals-home .brand-logo {
        max-width: 80%; /* Ensures consistent sizing on smaller screens */
    }
}
