* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    color: #333;
    line-height: 1.6;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

h1 {
    font-size: 36px;
    font-weight: normal;
    letter-spacing: 4px;
    color: #999;
    margin-bottom: 30px;
}

h2 {
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 3px;
    margin-bottom: 25px;
    color: #666;
}

h3 {
    font-size: 22px;
    font-weight: normal;
    color: #444;
    margin-bottom: 20px;
}

h4 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-decoration: underline;
}

p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #444;
}

.teacher-content p {
    text-align: justify;
}

a {
    color: #4A90E2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main section {
    margin-top: 40px;
}

header {
    background: linear-gradient(to bottom, rgba(108, 117, 125, 0.9), rgba(108, 117, 125, 0.7));
    padding: 20px 0;
    position: relative;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 23px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

nav a.active {
    background: white;
    color: #333;
    padding: 0 16px 6px 16px;
}

.hero {
    position: relative;
    min-height: 600px;
    background: url('/img/Lough_Kee.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px 200px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: absolute;
    z-index: 10;
    #max-width: 900px;
    #background: rgba(0, 0, 0, 0.55);
    #padding: 0 35px;
    color: white;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.hero-content h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
    color: white;
    letter-spacing: normal;
}

.hero-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: white;
    font-weight: 900;
}

.hero-content .quote-author {
    font-size: 14px;
    font-style: normal;
    margin-bottom: 25px;
    font-weight: 900;
}

.learn-more-btn {
    display: inline-block;
    padding: 15px 50px;
    border: 2px solid white;
    border-radius: 5px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.learn-more-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
}

.teacher-section {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.teacher-image {
    flex-shrink: 0;
}

.teacher-image img {
    width: 280px;
    height: auto;
    display: block;
}

.preview-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.preview-link:hover {
    background: #e0e0e0;
}

/* About Page Styles */
.about-content {
    /*display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px; */
    background-image: url('/img/dojo_faded.jpg');
    background-size: cover;
    background-position: center;
}

.about-text p {
    color: #333;
}

.about-image {
    position: sticky;
    top: 20px;
    align-self: start;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid #ddd;
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
    margin-top: 40px;
}

.tab-button {
    padding: 15px 30px;
    background: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Georgia', serif;
    color: #666;
    transition: all 0.3s;
}

.tab-button:hover {
    background: #e8e8e8;
}

.tab-button.active {
    background: white;
    color: #333;
    border-bottom-color: #666;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Schedule Page Styles */
.schedule-page {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.schedule-background {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.schedule-background img {
    width: 100%;
    height: auto;
    display: block;
}


.schedule-table-container p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 5px;
}

.schedule-table-container h1 {
    margin-bottom: 15px;
    text-align: center;
}

table.weekly-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    text-align: center;
}

.weekly-schedule th,td {
    padding: 1px;
    border: 1px solid #ddd;
}

.weekly-schedule .time-label {
    text-align: left;
    padding-left: 6px;
}

.zendo-image {
    margin-bottom: 30px;
}

.zendo-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid #333;
}

.facebook-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    max-width: 350px;
}

.facebook-badge img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
}

.facebook-text {
    display: flex;
    flex-direction: column;
}

.facebook-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.facebook-followers {
    font-size: 13px;
    color: #666;
}

.map-container {
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 0;
}

.news-item-summary {
    margin-bottom: 32px;
    border-bottom: 1px solid #cccccc;

}
.news-item-summary p {
    padding-top: 10px;
}

.pagination-top {
    margin: 10px 20px;
    text-align: right;
}

span.previous, span.next {
    opacity: 0.6;
}

@media (min-width: 769px) {
    .schedule-page .schedule-table-container {
        position: absolute;
        top: 177px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 80px);
        max-width: 1100px;
        padding: 20px 30px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        opacity: 0.9;
        color: white;
        font-weight: bold;
        text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
        font-family: sans-serif;
    }
    .schedule-page .schedule-table-container h1,
    .schedule-page .schedule-table-container p {
        color: white;
    }

    /* Schedule table on home page overlaying hero */
    .hero .schedule-table-container {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 160px);
        max-width: 900px;
        padding: 20px 30px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        opacity: 0.9;
        color: white;
        font-weight: bold;
        text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
        font-family: sans-serif;
        background: transparent;
        z-index: 10;
    }

    .hero .schedule-table-container h1,
    .hero .schedule-table-container p {
        color: white;
    }

}

@media (max-width: 768px) {
    main section {
        margin-top: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 20px;
        display: block;
    }

    .hero-content {
        max-width: 100%;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 0;
    }

    .hero .schedule-table-container {
        position: static;
        bottom: auto;
        left: auto;
        transform: none;
        padding: 20px;
        margin-top: 0;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -40px;
        background: white;
        color: #333;
        font-weight: normal;
        text-shadow: none;
        opacity: 1;
        box-shadow: none;
        border-radius: 0;
    }

    .hero .schedule-table-container h1 {
        color: #333;
        font-size: 20px;
        text-shadow: none;
    }

    .hero .schedule-table-container p {
        color: #666;
        text-shadow: none;
    }

    .hero .schedule-table-container table.weekly-schedule {
        color: #333;
    }

    .hero .schedule-table-container .weekly-schedule th {
        color: #333;
    }

    .teacher-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .teacher-image img {
        width: 220px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-page {
        padding: 40px 20px;
    }

    .map-container iframe {
        height: 300px;
    }

    .about-page {
        padding: 40px 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: static;
        margin-top: 30px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .schedule-background {
        padding: 10px;
    }

    .schedule-table-container h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .schedule-table-container h2 {
        font-size: 14px;
    }

    .weekly-schedule {
        font-size: 11px;
    }

    .weekly-schedule th,
    .weekly-schedule td {
        padding: 6px 3px;
        font-size: 11px;
    }

    .schedule-note {
        font-size: 10px;
    }
}

/* avoid flash of unstyled content */
html {
    visibility: visible;
    opacity: 1;
}

.events-background img {
  width: 100%;
  max-width: 1200px;
}
