/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&family=Poppins:wght@800&display=swap');

:root {
    --primary: #e60000; /* Medical Red */
    --primary-hover: #cc0000;
    --secondary: #003366; /* Deep Corporate Blue */
    --secondary-hover: #002244;
    --dark: #111111;
    --text-color: #555555;
    --light-bg: #f5f7fa;
    --border-color: #eeeeee;
    --white: #ffffff;
    --shadow: 0px 5px 20px 0px rgba(0,0,0,0.05);
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-color); font-size: 16px; line-height: 1.8; background-color: var(--white); }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--dark); font-weight: 700; line-height: 1.3; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* Buttons */
.btn { display: inline-block; font-family: 'Outfit', sans-serif; font-weight: 600; padding: 12px 30px; text-align: center; cursor: pointer; transition: var(--transition); z-index: 1; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: rgba(255,255,255,0.2); transition: var(--transition); z-index: -1; }
.btn:hover::before { width: 100%; }
.btn-primary { background-color: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); color: white; }
.btn-secondary { background-color: var(--secondary); color: var(--white); border: 2px solid var(--secondary); }
.btn-quote { background-color: var(--primary); color: var(--white); padding: 10px 25px; border-radius: 4px; }
.btn-quote:hover { background-color: var(--white); color: var(--primary); }
.btn-register { background-color: var(--secondary); color: var(--white); padding: 10px 25px; border-radius: 4px; }
.btn-register:hover { background-color: var(--white); color: var(--secondary); border: 1px solid var(--secondary); padding: 9px 24px; }

/* --- HEADER STYLES --- */

