*, *::before, *::after {
    box-sizing: border-box; /* This ensures padding and borders are included INSIDE the element's defined width, preventing overflow. */
}
/* --- Base Styles --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4; /* Light background for the body */
    overflow-x: hidden;
}

/* --- Utilities and Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding {
    padding: 20px 0;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.text-center {
    text-align: center;
}
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 50px 0;
}

/* --- Header/Hero Section --- */
header {
    background-color: #0073B7; /* Reverted to AWS Blue */
    color: white; /* Reverted to White text */
    text-align: center;
    position: relative;
    padding: 80px 0 60px;
    
    /* Reinstated dynamic background for visual impact */
    background-image: url('../img/bg-hero.png'); 
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply; /* Blends image with the blue color */
    border-bottom: none;
}
/* Updated headline style for better visibility against the dynamic blue background */
header h1 {
    font-size: 3em;
    margin-top: 20px; 
    padding-top: 40px; 
    font-weight: 700;
    color: white; 
    /* Added subtle shadow to make white text pop on the dynamic background */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4); 
}
/* AWS Advanced Partner Logo (TOP RIGHT) */
.logo-placeholder {
    position: absolute;
    top: 20px;
    right: 20px;
}
.logo-placeholder img {
    height: 70px; 
    background-color: white; /* White background for contrast */
    padding: 5px 10px;
    border-radius: 5px;
}

/* --- NEW: Mist Avinya Logo + Name (TOP LEFT) --- */
.company-brand-left {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: white; /* White background as requested */
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.company-brand-left a {
    text-decoration: none;
    display: flex; /* Use flex to align logo and text horizontally */
    align-items: center;
}
.company-brand-left .brand-logo {
    height: 35px; /* Adjust logo size */
    margin-right: 10px;
    /* NOTE: Your logo image (logo-mistavinya.png) should be DARK/COLORED for contrast against this white background. */
}
.company-brand-left .brand-name {
    color: #0073B7; /* Use AWS Blue for the text for contrast */
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 1px;
}
/* --- END NEW STYLES --- */


/* --- Headings and Titles --- */
h2 {
    font-size: 2em;
    color: #0073B7;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
}
h3 {
    color: #FF9900; /* AWS Orange */
    margin-top: 0;
    font-size: 1.4em;
}
header h1 {
    font-size: 3em;
    margin-top: 20px; 
    padding-top: 40px; /* Pushes the main heading down to clear the absolute positioned logos */
    font-weight: 700;
}

/* --- Card Styling (Expertise, Advantage) --- */
.card {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border-left: 6px solid #FF9900; /* Orange accent */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.card img.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* --- Section Dividers with Icons --- */
.section-divider-icon {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}
.section-divider-icon11 {
    margin: 0px 0;
    display: flex;
    justify-content: center;
}

.section-divider-icon1 {
    width: 100%;
    height: 40px;                     /* Set desired vertical height */
    background-color: #fff;
    background-image: url('../img/icon-divider.png'); /* Replace with your image URL */
    background-repeat: repeat-x;      /* Repeat horizontally only */
    background-position: center;      /* Center the pattern vertically */
    background-size: auto 80px;       /* Ensures correct vertical fit */
    margin: 0;
    display: block;
}
.section-divider-icon img {
    max-width: 100%;
    height: auto;
    max-height: 220px; /* adjust to desired header height */
    display: block;
    margin: 0 auto;    /* center if needed */
    object-fit: contain; /* ensures the entire image is visible */
}
.section-divider-icon1 img {
    max-width: 100%;
    height: auto;
    background-color: #fff;
    max-height: 40px;       /* Prevent divider from being too tall */
    display: block;
    margin: 20px auto;      /* Adds spacing above and below divider */
    object-fit: contain;    /* Ensures entire image displays nicely */
    opacity: 0.9;           /* Slight transparency for subtlety */
}
.full-width-white-bg {
  width: 100%; /* Makes the div span the full width of its parent */
  background-color: white; /* Sets the background color to white */
  /* Optional: Add padding or margin if needed */
  margin: 0; /* Removes default margins that might prevent full width */
}
/* --- Call to Action (CTA) Footer --- */
.cta {
    background-color: #FF9900;
    color: white;
    padding: 50px 0;
    border-radius: 0;
    text-align: center;
    margin-top: 60px;
}
.cta h2 {
    color: white;
    border-bottom: none;
    font-size: 2.5em;
    margin-bottom: 20px;
}
.contact-info strong {
    font-size: 1.3em;
    display: block;
    margin: 5px 0 10px;
    color: #000; /* High contrast for contact details */
}
.cta small {
    display: block;
    margin-top: 30px;
    opacity: 0.9;
}

.address-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.5); /* Subtle white dashed line */
}

.address-info h3 {
    color: #000; /* Ensuring the heading is black for maximum contrast */
}

.address-info a {
    color: black; /* Ensuring the map link is black */
    font-weight: bold;
    text-decoration: underline;
}