/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 100px; /* ADDED: Prevent content hiding behind fixed header */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #1a3a5f;
    color: white;
}

.btn-primary:hover {
    background-color: #0f2a47;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #1a3a5f;
    border-color: #1a3a5f;
}

.btn-outline:hover {
    background-color: #1a3a5f;
    color: white;
    transform: translateY(-2px);
}

.nav-login-btn {
    padding: 10px 20px; /* INCREASED: Better button size */
    font-size: 0.9rem; /* INCREASED: Better readability */
    margin-left: 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600; /* INCREASED: Better emphasis */
    background: #1a3a5f; /* ADDED: Consistent with other buttons */
    color: white; /* ADDED: Consistent with other buttons */
    border: 2px solid #1a3a5f; /* ADDED: Consistent styling */
    transition: all 0.3s ease; /* ENHANCED: Smooth transitions */
}

.nav-login-btn:hover {
    text-decoration: none;
    color: #1a3a5f; /* CHANGED: Better hover effect */
    background: white; /* ADDED: Better hover effect */
    transform: translateY(-2px); /* ENHANCED: Better hover effect */
}

@media (max-width: 768px) {
    .nav-login-btn {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        display: block;
        padding: 12px 25px; /* INCREASED: Better mobile touch target */
        font-size: 1rem; /* INCREASED: Better mobile readability */
    }
}

/* Header - FIXED */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-height: 100px; /* ADDED: Contain AMFI text */
    overflow: visible; /* ADDED: Ensure everything is visible */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* CHANGED: Allow AMFI text space */
    padding: 15px 0;
    min-height: 100px; /* ADDED: Match header height */
}

/* AMFI Badge - FIXED POSITIONING */
.logo {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* ADJUSTED: Better spacing */
    position: relative;
    flex-shrink: 0; /* ADDED: Prevent shrinking */
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem; /* ADJUSTED: Slightly smaller for balance */
    font-weight: 700;
    color: #1a3a5f;
    line-height: 1.1;
    position: relative;
    padding-bottom: 0; /* CHANGED: Remove padding */
    margin: 0; /* ADDED: Remove default margins */
    display: flex;
    flex-direction: column; /* ADDED: Stack text and badge */
    gap: 5px; /* ADDED: Space between text and badge */
}

.logo-text::after {
    content: "AMFI Registered Mutual Fund Distributor";
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1a3a5f;
    background: #f8f9fa;
    padding: 4px 8px; /* INCREASED: Better padding */
    border-radius: 3px;
    border-left: 2px solid #1a3a5f;
    position: relative; /* CHANGED: Keep in flow */
    top: auto; /* CHANGED: Remove absolute positioning */
    left: auto; /* CHANGED: Remove absolute positioning */
    margin-top: 2px; /* ADDED: Small spacing */
    line-height: 1.2;
    white-space: nowrap;
    display: block; /* ADDED: Ensure it displays */
    width: fit-content; /* ADDED: Contain width */
}

/* Mobile/Android Responsive */
@media (max-width: 768px) {
    header {
        min-height: 110px; /* INCREASED: More space for mobile */
    }
    
    .header-container {
        min-height: 110px; /* INCREASED: Match header */
        align-items: center; /* CHANGED: Center on mobile */
        flex-wrap: wrap; /* ADDED: Better mobile layout */
    }
    
    .logo {
        flex-direction: row; /* CHANGED: Keep side by side on mobile */
        align-items: center;
        gap: 10px;
        flex: 1; /* ADDED: Take available space */
    }
    
    .logo-text {
        padding-bottom: 0;
        text-align: left; /* CHANGED: Align left on mobile */
        font-size: 1.4rem; /* ADJUSTED: Smaller for mobile */
    }
    
    .logo-text::after {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        display: block !important;
        margin-top: 3px !important;
        white-space: normal; /* CHANGED: Allow wrapping */
        text-align: left; /* CHANGED: Align left */
        font-size: 0.65rem; /* ADJUSTED: Slightly smaller */
        max-width: 200px; /* ADDED: Prevent overflow */
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    header {
        min-height: 100px; /* ADJUSTED: Slightly smaller */
    }
    
    .header-container {
        min-height: 100px; /* ADJUSTED: Match header */
    }
    
    .logo-text {
        font-size: 1.3rem; /* ADJUSTED: Smaller for very small screens */
    }
    
    .logo-text::after {
        font-size: 0.6rem; /* ADJUSTED: Smaller for very small screens */
        padding: 3px 6px; /* ADJUSTED: Slightly smaller padding */
    }
}

.logo-img {
    height: 55px !important; /* ADJUSTED: Slightly smaller for balance */
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center; /* ADDED: Center navigation items */
    gap: 25px; /* ADDED: Consistent spacing */
    margin: 0; /* ADDED: Remove default margin */
    padding: 0; /* ADDED: Remove default padding */
    margin-top: 10px; /* ADDED: Align with logo */
}

.nav-item {
    margin-left: 0; /* CHANGED: Use gap instead */
    flex-shrink: 0; /* ADDED: Prevent shrinking */
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600; /* INCREASED: Better emphasis */
    font-family: 'Montserrat', sans-serif; /* ADDED: Consistent typography */
    transition: color 0.3s;
    position: relative;
    padding: 8px 0; /* ADDED: Better click area */
    display: block; /* ADDED: Better layout */
}

.nav-link:hover {
    color: #1a3a5f;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px; /* ADJUSTED: Better positioning */
    left: 0;
    background-color: #1a3a5f;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px; /* INCREASED: Better touch target */
    background: none;
    border: none;
    margin-top: 10px; /* ADDED: Align with navigation */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section - FIXED */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0; /* CHANGED: Use body padding instead */
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}
/* Fix for ALL hero section paragraph text - Shadow & Bold */
.slide .hero-content p {
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.9) !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .slide .hero-content p {
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9) !important;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .slide .hero-content p {
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9) !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
    }
}
/* Update hero content styles for better readability */
/* Update hero content styles for better readability */
.hero-content {
    color: #ffffff;
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6); /* ENHANCED: Stronger shadow */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.7); /* ENHANCED: Stronger shadow */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 0, 0, 0.8); /* ENHANCED: Strongest shadow for paragraph */
    font-weight: 500; /* ADDED: Slightly bolder text */
}

