
:root {
    --primary-color: #0087cb; 
    --secondary-color: #1a1a1a;
    --text-color: #4a4a4a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --accent: #f5a623;
    --font-heading: "Montserrat", sans-serif;
    --font-body: "Open Sans", sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}


.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
    
    font-size: 0.9rem;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #006ba1;
    border-color: #006ba1;
}

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

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

.btn-grey {
    background-color: #555;
    color: var(--white);
    border: 2px solid #555;
    margin-left: 15px;
}

.btn-grey:hover {
    background-color: #333;
    border-color: #333;
    color: var(--white);
}


.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

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

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

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

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #006ba1;
}

.nav-cta {
    font-size: 0.8rem;
    padding: 10px 20px;
    width: auto !important; 
}


.hero {
    position: relative;
    height: auto; 
    padding: 100px 0; 
    min-height: 400px;
    background-image: url("https://mbdental.institute/wp-content/uploads/2024/02/MB-Dental-Curs-1022-copy.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}


.courses-section {
    background-color: var(--light-bg);
}

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

.course-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-content p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #666;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-text:hover {
    color: #005a87;
    text-decoration: underline;
}

.center-btn-container {
    text-align: center;
}


.stats-section {
    background-image: url("https://mbdental.institute/wp-content/uploads/2025/09/IMG_6665.jpeg"); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 100px 0;
    color: var(--white);
}

.overlay-stats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 135, 203, 0.9), rgba(0, 80, 120, 0.9));
}

.stats-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    margin: 20px;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

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

.subcategory-list {
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: left;
    padding-left: 20px;
}

.subcategory-list li {
    list-style-type: disc;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.section-alt {
    background-color: var(--white);
}

.text-block {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}


.footer {
    background-color: #111;
    color: #aaa;
    padding: 60px 0 20px;
}

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

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); 
    opacity: 0.8;
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }

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

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

    .btn-secondary,
    .btn-grey {
        display: block;
        margin: 15px 0 0 0;
        width: 100%;
        text-align: center;
    }

    .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo img {
        height: 45px;
    }
}
