:root {
    --primary-color: #003366;
    --secondary-color: #e74c3c;
    --accent-color: #f9c851;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

.navbar {
    background-color: var(--primary-color);
    /* padding: 15px 0; */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 80px;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.dropdown-menu {
    background-color: var(--primary-color);
}

.dropdown-item {
    color: white !important;
}

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/baner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    margin-bottom: 20px;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.staff-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.event-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

.testimonial-card .quote {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-card .position {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.form-control {
    border-radius: 5px;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #002147;
    border-color: #002147;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    color: var(--accent-color);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 1s ease forwards;
}

/* Owl Carousel for testimonials */
.owl-nav {
    text-align: center;
    margin-top: 20px;
}

.owl-nav button {
    background-color: var(--primary-color) !important;
    color: white !important;
    margin: 0 10px;
    padding: 5px 15px !important;
    border-radius: 5px;
}

/* Blog cards */
.blog-card {
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Counters */
.counter-box {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.counter-box i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.counter {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}


.testimonials-grid {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.testimonial-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-header h2 {
    font-size: 2.3rem;
    color: #222;
    margin-bottom: 15px;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #ddd;
}

.filter-btn.active {
    background: #3a5f7d;
    color: white;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

.testimonial-card.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.card-header {
    background: #3a5f7d;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.card-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.card-body {
    padding: 20px;
}

.card-text {
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-degree {
    font-size: 0.85rem;
    color: #666;
}

.card-year {
    display: inline-block;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    width: 100%;
}