:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--secondary-color);
}

.navbar {
    background-color: rgba(255,255,255,1);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: background-color .3s ease, box-shadow .3s ease;
    padding: 0;
    top: 36px; /* Height of the contact ribbon */
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    width: 120px;
    height: 112px;
    object-fit: contain;
}

.nav-link {
    color: var(--dark-color);
    padding: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.hero {
    color: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 150px; /* Height of navbar (60px) + contact ribbon (36px) */
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .row > div {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    margin-top: 2rem;
}

.hero p.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn {
    margin-bottom: 1rem;
}

.carousel-item {
    height: 100vh;
    min-height: 300px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.carousel-item img {
    object-fit: cover;
    height: 100vh;
    width: 100%;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.2);
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.service-card {
    border: none;
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.contact-info {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: var(--light-color);
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
}

.director-message {
    background-color: var(--light-color);
    padding: 50px 0;
}

.director-img {
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section-separator {
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 50px 0;
    border-radius: 2px;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 1000;
}

.contact-ribbon {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9em;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.contact-ribbon a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.contact-ribbon a:hover {
    color: var(--primary-color);
}

.contact-ribbon i {
    margin-right: 5px;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 992px) {
    .navbar-brand img {
        width: 100px;
        height: 93px;
    }
    .nav-link {
        padding: 10px;
    }
    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 80px;
        height: 74px;
    }
    .hero-content {
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    .hero p.lead {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
    .hero .btn {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    .contact-form, .contact-info {
        margin-bottom: 30px;
    }
    .carousel-item {
        height: 70vh;
    }
    .carousel-item img {
        height: 70vh;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        width: 100px;
        height: 93px;
    }
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .hero p.lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .carousel-item {
        width: 100%;
    }
}