/*
Theme Name: NY Medical Certification Institute
Theme URI: https://www.nymci.online
Author: NY MCI
Author URI: https://www.nymci.online
Description: Custom theme for NY Medical Certification Institute LLC - Healthcare certification training website
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nymci
Tags: medical, education, training, certification, healthcare, ecommerce
*/

/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #1976d2;
    --accent-color: #00bcd4;
    --accent-bright: #26c6da;
    --accent-orange: #ff6b35;
    --accent-green: #4caf50;
    --accent-purple: #9c27b0;
    --silver: #c9d1d9;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --background-light: #f0f7ff;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --white: #ffffff;
    --success: #4caf50;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(13, 71, 161, 0.15);
    --shadow-lg: 0 8px 30px rgba(13, 71, 161, 0.25);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

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

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.site-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.site-logo-text span {
    color: var(--accent-color);
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Custom Logo Support */
.custom-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.custom-logo-link {
    display: inline-block;
    line-height: 1;
}

/* Header Actions */
.header-actions .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.main-navigation a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #42a5f5 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 188, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(76, 175, 80, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-30px) translateX(-20px); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subheader {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ===========================
   Certifications Grid
   =========================== */
.certifications-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 50%, #f0f7ff 100%);
    position: relative;
}

.certifications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 188, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(25, 118, 210, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);\n    pointer-events: none;
    z-index: 0;
}

.certifications-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.certification-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 188, 212, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.certification-card:hover::before {
    opacity: 1;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Full-width image/icon area */
.cert-icon-box {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cert-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.certification-card:hover .cert-icon-box img {
    transform: scale(1.08);
}

/* When using emoji (no image) */
.cert-icon-box span {
    font-size: 5rem;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.certification-card:hover .cert-icon-box span {
    transform: scale(1.1) rotate(5deg);
}

/* Card content area */
.cert-card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.certification-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.certification-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 3;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.2);
}

.learn-more-link:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
    color: white;
}

.learn-more-link:after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.learn-more-link:hover:after {
    transform: translateX(5px);
}

/* ===========================
   Features Section
   =========================== */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 188, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.feature-item {
    background: linear-gradient(135deg, #ffffff 0%, #f9fcff 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 15px;
    text-align: center;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00bcd4, #1976d2, #9c27b0, #ff6b35);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.feature-item:hover::before {
    opacity: 0.3;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #00bcd4, #26c6da);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
    transition: var(--transition);
}

.feature-item:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #00bcd4, #26c6da);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.feature-item:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #ff6b35, #ff8c61);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.feature-item:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.feature-item:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background-color: var(--text-dark);
    color: var(--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 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    max-width: 180px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(93, 211, 211, 0.1);
    border-radius: 50%;
    color: var(--accent-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--white);
}

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

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 2rem;
    }

    .hero-subheader {
        font-size: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

/* ===========================
   Additional Visual Enhancements
   =========================== */

/* Pulse animation for badges */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(0, 188, 212, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 188, 212, 0.5);
    }
}

.card-badge {
    animation: pulse 2s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #00bcd4, #1976d2, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative dividers */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, #00bcd4, #1976d2, #9c27b0, transparent);
    margin: 3rem auto;
    max-width: 200px;
    border-radius: 2px;
}

/* Enhanced section titles */
.section-title {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4, #1976d2);
    border-radius: 2px;
}

/* Card icon box styling */
.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.certification-card:hover .icon-box {
    transform: translateY(-5px) rotate(5deg);
}

/* Shimmer effect on hover */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

/* Stats counter styling */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Floating animation */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Learn more link enhancement */
.learn-more-link {
    position: relative;
    z-index: 1;
}

.learn-more-link:hover {
    color: var(--accent-color);
}

.learn-more-link:hover:after {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Card title enhancement */
.certification-card h3 {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ===========================
   Carousel Styles
   =========================== */
.nymci-carousel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    min-height: 600px;
}

.nymci-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none !important; /* Force hide */
}

