/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* WhatsApp CTA */
.whatsapp-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1rem;
    color: #2669d4 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    width: 40px;
    height: auto;
}
@media (min-width: 576px) {
    .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #2669d4 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    width: 60px;
    height: auto;
}
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #2669d4 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #1a5bb8 !important;
}

.navbar-light .navbar-toggler {
    border-color: #2669d4;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%232669d4' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-light .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(38, 105, 212, 0.25);
}

.dropdown-menu {
    border: 1px solid #2669d4;
}

.dropdown-item {
    color: #2669d4;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: #2669d4;
    color: white;
}

/* Teacher Profile Cards */
.teacher-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.teacher-profile {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.teacher-rating {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.teacher-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.teacher-specialization {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.teacher-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
}

.teacher-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.teacher-stats span {
    font-size: 0.85rem;
    color: #555;
}

.teacher-stats strong {
    display: block;
    font-size: 1rem;
    color: #333;
}

.teacher-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.teacher-social i {
    color: #667eea;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.teacher-social i:hover {
    color: #764ba2;
}

/* Cards */
.subject-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.sbtn{
    font-size: 15px !important;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Testimonials */
.card {
    transition: transform 0.3s ease;
}

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

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

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

footer a:hover {
    color: #ffd700 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .whatsapp-cta {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .teacher-avatar {
        width: 100px;
        height: 100px;
    }
    
    .teacher-rating {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .teacher-name {
        font-size: 1.1rem;
    }
    
    .teacher-specialization {
        font-size: 0.85rem;
    }
    
    .teacher-description {
        font-size: 0.8rem;
        min-height: 50px;
    }
    
    .teacher-stats span {
        font-size: 0.75rem;
    }
    
    .teacher-stats strong {
        font-size: 0.9rem;
    }
    
    .teacher-social i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .teacher-profile {
        padding: 15px;
    }
    
    .teacher-avatar {
        width: 80px;
        height: 80px;
    }
    
    .teacher-rating {
        bottom: 5px;
        right: 15px;
        font-size: 0.7rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll to Top Button */
#scrollTop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

#scrollTop:hover {
    background: #764ba2;
    transform: scale(1.1);
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
