/* Waad Education Custom Styles */

/* Font Families */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-cairo {
    font-family: 'Cairo', sans-serif;
}

/* Apply Cairo for Arabic text */
[dir="rtl"],
.arabic-text {
    font-family: 'Cairo', sans-serif;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Remove old animation classes - using Tailwind now */

/* Hero Background Images */
/* Slide 1: Aerial view of school campus */
.hero-bg-1 {
    background: linear-gradient(rgba(var(--waad-primary-rgb, 72, 98, 102), 0.4), rgba(var(--waad-primary-rgb, 72, 98, 102), 0.4)), 
                url('../images/hero-slide-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slide 2: Modern classroom with students and teacher */
.hero-bg-2 {
    background: linear-gradient(rgba(var(--waad-primary-rgb, 72, 98, 102), 0.4), rgba(var(--waad-primary-rgb, 72, 98, 102), 0.4)), 
                url('../images/hero-slide-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slide 3: Graduation ceremony with students */
.hero-bg-3 {
    background: linear-gradient(rgba(var(--waad-primary-rgb, 72, 98, 102), 0.4), rgba(var(--waad-primary-rgb, 72, 98, 102), 0.4)), 
                url('../images/hero-slide-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    background: rgba(var(--waad-primary-rgb, 72, 98, 102), 0.35);
    position: relative;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(var(--waad-gold-rgb, 212, 175, 55), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--waad-gold-rgb, 212, 175, 55), 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Logo Icon */
.logo-icon {
    flex-shrink: 0;
}

/* Navigation Dropdown - using Tailwind animations now */

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--waad-primary, #486266);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--waad-gold, #d4af37);
}

/* Hero Navigation Buttons - using Tailwind classes now */

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-slide h1 {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-slide p {
        font-size: 1rem !important;
    }
    
    .hero-slide button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    nav .hidden.lg\\:flex {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .hero-slide h1 {
        font-size: 2rem !important;
    }
    
    .hero-slide .flex.flex-wrap {
        flex-direction: column;
    }
    
    .hero-slide button {
        width: 100%;
        justify-content: center;
    }
}

/* Professional Animated Border for Boxes */
.animated-border-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.animated-border-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 3px;
    background: linear-gradient(135deg, var(--waad-primary, #486266), var(--waad-gold, #d4af37), var(--waad-primary, #486266));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-gradient 3s ease infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-border-box:hover::before {
    opacity: 1;
}

@keyframes border-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-border-box > * {
    position: relative;
    z-index: 1;
}

/* Alternative animated border with shimmer effect */
.shimmer-border-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.shimmer-border-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, transparent 30%, rgba(var(--waad-gold-rgb, 212, 175, 55), 0.8) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer-border 2s linear infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shimmer-border-box:hover::before {
    opacity: 1;
}

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

.shimmer-border-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: inherit;
    z-index: 1;
}

.shimmer-border-box > * {
    position: relative;
    z-index: 2;
}

/* Pulsing border animation */
.pulse-border-box {
    position: relative;
    border-radius: 12px;
    overflow: visible;
}

.pulse-border-box::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--waad-primary, #486266), var(--waad-gold, #d4af37));
    opacity: 0;
    animation: pulse-border 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse-border {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.pulse-border-box > * {
    position: relative;
    z-index: 1;
    border-radius: 12px;
}

/* Modern gradient border with rotation */
.gradient-border-box {
    position: relative;
    border-radius: 12px;
    padding: 3px;
    background: linear-gradient(135deg, var(--waad-primary, #486266), var(--waad-gold, #d4af37), var(--waad-primary, #486266));
    background-size: 300% 300%;
    animation: gradient-rotate 4s ease infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gradient-border-box:hover {
    animation-duration: 1.5s;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--waad-primary-rgb, 72, 98, 102), 0.3);
}

.gradient-border-box > * {
    background: white;
    border-radius: 9px;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Our Impact in Numbers Section Background */
.impact-numbers-section {
    background-color: var(--waad-dark-bg, #486266);
    position: relative;
}

.impact-numbers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* White dots pattern - concentrated */
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.25) 1.5px, transparent 0),
        radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.2) 1px, transparent 0),
        radial-gradient(circle at 34px 34px, rgba(255, 255, 255, 0.18) 1.5px, transparent 0);
    background-size: 
        24px 24px,
        32px 32px,
        40px 40px;
    background-position: 
        0 0,
        12px 12px,
        24px 24px;
    opacity: 0.8;
    z-index: 0;
}

.impact-numbers-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Faded oval shapes - subtle background */
        radial-gradient(ellipse 400px 250px at 15% 25%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 350px 220px at 85% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 380px 280px at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 280px 200px at 8% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 320px 240px at 92% 15%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
}

.impact-numbers-section > * {
    position: relative;
    z-index: 1;
}

/* Schools Section Animations */
.school-card {
    animation: fadeInUp 0.6s ease-out;
    opacity: 1;
}

.school-card.hidden {
    display: none;
}

.school-card.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.school-card.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* School card hover effects */
.school-card img {
    transition: transform 0.5s ease, scale 0.5s ease;
}

.school-card:hover img {
    transform: scale(1.05);
}

/* Badges animation */
.school-card .absolute.bottom-4 > div {
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.school-card .absolute.bottom-4 > div:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Content animation */
.school-card .p-8 > * {
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.school-card .p-8 > *:nth-child(1) {
    animation-delay: 0.5s;
}

.school-card .p-8 > *:nth-child(2) {
    animation-delay: 0.6s;
}

.school-card .p-8 > *:nth-child(3) {
    animation-delay: 0.7s;
}

.school-card .p-8 > *:nth-child(4) {
    animation-delay: 0.8s;
}

.school-card .p-8 > *:nth-child(5) {
    animation-delay: 0.9s;
}

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

/* Button hover animation */
.school-tab {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.school-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.school-tab:hover::before {
    width: 300px;
    height: 300px;
}

.school-tab.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(var(--waad-primary-rgb, 72, 98, 102), 0.3);
}

/* Card shadow animation */
.school-card > div {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.school-card:hover > div {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Tags animation on hover */
.school-card .bg-gray-100 {
    transition: all 0.3s ease;
}

.school-card .bg-gray-100:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #e5e7eb !important;
}

/* Button arrow animation */
.school-card button i.fa-arrow-right {
    transition: transform 0.3s ease;
}

.school-card button:hover i.fa-arrow-right {
    transform: translateX(4px);
}

/* Image zoom on card hover */
.school-card:hover .relative img {
    transform: scale(1.08);
}

/* Badges pulse animation */
.school-card .absolute.bottom-4 > div {
    transition: transform 0.3s ease;
}

.school-card:hover .absolute.bottom-4 > div {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Feature Cards Icon Hover Effect */
.feature-card:hover .feature-icon {
    background-color: var(--waad-primary, #486266) !important;
}

.feature-card:hover .feature-icon i {
    color: var(--waad-text-on-dark, white) !important;
}

/* Learning Framework Section Background */
.learning-framework-section {
    background-color: var(--waad-dark-bg, #486266);
    position: relative;
}

.learning-framework-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(129, 178, 184, 0.15) 60px,
            rgba(129, 178, 184, 0.15) 120px
        ),
        radial-gradient(ellipse 250px 100px at 15% 25%, rgba(129, 178, 184, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 15% 50%, rgba(129, 178, 184, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 15% 75%, rgba(129, 178, 184, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 35% 20%, rgba(129, 178, 184, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 35% 55%, rgba(129, 178, 184, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 35% 80%, rgba(129, 178, 184, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 55% 30%, rgba(129, 178, 184, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 55% 65%, rgba(129, 178, 184, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 75% 25%, rgba(129, 178, 184, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 75% 60%, rgba(129, 178, 184, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 250px 100px at 95% 35%, rgba(129, 178, 184, 0.25) 0%, transparent 60%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 0;
}

.learning-framework-section > * {
    position: relative;
    z-index: 1;
}

/* About Page Hero Pattern with Plus Signs */
.about-hero-pattern {
    position: relative;
    background-color: var(--waad-dark-bg, #486266);
}

.about-hero-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='30' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 10 L15 20 M10 15 L20 15' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    background-position: 0 0;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.about-hero-pattern > * {
    position: relative;
    z-index: 1;
}

/* Mobile Menu Styles */
#mobile-menu {
    overflow-y: auto;
}

#mobile-menu a,
#mobile-menu button {
    transition: all 0.3s ease;
}

#mobile-menu .rotate-180 {
    transform: rotate(180deg);
}

/* Core Values Boxes */
.core-value-box {
    background-color: var(--waad-light-bg, #F9FAFB);
}

.core-value-box:hover {
    background-color: var(--waad-light-bg, #F9FAFB);
}

/* Read More Button Animation */
.read-more-btn {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.read-more-btn .arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.read-more-btn:hover .arrow-icon {
    animation: arrow-slide 0.6s ease infinite;
}

@keyframes arrow-slide {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

.read-more-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--waad-primary, #486266), var(--waad-gold, #d4af37));
    transition: width 0.3s ease;
}

.read-more-btn:hover::after {
    width: 100%;
}

