/* Achievement Page CSS - BULLETPROOF FIXES */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
.achievement-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BULLETPROOF SOLUTION #1: FULL WIDTH OVERRIDE */
.achievement-page {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Force all sections to take full width */
.achievement-page section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Override any container restrictions */
.achievement-page .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Typography */
.achievement-page h1,
.achievement-page h2,
.achievement-page h3 {
    font-family: 'Lora', serif;
}

.achievement-page p,
.achievement-page span,
.achievement-page div {
    font-family: 'Montserrat', sans-serif;
}

/* BULLETPROOF SOLUTION #2: HERO SECTION BACKGROUND FIX */
.achievement-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35)), url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/05/hercules-hall-surrounded-by-greenery-sunlight-daytime-munich-germany-scaled.jpg') !important;
    background-position: center !important;
    background-attachment: scroll !important;  /* Safe for header compatibility */
    background-repeat: no-repeat !important;
    padding: 0px 0 120px !important;
    text-align: center !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    transform: translateZ(0) !important;  /* Hardware acceleration for smooth performance */
}

/* Remove any conflicting overlays */
.achievement-hero::before {
    display: none !important;
}

.achievement-hero::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    right: 0 !important;
    height: 120px !important;
    z-index: 2 !important;
}

.achievement-hero-content {
    position: relative !important;
    z-index: 3 !important;
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

.achievement-hero h1 {
    font-family: 'Lora', serif !important;
    font-size: 4.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    text-shadow: 4px 4px 16px rgba(0,0,0,0.9) !important;
    letter-spacing: -0.5px !important;
    color: white !important;
}

.achievement-hero p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    line-height: 1.8 !important;
    color: white !important;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.8) !important;
}

/* Stats Section - FIXED */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%) !important;
    padding: 120px 0 !important;
    position: relative !important;
    margin-top: -80px !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px;
    text-align: center;
}

.stat-card {
    background: white;
    padding: 60px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(18, 88, 73, 0.12);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(18, 88, 73, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #125849, #1e6b5a, #125849);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.stat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(18, 88, 73, 0.18);
}

.stat-card:hover::before {
    animation-duration: 1s;
}

.stat-number {
    font-family: 'Lora', serif;
    font-size: 4rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    display: block;
    letter-spacing: -1px;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Section Headers - FIXED */
.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 3.5rem !important;
    color: #333 !important;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #125849, #1e6b5a);
    border-radius: 3px;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* Achievements Grid - FIXED */
.achievements-section {
    padding: 100px 0 !important;
    background: white !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
}

.achievement-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 90px rgba(18, 88, 73, 0.15);
}

.achievement-card:hover .achievement-image {
    transform: scale(1.05);
}

/* BULLETPROOF SOLUTION #3: ACHIEVEMENT IMAGES DISPLAY FIX */
.achievement-image {
    height: 250px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.4s ease !important;
    display: block !important;
    width: 100% !important;
}

/* Force images to display with specific backgrounds */
.achievement-card:nth-child(1) .achievement-image {
    background-image: url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/07/portrait-indian-graduate-graduation-robe-university-campus-scaled.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}

.achievement-card:nth-child(2) .achievement-image {
    background-image: url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/07/group-four-indian-teen-male-students-classmates-spend-time-together-scaled.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}

.achievement-card:nth-child(3) .achievement-image {
    background-image: url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/06/united-mix-raced-team-students-scaled.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}

.achievement-card:nth-child(4) .achievement-image {
    background-image: url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/07/group-asian-people-friends-stand-stairs-outdoor-against-modern-building-hold-hands-hands-together-scaled.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}

.achievement-card:nth-child(5) .achievement-image {
    background-image: url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/07/group-asian-people-friends-stand-stairs-outdoor-against-modern-building-hold-hands-hands-together-scaled.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}

.achievement-card:nth-child(6) .achievement-image {
    background-image: url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/06/Placeholder-Image-1-2.png') !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Subtle overlay for better text readability */
.achievement-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(18, 88, 73, 0.2), rgba(18, 88, 73, 0.05)) !important;
    z-index: 1 !important;
}

