/* =======================================
   Global Styles
======================================= */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

h2, .tab {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
}

/* =======================================
   Tabs
======================================= */
.tabs {
    display: flex;
    justify-content: center;   /* center tabs inside container */
    background-color: #1e407c;
    list-style: none;
    margin: 20px auto;         /* auto centers inside body */
    padding: 0;
    color: white;
    flex-wrap: wrap;
    max-width: 600px;          /* match content-container cap */
    width: 100%;               /* shrink down on small screens */
    box-sizing: border-box;
}


.tabs li a {
    color: white;
    text-decoration: none;
}

.tabs li {
  flex: 1;        /* optional: make tabs equal width */
  text-align: center;
}

.tab {
    cursor: pointer;
    padding: 10px 25px;
    transition: background-color 0.2s ease;
    font-size: 1.1em;
    min-height: 44px; /* accessibility */
}

.tab:hover {
    background-color: #001E44;
}

[data-tab-content] {
    display: none;
    width: 100%;          /* takes all available space */
    box-sizing: border-box;
    margin: 0 auto;       /* centers content-container if you give it a max-width */
}

.active[data-tab-content] {
    display: block;
}

.tab-content {
    margin: 0 20px;
}

/* =======================================
   Header & Profile
======================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 15px 15px;
    flex-wrap: wrap; /* allows stacking if narrow */
}

.name {
    flex: 1;
    text-align: left;
}

.name h1 {
    margin: 0;
    font-size: 2em;
}

.name h2 {
    margin: 5px 0 0 0;
    font-size: 1.2em;
}

.contact {
    flex-shrink: 0;
}

.contact img {
    max-width: 250px;   /* keeps it from blowing up on desktop */
    width: 100%;        /* shrink on small screens */
    height: auto;
    object-fit: cover;
}

/* =======================================
   Content Container & Bio
======================================= */
.content-container {
  width: 100%;
  max-width: 600px;
  min-width: 600px;   /* 👈 prevents shrinking below 600px */
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.bio {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 0 15px 15px 15px;
}

/* =======================================
   Contact Info
======================================= */
.contact-info {
    margin-top: 20px;
    background-color: #1e407c;
    padding: 10px;
    text-align: center;
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.contact-info a:hover {
    color: #ffd100;
}

/* =======================================
   Footer Seal
======================================= */
.footer-seal {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    gap: 20px;
    flex-wrap: wrap; /* makes logos wrap instead of overflow */
}

.footer-seal img {
    max-height: 120px;  /* cap size on desktop */
    width: auto;
    height: auto;
}

/* =======================================
   Responsive / Mobile Styles
======================================= */
@media screen and (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .name h1 {
        font-size: 1.8em;
    }

    .name h2 {
        font-size: 1.1em;
    }

    .tabs {
        justify-content: center;
    }

    .tab {
        padding: 8px 15px;
        font-size: 1em;
    }

    .content-container {
        padding: 10px;
        max-width: 100%; /* full width on phone */
    }

    .footer-seal {
        flex-direction: column;
        gap: 10px;
    }

    .footer-seal img {
        height: 80px;
    }

    .bio p,
    .contact-info p {
        font-size: 0.95em;
    }
}

@media screen and (max-width: 600px) {
  .content-container {
    min-width: 100%; /* allow it to shrink properly on small screens */
  }
}
