/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo h2 {
    color: #2c5aa0;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5aa0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.sponsor-btn {
    background: #2c5aa0;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.sponsor-btn:hover {
    background: #1e3f7a;
    transform: translateY(-2px);
}

.sponsor-btn::after {
    display: none;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.language-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

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

.language-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.language-option:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.language-option .flag {
    font-size: 1.2rem;
}

.language-option .name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .nav-menu {
    flex-direction: row-reverse;
}

.rtl .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2c5aa0;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}



.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Children Section */
.children {
    padding: 6rem 0;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.child-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.child-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.child-image {
    height: 250px;
    overflow: hidden;
}

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

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

.child-info {
    padding: 1.5rem;
}

.child-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.child-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.child-detail {
    background: #f0f4ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2c5aa0;
    font-weight: 500;
}

.child-need {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.child-about {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sponsor-child-btn {
    width: 100%;
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sponsor-child-btn:hover {
    background: #1e3f7a;
}

.load-more-container {
    text-align: center;
}

.load-more-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.load-more-btn:hover {
    background: #1e3f7a;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.social-links h4 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #2c5aa0;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: #1e3f7a;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #2c5aa0;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-sponsor-btn {
    display: inline-block;
    background: white;
    color: #2c5aa0;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-sponsor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Child Details Full Page - Enhanced */
.child-details-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    display: none;
    animation: slideInFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: right center;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.child-details-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f7a 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-height: 80px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.child-details-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    flex: 1;
    margin: 0 2rem;
}

.child-details-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    min-height: calc(100vh - 80px);
}

.child-details-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.child-details-gallery {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.main-image-container {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.child-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.child-main-image:hover {
    transform: scale(1.02);
}

.child-image-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #2c5aa0 #f0f4ff;
}

.child-image-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.child-image-thumbnails::-webkit-scrollbar-track {
    background: #f0f4ff;
    border-radius: 3px;
}

.child-image-thumbnails::-webkit-scrollbar-thumb {
    background: #2c5aa0;
    border-radius: 3px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #2c5aa0;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.child-details-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.child-details-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.child-details-header-info h2 {
    font-size: 3rem;
    color: #2c5aa0;
    font-weight: 800;
    line-height: 1.1;
}

.child-details-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.child-badge {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f7a 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.child-details-need,
.child-details-story,
.child-details-education,
.child-details-family,
.child-details-sponsorship {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(44, 90, 160, 0.1);
    transition: transform 0.3s ease;
}

.child-details-need:hover,
.child-details-story:hover,
.child-details-education:hover,
.child-details-family:hover,
.child-details-sponsorship:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.child-details-need h3,
.child-details-story h3,
.child-details-education h3,
.child-details-family h3,
.child-details-sponsorship h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.child-details-need h3::before,
.child-details-story h3::before,
.child-details-education h3::before,
.child-details-family h3::before,
.child-details-sponsorship h3::before {
    content: '';
    width: 4px;
    height: 25px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f7a 100%);
    border-radius: 2px;
}

.child-details-need p {
    background: linear-gradient(145deg, #ffe6e6 0%, #fff5f5 100%);
    color: #e74c3c;
    padding: 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    border-left: 5px solid #e74c3c;
    font-size: 1.1rem;
    line-height: 1.6;
}

.child-details-story p {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
    text-align: justify;
}

.education-details {
    display: grid;
    gap: 1.5rem;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid rgba(44, 90, 160, 0.1);
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
}

.education-item i {
    color: #2c5aa0;
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.education-item strong {
    color: #2c5aa0;
    margin-right: 0.5rem;
    font-weight: 600;
}

.child-details-family p {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
    text-align: justify;
}

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

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f0f4ff 0%, #ffffff 100%);
    border-radius: 15px;
    color: #2c5aa0;
    font-weight: 600;
    border: 1px solid rgba(44, 90, 160, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.15);
}

.benefit-item i {
    font-size: 1.5rem;
    color: #2c5aa0;
}

/* Child Details Sidebar */
.child-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sponsorship-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 90, 160, 0.1);
    position: sticky;
    top: 100px;
}

.sponsorship-card h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.sponsorship-amounts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.amount-option {
    position: relative;
}

.amount-option input[type="radio"] {
    display: none;
}

.amount-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.amount-option label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.1), transparent);
    transition: left 0.5s ease;
}