/* Top Header */
.top-header { background-color: var(--secondary); color: #d1d5db; font-size: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-header-inner { display: flex; justify-content: space-between; align-items: center; }
.top-header-left ul, .top-header-right ul { display: flex; gap: 20px; align-items: center; }
.top-header-left i { color: var(--primary); margin-right: 5px; }
.top-header-left a:hover { color: var(--white); }
.social-links a { display: inline-flex; width: 30px; height: 30px; background: rgba(255,255,255,0.1); align-items: center; justify-content: center; border-radius: 50%; color: var(--white); transition: var(--transition); }
.social-links a:hover { background: var(--primary); }

/* Middle Header */
.middle-header { padding: 12px 0; background: linear-gradient(to right, #ffffff, #f8fafc); border-bottom: 1px solid rgba(0,0,0,0.05); }
.middle-header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo img { max-height: 65px; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.02); }
.header-info-group { display: flex; gap: 30px; }
.header-info-box { display: flex; align-items: center; gap: 12px; }
.header-info-box .icon { width: 40px; height: 40px; background-color: var(--white); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: var(--transition); }
.header-info-box:hover .icon { background-color: var(--primary); color: var(--white); }
.header-info-box .text span { display: block; font-size: 14px; color: var(--text-color); margin-bottom: 2px; }
.header-info-box .text strong { display: block; font-family: 'Outfit', sans-serif; font-size: 18px; color: var(--secondary); }
.header-info-box .text a { color: var(--secondary); }
.header-info-box .text a:hover { color: var(--primary); }

/* Text Logo 3D Effect */
.text-logo-3d {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.5px;
    margin: 0;
    padding: 0;
    text-shadow: 
        1px 1px 0px rgba(255,255,255,0.3), /* Bevel High */
        -1px -1px 0px rgba(0,0,0,0.1), /* Bevel Low */
        2px 2px 4px rgba(0,0,0,0.3), /* Drop Shadow */
        4px 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.text-logo-3d:hover {
    transform: scale(1.02);
}

/* Navbar */
.navbar-area { background-color: var(--secondary); transition: var(--transition); position: relative; z-index: 999; }
.navbar-area.is-sticky { position: fixed; top: 0; left: 0; width: 100%; box-shadow: 0 5px 15px rgba(0,0,0,0.1); animation: fadeInDown 0.5s; }
.navbar-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-menu { display: flex; }
.nav-menu li { position: relative; }
.nav-menu li a { display: block; padding: 20px 15px; color: var(--white); font-family: 'Outfit', sans-serif; font-weight: 500; text-transform: uppercase; font-size: 15px; }
.nav-menu li a.active, .nav-menu li a:hover { background-color: var(--primary); }
.mobile-nav-logo { display: none; }
.menu-toggle { display: none; font-size: 24px; color: var(--white); cursor: pointer; }
.nav-right { display: flex; align-items: center; gap: 15px; }

/* --- HERO SLIDER / BANNER --- */
.hero-slider {
    padding: 150px 0 180px;
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?q=80&w=2000&auto=format&fit=crop') center/cover;
    position: relative;
    overflow: hidden;
    color: var(--white);
}
.hero-slider::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}
.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}
.hero-subtitle { display: inline-block; background-color: var(--primary); color: white; padding: 5px 15px; font-weight: 600; font-family: 'Outfit', sans-serif; border-radius: 4px; margin-bottom: 20px; }
.hero-title { font-size: 55px; margin-bottom: 20px; color: var(--white); line-height: 1.1; }
.hero-desc { font-size: 18px; margin-bottom: 40px; color: #f3f4f6; }
.hero-btns { display: flex; gap: 20px; }

/* --- SECTION STYLES --- */
.section { padding: 90px 0; }
.bg-light { background-color: var(--light-bg); }
.section-title-wrap { text-align: center; margin-bottom: 50px; }
.section-subtitle { display: block; color: var(--primary); font-family: 'Outfit', sans-serif; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; font-size: 15px; }
.section-title { font-size: 36px; color: var(--secondary); margin-bottom: 15px; position: relative; padding-bottom: 15px; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background-color: var(--primary); }

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Feature / Service Cards (Classic Corporate Style) */
.service-card { background: var(--white); border: 1px solid var(--border-color); padding: 40px 30px; text-align: center; transition: var(--transition); border-radius: 5px; position: relative; z-index: 1; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--secondary); transition: var(--transition); z-index: -1; }
.service-card:hover::before { height: 100%; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--secondary); }
.service-icon { width: 80px; height: 80px; margin: 0 auto 25px; background: var(--light-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 40px; border-radius: 50%; transition: var(--transition); }
.service-card:hover .service-icon { background: var(--white); }
.service-card h3 { font-size: 22px; margin-bottom: 15px; transition: var(--transition); }
.service-card:hover h3, .service-card:hover p { color: var(--white); }
.service-card p { margin-bottom: 20px; transition: var(--transition); }
.service-card .read-more { color: var(--primary); font-weight: 600; font-family: 'Outfit', sans-serif; text-transform: uppercase; font-size: 14px; }
.service-card:hover .read-more { color: var(--white); }

/* Service Detail Cards with Image (Premium 3D Hover) */
.course-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; z-index: 1; }
.course-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-shadow: 0 15px 35px rgba(0,0,0,0.1); opacity: 0; transition: all 0.4s ease; z-index: -1; border-radius: 8px; }
.course-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.course-card:hover::after { opacity: 1; }
.course-img { position: relative; overflow: hidden; height: 240px; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.course-card:hover .course-img img { transform: scale(1.15) rotate(2deg); }
.course-content { padding: 30px; background: var(--white); }
.course-title { font-size: 22px; margin-bottom: 15px; }
.course-title a { color: var(--secondary); }
.course-title a:hover { color: var(--primary); }
.course-desc { margin-bottom: 20px; }

/* About Section */
.about-img { position: relative; }
.about-img img { border-radius: 5px; box-shadow: var(--shadow); max-width: 100%; height: auto; display: block; }
.about-experience { position: absolute; bottom: 30px; right: -30px; background: var(--primary); color: white; padding: 30px; text-align: center; border-radius: 5px; border: 5px solid var(--white); }
.about-experience h3 { color: white; font-size: 40px; margin-bottom: 5px; }
.about-list { margin-top: 20px; }
.about-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: 'Outfit', sans-serif; color: var(--secondary); font-weight: 500; }
.about-list i { color: var(--primary); }