.carousel-slide.active {
    display: block !important; /* Force show */
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay for better text readability */
.nymci-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.7) 0%, rgba(30, 58, 95, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 3rem 2rem 2rem;
    color: white;
    z-index: 2;
    animation: slideUp 0.6s ease-out;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0d47a1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

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

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===========================
   Enhanced Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Apply animations to cards */
.certification-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.certification-card:nth-child(1) {
    animation-delay: 0.1s;
}

.certification-card:nth-child(2) {
    animation-delay: 0.2s;
}

.certification-card:nth-child(3) {
    animation-delay: 0.3s;
}

.certification-card:nth-child(4) {
    animation-delay: 0.4s;
}

.certification-card:nth-child(5) {
    animation-delay: 0.5s;
}

.certification-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Enhanced hover effects */
.certification-card:hover .cert-icon-box {
    transform: scale(1);
}

.cert-icon-box {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Add overlay on image hover */
.cert-icon-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certification-card:hover .cert-icon-box::after {
    opacity: 1;
}

/* Feature items animation */
.feature-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Hero section animations */
.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-tagline {
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-subheader {
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.cta-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s;
    animation-fill-mode: both;
}

/* Button hover animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* Card badge animation */
.card-badge {
    animation: slideUp 0.5s ease-out;
    transition: transform 0.3s ease;
}

.certification-card:hover .card-badge {
    transform: scale(1.05);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading shimmer effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .nymci-carousel {
        height: 350px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nymci-carousel {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 2rem 1rem 1rem;
    }
}
/* Responsive certification cards */
@media (max-width: 1024px) {
    .cert-icon-box {
        height: 200px;
    }
    
    .cert-card-content {
        padding: 1.5rem;
    }
    
    .certification-card h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .cert-icon-box {
        height: 180px;
    }
    
    .cert-icon-box span {
        font-size: 4rem;
    }
    
    .cert-card-content {
        padding: 1.25rem;
    }
    
    .certification-card h3 {
        font-size: 1.25rem;
    }
    
    .learn-more-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-badge {
        top: 10px;
        right: 10px;
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .cert-icon-box {
        height: 160px;
    }
    
    .cert-icon-box span {
        font-size: 3.5rem;
    }
    
    .cert-card-content {
        padding: 1rem;
    }
    
    .certification-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    
    .certification-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .learn-more-link {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
}

/* Hero content overlay on carousel */
.carousel-hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    max-width: 900px;
    width: 90%;
    padding: 2rem;
}

.carousel-hero-overlay .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 1s ease-out;
}

.carousel-hero-overlay .hero-badge span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-hero-overlay .hero-tagline {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.carousel-hero-overlay .hero-subheader {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.carousel-hero-overlay .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.carousel-hero-overlay .stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.carousel-hero-overlay .stat-item {
    text-align: center;
}

.carousel-hero-overlay .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    display: block;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.carousel-hero-overlay .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Responsive hero overlay */
@media (max-width: 1024px) {
    .carousel-hero-overlay .hero-tagline {
        font-size: 2.75rem;
    }
    
    .carousel-hero-overlay .hero-subheader {
        font-size: 1.1rem;
    }
    
    .carousel-hero-overlay .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nymci-carousel {
        height: 500px;
    }
    
    .nymci-carousel-section {
        min-height: 500px;
    }
    
    .carousel-hero-overlay {
        padding: 1.5rem;
    }
    
    .carousel-hero-overlay .hero-tagline {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-hero-overlay .hero-subheader {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .carousel-hero-overlay .hero-badge span {
        font-size: 0.9rem;
    }
    
    .carousel-hero-overlay .stats-row {
        gap: 2rem;
    }
    
    .carousel-hero-overlay .stat-number {
        font-size: 2rem;
    }
    
    .carousel-hero-overlay .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nymci-carousel {
        height: 600px;
    }
    
    .nymci-carousel-section {
        min-height: 600px;
    }
    
    .carousel-hero-overlay .hero-tagline {
        font-size: 1.5rem;
    }
    
    .carousel-hero-overlay .hero-subheader {
        font-size: 0.9rem;
    }
    
    .carousel-hero-overlay .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carousel-hero-overlay .cta-buttons .btn {
        width: 100%;
    }
    
    .carousel-hero-overlay .stats-row {
        gap: 1.5rem;
    }
    
    .carousel-hero-overlay .stat-number {
        font-size: 1.75rem;
    }
}
