:root {
    --primary-color: #3f51b5;
    --secondary-color: #5c6bc0;
    --accent-color: #ff9800;
    --text-color: #212121;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --card-shadow: rgba(0,0,0,0.1);
    --footer-bg: #303f9f;
    --footer-text: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
    --text-color: #f5f5f5;
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --card-shadow: rgba(0,0,0,0.5);
    --footer-bg: #1a237e;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.dark-mode-toggle {
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Top Menu Styles */
.top-menu {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-menu a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-menu a:hover {
    color: var(--accent-color);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive Top Menu */
@media (max-width: 767.98px) {
    .top-menu .row {
        flex-direction: column;
    }
    .top-menu .col-md-6 {
        text-align: center !important;
        margin-bottom: 5px;
    }
    .top-menu .text-end {
        text-align: center !important;
    }
}

/* Main Menu Styles */
.main-menu {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--card-shadow);
    padding: 15px 0;
}

.site-logo img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1.5rem; /* Increased spacing between menu items */
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-transform: uppercase; /* Capitalize menu items */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Responsive Main Menu */
@media (max-width: 991.98px) {
    .main-menu .navbar {
        width: 100%;
        padding: 0;
    }
    .main-menu .navbar-toggler {
        margin-left: auto; /* Push hamburger to the right */
    }
    .navbar-nav {
        margin-top: 1rem;
    }
    .navbar-nav .nav-item {
        text-align: center;
    }
}

/* Banner Slider Styles */
.banner-section {
    position: relative;
    margin-bottom: 3rem;
}

.search-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    z-index: 100;
    background-color: rgba(255,255,255,0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.dark-mode .search-box {
    background-color: rgba(42,42,42,0.9);
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background-color: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Educators Styles */
.featured-educators {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.educator-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--card-shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.educator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.educator-img-container {
    position: relative;
    overflow: hidden;
}

.educator-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.educator-card:hover .educator-img {
    transform: scale(1.05);
}

.educator-social {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(63, 81, 181, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.educator-img-container:hover .educator-social {
    opacity: 1;
}

.educator-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.educator-social a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-5px);
}

.educator-content {
    padding: 1.5rem;
    text-align: center;
}

.educator-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.educator-position {
    color: var(--primary-color);
    font-weight: 500;
}

/* Icon Box Styles */
.faculty-section {
    padding: 3rem 0;
    background-color: var(--card-bg);
}

.faculty-box {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--bg-color);
    box-shadow: 0 3px 15px var(--card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.faculty-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.faculty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.faculty-box:hover .faculty-icon {
    background-color: var(--accent-color);
    transform: rotateY(180deg);
}

.faculty-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.faculty-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Info Card Styles */
.info-card-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    color: white;
    text-align: center;
}

.info-card {
    padding: 3rem 2rem;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.info-card h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.info-card p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 0.8rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e68a00;
    border-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Counter Styles */
.counter-section {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.counter-box {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.counter-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.counter-text {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Team Styles */
.team-section {
    padding: 5rem 0;
}

.team-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--card-shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.team-img-container {
    position: relative;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-content {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Footer Styles */
.top-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.subscribe-form {
    margin-top: 1.5rem;
}

.subscribe-form .form-control {
    background-color: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 0.8rem 1rem;
}

.subscribe-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.subscribe-form .btn {
    background-color: var(--accent-color);
    border: none;
    padding: 0.8rem 1.5rem;
}

.main-footer {
    background-color: #283593;
    color: var(--footer-text);
    padding: 3rem 0;
}

.bottom-footer {
    background-color: #1a237e;
    color: var(--footer-text);
    padding: 1.5rem 0;
    text-align: center;
}

/* Profile Page Specific Styles */
/* Contact section social icons */
.social-icon-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-lg:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(63, 81, 181, 0.1);
    border-radius: 50%;
}

/* Profile Top Section */
.profile-top-section {
    position: relative;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.profile-top-overlay {
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-info-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-position {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.profile-social {
    margin-top: 1.5rem;
}

.profile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.profile-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.profile-links {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
}

.profile-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.profile-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-links li {
    margin-bottom: 1rem;
}

.profile-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.profile-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.profile-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Sticky Navigation */
.profile-nav {
    background-color: var(--primary-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.profile-nav.sticky {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.profile-nav .nav-link {
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-nav .nav-link:hover,
.profile-nav .nav-link.active {
    background-color: var(--accent-color);
}

/* Section Styles */
.profile-section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.dark-mode .profile-section {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* About Section */
.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--card-shadow);
}

/* Family Section */
.family-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--card-shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.family-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.family-img-container {
    position: relative;
    overflow: hidden;
}

.family-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.family-card:hover .family-img {
    transform: scale(1.05);
}

.family-content {
    padding: 1.5rem;
    text-align: center;
}

.family-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.family-relation {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Roles Section */
.roles-container {
    display: flex;
    flex-wrap: wrap;
}

.roles-sidebar {
    width: 250px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px var(--card-shadow);
}

.roles-content {
    flex: 1;
    padding: 0 2rem;
}

.roles-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roles-nav li {
    margin-bottom: 1rem;
}

.roles-nav a {
    display: block;
    padding: 0.8rem 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.roles-nav a:hover,
.roles-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

.role-tab {
    display: none;
}

.role-tab.active {
    display: block;
}

.role-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Blog Section */
.blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--card-shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    margin-bottom: 1rem;
}

/* Gallery Sections */
.gallery-item {
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--card-shadow);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.gallery-item:hover .video-play-btn {
    background-color: var(--primary-color);
    color: white;
}

/* Downloads Section */
.download-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 15px var(--card-shadow);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.download-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.download-info {
    flex: 1;
}

.download-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.download-meta {
    font-size: 0.9rem;
    color: #777;
}

.download-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
}

/* Video Modal */
.video-modal .modal-content {
    background-color: transparent;
    border: none;
}

.video-modal .modal-body {
    padding: 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-modal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    opacity: 1;
    text-shadow: none;
}

/* Profile Nav Scroll Arrows */
.profile-nav-container {
    position: relative;
}

.nav-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-scroll-left {
    left: 0;
}

.nav-scroll-right {
    right: 0;
}

/* Additional Responsive Styles for Profile Page */
@media (max-width: 991.98px) {
    .roles-container {
        flex-direction: column;
    }
    .roles-sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }
    .roles-content {
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }
    .profile-name {
        font-size: 2rem;
    }
    .profile-links {
        margin-top: 2rem;
    }
    .profile-nav .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scroll-behavior: smooth;
        position: relative;
        padding: 0 40px 0 10px; /* Reduced left padding to make first menu visible */
    }
    .profile-nav .nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .profile-nav .nav-link {
        white-space: nowrap;
    }
    .nav-scroll-arrow {
        display: flex;
    }
}