/* Fun Facts */
.funfacts-area { background-color: var(--secondary); padding: 60px 0; color: white; text-align: center; }
.funfacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.funfact-item i { font-size: 50px; color: var(--primary); margin-bottom: 15px; }
.funfact-item h3 { color: white; font-size: 40px; margin-bottom: 5px; }
.funfact-item span { font-size: 16px; font-family: 'Outfit', sans-serif; text-transform: uppercase; }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 30px; }
.footer-area { background-color: #001a33; color: #a0aec0; padding: 70px 0 0; }
.footer-widget { margin-bottom: 40px; }
.footer-logo { margin-bottom: 25px; max-height: 70px; }
.footer-widget h3 { color: white; font-size: 22px; margin-bottom: 25px; position: relative; padding-bottom: 15px; }
.footer-widget h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 15px; }
.footer-contact i { color: var(--primary); font-size: 18px; margin-top: 4px; }
.copyright-area { background-color: #001122; padding: 25px 0; text-align: center; margin-top: 30px; }

/* Page Banner */
.page-banner { background-image: url('https://images.unsplash.com/photo-1551076805-e1869033e561?q=80&w=2000&auto=format&fit=crop'); background-size: cover; background-position: center; padding: 120px 0; position: relative; text-align: center; }
.page-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 51, 102, 0.85); }
.page-banner-content { position: relative; z-index: 1; }
.page-banner-content h2 { color: white; font-size: 45px; margin-bottom: 15px; }
.breadcrumb { list-style: none; display: flex; justify-content: center; gap: 10px; color: white; font-family: 'Outfit', sans-serif; font-weight: 500; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: white; }

/* Forms */
.contact-form-box { background: var(--white); padding: 40px; border: 1px solid var(--border-color); border-radius: 5px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 4px; background: var(--light-bg); font-family: inherit; font-size: 15px; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); background: var(--white); }
textarea.form-control { height: 150px; resize: none; }

/* Sidebar */
.sidebar-widget { background: var(--light-bg); padding: 30px; border-radius: 5px; margin-bottom: 30px; }
.sidebar-title { font-size: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.sidebar-list li { margin-bottom: 10px; border-bottom: 1px dashed var(--border-color); padding-bottom: 10px; }
.sidebar-list li:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.sidebar-list a { color: var(--text-color); display: flex; justify-content: space-between; align-items: center; }
.sidebar-list a:hover { color: var(--primary); }

/* Utility */
.hide-robot { display: none !important; }

/* Responsive */
@media (max-width: 991px) {
    .top-header { display: none; }
    .middle-header { display: none; }
    .navbar-area { background: var(--white); padding: 15px 0; border-bottom: 1px solid var(--border-color); }
    .mobile-nav-logo { display: block; }
    .mobile-nav-logo span { color: var(--secondary) !important; }
    .nav-right { gap: 8px; }
    .nav-right .btn-quote, .nav-right .btn-register { padding: 6px 12px; font-size: 12px; border-radius: 4px; }
    .menu-toggle { display: block; color: var(--secondary); margin-left: auto; }
    
    .main-nav { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: var(--white); transition: var(--transition); overflow-y: auto; box-shadow: inset 0 5px 10px rgba(0,0,0,0.05); }
    .main-nav.active { left: 0; }
    .nav-menu { flex-direction: column; }
    .nav-menu li a { color: var(--secondary); border-bottom: 1px solid var(--border-color); }
    .nav-menu li a.active, .nav-menu li a:hover { background: var(--light-bg); color: var(--primary); }
    
    .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
    .funfacts-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .hero-title { font-size: 40px; }
    .about-experience { position: static; margin-top: 20px; border: none; right: 0; bottom: 0; }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Entrance Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-wa 2s infinite;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

/* Nossi Signature */
.nossi-signature {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    position: relative;
    text-decoration: none;
    animation: glow-nossi 2s ease-in-out infinite alternate;
}
@keyframes glow-nossi {
    from {
        text-shadow: 0 0 5px rgba(230, 0, 0, 0.2), 0 0 10px rgba(230, 0, 0, 0.2);
        color: var(--primary);
    }
    to {
        text-shadow: 0 0 10px rgba(230, 0, 0, 0.8), 0 0 20px rgba(230, 0, 0, 0.6), 0 0 30px rgba(230, 0, 0, 0.4);
        color: #fff;
    }
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
