/* Component-Specific Styles */

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-light);
}

.navbar-brand {
    font-weight: 700;
    color: #F52F14;
    font-size: 1.8rem;
}

.navbar-brand:hover {
    font-weight: 700;
    color: darkgreen;
    font-size: 1.8rem;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition);
}

.nav-link:hover {
    color: green;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 100px 0;
    color: var(--white);
    border-radius: 0 0 50% 50% / 30%;
    overflow: hidden;
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ffffff;
    background-color:#F5C227;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin-top: 15px;
    border-radius: 2px;
}

/* Section Titles */
.section-title-info {
    position: relative;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ffffff;
    background-color: blue;
}

.section-title-info:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin-top: 15px;
    border-radius: 2px;
}

/* Section Titles */
.section-title-fees {
    position: relative;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ffffff;
    background-color: green;
}

.section-title-fees:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin-top: 15px;
    border-radius: 2px;
}

/* Feature Boxes */
.feature-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* Gallery */
.gallery-item {
    border-radius: var(--border-radius-small);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Navigation Pills */
.nav-pills .nav-link.active {
    background-color: var(--primary);
}

/* Age Groups */
.age-group {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 20px;
    transition: var(--transition);
}

.age-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Testimonials */
.testimonial {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    margin: 20px 0;
}

.testimonial img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary);
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    height: 400px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #263238 100%);
    color: var(--white);
    padding: 60px 0 30px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #008000;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: var(--white);
}

/* Page Sections */
.page-section {
    display: none;
    padding: 80px 0;
}

