@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Mr+Dafoe&display=swap");

/* Setting the default font to Inter, as required by the new Tailwind component */
body { font-family: 'Inter', "Lato", sans-serif; } 

html { box-sizing: border-box; }
*, *:before, *:after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Lato", sans-serif;
    display: grid;
    place-items: center;
    color: #3d3d3d;
    background-color: #ffffff;
    background-image: url("https://www.transparenttextures.com/patterns/first-aid-kit.png"); 
    --silver: #c1c1c1; 
    --primary-teal: #00a896; 
    overflow-x: hidden;
}

a { font-weight: bold; text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ======================================== Master Container ======================================== */
.master-container {
    max-width: 1160px;
    width: 100%;
    height: 600px; /* Further reduced the length (height) of the container */
}

/* ======================================== Main Header ======================================== */
.main-header {
    width: 100%;
    display: grid;
}
.main-header ul { list-style-type: none; }

/* ======================================== Search Bar ======================================== */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
}
.topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5em;
}
.ms-logo img {
    height: 150px;
    width: auto;
}
.logo {
    min-width: 0;
    padding: 1em;
    display: grid;
    place-items: center;
    color: var(--primary-teal);
    text-align: center;
}
.logo h1 {
    font-family: "Mr Dafoe", sans-serif;
    font-size: 5em;
    color: black;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}
.logo p {
    font-weight: bold;
    font-size: 1.2rem;
}

/* ======================================== Navigation Bar ======================================== */
.navbar {
    display: flex;
    align-items: center;
    margin: 0 auto;
    border-top: 1px solid var(--silver);
    height: 60px;
    width: 800px;
}
.navbar ul { display: flex; margin: 0 auto; padding: 0; }
.navbar li { margin: 0 10px; }
.navbar a {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #848484;
    cursor: pointer;
}
.navbar a:hover { color: var(--primary-teal); }
.navbar a.active { color: var(--primary-teal); pointer-events: none; }

/* ======================================== Page Content Container ======================================== */
.page-content-container {
    display: flex;
    justify-content: center;
    margin-top: 1em;
    padding: 1em 0;
    min-height: 200px; /* Reduced further to help shrink the overall length */
    width: 100%;
}

/* ======================================== Main Column ======================================== */
main {
    width: 100%;
    max-width: 1000px;
    padding: 0 1em;
}

.content-box {
    border: 1px solid var(--silver);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: transparent; 
}
.content-box h3 {
    color: #3d3d3d; 
    margin-bottom: 10px;
    font-size: 1.5rem; 
}

.text-gradient-header {
    background: linear-gradient(to bottom, #016764, #005958, #014848, #00312F, #001E1E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline-block;
}

.service-header {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px dotted var(--silver);
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.service-header svg {
    width: 55px; 
    height: 55px;
    margin-right: 12px;
}
.service-header h3 {
    font-size: 2rem; 
    font-weight: 900; 
    margin-bottom: 0;
    padding-bottom: 0;
    border: none;
    flex-grow: 0; 
}

.content-box p {
    font-size: 1.1rem; 
    line-height: 1.5;
    margin-bottom: 10px;
}
.content-box ul, .content-box ol {
    list-style: disc;
    padding-left: 20px;
}

/* ======================================== Footer ======================================== */
.footer-transparent {
    text-align: center;
    padding: 1em;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #848484;
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: -5px;
}
.footer-transparent small {
    display: block;
    font-weight: 700;
}

/* ======================================== New Support Card Grid Styles (Affiliate) ======================================== */
.support-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 0;
    list-style: none;
}
.support-card-item {
    border: 1px solid var(--silver);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: default;
    transition: none;
    position: relative;
    height: auto;
}
.support-card-item:hover {
    box-shadow: none;
    transform: none;
}

.card-icon-small {
    width: 80px; 
    height: 80px;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon-small i {
    font-size: 1.8rem;
}
.card-icon-small svg {
    width: 100%;
    height: 100%;
}
.svg-container {
    text-align: center;
    margin-top: -15px; /* Moved SVG up a little bit */
}
.svg-container svg {
    transform: scale(0.7);
    transform-origin: center center;
    display: block;
    margin: 0 auto;
}
/* Updated table styles to ensure full transparency */
.table-transparent td, .table-transparent th {
    background-color: transparent !important;
    border-color: var(--silver);
}
.table-transparent tbody tr {
    background-color: transparent !important;
}
.table-transparent thead th {
    background-color: transparent !important;
}

/* ======================================== Media Queries ======================================== */
@media (max-width: 768px) {
    .search-bar { grid-template-columns: 1fr; grid-row-gap: 10px; }
    .topnav { justify-content: center; }
    .navbar ul { flex-wrap: wrap; justify-content: center; padding: 0 10px; }
    .navbar li { margin: 5px; }
    main { padding: 0 10px; }
    .logo h1 { font-size: 3em; }
    .logo p { font-size: 1rem; }
    .support-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .logo h1 { font-size: 3em; }
    .logo p { font-size: 1rem; }
}