/* Optional: Add a slight dark overlay to slides for better text contrast */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* Very subtle dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensure content stays above the overlay */
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.hero-btns .btn {
    min-width: 160px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-btns .btn-primary:hover,
.hero-btns .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-prev, .slider-next {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.slider-prev:hover, .slider-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);

}
/* For slide 1 */
.slide:nth-child(1) {
    background-image: url('images/hero-slide1.jpg');
}

@media (max-width: 768px) {
    .slide:nth-child(1) {
        background-image: url('images/hero-slide-mob1.jpg');
    }
}

/* Repeat for other slides with respective numbers */

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: #1a3a5f;
    margin-bottom: 15px;
}

.section-title p {
    color: #ffffff;
    font-size: 1.1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 58, 95, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #1a3a5f;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Stats Section */
.stats {
    background-color: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item h3 {
    font-size: 3rem;
    color: #1a3a5f;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: #666;
}

/* Testimonials Section */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-container {
    overflow: hidden;
    position: relative;
    height: 300px;
}

.testimonial {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial.active {
    opacity: 1;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: #1a3a5f;
}

.author-info p {
    color: #666;
    margin-bottom: 0;
}

.testimonials-slider .slider-controls {
    position: static;
    justify-content: center;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
    margin: 0 5px;
}

.slider-dot.active {
    background: #1a3a5f;
}

.slider-dot:hover {
    background: #1a3a5f;
    opacity: 0.7;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    transition: transform 0.3s;
}

.team-member:hover .member-image {
    transform: scale(1.05);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: #1a3a5f;
    margin-bottom: 5px;
}

.team-member p:first-of-type {
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.accordion-header {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1a3a5f;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: #0f2a47;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-content p {
    padding-bottom: 20px;
}

/* Newsletter Section */
.newsletter {
    background-color: #f8f9fa;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-right: none;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: #1a3a5f;
}

.newsletter-btn {
    background: #1a3a5f;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.newsletter-btn:hover {
    background: #0f2a47;
}

/* Footer */
footer {
    background: #1a3a5f;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column p {
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    color: #ccc;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    /* Hero Section Mobile Fixes */
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .slider-controls {
        bottom: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        box-shadow: none;
    }
    
    .newsletter-input {
        border-radius: 4px;
        margin-bottom: 10px;
        border-right: 1px solid #ddd;
    }
    
    .newsletter-btn {
        border-radius: 4px;
        padding: 12px;
    }
    
    .testimonials-container {
        height: auto;
    }
    
    .testimonial {
        position: static;
        opacity: 1;
        margin-bottom: 30px;
    }
    
    .testimonials-slider .slider-controls {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-btns .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    

    .slider-controls {
        bottom: 15px;
    }
    
    .section {
        padding: 60px 0;
    }
}
/* ===== RESPONSIVE BODY PADDING ===== */
@media (max-width: 768px) {
    body {
        padding-top: 110px; /* For mobile header height */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px; /* For small mobile header height */
    }
}


/* Professional Certifications Section */
.professional-certs {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: #1a3a5f;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.certs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.certs-slider-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.certs-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 30px;
    padding: 0 15px;
}

.cert-item {
    flex: 0 0 300px;
}

.cert-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.cert-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-img {
    transform: scale(1.05);
}

.cert-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.9) 0%, rgba(15, 42, 71, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover .cert-hover {
    opacity: 1;
}

.cert-hover i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cert-hover span {
    font-size: 0.9rem;
    font-weight: 500;
}

.cert-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a3a5f, #0f2a47);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.cert-badge i {
    color: white;
    font-size: 1.5rem;
}

.cert-content h3 {
    color: #1a3a5f;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.cert-content p {
    color: #666;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cert-id {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: auto;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.nav-btn {
    background: #1a3a5f;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-btn:hover {
    background: #0f2a47;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #1a3a5f;
    transform: scale(1.2);
}

/* Certificate Modal */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.modal-header h3 {
    color: #1a3a5f;
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #1a3a5f;
}

.modal-body {
    display: flex;
    max-height: calc(90vh - 100px);
}

.modal-image {
    flex: 1;
    max-width: 60%;
    object-fit: contain;
    padding: 30px;
    background: #f8f9fa;
}

.modal-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-info p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}



/* Mobile Responsive */
@media (max-width: 768px) {
    .cert-item {
        flex: 0 0 280px;
    }
    
    .modal-body {
        flex-direction: column;
        max-height: calc(90vh - 80px);
    }
    
    .modal-image {
        max-width: 100%;
        max-height: 50vh;
    }
    
    
    
    .slider-nav {
        gap: 20px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .cert-item {
        flex: 0 0 260px;
    }
    
    .cert-img-container {
        height: 180px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