.active-section {
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        padding: 60px 0;
        border-radius: 0 0 30% 30% / 20%;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .feature-box {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
        border-radius: 0;
    }
    
    .nav-link {
        margin: 5px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .testimonial {
        margin: 10px 0;
        padding: 20px;
    }
    
    .age-group {
        padding: 20px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    .testimonial img {
        width: 50px;
        height: 50px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        margin-right: 5px;
    }
    
    footer {
        padding: 40px 0 20px;
    }
}

/* Image Tiles Styles */
.image-tiles-section {
    background-color: var(--light);
}

.image-tile {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-tile:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-tile:hover .tile-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 158, 128, 0.9), rgba(128, 203, 196, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-tile:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.overlay-content h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 600;
}

.overlay-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.overlay-content .btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 500;
}

.tile-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tile-content h5 {
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.tile-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Alternative Tile Layout (Optional) */
.image-tile.horizontal {
    flex-direction: row;
    height: auto;
}

.image-tile.horizontal .image-container {
    width: 40%;
    height: auto;
    min-height: 200px;
}

.image-tile.horizontal .tile-content {
    width: 60%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .image-container {
        height: 220px;
    }
    
    .tile-content {
        padding: 20px;
    }
    
    .overlay-content {
        padding: 15px;
    }
    
    .overlay-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .image-container {
        height: 200px;
    }
    
    .tile-content {
        padding: 15px;
    }
    
    .image-tile {
        margin-bottom: 20px;
    }
    
    .overlay-content h4 {
        font-size: 1rem;
    }
    
    .overlay-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .image-container {
        height: 180px;
    }
    
    .overlay-content {
        padding: 10px;
    }
    
    .overlay-content .btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

/* Loading Animation for Images */
.tile-image {
    background-color: #f8f9fa;
    background-image: 
        linear-gradient(45deg, transparent 35%, rgba(255,255,255,0.5) 50%, transparent 65%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.tile-image[src] {
    animation: none;
    background-image: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Icon Badges (Optional Enhancement) */
.tile-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

/* About Us Page Styles */

/* Hero Banner Section */
.about-hero {
    /* position: relative; */
    /* height: 50vh; */
    /* min-height: 600px; */
    /* display: flex; */
    align-items: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 80%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, rgba(255, 158, 128, 0.8) 0%, rgba(128, 203, 196, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.p {
    color: #000000;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.9;
}

/* Our Story Section */
.our-story {
    padding: 100px 0;
}

.story-content {
    padding-right: 30px;
}

.story-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.founder-signature {
    display: flex;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.signature {
    width: 120px;
    height: auto;
    margin-right: 20px;
}

.founder-name {
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.story-images {
    position: relative;
    height: 500px;
}

.image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.story-img {
    position: absolute;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    object-fit: cover;
}

.img-1 {
    width: 60%;
    height: 70%;
    top: 0;
    left: 0;
    z-index: 3;
}

.img-2 {
    width: 50%;
    height: 60%;
    top: 20%;
    right: 10%;
    z-index: 2;
}

.img-3 {
    width: 40%;
    height: 50%;
    bottom: 0;
    right: 0;
    z-index: 1;
}

/* Mission, Vision, Values Section */
.foundation-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.foundation-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.foundation-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.foundation-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
}

.foundation-card p {
    color: #666;
    line-height: 1.6;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.values-list li {
    padding: 8px 0;
    color: #666;
}

.values-list i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Team Section */
.team-section {
    padding: 100px 0;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.team-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 158, 128, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.team-role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-bio {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Achievements Section */
.achievement-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.achievement-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.achievement-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.achievement-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 80px 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons .btn {
    margin: 10px;
    padding: 15px 30px;
    font-weight: 600;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .story-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .story-images {
        height: 400px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .story-images {
        height: 300px;
    }
    
    .img-1, .img-2, .img-3 {
        position: relative;
        width: 100%;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .founder-signature {
        flex-direction: column;
        text-align: center;
    }
    
    .signature {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .team-image {
        height: 200px;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .foundation-card, .team-info, .achievement-card {
        padding: 20px;
    }
    
    .story-content .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
}

/* Additional Animation Styles */

/* Fade-in animation for lazy loaded images */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Hover animations for foundation cards */
.mission-card:hover {
    background: linear-gradient(135deg, rgba(255, 158, 128, 0.1), rgba(255, 158, 128, 0.05));
}

.vision-card:hover {
    background: linear-gradient(135deg, rgba(128, 203, 196, 0.1), rgba(128, 203, 196, 0.05));
}

.values-card:hover {
    background: linear-gradient(135deg, rgba(206, 147, 216, 0.1), rgba(206, 147, 216, 0.05));
}

/* Floating animation for achievement icons */
.achievement-icon {
    animation: float 3s ease-in-out infinite;
}

.achievement-card:nth-child(2) .achievement-icon {
    animation-delay: 0.5s;
}

.achievement-card:nth-child(3) .achievement-icon {
    animation-delay: 1s;
}

.achievement-card:nth-child(4) .achievement-icon {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse animation for CTA buttons */
.cta-buttons .btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 158, 128, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 158, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 158, 128, 0); }
}

/* Story images stacking animation */
.story-img {
    animation: slideInStack 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(50px);
}

.img-1 {
    animation-delay: 0.2s;
}

.img-2 {
    animation-delay: 0.4s;
}

.img-3 {
    animation-delay: 0.6s;
}

@keyframes slideInStack {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Team card enhanced hover effects */
.team-card {
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.team-card:hover::before {
    left: 100%;
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .hero-stats {
        padding: 0 20px;
    }
    
    .stat-item {
        padding: 10px;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
        margin: 5px 0;
    }
    
    .foundation-card {
        margin-bottom: 20px;
    }
    
    .team-card {
        margin-bottom: 30px;
    }
    
    .achievement-card {
        margin-bottom: 20px;
    }
}

/* Print styles */
@media print {
    .about-hero {
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .team-overlay,
    .cta-section {
        display: none;
    }
    
    .foundation-card,
    .team-card,
    .achievement-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .story-img,
    .achievement-icon,
    .team-card::before {
        animation: none;
    }
    
    .hero-image {
        transform: none !important;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for better accessibility */
.social-link:focus,
.cta-buttons .btn:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .foundation-card,
    .team-card,
    .achievement-card {
        border: 2px solid var(--dark);
    }
    
    .hero-overlay {
        background: rgba(0,0,0,0.8);
    }
}
