* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1;
    color: #333; /* color of text*/
    background: #f8f9fa;
    min-height: 100vh;
    /*display: flex;
    flex-direction: column;*/
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

footer {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start; /* Changed from center to start */
}

.content-grid:nth-child(even) {
    grid-template-columns: 1fr 2fr;
}

.content-grid:nth-child(even) .text-content {
    order: 2;
}

.content-grid:nth-child(even) .image-content {
    order: 1;
}

.text-content {
    padding: 1rem;
}

.text-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.text-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.image-content {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Ensures container has minimum presence */
    /*z-index: -3;*/
}

.image-content img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    border-radius: 6px; /* Slightly smaller radius to account for container border */
}



/* Header Styles */
.header {
    background: linear-gradient(135deg, #c0c0c0 0%, #103251 100%);
    color: #4c4c4c;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-container {
     max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column; /* Changed from row to column */
}

/* Top row: Logo and Phone */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem; /* Space between logo/phone and menu */
    width: 100%; /* Ensure full width */
}

/* Logo styling - force to left */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
    flex: 0 0 auto; /* Don't grow or shrink */
    margin-left: -30px;
}

.logo img {
    height: 200px; /* Increased from 80px - now you have more space */
    width: auto;
}

.logo:hover {
    opacity: 0.8;
}

/* Phone number styling - force to right */
.header-phone {
    color: white;
    font-size: 4.8rem;
    font-weight: bold;
    text-decoration: none;
    flex: 0 0 auto; /* Don't grow or shrink */
    margin-right: 50px; /* Push to the right */
}

.header-phone:hover {
    opacity: 0.8;
}

/* Navigation row */
.header-nav {
    width: 100%;
}


/* Top Navigation - smaller, closer, right-justified */
.top-nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 1rem; /* Reduced from 2rem - closer together */
    margin-right: -30px;
    padding: 0;
    justify-content: flex-end; /* Changed from center to right-justify */
}

.top-nav li {
    position: relative;
}

.top-nav a {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.7rem; /* Reduced from 0.5rem 1rem - smaller */
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    font-size: 1.0rem; /* Smaller text */
}

.top-nav a:hover {
    color: #bdc3c7;
    /*background: rgba(255,255,255,0.2);*/
    transform: translateY(-2px);
}