.achievement-image::after {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 3.5rem !important;
    z-index: 2 !important;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3)) !important;
    opacity: 0.9 !important;
}

.achievement-content {
    padding: 45px 40px;
}

.achievement-title {
    font-family: 'Lora', serif;
    font-size: 1.6rem !important;
    color: #333 !important;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.achievement-description {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
    font-weight: 400;
}

.achievement-year {
    display: inline-block;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #125849;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid rgba(18, 88, 73, 0.1);
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-year {
    background: linear-gradient(135deg, #125849, #1e6b5a);
    color: white;
    border-color: #125849;
}

/* Timeline Section - FIXED */
.timeline-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%) !important;
    padding: 140px 0 !important;
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #125849 0%, #1e6b5a 50%, #125849 100%);
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(18, 88, 73, 0.3);
}

.timeline-item {
    margin: 80px 0;
    position: relative;
}

.timeline-content {
    background: white;
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    position: relative;
    width: 45%;
    margin-left: 55%;
    border: 1px solid rgba(18, 88, 73, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 30px 70px rgba(18, 88, 73, 0.12);
    transform: translateY(-8px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 40px;
    width: 0;
    height: 0;
    border: 18px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -36px;
    border-right-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -36px;
    border-left-color: white;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 45px;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #125849;
    border: 8px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(18, 88, 73, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: #1e6b5a;
    box-shadow: 0 0 0 10px rgba(18, 88, 73, 0.3);
    transform: translateX(-50%) scale(1.2);
}

.timeline-year {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #125849;
    margin-bottom: 15px;
}

.timeline-title {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.timeline-desc {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Certifications Section - FIXED */
.certifications-section {
    padding: 140px 0 !important;
    background: white !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 50px;
    text-align: center;
}

.certification-item {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 60px 30px;
    border-radius: 25px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.certification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(18, 88, 73, 0.05), transparent);
    transition: left 0.5s;
}

.certification-item:hover::before {
    left: 100%;
}

.certification-item:hover {
    border-color: #125849;
    background: white;
    box-shadow: 0 25px 60px rgba(18, 88, 73, 0.1);
    transform: translateY(-10px);
}

.certification-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    color: #125849;
    transition: transform 0.3s ease;
}

.certification-item:hover .certification-icon {
    transform: scale(1.1) rotateY(360deg);
}

.certification-name {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.certification-body {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    font-size: 1.05rem;
    font-weight: 400;
}

/* CTA Section - FIXED */
.cta-section {
    background: linear-gradient(135deg, #125849 0%, #1e6b5a 100%) !important;
    padding: 120px 0 !important;
    text-align: center !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
}

.cta-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #125849;
    padding: 20px 60px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(18, 88, 73, 0.1), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    color: #125849;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(60px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Responsive Design - FIXED */
@media (max-width: 1024px) {
    .achievement-page .container {
        padding: 0 30px !important;
    }
    
    .achievement-hero h1 {
        font-size: 3.5rem !important;
    }
    
    .section-title {
        font-size: 3rem !important;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .achievement-page .container {
        padding: 0 20px !important;
    }
    
    .achievement-hero {
        padding: 120px 0 100px !important;
        background-attachment: scroll !important;
        min-height: 80vh !important;
    }
    
    .achievement-hero h1 {
        font-size: 3rem !important;
    }
    
    .achievement-hero p {
        font-size: 1.3rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 40px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-content::before {
        left: -36px !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 30px;
    }
    
    .cta-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .achievement-hero h1 {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2.2rem !important ;
    }
    
    .stat-number {
        font-size: 3.2rem;
    }
    
    .achievement-content {
        padding: 35px 30px;
    }
    
    .timeline-content {
        padding: 35px 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}