* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header & Navigation */
header {
    background: #3D4163;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.dropdown {
    position: relative;
    } 

.dropdown-content {
    display: none;
    position: absolute; 
    top: 100%;          
    left: 0;            
    background-color: #764ba2; 
    min-width: 225px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 
    z-index: 15; 
}

.dropdown-content a {
    display: block; 
    padding: 12px 16px; 
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 1. Make the container the reference point */
.supplier-card {
    position: relative; /* Essential for positioning the logo absolutely inside it */
    padding: 15px;      /* Add some padding to prevent content/logo touching the edges */
    border: 1px solid #ccc;
    /* Other existing card styles (e.g., width, margin, border-radius) go here */
}

/* 2. Position and size the logo */
.supplier-logo {
    position: absolute; /* Takes the logo out of the normal flow */
    top: 15px;          /* Positions the top edge 15px down from the top of the card */
    right: 15px;        /* Positions the right edge 15px from the right of the card */
    max-width: 40px;        /* Set a small fixed size */
    height: auto;       /* Maintain aspect ratio */
    z-index: 10;        /* Ensure the logo sits above the text content if they overlap */
}

/* 3. Adjust the heading (optional but recommended) */
/* If the logo is covering the heading text, you may need to add padding/margin to the H4 */
.supplier-card h4 {
    /* If the logo is 40px wide, ensure the H4 stops before it. */
    padding-right: 50px; /* Adjust padding to leave space for the logo (40px + 10px buffer) */
}

.logo {
	background-image: url("images/lpg-calculator-logo.webp");
	width: 274px;
	height: 85px;
	background-repeat: no-repeat;
}

.logo::before {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 0.8;
    text-decoration: underline;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-info h3 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-info p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-info i {
    margin-top: 1rem;
    color: #bdc3c7;
    font-size: 0.7rem;
    text-align: left;
}

.footer-info p a {
    color: #bdc3c7;
}

.footer-info p a:hover {
    color: #ecf0f1;
}

.footer-links {
    text-align: right;
}

.footer-links h4 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: underline;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-ad {
    background: #34495e;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    border: 2px dashed #4a5f7a;
    color: #bdc3c7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}