/* Group Fitness CSS */

:root {
  --text: #000000;
  --background: #ffffff;
  --primary: #8c1d40;
  --secondary: #ffc629;
  --accent: #74777b;
}

header {
    text-align: center;
    border-bottom: 3px solid var(--primary);
    padding: 20px 0;
    margin-bottom: 20px;
    margin-left: -22px;
    margin-right: -22px;
    width: calc(100% + 44px);
    box-sizing: border-box;
    background-color: var(--primary);
}

h2 {

    color: var(--primary);
    font-size: 2.0em;
    margin: 0;
}

nav {
    border-bottom: 3px solid var(--primary);
    padding-bottom: 20px;
    margin-bottom: 20px;
    margin-left: -22px;
    margin-right: -22px;
    width: calc(100% + 44px);
    box-sizing: border-box;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
}

nav a:visited {
    color: var(--primary);
}

a:visited {
    color: var(--primary);
}

.hero {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.video-embed {
    float: right;
    width: 38%;
    max-width: 420px;
    margin: 0 0 1rem 1rem;
}

.video-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

.instagram-embed-wrapper {
    float: left;
    width: 32%;
    max-width: 360px;
    min-width: 0;
    margin: 0 1rem 1rem 0;
    box-sizing: border-box;
    overflow: hidden;
}

.instagram-embed {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.instagram-embed-wrapper blockquote.instagram-media {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.instagram-embed,
.instagram-embed * {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.instagram-embed iframe,
.instagram-embed > div {
    width: 100% !important;
}

@media (max-width: 768px) {
    .video-embed,
    .instagram-embed-wrapper {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
    }
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
}

footer a, footer a:link, footer a:visited, footer a:hover, footer a:active {
    color: white;
    text-decoration: none;
}

main {
    margin-bottom: 50px;
    line-height: 1.8;
}

main p,
main li {
    line-height: 1.8;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: var(--primary);
    color: white;
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

table a, table a:link, table a:visited, table a:hover, table a:active {
    text-decoration: none;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Georgia', sans-serif;
    margin: 0 20px 20px 20px;
    padding: 0 20px 20px 20px;
    border: 2px solid var(--primary);
    border-top: none;
}

h1 {
    background-color: var(--primary);
    color: white;
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 20px;
    padding: 1rem;
    border-radius: 0.5rem;
}

.paid {
    font-weight: bold;
    color: var(--secondary);
    text-transform: uppercase;
}

.instructor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.instructor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.75rem;
    background: #fff;
}

.instructor-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #ccc;
}

.instructor-name {
    display: block;
    line-height: 1.2;
}

.instructor-bio {
    font-size: 0.9em;
    color: #555;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.cycle {
    background-color: #e8f5e8;
    border-left: 5px solid var(--primary);
}

.barre {
    background-color: #fce4ec;
    font-style: italic;
}

.contact-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.form-section {
    flex: 1;
    max-width: 600px;
}

.social-box {
    border: 2px solid var(--primary);
    padding: 20px;
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    table {
        font-size: 0.8em;
        overflow-x: auto;
        display: block;
    }
    th, td {
        padding: 4px;
        white-space: nowrap;
    }
    .contact-container {
        flex-direction: column;
    }
}

