/* START OF SUNDAYSCHOOL - CLEAN & PROFESSIONAL */
:root {
    --primary: #3e5a84;
    --primary-dark: #2a3765;
    --accent: #d4af37;
    --light: #f8f9fa;
    --dark: #2d3748;
    --gray: #6c757d;
    --success: #28a745;
    --error: #dc3545;
    --border: #e9ecef;
}

/* Hero Section */
.sunday-hero {
    position: relative;
    background: rgba(0, 0, 0, 0.7) url('{% static "image/hero.jpg" %}') center/cover no-repeat;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.sunday-hero .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.sunday-hero .tagline {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid transparent;
}

.primary-btn {
    background: var(--primary);
    color: white;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.primary-btn:hover {
    background: var(--primary-dark);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* About Section */
.about-sunday {
    background: var(--light);
    padding: 4rem;
    border-radius: 10px;
    margin-top: 2rem;

}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray);
}

.ack-values {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ack-values h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.ack-values ul {
    list-style: none;
    padding: 0;
}

.ack-values li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.ack-values i {
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Age Groups Section */
.age-groups {
    background: white;
    padding: 4rem 0;
}

.age-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.age-tab {
    padding: 1rem 1.5rem;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--dark);
}

.age-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.age-tab:hover:not(.active) {
    background: rgba(44, 85, 48, 0.1);
    border-color: var(--primary);
}

.age-content {
    display: none;
}

.age-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.activity-card h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.activity-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.activity-time {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Schedule Section */
.schedule {
    background: var(--light);
    padding: 4rem 0;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.schedule-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.schedule-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.schedule-description {
    color: var(--gray);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: 600;
    color: var(--primary);
    min-width: 70px;
    font-size: 0.95rem;
}

.schedule-activity {
    color: var(--dark);
    font-weight: 500;
    flex: 1;
}

.item-description {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* Teachers Section - FIXED */
.teachers {
    background: white;
    padding: 4rem 0;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.teacher-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.teacher-card h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.teacher-card p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.teacher-age {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.teacher-bio {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-style: italic;
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Registration Section */
.registration {
    background: var(--light);
    padding: 4rem 0;
}

.reg-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.reg-info h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.reg-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.reg-info li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray);
}

.reg-info li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.reg-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.reg-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.interest-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interest-form input,
.interest-form select,
.interest-form textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.interest-form input:focus,
.interest-form select:focus,
.interest-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(44, 85, 48, 0.1);
}

.interest-form textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.interest-form button {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.interest-form button:hover {
    background: var(--primary-dark);
}

/* Message Styles */
#registration-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.message-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.message-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Bible Verse Section */
.bible-verse {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.bible-verse blockquote {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.5;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

.bible-verse cite {
    display: block;
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content,
    .reg-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .sunday-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .about-content,
    .reg-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .age-grid,
    .schedule-grid,
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .age-tabs {
        flex-direction: column;
    }
    
    .age-tab {
        text-align: center;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 640px) {
    .sunday-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-sunday,
    .age-groups,
    .schedule,
    .teachers,
    .registration {
        padding: 3rem 0;
    }
    
    .activity-card,
    .schedule-card,
    .teacher-card,
    .reg-form {
        padding: 1.5rem;
    }
    
    .ack-values {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sunday-hero {
        height: 60vh;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
    }
    
    .teacher-card img {
        width: 100px;
        height: 100px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .cta-button,
    .activity-card,
    .teacher-card,
    .schedule-card,
    .interest-form button {
        transition: none;
        transform: none;
    }
}














/* Cathedral Connection Section */
.cathedral-connection {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 50%, var(--light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cathedral-connection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cathedral-gold), #ffffff, var(--cathedral-gold));
}

.cathedral-connection h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    position: relative;
}

.cathedral-connection h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--cathedral-gold);
}

.connection-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.connection-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.connection-text p {
    margin-bottom: 25px;
    opacity: 0.95;
    font-size: 1.15rem;
}

.connection-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.connection-text li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    opacity: 0.95;
    font-size: 1rem;
    line-height: 1.6;
}

.connection-text li::before {
    content: '🏛️';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.connection-image {
    position: relative;
}

.connection-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 3px solid var(--cathedral-gold);
}

.connection-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.connection-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--cathedral-gold);
    border-radius: calc(var(--border-radius) + 5px);
    opacity: 0.3;
    transition: var(--transition);
}

.connection-image:hover::before {
    opacity: 0.6;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
}

/* Cathedral Pattern Overlay */
.cathedral-connection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path fill="white" d="M50 10L60 40H40L50 10Z M30 50L60 40L50 70L30 50Z M70 50L40 40L50 70L70 50Z"/></svg>');
    background-size: 200px;
    opacity: 0.1;
    pointer-events: none;
}

/* Enhanced Sections for Cathedral */
.about-sunday h2,
.age-groups h2,
.schedule h2,
.teachers h2,
.registration h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.4rem;
    font-weight: 700;
    position: relative;
}

.about-sunday h2::after,
.age-groups h2::after,
.schedule h2::after,
.teachers h2::after,
.registration h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--cathedral-gold);
}

/* Cathedral Gold Color Variable */
:root {
    --cathedral-gold: #d4af37;
}

/* Animation for Cathedral Elements */
@keyframes cathedralGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
}

.connection-image:hover img {
    animation: cathedralGlow 2s ease-in-out infinite;
}

/* Responsive Design for Cathedral Sections */
@media (max-width: 768px) {
    .connection-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .connection-text li {
        text-align: left;
    }
    
    .cathedral-connection h2,
    .about-sunday h2,
    .age-groups h2,
    .schedule h2,
    .teachers h2,
    .registration h2 {
        font-size: 2rem;
    }
    
    .connection-text p {
        font-size: 1.1rem;
    }
    
    .connection-image {
        order: -1;
    }
    
    .cathedral-connection::after {
        background-size: 150px;
    }
}

@media (max-width: 480px) {
    .cathedral-connection h2,
    .about-sunday h2,
    .age-groups h2,
    .schedule h2,
    .teachers h2,
    .registration h2 {
        font-size: 1.8rem;
    }
    
    .connection-text li {
        padding-left: 25px;
        font-size: 0.95rem;
    }
    
    .connection-text li::before {
        font-size: 1rem;
    }
    
    .connection-image img {
        border-width: 2px;
    }
}


/* END OF SUNDAY SCHOOL */