/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f9fbfd;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0056b3;
}

/* Buttons */
.btn-primary {
    background-color: #0056b3;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-secondary {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background-color: #555;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0ebff 0%, #f9fbfd 100%);
    padding: 100px 20px;
    text-align: center;
    transition: background 0.3s;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    color: #222;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.main-cta {
    font-size: 20px;
    padding: 15px 30px;
}

/* Services */
.services {
    padding: 60px 20px;
    text-align: center;
}

.services h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 300px;
    transition: background-color 0.3s, color 0.3s;
}

.card h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

/* Tutors Section */
.tutors-section {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
    transition: background-color 0.3s;
}

.tutors-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #777;
    margin-bottom: 40px;
}

.tutor-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

/* Dynamic Tutor Cards */
.tutor-card {
    background: #f9fbfd;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    width: 320px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background-color 0.3s, border-color 0.3s;
}

.tutor-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #0056b3;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 8px;
}

.tutor-detail, .tutor-highlight {
    font-size: 14.5px;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tutor-highlight {
    color: #666;
    font-style: italic;
}

/* 900+ More Teachers Banner */
.more-teachers-banner {
    margin-top: 50px;
    padding: 35px 20px;
    background: linear-gradient(135deg, #e0ebff 0%, #ffffff 100%);
    border: 1px solid #cce0ff;
    border-radius: 12px;
    display: inline-block;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: background 0.3s, border-color 0.3s;
}

.more-teachers-banner h3 {
    color: #0056b3;
    font-size: 26px;
    margin-bottom: 10px;
}

.more-teachers-banner p {
    color: #555;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding: 50px 20px 20px;
    text-align: center;
}

.footer-content h2 {
    margin-bottom: 10px;
}

.contact-info {
    margin: 20px 0;
}

.contact-info a {
    color: #4da3ff;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* =========================================
   NIGHT MODE (DARK MODE) STYLES
   ========================================= */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background-color: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .nav-links a {
    color: #bbb;
}

body.dark-mode .nav-links a:hover {
    color: #4da3ff;
}

body.dark-mode .btn-secondary {
    background-color: #f1c40f;
    color: #222;
}

body.dark-mode .btn-secondary:hover {
    background-color: #d4ac0d;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a202c 0%, #121212 100%);
}

body.dark-mode .hero h1 {
    color: #ffffff;
}

body.dark-mode .hero p, body.dark-mode .subtitle {
    color: #bbbbbb;
}

body.dark-mode .tutors-section {
    background-color: #121212;
}

body.dark-mode .card, body.dark-mode .tutor-card {
    background-color: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body.dark-mode .card h3, body.dark-mode .tutor-card h3 {
    color: #4da3ff;
    border-bottom-color: #333;
}

body.dark-mode .card p, body.dark-mode .tutor-detail, body.dark-mode .tutor-highlight {
    color: #cccccc;
}

body.dark-mode .more-teachers-banner {
    background: linear-gradient(135deg, #1a202c 0%, #1e1e1e 100%);
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body.dark-mode .more-teachers-banner h3 {
    color: #4da3ff;
}

body.dark-mode .more-teachers-banner p {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    .hero h1 {
        font-size: 32px;
    }
}