/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1f5d9a; /* Dark blue background */
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #f1f1f1; /* Light text */
}

/* Grid System */
.section {
    clear: both;
    padding: 0;
    margin: 0;
}

.col {
    display: block;
    float: left;
    margin: 1% 0 1% 1.6%;
}

.col:first-child {
    margin-left: 0;
}

.center-col {
    text-align: center;
}

.group:before,
.group:after {
    content: "";
    display: table;
}

.group:after {
    clear: both;
}

.group {
    zoom: 1; /* For IE 6/7 */
}

.span_4_of_4 { width: 100%; }
.span_3_of_4 { width: 74.6%; }
.span_2_of_4 { width: 49.2%; }
.span_1_of_4 { width: 23.8%; }

@media only screen and (max-width: 480px) {
    .col { margin: 1% 0 1% 0%; }
    .span_1_of_4, .span_2_of_4, .span_3_of_4, .span_4_of_4 { width: 100%; }
}

/* Modernized Styles */
.header, .modern-section {
    background: linear-gradient(135deg, #2a6bb0, #1f5d9a); /* Gradient from test.html */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    margin: 1.5rem auto;
    padding: 1.5rem;
    max-width: 1200px; /* Constrain for large screens */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header:hover, .modern-section:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.logo {
    max-width: 167px;
    height: auto;
    padding-left: 20px;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.05);
}

.header-text {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #f1f1f1;
    padding: 1rem;
    text-transform: uppercase;
}

.header-text span {
    color: #80c4ff; /* Accent color */
}

.feature-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: #f1f1f1;
    text-align: center;
    margin-bottom: 1rem;
}

.modern-content {
    background: linear-gradient(135deg, #2a6bb0, #1f5d9a);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.modern-content:hover {
    transform: scale(1.02);
}

.modern-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e4e4e4;
}

.modern-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.modern-img:hover {
    transform: scale(1.05);
}

.product-text {
    font-size: 1.1rem;
    color: #f1f1f1;
    margin-top: 0.5rem;
    font-weight: 500;
}

.modern-address {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    color: #f1f1f1;
    background: linear-gradient(135deg, #2a6bb0, #1f5d9a);
    padding: 1.8rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    max-width: 350px;
    margin: 1.5rem auto;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.modern-address:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.modern-address a {
    color: #80c4ff;
    text-decoration: none;
    font-weight: 500;
}

.modern-address a:hover {
    text-decoration: underline;
    color: #b3dcff;
}

.modern-address i {
    margin-right: 0.75rem;
    color: #80c4ff;
}

@media only screen and (max-width: 480px) {
    .modern-address {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
        max-width: 90%;
    }
    .header-text {
        font-size: 1.5rem;
    }
    .feature-text {
        font-size: 1.4rem;
    }
    .modern-content p {
        font-size: 1rem;
    }
}

@media (prefers-color-scheme: dark) {
    .header, .modern-section, .modern-content, .modern-address {
        background: linear-gradient(135deg, #1a4971, #123a5e);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    .modern-address a {
        color: #99ccff;
    }
}