/* =========================================================
   01. Reset & Base
   ========================================================= */

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

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}


/* =========================================================
   02. Layout Primitives
   ========================================================= */

main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   03. Header & Navigation
   ========================================================= */

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    flex-shrink: 0;
    margin-right: 2rem;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

nav ul.navbar {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul.navbar li {
    margin: 0 1.5rem;
}

nav ul.navbar a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

nav ul.navbar a:hover {
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* =========================================================
   04. Typography
   ========================================================= */

h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #764ba2;
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.3rem;
    color: #764ba2;
    margin: 1.5rem 0 0.75rem;
}

h4 {
    font-size: 1.1rem;
    color: #667eea;
    margin: 1.25rem 0 0.75rem;
}

h5 {
    font-size: 1rem;
    color: #764ba2;
    margin: 1rem 0 0.5rem;
}

h6 {
    font-size: 0.9rem;
    color: #667eea;
    margin: 1rem 0 0.5rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

small {
    font-size: 0.85rem;
    color: #666;
}

strong {
    font-weight: 600;
}


/* =========================================================
   05. Links & Buttons
   ========================================================= */

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Contextual CTA links */
main a[href*="/contact/"],
main a[href*="/schedule/"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 5px;
    margin: 0.5rem 0;
}

main a[href*="/contact/"]:hover,
main a[href*="/schedule/"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


/* =========================================================
   06. Lists & Content Elements
   ========================================================= */

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}


/* =========================================================
   07. Code & Preformatted
   ========================================================= */

code {
    background-color: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #764ba2;
}

pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    overflow-x: auto;
    border-left: 4px solid #667eea;
}


/* =========================================================
   08. Forms
   ========================================================= */

form {
    margin: 1.5rem 0;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}


/* =========================================================
   09. Tables
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th,
td {
    padding: 0.75rem;
    border: 1px solid #ddd;
}

th {
    background-color: #f5f7fa;
    font-weight: 600;
}


/* =========================================================
   10. Media
   ========================================================= */

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 1.5rem 0;
}

figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}


/* =========================================================
   11. Hero Section
   ========================================================= */

.hero {
    position: relative;
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    overflow: hidden;
    border-radius: 8px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/Hero_Background.png");
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   12. Footer
   ========================================================= */

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}


/* =========================================================
   13. Utilities
   ========================================================= */

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }


/* =========================================================
   14. Accessibility
   ========================================================= */

:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   15. Responsive Adjustments
   ========================================================= */

@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    nav ul.navbar {
        flex-direction: column;
        align-items: center;
    }

    nav ul.navbar li {
        margin: 0.5rem 0;
    }

    main {
        min-height: calc(100vh - 150px);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }

    .container {
        margin: 0.5rem;
        padding: 0.75rem;
    }
}

/* ========================================================
   16. Theme Transitions
   ========================================================= */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}