/* Global Styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --success-color: #1cc88a;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
    color: #5a5c69;
    padding-top: 76px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.bounce {
    animation: bounce 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-text {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all var(--transition-speed);
}

.navbar-brand:hover .logo-text {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600;
    transition: all var(--transition-speed);
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Remove hover effect from register button */
.navbar .nav-link.btn,
.navbar .nav-link.btn:hover,
.navbar .nav-link.btn:focus,
.navbar .nav-link.btn:active,
.navbar .nav-link.btn.btn-primary,
.navbar .nav-link.btn.btn-primary:hover,
.navbar .nav-link.btn.btn-primary:focus,
.navbar .nav-link.btn.btn-primary:active,
.navbar .navbar-nav .nav-link.btn,
.navbar .navbar-nav .nav-link.btn:hover,
.navbar .navbar-nav .nav-link.btn:focus,
.navbar .navbar-nav .nav-link.btn:active,
.navbar .navbar-nav .nav-link.btn.btn-primary,
.navbar .navbar-nav .nav-link.btn.btn-primary:hover,
.navbar .navbar-nav .nav-link.btn.btn-primary:focus,
.navbar .navbar-nav .nav-link.btn.btn-primary:active {
    transform: none !important;
    box-shadow: none !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transition: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-section h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero-section .lead {
    margin-bottom: 30px;
    color: #34495e;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.search-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Search Results Section */
.search-results-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: #2c3e50;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.teacher-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.teacher-card .profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--light-color);
}

.teacher-card .teacher-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.teacher-card .teacher-education {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.teacher-card .teacher-subject {
    background-color: var(--info-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 10px;
}

.teacher-card .teacher-address {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.teacher-card .trusted-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--success-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.teacher-card .call-button {
    width: 100%;
    transition: all var(--transition-speed);
}

.teacher-card .call-button:hover {
    transform: scale(1.05);
}

/* Facilities Section */
.facilities-section {
    padding: 60px 0;
    background-color: #f8f9fc;
}

.facility-card {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all var(--transition-speed);
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.facility-card i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.facility-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Footer */
.footer-section {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3:after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--info-color);
    margin-top: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Registration Form */
.registration-section {
    padding: 60px 0;
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.card-title {
    color: #2c3e50;
}

/* Dashboard */
.dashboard-section {
    padding: 60px 0;
}

.teacher-profile-card {
    margin-bottom: 30px;
}

.profile-pic-container {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--light-color);
}

.profile-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Popular Teachers */
.trusted-badge {
    display: inline-block;
}

.trusted-badge .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.teacher-card {
    transition: all var(--transition-speed);
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* About Page */
.about-hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.mission-section, .how-it-works-section, .team-section {
    padding: 60px 0;
}

.mission-card, .how-it-works-card, .team-card {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all var(--transition-speed);
    height: 100%;
}

.mission-card:hover, .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-container {
    width: 80px;
    height: 80px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-container i {
    color: var(--primary-color);
}

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
    text-align: left;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #eee;
    left: 31px;
    margin-left: -1.5px;
}

.timeline > li {
    margin-bottom: 50px;
    position: relative;
    min-height: 50px;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 0;
    background-color: var(--primary-color);
    z-index: 100;
    border-radius: 50%;
}

.timeline > li .timeline-panel {
    width: calc(100% - 90px);
    float: right;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.team-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--light-color);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Additional Information Cards Section */
.additional-info-section {
    padding: 60px 0;
    background-color: #f8f9fc;
}

/* Clickable Mission Cards */
.clickable-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clickable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(78, 115, 223, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.clickable-card:hover::before {
    transform: translateX(100%);
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.clickable-card:hover .icon-container {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

.clickable-card:hover .icon-container i {
    color: white;
    transform: scale(1.1);
}

.clickable-card h3 {
    transition: all var(--transition-speed);
}

.clickable-card:hover h3 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.clickable-card p {
    transition: all var(--transition-speed);
}

.clickable-card:hover p {
    color: #5a5c69;
}

.click-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-speed);
}

.clickable-card:hover .click-hint {
    opacity: 1;
    transform: translateY(0);
}

.click-hint i {
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive adjustments for clickable cards */
@media (max-width: 768px) {
    .additional-info-section {
        padding: 40px 0;
    }

    .clickable-card {
        margin-bottom: 20px;
    }

    .click-hint {
        font-size: 0.8rem;
    }
}

/* Modal Styles for User Guide and Contact */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .modal-title {
    font-weight: 700;
}

.modal-header .btn-close {
    filter: invert(1);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #f8f9fc;
}

.contact-item i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-badge {
    background-color: #e3f2fd;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed);
}

.service-badge:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.service-badge i {
    margin-right: 8px;
}

/* Contact Page */
.contact-hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.contact-info-section {
    padding: 60px 0;
}

.contact-info-card {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all var(--transition-speed);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form-section {
    padding: 0 0 60px;
}

.map-section {
    padding: 0 0 60px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: #4e73df;
    color: white;
    padding: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu li a i {
    margin-right: 10px;
}

.admin-content {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fc;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3e6f0;
}

.stats-cards {
    margin-bottom: 30px;
}

.stats-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.stats-icon {
    font-size: 2rem;
    color: #dddfeb;
    margin-right: 15px;
}

.stats-info h5 {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stats-info h3 {
    font-size: 1.5rem;
    margin: 0;
}

.admin-charts {
    margin-bottom: 30px;
}

.recent-teachers {
    margin-bottom: 30px;
}
