/* Services.css for Mary Angels Montessori School */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Bubblegum+Sans&display=swap');

/* Variables */
:root {
    --primary: rgba(46, 0, 196, 0.9);     /* Soft coral */
    --secondary: rgba(0, 0, 128, 1);    ;   /* Sky blue */
    --accent1: #FFDE59;     /* Sunshine yellow */
    --accent2: rgba(255, 98, 0, 0.9);     /* Mint green */
    --accent3: #F7B1CF;     /* Soft pink */
    --dark: #4A4A4A;        /* Dark gray for text */
    --light: #FFFFFF;       /* White */
    --light-bg: #F9F7F3;    /* Off-white background */
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

section {
    padding: 4rem 0;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Bubblegum Sans', cursive;
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 2.5rem;
    color: var(--primary);
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent1);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    color: var(--secondary);
}

h4 {
    font-size: 1.3rem;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: justify;
    display: flex;
    justify-content: center;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.program-image img {
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform 0.3s ease;
    width: 100%;
}

img:hover {
    transform: scale(1.02);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent2) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.9;
    background-size: contain;
}

.page-banner .container {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.page-banner p {
    color: var(--light);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark);
}

/* Age Groups Section */
.age-groups {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.age-groups::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--accent1);
    border-radius: 50%;
    opacity: 0.1;
}

.age-groups::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: var(--accent3);
    border-radius: 50%;
    opacity: 0.1;
}

.programs {
    position: relative;
    z-index: 1;
}

.program {
    display: grid;
    grid-template-columns: 80px 1fr 350px;
    gap: 2rem;
    background-color: var(--light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program:hover {
    transform: translateY(-5px);
}

.program::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent1), var(--accent2));
}

.program:nth-child(2)::before {
    background: linear-gradient(180deg, var(--accent2), var(--accent3));
}

.program:nth-child(3)::before {
    background: linear-gradient(180deg, var(--accent3), var(--secondary));
}

.program:nth-child(4)::before {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
}

.program-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 158, 109, 0.3);
}

.program:nth-child(2) .program-icon {
    background-color: var(--accent2);
    box-shadow: 0 5px 15px rgba(152, 216, 200, 0.3);
}

.program:nth-child(3) .program-icon {
    background-color: var(--accent3);
    box-shadow: 0 5px 15px rgba(247, 177, 207, 0.3);
}

.program:nth-child(4) .program-icon {
    background-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(126, 207, 255, 0.3);
}

.program-icon i {
    font-size: 2.5rem;
    color: var(--light);
}

.program-content {
    padding-right: 1rem;
}

.program-content h3 {
    margin-bottom: 0.3rem;
}

.age-range {
    display: inline-block;
    background-color: var(--accent1);
    color: var(--light);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.program:nth-child(2) .age-range {
    background-color: var(--accent2);
}

.program:nth-child(3) .age-range {
    background-color: var(--accent3);
}

.program:nth-child(4) .age-range {
    background-color: var(--secondary);
}

.program-features {
    margin-top: 1rem;
}

.program-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.program-features li i {
    color: var(--accent1);
    margin-right: 0.5rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.program:nth-child(2) .program-features li i {
    color: var(--accent2);
}

.program:nth-child(3) .program-features li i {
    color: var(--accent3);
}

.program:nth-child(4) .program-features li i {
    color: var(--secondary);
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Highlight Services */
.highlight-services {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.highlight-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.highlight-services .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: var(--light);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(126, 207, 255, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-card:nth-child(1) .service-icon {
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(255, 158, 109, 0.3);
}

.service-card:nth-child(2) .service-icon {
    background: var(--accent1);
    box-shadow: 0 8px 20px rgba(255, 222, 89, 0.3);
}

.service-card:nth-child(3) .service-icon {
    background: var(--accent2);
    box-shadow: 0 8px 20px rgba(152, 216, 200, 0.3);
}

.service-icon i {
    font-size: 3rem;
    color: var(--light);
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Activities Section */
.activities {
    background-color: var(--light);
    position: relative;
    padding: 5rem 0;
}

.activities::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23F9F7F3'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    transform: rotate(180deg);
}

.activity-categories {
    position: relative;
    z-index: 1;
}

.category {
    margin-bottom: 4rem;

}

.category h3 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;
    background-color: var(--light);
    border-radius: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    border-bottom: 3px solid blue;
}

.category:nth-child(1) h3 {
    color: var(--secondary);
}

.category:nth-child(1) h3 {
    color: var(--secondary);
}

.category:nth-child(1) h3 {
    color: var(--secondary);
}

.category:nth-child(1) h3 {
    color: var(--secondary);
}

.activity-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.activity-item {
    background-color: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-8px);
}

.activity-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.activity-item h4, .activity-item p {
    padding: 0 1.5rem;
}

.activity-item h4 {
    margin-top: 1.5rem;
}

.activity-item p {
    padding-bottom: 1.5rem;
    font-size: 1rem;
}

/* Registration CTA */
.registration-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent3) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.registration-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--light);
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--light);
    margin-bottom: 1.5rem;
}

.cta-content h2::after {
    background: var(--light);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-numbers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-numbers a {
    display: inline-block;
    background-color: var(--light);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-numbers a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background-color: var(--accent1);
    color: var(--light);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 1100px) {
    .program {
        grid-template-columns: 80px 1fr;
    }
    
    .program-image {
        grid-column: 1 / 3;
        margin-top: 2rem;
    }
    
    .program-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
}

@media screen and (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Section padding adjustments */
    section {
        padding: 3rem 0;
    }
    
    .page-banner {
        padding: 3rem 0;
    }
    
    /* Program cards layout adjustments */
    .program {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
        text-align: center;
    }
    
    .program-icon {
        margin: 0 auto 1rem;
    }
    
    .program-content {
        padding-right: 0;
    }
    
    .program-features li {
        justify-content: center;
    }
    
    .program-image {
        grid-column: 1;
        margin-top: 1.5rem;
    }
    
    .program-image img {
        height: auto;
        max-height: 250px;
    }
    
    /* Service cards */
    .highlight-services .container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* Activity items */
    .category {
        margin-bottom: 3rem;
    }
    
    .category h3 {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        display: block;
    }
    
    .activity-items {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* CTA section */
    .registration-cta {
        padding: 3.5rem 0;
    }
    
    .contact-numbers {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .contact-numbers a {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    /* Further typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Smaller padding */
    section {
        padding: 2.5rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-banner {
        padding: 2.5rem 0;
    }
    
    .page-banner p {
        font-size: 1.1rem;
    }
    
    /* More compact service icons */
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i {
        font-size: 2.3rem;
    }
    
    /* Program features */
    .program-features li {
        text-align: left;
        justify-content: flex-start;
    }
    
    /* Activity items */
    .activity-item img {
        height: 180px;
    }
    
    .activity-item h4 {
        font-size: 1.2rem;
    }
    
    /* CTA section */
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .contact-numbers a {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
}