.amount-option label:hover::before {
    left: 100%;
}

.amount-option input[type="radio"]:checked + label {
    border-color: #2c5aa0;
    background: linear-gradient(145deg, #f0f4ff 0%, #ffffff 100%);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
    transform: translateY(-2px);
}

.amount-option .amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c5aa0;
}

.amount-option .period {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.sponsorship-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #555;
    font-weight: 500;
}

.feature-item i {
    color: #27ae60;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sponsor-child-full-btn {
    width: 100%;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f7a 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.sponsor-child-full-btn::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 ease;
}

.sponsor-child-full-btn:hover::before {
    left: 100%;
}

.sponsor-child-full-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

.sponsorship-note {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    line-height: 1.6;
    font-style: italic;
}

.other-children-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.other-children-section h4 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.other-children-grid {
    display: grid;
    gap: 1rem;
}

.other-child-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.other-child-preview:hover {
    background: linear-gradient(145deg, #f0f4ff 0%, #ffffff 100%);
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.15);
}

.other-child-preview img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2c5aa0;
}

.other-child-preview-info h5 {
    color: #2c5aa0;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.other-child-preview-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .child-details-content {
        grid-template-columns: 1fr 350px;
        gap: 3rem;
        padding: 2rem;
    }
    
    .child-main-image {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .child-details-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .child-details-sidebar {
        position: static;
        order: 1;
    }
    
    .sponsorship-card {
        position: static;
    }
    
    .child-details-header-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .child-details-header-info h2 {
        font-size: 2.5rem;
    }
    
    .child-main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .language-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        max-height: none;
        padding: 0;
        margin-top: 0.5rem;
    }
    
    .language-option {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        background: #f8f9fa;
    }
    
    .language-option:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .slide-content {
        padding: 0 2rem;
        text-align: center;
        max-width: 600px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .slide-content p {
        font-size: 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }



    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .children-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Child Details Mobile */
    .child-details-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        min-height: auto;
    }

    .child-details-header h1 {
        font-size: 1.5rem;
        margin: 0;
    }

    .child-details-content {
        padding: 1rem;
        gap: 2rem;
    }

    .child-details-gallery {
        padding: 1.5rem;
    }

    .child-main-image {
        height: 300px;
    }

    .child-details-header-info {
        padding: 1.5rem;
    }

    .child-details-header-info h2 {
        font-size: 2rem;
    }

    .child-details-need,
    .child-details-story,
    .child-details-education,
    .child-details-family,
    .child-details-sponsorship {
        padding: 1.5rem;
    }

    .sponsorship-benefits {
        grid-template-columns: 1fr;
    }

    .sponsorship-card {
        padding: 1.5rem;
    }

    .other-children-section {
        padding: 1.5rem;
    }

    .thumbnail-item {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .slide-content {
        padding: 0 1rem;
        max-width: 400px;
    }

    .slide-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .slide-content p {
        font-size: 0.9rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }

    .about-stats {
        flex-direction: column;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .child-details-content {
        padding: 0.5rem;
    }

    .child-details-gallery {
        padding: 1rem;
    }

    .child-main-image {
        height: 250px;
    }

    .child-details-header-info h2 {
        font-size: 1.8rem;
    }

    .child-details-need,
    .child-details-story,
    .child-details-education,
    .child-details-family,
    .child-details-sponsorship {
        padding: 1rem;
    }

    .sponsorship-card {
        padding: 1rem;
    }

    .other-children-section {
        padding: 1rem;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
    }

    .back-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}


.thumbnail-item img {
  width: auto;
  height: auto; /* Or a fixed height */
  object-fit: cover;
}
