/* Home Page Additions CSS */

/* Mission Section */
.mission-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.mission-section .section-title {
    color: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.mission-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFadeIn 0.8s ease-out forwards;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.mission-card:nth-child(1) {
    animation-delay: 0.1s;
}

.mission-card:nth-child(2) {
    animation-delay: 0.3s;
}

.mission-card:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes slideUpFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mission-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: opacity 0.5s;
    opacity: 0;
}

.mission-card:hover::before {
    opacity: 1;
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.mission-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2a5298, #3b82f6, #2a5298);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s;
}

.mission-card:hover::after {
    opacity: 1;
    animation: borderGlow 2s infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(30, 60, 114, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(42, 82, 152, 0.8);
    }
}

.mission-card:hover {
    transform: translateY(-15px) scale(1.05) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mission-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.mission-card:hover .mission-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 10px 20px rgba(42, 82, 152, 0.6));
}

.mission-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #1e3c72;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mission-card:hover h3 {
    color: white;
    transform: scale(1.05);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.mission-card p {
    color: #666;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.mission-card:hover p {
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Rights/Impact Section */
.rights-section {
    background: #ffffff;
    padding: var(--spacing-xl) 0;
    color: #1e3c72;
}

.rights-section .section-title {
    color: #1e3c72;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 2px solid #2a5298;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: linear-gradient(135deg, #bbdefb 0%, #e3f2fd 100%);
    box-shadow: 0 15px 40px rgba(42, 82, 152, 0.3);
}

.stat-icon {
    font-size: 3rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e3c72;
}

.stat-number::after {
    content: '+';
}

.stat-text {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: #2a5298;
    font-weight: 600;
}

/* Featured Programs Section */
.featured-programs-section {
    background: #f8f9fa;
    padding: var(--spacing-xl) 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-10px);
}

.featured-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.1) rotate(2deg);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(42, 82, 152, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.featured-card:hover .featured-overlay {
    opacity: 1;
}

.featured-btn {
    background: white;
    color: #2a5298;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    animation: btnPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.featured-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(42, 82, 152, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.featured-btn:hover::before {
    width: 300px;
    height: 300px;
}

.featured-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(42, 82, 152, 0.4);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.featured-btn:hover .btn-arrow {
    transform: translateX(10px);
    animation: arrowBounce 0.6s ease infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(10px);
    }

    50% {
        transform: translateX(15px);
    }
}

.featured-content {
    padding: 2.5rem;
}

.featured-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Testimonials Section */
.testimonials-section {
    background: #1a1a1a;
    padding: 3rem 0;
}

.testimonials-section .section-title {
    color: white;
    font-size: 2rem;
}

.testimonials-slider {
    max-width: 900px;
    margin: 2rem auto;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.slider-arrow {
    display: none;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.quote-icon {
    font-size: 2.5rem;
    color: #2a5298;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: white;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    text-align: center;
}

.testimonial-author h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.star-rating {
    font-size: 1.2rem;
}

.testimonial-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #2a5298;
    transform: scale(1.3);
}

/* Google Reviews Section */
.google-reviews-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    padding: var(--spacing-xl) 0;
}

.google-reviews-section .section-title {
    color: #1e3c72;
}

.google-rating-summary {
    text-align: center;
    margin: 2rem 0 3rem;
}

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: #2a5298;
}

.rating-stars {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.rating-text {
    color: #666;
    font-size: 1.1rem;
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(42, 82, 152, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-info h4 {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.reviewer-info p {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Section (if used) */
.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* News Section */
.news-section {
    background: white;
    padding: var(--spacing-xl) 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(42, 82, 152, 0.2);
}

.news-date {
    color: #2a5298;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.news-link {
    color: #2a5298;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.news-link:hover {
    color: #1e3c72;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(42, 82, 152, 0.4);
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2a5298;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hero Entrance Animations */
.hero-content {
    opacity: 0;
    /* Initially hidden */
    animation: heroFadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1s;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
    }
}