/* Professional First Aid Training - Enhanced Interactive Design */

/* Color Palette */
:root {
    --primary: #0066cc;
    --primary-dark: #004da6;
    --primary-light: #4d94ff;
    --accent: #10b981;
    --accent-light: #d1fae5;
    --danger: #ef4444;
    --dark: #1a202c;
    --light: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-600: #4b5563;
    --text: #2d3748;
    --text-light: #718096;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
    --glass: rgba(255, 255, 255, 0.7);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation - Enhanced & Responsive */
nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 50;
}

nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.2), transparent);
}

nav .logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

nav a.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s var(--transition);
    padding: 0.5rem 0;
    display: inline-block;
}

nav a.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s var(--transition);
    border-radius: 2px;
}

nav a.nav-link:hover {
    color: var(--primary);
}

nav a.nav-link:hover::before {
    width: 100%;
}

nav a.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

nav a.nav-link.active::before {
    width: 100%;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #003d82 100%);

}

/* Hero Section - Enhanced & Responsive */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #003d82 100%);
    color: white;
    padding: clamp(4rem, 10vh, 8rem) 2rem;
    min-height: clamp(60vh, 80vh, 90vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(77, 148, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-balance;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.92;
    font-weight: 300;
    line-height: 1.6;
    text-balance;
}

/* Buttons - Advanced Interactive */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    will-change: transform, box-shadow;
}

/* Ripple Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

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

/* Glow effect on hover */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s var(--transition);
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary::after {
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.5);
}

.btn-primary:hover::after {
    opacity: 1;
}

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    position: relative;
}

.btn-outline::before {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

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

/* Icon styling in buttons */
.btn svg,
.btn i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Sections */
section {
    padding: 5rem 2rem;
}

section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--dark);
    letter-spacing: -0.5px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Cards - Glassmorphism & 3D Effects */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--transition);
    border-radius: 1rem;
}

.card:hover {
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.15), 0 0 40px rgba(0, 102, 204, 0.08);
    transform: translateY(-12px) rotateX(5deg);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    opacity: 1;
}

/* Pricing Card */
.pricing-card {
    text-align: center;
    border: 2px solid var(--gray-200);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    transform: scale(1.05);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
    line-height: 1;
}

.pricing-card .price-duration {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Feature Icon */
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

/* Stats */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sticky Book Button */
.sticky-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.3);
}

.sticky-btn:hover {
    box-shadow: 0 15px 50px rgba(0, 102, 204, 0.5);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

tbody td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

tbody tr {
    transition: background-color 0.3s var(--transition);
}

tbody tr:hover {
    background-color: var(--light);
}

/* Footer - Enhanced & Responsive */
footer {
    background: linear-gradient(180deg, #1a202c 0%, #0f1419 100%);
    color: white;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.3), transparent);
}

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

footer .footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer .footer-section p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

footer a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

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

footer .footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }
}

/* Forms - Enhanced Interactive */
input,
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.4s var(--transition);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    will-change: border-color, box-shadow;
}

input::placeholder,
textarea::placeholder {
    color: rgba(45, 55, 72, 0.4);
    transition: all 0.3s var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15), inset 0 2px 4px rgba(0, 102, 204, 0.05);
    background: white;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: rgba(45, 55, 72, 0.2);
}

/* Floating Label */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 0.875rem;
    font-size: 0.95rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s var(--transition);
    transform-origin: left;
    background: linear-gradient(135deg, var(--light), var(--light));
    padding: 0 0.25rem;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -0.75rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Validation States */
input:valid {
    border-color: var(--accent);
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

input:invalid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--accent-light);
    color: #065f46;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Mobile Menu - Responsive */
.mobile-menu {
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    margin: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

.mobile-menu a {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s var(--transition);
    font-weight: 500;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background: linear-gradient(135deg, var(--primary)/5, var(--accent)/5);
    color: var(--primary);
    padding-left: 1.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Advanced Animations */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

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

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.6);
    }
}

@keyframes bounce-soft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scale-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s var(--transition);
}

.interactive-element:hover {
    transform: scale(1.05);
}

.interactive-element:active {
    transform: scale(0.95);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--transition);
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    border: 6px solid transparent;
    border-top-color: var(--dark);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--transition);
    z-index: 1000;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Scroll Animations */
.scroll-item {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-item.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }

    .sticky-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 1.5rem;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    thead th,
    tbody td {
        padding: 0.75rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Additional Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Group Button */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Loading State */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Text Utilities */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* Icon Styles */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

/* Link Styles */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--transition);
}

a:hover {
    /* color: var(--primary); */
    /* color: var(--primary-light); */

}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-200) 20%, var(--gray-200) 80%, transparent);
    margin: 2rem 0;
}

/* Section with Background Animations */
.section-animated {
    position: relative;
    overflow: hidden;
}

.section-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gradient-shift 20s linear infinite;
    pointer-events: none;
}

/* Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Grid Utilities */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Opacity Utilities */
.opacity-hover {
    transition: opacity 0.3s var(--transition);
}

.opacity-hover:hover {
    opacity: 0.8;
}

/* Transform Utilities */
.transform-hover {
    transition: transform 0.3s var(--transition);
}

.transform-hover:hover {
    transform: translateY(-4px);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}