/* Top Navigation - Updated active state */
.top-nav a.active {
    background: transparent !important; /* Force remove background */
    color: #bdc3c7;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /*THIS IS THE RESPONSIVE TEST */

        /* Updated Header Styles */
    .header {
        background: linear-gradient(135deg, #c0c0c0 0%, #103251 100%);
        color: #4c4c4c;
        padding: 0.75rem 0; /* Reduced from 1rem */
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        position: sticky;
        top: 0;
    }

    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        flex-direction: column; /* Changed from row to column */
    }

    /* Top row: Logo and Phone */
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem; /* Space between logo/phone and menu */
        width: 100%; /* Ensure full width */
    }

    /* Logo styling - force to left with extra margin */
    .logo {
        font-size: 1.8rem;
        font-weight: bold;
        text-decoration: none;
        color: white;
        transition: opacity 0.3s ease;
        flex: 0 0 auto; /* Don't grow or shrink */
        margin-left: -10px; /* Move logo left - adjust this value as needed */
    }

    .logo img {
        height: 100px; /* Increased from 80px - now you have more space */
        width: auto;
    }

    .logo:hover {
        opacity: 0.8;
    }

    /* Phone number styling - force to right */
    .header-phone {
        color: white;
        font-size: 1.2rem;
        font-weight: bold;
        text-decoration: none;
        flex: 0 0 auto; /* Don't grow or shrink */
        margin-left: auto; /* Push to the right */
    }

    .header-phone:hover {
        opacity: 0.8;
    }

    /* Navigation row */
    .header-nav {
        width: 100%;
    }

    /* Top Navigation - smaller, closer, right-justified */
    .top-nav ul {
        display: flex;
        flex-direction: row;
        list-style: none;
        gap: 1rem; /* Reduced from 2rem - closer together */
        margin: 0;
        padding: 0;
        justify-content: flex-end; /* Changed from center to right-justify */
    }

    .top-nav li {
        position: relative;
    }

    .top-nav a {
        color: white;
        text-decoration: none;
        padding: 0.3rem 0.7rem; /* Reduced from 0.5rem 1rem - smaller */
        border-radius: 5px;
        transition: all 0.3s ease;
        display: block;
        font-size: 0.9rem; /* Smaller text */
    }

    .top-nav a:hover {
        background: rgba(255,255,255,0.2);
        transform: translateY(-2px);
    }

    .top-nav a.active {
        background: rgba(255,255,255,0.3);
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: none;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .header-container {
            flex-direction: column;
        }

        .header-top {
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 1rem;
            align-items: center; /* Center items on mobile */
        }

        /* Logo adjustments for mobile */
        .logo {
            margin-left: 0; /* Remove negative margin on mobile */
        }

        .logo img {
            height: 120px; /* Smaller than desktop but still prominent */
        }

        /* Phone number adjustments for mobile */
        .header-phone {
            font-size: 2.5rem; /* Smaller than desktop 4.8rem */
            margin-right: 0; /* Remove margin on mobile */
            margin-top: 0.5rem;
        }

        /* Menu adjustments for mobile */
        .top-nav ul {
            justify-content: center; /* Center menu on mobile instead of right */
            margin-right: 0; /* Remove negative margin */
        }

        .top-nav a {
            font-size: 1.1rem; /* Slightly larger for easier mobile tapping */
            padding: 0.75rem 1rem; /* More padding for better touch targets */
        }

        .menu-toggle {
            display: block;
            position: absolute;
            right: 20px;
            top: 20px;
        }

        .top-nav {
            display: none;
            flex-direction: column;
            width: 100%;
            gap: 0;
        }

        .top-nav.active {
            display: flex;
        }

        .top-nav ul {
            flex-direction: column;
            gap: 0;
        }

        .top-nav a {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .header-container {
            flex-direction: column;
        }

        .header-top {
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 1rem;
            align-items: center; /* Center items on mobile */
        }

        /* Logo adjustments for mobile */
        .logo {
            margin-left: 0; /* Remove negative margin on mobile */
        }

        .logo img {
            height: 120px; /* Smaller than desktop but still prominent */
        }

        /* Phone number adjustments for mobile */
        .header-phone {
            font-size: 2.5rem; /* Smaller than desktop 4.8rem */
            margin-right: 0; /* Remove margin on mobile */
            margin-top: 0.5rem;
        }

        /* Menu adjustments for mobile */
        .top-nav ul {
            justify-content: center; /* Center menu on mobile instead of right */
            margin-right: 0; /* Remove negative margin */
        }

        .top-nav a {
            font-size: 1.1rem; /* Slightly larger for easier mobile tapping */
            padding: 0.75rem 1rem; /* More padding for better touch targets */
        }

        .menu-toggle {
            display: block;
            position: absolute;
            right: 20px;
            top: 20px;
        }

        .top-nav {
            display: none;
            flex-direction: column;
            width: 100%;
            gap: 0;
        }

        .top-nav.active {
            display: flex;
        }

        .top-nav ul {
            flex-direction: column;
            gap: 0;
        }

        .top-nav a {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
    }
}




/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p, .footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: #bdc3c7;
}


/* Bottom Navigation */
.bottom-nav {
    /*background: #34495e;*/
    padding: .5rem 0;
    /*border-top: 1px solid #576574;*/
}

.bottom-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

.bottom-nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.bottom-nav-menu a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 0.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.bottom-nav-menu a:hover {
    color: #ecf0f1;
    background: #576574;
}

.bottom-nav-menu a.active {
    color: #3498db;
    /*background: rgba(52, 152, 219, 0.1);*/
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #576574;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .top-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .top-nav.active {
        display: flex;
    }

    .top-nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .content-area h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .bottom-nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Alternative solutions (uncomment to try):

SOLUTION 2: Responsive height with aspect-ratio
.image-content {
    aspect-ratio: 4/3;
}
.image-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

SOLUTION 3: No fixed height - let images size naturally
.image-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
}*/

/* Responsive design */
@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    .content-grid,
    .content-grid:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-grid:nth-child(even) .text-content,
    .content-grid:nth-child(even) .image-content {
        order: initial;
    }

    .text-content h2 {
        font-size: 1.5rem;
    }

    .text-content p {
        font-size: 1rem;
    }

    .image-content img {
        max-height: 250px;
    }
}