/* Fix for double scrollbar issue */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Research Section */
.latest-research {
    padding: 80px 0;
    background: #f8f9fa;
}

.latest-research h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.paper-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease;
}

.paper-card:hover {
    transform: translateY(-5px);
}

.paper-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.category-badge, .date-badge {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-badge i, .date-badge i {
    color: #2a5298;
}

.paper-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.paper-card .author {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.paper-card .abstract {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.paper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.metrics {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.metrics span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.metrics i {
    color: #2a5298;
}

.btn-text {
    color: #2a5298;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #1a3c7a;
}

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

.btn-text:hover i {
    transform: translateX(3px);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ============= General Section Styling ============= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: #2a5298;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

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

/* Text alignment override */
.text-left {
    text-align: left;
}

.text-left h2:after {
    left: 0;
    transform: none;
}

.section-divider {
    width: 70px;
    height: 3px;
    background: #2a5298;
    margin: 15px 0 25px;
}

/* ============= About Section Styling ============= */
.about-section {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text .lead {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.mission-box, .vision-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #2a5298;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mission-box h3, .vision-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.mission-box h3 i, .vision-box h3 i {
    color: #2a5298;
}

.mission-box p, .vision-box p {
    margin-bottom: 0;
}

.about-image {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.rounded-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 120px;
    height: 120px;
    background: #2a5298;
    color: white;
    border-radius: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(42, 82, 152, 0.3);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-align: center;
    max-width: 80%;
}

/* ============= Main Sections Styling ============= */
.main-sections {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid transparent;
}

.section-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid #2a5298;
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f0f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #2a5298;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.section-card:hover .card-icon-wrapper {
    background: #2a5298;
    color: white;
    transform: rotateY(180deg);
}

.section-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #e0e0e0;
}

.section-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}

.section-list li {
    padding: 10px 0;
    color: #666;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.section-list li:last-child {
    border-bottom: none;
}

.section-list li i {
    color: #2a5298;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 25px;
    border: 2px solid #2a5298;
    border-radius: 50px;
    color: #2a5298;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: #2a5298;
    color: white;
}

.btn-outline .fas {
    transition: transform 0.3s ease;
}

.btn-outline:hover .fas {
    transform: translateX(5px);
}

/* ============= Founders Section Styling ============= */
.founders-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.founders-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.founder-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.founder-card:hover {
    transform: translateY(-10px);
}

.founder-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.founder-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background-color: rgba(26, 60, 122, 0.8); /* Dark blue background */
    /* Make social links always visible */
    transform: translateY(0);
    transition: background-color 0.3s ease;
}

.founder-card:hover .social-links {
    background-color: rgba(42, 82, 152, 0.9); /* Slightly lighter blue on hover */
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1a3c7a; /* Dark blue */
    color: #ffffff; /* White */
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #2a5298; /* Lighter blue on hover */
    transform: translateY(-3px);
}

.founder-info {
    padding: 30px;
}

.founder-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 5px;
}

.founder-title {
    color: #2a5298;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.founder-bio {
    color: #666;
    line-height: 1.7;
}

/* ============= Achievements Section Styling ============= */
.achievements-section {
    padding: 100px 0;
    background: #fff;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: #2a5298;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #2a5298;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.2);
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    width: calc(50% - 40px);
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
}

.year-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #2a5298;
    color: white;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============= Partners Section Styling ============= */
.partners-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.partner-logo {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ============= Training Programs Styling ============= */
.training-preview {
    padding: 100px 0;
    background: white;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.training-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-top i {
    font-size: 2.5rem;
    color: #2a5298;
    padding: 15px;
    background: #f0f5ff;
    border-radius: 10px;
}

.badge {
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.training-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.training-card p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.card-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.card-features i {
    color: #2a5298;
}

.training-card .btn-outline {
    align-self: center;
    margin-top: auto;
}

/* ============= Statistics Section ============= */
.statistics {
    padding: 80px 0;
    background: url('../images/stats-bg.jpg') center/cover no-repeat fixed;
    position: relative;
    color: white;
}

.statistics .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 82, 152, 0.85);
}

.statistics .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

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

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.count {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============= Testimonials Section ============= */
.testimonials {
    padding: 100px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: #2a5298;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid #2a5298;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 1.2rem;
    margin: 0 0 5px;
    color: #333;
}

.author-details p {
    color: #666;
    margin: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2a5298;
    transform: scale(1.2);
}

.testimonial-arrows {
    display: flex;
    gap: 20px;
    margin-left: 30px;
}

.arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

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

/* ============= Newsletter Section ============= */
.newsletter {
    background: linear-gradient(135deg, #1a3c7a 0%, #2a5298 100%);
    padding: 5rem 0;
    color: #ffffff;
}

.newsletter-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.newsletter-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.newsletter-form {
    flex: 1;
}

.form-group {
    display: flex;
    gap: 10px;
}

.form-group input {
    flex: 1;
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}

.form-group .btn {
    padding: 0 25px;
    border: none;
    border-radius: 5px;
    background: #ff6b6b;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-group .btn:hover {
    background: #ff5252;
}

.form-footer {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============= Responsive Adjustments ============= */
@media (max-width: 992px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .form-group {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .about-image {
        order: -1;
        margin-bottom: 40px;
    }

    .experience-badge {
        bottom: -15px;
        right: 20px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .main-sections,
    .training-preview,
    .testimonials,
    .about-section,
    .founders-section,
    .achievements-section,
    .partners-section {
        padding: 70px 0;
    }
    
    .count {
        font-size: 2.5rem;
    }
    
    .testimonial-content {
        padding: 30px;
    }
    
    .quote {
        font-size: 1rem;
    }
    
    .latest-research {
        padding: 60px 0;
    }

    .latest-research h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

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

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .founders-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .founder-card {
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .form-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .card-features {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .paper-header {
        flex-direction: column;
        gap: 10px;
    }

    .paper-card {
        padding: 20px;
    }

    .paper-card h3 {
        font-size: 1.2rem;
    }

    .partners-logos {
        gap: 15px;
    }

    .partner-logo {
        width: 150px;
        height: 80px;
        padding: 15px;
    }

    .social-links {
        padding: 10px 0;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin: 0 5px;
    }
} 