/* Basic Resets and Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    padding-top: 90px;
}

/* Facebook Blue Definition */
:root {
    --facebook-blue: #1877F2;
    --facebook-dark-blue: #0e64d2;
    --facebook-darker-blue: #0A4E9E;
    --light-gray: #f0f2f5;
    --primary-color: #007bff;
    /* Clean Blue */
    --primary-dark: #0056b3;
    --text-color-dark: #343a40;
    --text-color-light: #6c757d;
    --background-light: #f8f9fa;
    --card-background: #ffffff;
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header and Navigation */
header {
    background-color: var(--facebook-blue);
    color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-bar {
    width: 100%;
    padding: 8px 20px;
    background-color: var(--facebook-blue);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Allow items to wrap */
}

.top-bar-left,
.top-bar-right {
    display: flex;
    /* Use flexbox for alignment */
    align-items: center;
}

.account-type {
    display: none;
    background-color: #1877f2;
    position: absolute;
    right: 27px;
    top: 33px;
    /* Ensure it appears above other content */
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    z-index: 1000;
}

.account-type ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-type li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.account-type li:last-child {
    border-bottom: none;
}

.account-type li a {
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 12px 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 15px;
    white-space: nowrap;
}

.account-type li a:hover {
    background-color: #0d6efd;
}

.auth-link#signUp {
    position: relative;
    padding-right: 20px;
    cursor: pointer;
}

.auth-link#signUp::after {
    content: '\25BC';
    font-size: 10px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    transition: transform 0.2s ease;
}

.auth-link#signUp.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.auth-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 16px;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #e0e0e0;
}

.login-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
    vertical-align: -6px;
}

.whatsapp-icon {
    color: white;
    font-size: 20px;
    padding: 0 5px;
    transition: transform 0.3s ease;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

.auth-link {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #e0e0e0;
}

.separator {
    color: #ccc;
    font-size: 0.9em;
}

.main-nav {
    width: 100%;
    background-color: var(--facebook-darker-blue);
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    margin-right: 20px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #e0e0e0;
}

.logo span {
    color: #FFC107;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-grow: 1;
}

.menu li {
    position: relative;
    margin: 0 15px;
}

.menu a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu a:hover {
    background-color: var(--facebook-dark-blue);
    border-radius: 5px;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    background-color: var(--facebook-blue);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    display: none;
    border-radius: 0 0 5px 5px;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    padding: 10px 20px;
    color: white;
}

.submenu li a:hover {
    background-color: var(--facebook-dark-blue);
}

.displayNone {
    display: none!important;
}

/* Hero Section (Slider and Form) */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.slider-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-background img.active {
    opacity: 1;
}

.overlay-form {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    text-align: center;
}


.overlay-form h2 {
    color: var(--facebook-blue);
    margin-bottom: 20px;
}

.overlay-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    /* Allow label and input to wrap */
}


.overlay-form label {
    flex-shrink: 0;
    width: 80px;
    text-align: right;
    margin-right: 10px;
    font-weight: bold;
}

.overlay-form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-right: 5px;
}

.search-text {
    width: 390px;
    max-width: 100%;
    /* Ensure it doesn't overflow */
}

.city-class,
.tuition-class {
    width: 200px;
    max-width: 100%;
    /* Ensure it doesn't overflow */
}

.selectTution {
    width: 200px;
    max-width: 100%;
    /* Ensure it doesn't overflow */
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.overlay-form input:focus,
.selectTution:focus {
    outline: 1px solid #0a4e9e;
    border-color: #0a4e9e;
    box-shadow: 0 0 1px #0a4e9e;
}

.overlay-form button {
    background-color: var(--facebook-blue);
    color: white;
    padding: 8px 22px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.overlay-form button:hover {
    background-color: var(--facebook-dark-blue);
}

/* Registered Teachers Section */
.registered-teachers,
.testimonials {
    padding: 50px 20px;
    text-align: center;
    background-color: var(--light-gray);
}

.registered-teachers h2,
.testimonials h2 {
    color: var(--facebook-blue);
    margin-bottom: 40px;
    font-size: 2.5em;
}

/* --- Carousel Specific Styles for Teachers --- */
.teacher-carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.teacher-carousel {
    display: flex;
    overflow-x: scroll;
    /* Allow horizontal scroll for touch */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding: 10px 0;
    flex-grow: 1;
    -ms-overflow-style: none;
    /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.teacher-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari, and Opera */
}

.teacher-card {
    flex-shrink: 0;
    width: 235px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--facebook-blue);
}

.teacher-card h3 {
    color: #333;
    margin-bottom: 5px;
}

.teacher-card p {
    color: #666;
    font-size: 0.9em;
}

.carousel-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 24px;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    margin: 0 10px;
    opacity: 0.8;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

/* Testimonials Section */
.testimonials {
    padding: 50px 20px;
    text-align: center;
    background-color: white;
}

.testimonials h2 {
    color: var(--facebook-blue);
    margin-bottom: 40px;
    font-size: 2.5em;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
    height: 180px;
    align-items: center;
    justify-content: center;
}

.testimonial-item {
    flex: 0 0 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-item.previous {
    transform: translateX(-100%);
}

.testimonial-item.next {
    transform: translateX(100%);
}


.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.testimonial-item h4 {
    color: var(--facebook-blue);
    text-align: right;
    margin: 0;
    width: 100%;
}

/* --- Testimonial Dots Specific Styles --- */
.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: var(--facebook-blue);
    transform: scale(1.2);
}

.dot:hover {
    background-color: var(--facebook-dark-blue);
}


.about-us-container,
.forgot-password-container,
.reset-password-container {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    /* Space from header */
    margin-bottom: 30px;
    /* Space to footer */
}

.about-us-container h1,
.forgot-password-container h1,
.reset-password-container h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8em;
    position: relative;
}

.about-us-container h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-section {
    margin-bottom: 50px;
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.about-section h2 {
    color: var(--text-color-dark);
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.about-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-section ul {
    list-style: disc inside;
    margin-left: 20px;
    color: var(--text-color);
    font-size: 1.05em;
    line-height: 1.7;
}

.about-section ul li {
    margin-bottom: 8px;
}

.team-section {
    margin-bottom: 50px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-section h2 {
    color: var(--text-color-dark);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.team-member-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 0 5px rgba(var(--secondary-color-rgb), 0.3);
}

.team-member-card h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.6em;
}

.team-member-card p {
    color: var(--text-color-light);
    font-size: 1.05em;
    line-height: 1.5;
    flex-grow: 1;
    /* Makes sure cards with more text have same height */
}

.values-section {
    padding: 20px;
    background-color: var(--primary-color-light);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.values-section h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.value-item h3 {
    color: var(--text-color-dark);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.value-item p {
    color: var(--text-color);
    font-size: 0.95em;
    line-height: 1.6;
}

.contact-us-container {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    /* Space from header */
    margin-bottom: 30px;
    /* Space to footer */
}

.contact-us-container h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8em;
    position: relative;
}

.contact-us-container h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.info-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 10px;
}

.info-card p,
.info-card a {
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.6;
    text-decoration: none;
}

.info-card a:hover {
    color: var(--secondary-color);
}

.contact-form-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.contact-form-section h2 {
    color: var(--text-color-dark);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form label {
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 5px;
    display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    /* Ensures padding doesn't add to width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: #0a4e9e;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto;
    justify-self: center;
    /* Center the button in the grid */
}

.contact-form button:hover {
    background-color: #1877f2;
    transform: translateY(-2px);
}

.map-section {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

.map-section h2 {
    color: var(--text-color-dark);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    /* Ensures embedded map doesn't overflow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color-light);
    font-size: 1.2em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    border: 1px solid #ccc;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
    text-align: left;
}

.footer-section h3 {
    color: var(--facebook-blue);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.footer-section p,
.footer-section li {
    color: #ccc;
    line-height: 1.8;
    font-size: 0.95em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--facebook-blue);
}

.footer-section .fas {
    margin-right: 8px;
    color: var(--facebook-blue);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.85em;
    color: #aaa;
    margin-top: 30px;
}

/* Listing Page Specific Styles */
.listing-page-container {
    display: flex;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    gap: 30px;
}

.filter-sidebar {
    flex-shrink: 0;
    width: 30%;
    /* Set a fixed width for desktop */
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(10, 78, 158, 0.7);
    overflow: hidden;
}

.filter-heading {
    background-color: #0a4e9ece;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.filter-sidebar h3 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    margin-top: 0px;
    line-height: 30px;
    padding: 10px 0;
}

.filter-group {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.filter-group-header {
    background-color: #b6d2f2ce;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #555;
    transition: background-color 0.3s ease;
}

.filter-group-header:hover {
    background-color: #e0e0e0;
}

.filter-group-content {
    padding: 15px;
    background-color: white;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.filter-group input[type="text"] {
    width: calc(100% - 16px);
    padding: 8px;
    border: 1px solid #b6d2f2ce;
    border-radius: 5px;
    box-sizing: border-box;
    margin-top: 5px;
    outline: 1px solid #b6d2f2ce;
    border-color: #b6d2f2ce;
    box-shadow: 0 0 5px rgba(0, 0, 255, 0.1);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--facebook-blue);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 8px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.filter-tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: white;
}

.listing-content {
    flex-grow: 1;
    width: 70%;
    /* Set a fixed width for desktop */
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(10, 78, 158, 0.7);
    padding: 5px;
}

.job-card {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.profile-detail-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.more-info {
    padding: 20px;
    ;
    border-top: 1px solid #ccc;
}


.job-card-image {
    flex-shrink: 0;
    text-align: center;
}

.job-card-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--facebook-blue);
}

.profile-details .job-card-image img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 2% !important;
    object-fit: cover;
    border: 2px solid var(--facebook-blue);
}



.job-card-details {
    flex-grow: 1;
    min-width: 200px;
}

.job-card-details h3 {
    color: var(--facebook-blue);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.job-card-details p {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.job-card-details .price {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.profile-detail-card .contact-button,
.job-card-details .contact-button,
.update-con-status {
    background-color: #0a4e9e;
    color: white;
    padding: 8px 7px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
}

.subject-row {
    padding: 10px;
    border: 1px solid #ccc;
}

.profile-detail-card .contact-button {
    height: 32px;
    ;
}

.job-card-details .contact-button:hover,
.profile-detail-card .contact-button:hover {
    background-color: var(--facebook-dark-blue);
}

.anycomment {
    width: 370px !important;
}

.possibleStartDate {
    width: 89% !important;
}

.swal2-popup .form-row {
    gap: 0px !important;
    margin-bottom: 5px;
}

.swal2-popup .form-group select {
    width: calc(100% - 24px) !important;
}

/* Registration/Login Page Container */
.container {
    max-width: 1210px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    box-sizing: border-box;
    text-align: center;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Creates two equal-width columns */
    gap: 15px;
    /* Adds space between grid cells */
    font-family: Arial, sans-serif;
}

/* Optional: Style for the labels */
.label {
    font-weight: bold;
    color: #555;
    margin-right: 5px;
}

h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 700;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    text-align: left;
}

.process-section {
    flex: 2;
    min-width: 300px;
    padding-right: 20px;
    box-sizing: border-box;
    /* Ensure padding is included in width */
}

.registration-section {
    flex: 1;
    min-width: 550px;
    /* Increased min-width for better form layout */
    background-color: #b6d2f2ce;
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    /* Ensure padding is included in width */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-pic-section,
.user-login-section {
    /* Grouped these sections for consistent styling */
    flex: 1;
    min-width: 400px;
    /* Increased min-width for better form layout */
    background-color: #b6d2f2ce;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    /* Ensure padding is included in width */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-pic-section {
    min-height: 300px;
    justify-content: center;
}

.profile-pic-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.success-message {
    color: green;
    /* Changed to green for success */
    font-size: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.message {
    color: green;
    /* Changed to green for success */
    font-size: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.thirdStepFields label[for="uploadImage"] {
    display: inline-block;
    background-color: #0a4e9e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-bottom: 20px;
}

.thirdStepFields label[for="uploadImage"]:hover {
    background-color: #0d6efd;
    transform: translateY(-1px);
}

.thirdStepFields label[for="uploadImage"]:active {
    transform: translateY(0);
}

.cropped-image-div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    overflow: hidden;
}

.cropper-container {
    margin-bottom: 15px;
}

#base64urlencode {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#selecteImage {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    display: none;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.thirdStep.submit-button {
    padding: 10px 25px;
    margin-left: 0;
    display: block;
    background-color: #0a4e9e;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: none;
}

.thirdStep.submit-button:hover {
    background-color: #0d6efd;
    transform: translateY(-1px);
}

.thirdStep.submit-button:active {
    transform: translateY(0);
}

.step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 15px;
    /* Add margin between steps */
}

.step-icon {
    font-size: 2.5em;
    color: #3498db;
    background-color: #e0f2f7;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-size: 1.3em;
    /* Adjusted font size */
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.step-description {
    font-size: 1em;
    /* Adjusted font size */
    color: #555;
    line-height: 1.5;
}

/* Registration Form Styles */
.registration-section h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.95em;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: calc(100% - 16px);
    /* Account for padding */
    padding: 8px;
    /* Adjusted padding */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    /* Adjusted font size */
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    color: #928f8f !important;
}

.register-select-class {
    width: calc(100%) !important;
    /* Account for padding */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-button {
    width: 100%;
    background-color: #0a4e9e;
    color: #ffffff;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #3498db;
    transform: translateY(-2px);
}

/* Illustrations and CTA */
.illustrations {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.illustration-item {
    max-width: 300px;
    text-align: center;
}

.illustration-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.call-to-action {
    margin-top: 40px;
    padding: 30px;
    background-color: #e0f2f7;
    border-radius: 8px;
}

.call-to-action p {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background-color: #0A4E9E;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #3498db;
    transform: translateY(-2px);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 180px;
    /* Adjusted min-width for better spacing */
}

.form-row .form-group input[type="text"],
.form-row .form-group input[type="tel"] {
    width: 100%;
    margin-right: 0;
}


.error-message {
    color: red;
    font-size: 11px;
}

#password-res-message {
    text-align: left !important;
    margin-top: 5px;
    ;
}

.error {
    border: 1px solid red !important;
}

.registration-section input[type="tel"],
.registration-section input[type="text"],
.registration-section input[type="password"],
.registration-section select,
.registration-section input[type="tel"]::placeholder,
.registration-section input[type="text"]::placeholder,
.registration-section input[type="password"]::placeholder {
    color: #928f8f !important;
    font-size: 12px;
}

.secondStepFields {
    display: none;
}


button.firstStep {
    width: 25%;
    padding: 10px 16px;
}

button.secondStep,
button.commonClassStep {
    width: 25%;
    padding: 10px 16px;
}

#enteredPhone,
#userPassword,
#confirmPassword {
    width: 91%;
    max-width: 100%;
    /* Ensure responsiveness */
}

.fas {
    color: #0A4E9E;
    font-size: 12px;
}

#uploadImage,
#cropButton {
    display: none;
}

.imageUploader {
    text-align: center;
}

.imageUploader label {
    padding: 10px 25px;
    background-color: #0a4e9e;
    color: white;
    border: none;
    border-radius: 5px;
    width: fit-content;
    cursor: pointer;
    font-size: 17px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.user-login-section {
    min-width: 400px;
    /* Adjusted min-width for better form layout */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.user-login-section form {
    width: 100%;
    max-width: 400px;
    background-color: #243B55;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.form-group label {
    display: block;
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: calc(100% - 16px);
    /* Account for padding */
    padding: 8px;
    /* Adjusted padding */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    /* Adjusted font size */
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--facebook-blue);
    outline: none;
}

.login-button {
    width: 100%;
    padding: 15px;
    background-color: #4267B2;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: var(--facebook-dark-blue);
    transform: translateY(-2px);
}

.front-user-login {
    margin-top: 0px !important;
}

/* New: Form Footer for links */
.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #ccc;
}

.form-footer a {
    color: var(--facebook-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--facebook-dark-blue);
    text-decoration: underline;
}

.form-footer span {
    color: #777;
    margin: 0 5px;
}

.user-login-section .error {
    color: red;
    border: none !important;
    font-size: 12px;
    /* Ensure error messages are readable */
    margin-top: 5px;
}

.selectesubject,
.selectedclass {
    font-size: 11px;
    float: left;
    border-radius: 2px;
    margin-right: 3px;
    margin-left: 3px;
    ;
    border: 1px solid #0a4e9e;
    margin-bottom: 2px;
    ;
}

.selectesubject .subject,
.selectedclass .uclass {
    float: left;
    padding: 3px;
    padding-bottom: 0px;
    ;
}

.selectesubject .close-icon,
.selectedclass .close-icon {
    font-size: 10px;
    float: left;
    cursor: pointer;
}

.dashborad-common {
    display: none;
    min-height: 400px;
}

.dashboard-overview {
    display: block;
}

.dashboard-stats input[type="text"] {
    width: 50% !important;
}

.dashboard-stats .subjectInfo,
.dashboard-stats .classInfo {
    margin-top: 5px;
    max-width: 50%;
}

.dashboard-stats .submit-button {
    width: auto;
    border-radius: 0px !important;
    font-weight: 400 !important;
    padding: 8px 11px !important;
}

.dashboard-stats .form-row {
    margin-bottom: 2px;
    ;
}

.add-subject-row,
.add-class-row {
    display: none;
}

.update-profile input[type="text"] {
    width: 100% !important;
}


.checkbox-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
    max-width: 795px;
    ;
    margin-top: -16px;
    ;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.bouncy-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.bouncy-checkbox+label {
    position: relative;
    cursor: pointer;
    padding-left: 28px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #444;
    user-select: none;
}

.bouncy-checkbox+label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #777;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.bouncy-checkbox+label::after {
    content: '✓';
    /* Unicode checkmark */
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 16px;
    color: white;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Bounce effect */
}

.bouncy-checkbox:checked+label::before {
    background-color: #007bff;
    border-color: #007bff;
}

.bouncy-checkbox:checked+label::after {
    transform: translateY(-50%) scale(1);
}

.bouncy-checkbox+label:hover::before {
    border-color: #007bff;
}

.bouncy-checkbox:focus+label::before {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.dashboard-stats .form-row .form-group {
    margin-bottom: 16px
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 1200px) {
    .teacher-carousel-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {

    /* Added a new breakpoint for tablets */
    .overlay-form .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .overlay-form label {
        width: auto;
        text-align: left;
        margin-bottom: 5px;
    }

    .search-text,
    .city-class,
    .tuition-class,
    .selectTution {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
        ;
    }

    .job-card {
        flex-direction: column;
        align-items: center;
    }

    .job-card-image {
        margin-bottom: 15px;
    }

    .job-card-details {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .top-bar {
        padding: 8px 15px;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        width: 100%;
        /* Take full width to stack */
        margin-bottom: 8px;
        /* Add some space when stacked */
    }

    .top-bar-left:last-child,
    .top-bar-right:last-child {
        margin-bottom: 0;
    }

    .search-text,
    .city-class,
    .tuition-class,
    .selectTution {
        width: 100% !important;
        margin-right: 0;
        margin-bottom: 5px;
        ;
    }

    .whatsapp-icon {
        font-size: 22px;
    }

    .auth-link {
        font-size: 0.85em;
        margin: 0 5px;
    }

    .separator {
        display: none;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
    }

    .logo {
        margin-bottom: 10px;
        margin-right: 0;
        text-align: center;
        width: 100%;
    }

    .logo a {
        font-size: 1.5em;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    .menu li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .menu a {
        padding: 8px 10px;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background-color: var(--facebook-dark-blue);
    }

    .has-submenu:hover .submenu {
        display: none;
    }

    .hero-section {
        height: 500px;
        /* Adjusted height for tablets */
    }

    .overlay-form {
        width: 90%;
        padding: 20px;
    }

    .overlay-form label {
        width: 70px;
        margin-right: 8px;
    }

    .teacher-carousel-wrapper {
        flex-direction: column;
        max-width: 100%;
        padding: 0 10px;
    }

    .teacher-carousel {
        padding: 0;
        margin-bottom: 20px;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
    }

    .teacher-card {
        width: 80%;
        scroll-snap-align: start;
        margin: 0 10px;
    }

    .carousel-button {
        position: static;
        margin: 5px;
    }

    .testimonials {
        padding: 30px 15px;
        /* Adjusted padding */
    }

    .testimonial-slider {
        height: 200px;
    }

    .testimonial-item {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        margin: 15px 0;
    }

    /* Listing Page Responsive Adjustments */
    .listing-page-container {
        flex-direction: column;
    }

    .filter-sidebar {
        width: 100%;
    }

    .listing-content {
        width: 100%;
    }

    /* Registration/Login Page Responsive Adjustments */
    .content-wrapper {
        flex-direction: column;
    }

    .process-section,
    .registration-section,
    .profile-pic-section,
    .user-login-section {
        flex: none;
        width: 100%;
        padding-right: 0;
        min-width: unset;
        /* Remove min-width on small screens */
    }

    .registration-section {
        margin-top: 40px;
    }

    .step-icon {
        font-size: 2em;
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }

    .step-title {
        font-size: 1.2em;
    }

    .step-description {
        font-size: 0.9em;
    }

    h1 {
        font-size: 2em;
    }

    .call-to-action p {
        font-size: 1.2em;
    }

    .cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    .form-row .form-group:last-child {
        margin-bottom: 0;
    }

    #enteredPhone,
    #otpPassword,
    #userPassword,
    #confirmPassword {
        width: 100%;
        /* Take full width on small screens */
    }

    button.firstStep,
    button.secondStep,
    button.commonClassStep {
        width: 50%;
        /* Make buttons a bit wider */
        padding: 10px;
    }

    .user-login-section form {
        max-width: 100%;
        padding: 30px;
        /* Adjusted padding */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .hero-section {
        height: 450px;
    }

    .overlay-form {
        padding: 15px;
    }

    .overlay-form h2 {
        font-size: 1.8em;
    }

    .teacher-card {
        width: 90%;
    }

    .testimonials h2 {
        font-size: 2em;
    }

    .testimonial-slider {
        height: 220px;
    }

    .testimonial-item {
        padding: 15px;
    }

    .footer-section {
        min-width: unset;
        /* Remove min-width for very small screens */
        margin: 10px 0;
    }

    .job-card {
        padding: 15px;
    }

    .job-card-image img {
        width: 80px;
        height: 80px;
    }

    .job-card-details h3 {
        font-size: 1.1em;
    }

    .job-card-details p {
        font-size: 13px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .process-section,
    .registration-section,
    .profile-pic-section,
    .user-login-section {
        padding: 20px;
        /* Further reduce padding */
    }

    .step-icon {
        font-size: 1.8em;
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }

    .step-title {
        font-size: 1.1em;
    }

    .step-description {
        font-size: 0.85em;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="password"],
    .form-group select,
    .form-group textarea {
        font-size: 13px;
        padding: 6px;
    }

    button.firstStep,
    button.secondStep,
    button.commonClassStep {
        width: 70%;
        /* Even wider buttons on smallest screens */
        font-size: 14px;
    }

    .submit-button {
        font-size: 14px;
        padding: 12px 20px;
    }

    .imageUploader label {
        font-size: 15px;
        padding: 8px 20px;
    }

    .user-login-section form {
        padding: 25px;
    }

    .login-button {
        font-size: 16px;
        padding: 12px;
    }

    .about-us-container h1 {
        font-size: 1.8em;
    }

    .about-section h2,
    .team-section h2,
    .values-section h2 {
        font-size: 1.8em;
    }

    .about-section p {
        font-size: 1em;
    }

    .team-member-card {
        padding: 20px;
    }

    .team-member-card img {
        width: 100px;
        height: 100px;
    }

    .contact-us-container h1 {
        font-size: 1.8em;
    }

    .contact-form-section h2,
    .map-section h2 {
        font-size: 1.8em;
    }
}


/* Add to your style.css */

/* Hamburger menu button */
.hamburger-menu {
    display: none;
    /* Hidden by default on large screens */
    background: #1877f2;
    border: none;
    color: white;
    font-size: 28px;
    /* Larger icon */
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: auto;
    /* Push to the right */
    outline: none;
}

/* For mobile submenu display */
.submenu.active {
    display: block !important;
    /* Force display when active on mobile */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .top-bar {
        padding: 8px 15px;
        flex-direction: column;
        /* Stack items vertically */
        align-items: center;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    .top-bar-left:last-child,
    .top-bar-right:last-child {
        margin-bottom: 0;
    }

    .whatsapp-icon {
        font-size: 22px;
    }

    .auth-link {
        font-size: 0.85em;
        margin: 0 5px;
    }

    .separator {
        display: none;
    }

    .main-nav {
        flex-direction: row;
        /* Keep logo and hamburger on one row initially */
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .logo {
        margin-bottom: 0;
        margin-right: 0;
        text-align: left;
        /* Align logo to the left */
        width: auto;
        /* Let content define width */
    }

    .logo a {
        font-size: 1.5em;
    }

    .hamburger-menu {
        display: block;
        /* Show hamburger menu on small screens */
    }

    .menu {
        display: none;
        /* Hide the menu by default on small screens */
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: var(--facebook-darker-blue);
        /* Same as nav background */
        position: absolute;
        top: 120px;
        /* Position below the header */
        left: 0;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        transform: translateY(-100%);
        /* Start off-screen */
        opacity: 0;
        pointer-events: none;
        /* Disable interactions when hidden */
    }

    .menu.active {
        display: flex;
        /* Show the menu when active */
        transform: translateY(0);
        /* Slide into view */
        opacity: 1;
        pointer-events: all;
        /* Enable interactions */
    }

    .menu li {
        margin: 0;
        /* Remove horizontal margin */
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        /* Add separators */
    }

    .menu li:last-child {
        border-bottom: none;
    }

    .menu a {
        padding: 12px 10px;
        /* Increase padding for touch targets */
    }

    .submenu {
        position: static;
        /* Submenu stacks below parent on mobile */
        box-shadow: none;
        border-radius: 0;
        background-color: var(--facebook-dark-blue);
        /* Slightly darker for submenu */
        width: 100%;
        padding-top: 0;
    }

    .submenu li a {
        padding-left: 30px;
        /* Indent submenu items */
    }

    .has-submenu:hover .submenu {
        display: none;
        /* Disable hover on mobile, rely on JS click */
    }

    /* Keep existing hero, carousel, and other sections responsive styles */
    .hero-section {
        height: 500px;
    }

    .overlay-form {
        width: 90%;
        padding: 20px;
    }

    .overlay-form label {
        width: 70px;
        margin-right: 8px;
    }

    .teacher-carousel-wrapper {
        flex-direction: column;
        max-width: 100%;
        padding: 0 10px;
    }

    .teacher-carousel {
        padding: 0;
        margin-bottom: 20px;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
    }

    .teacher-card {
        width: 80%;
        scroll-snap-align: start;
        margin: 0 10px;
    }

    .carousel-button {
        position: static;
        margin: 5px;
    }

    .testimonials {
        padding: 30px 15px;
    }

    .testimonial-slider {
        height: 200px;
    }

    .testimonial-item {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        margin: 15px 0;
    }

    .listing-page-container {
        flex-direction: column;
    }

    .filter-sidebar {
        width: 100%;
    }

    .listing-content {
        width: 100%;
    }

    .content-wrapper {
        flex-direction: column;
    }


    .registration-section {
        flex: none;
        width: 100%;
        padding-right: 0;
        min-width: unset;
        align-items: center;
    }

    .process-section,
    .profile-pic-section,
    .user-login-section {
        flex: none;
        width: 100%;
        padding-right: 0;
        min-width: unset;
    }

    .registration-section {
        margin-top: 40px;
    }

    .step-icon {
        font-size: 2em;
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }

    .step-title {
        font-size: 1.2em;
    }

    .step-description {
        font-size: 0.9em;
    }

    h1 {
        font-size: 2em;
    }

    .call-to-action p {
        font-size: 1.2em;
    }

    .cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    .form-row .form-group:last-child {
        margin-bottom: 0;
    }

    #enteredPhone,
    #otpPassword,
    #userPassword,
    #confirmPassword {
        width: 100%;
    }

    button.firstStep,
    button.secondStep,
    button.commonClassStep {
        width: 50%;
        padding: 10px;
    }

    .user-login-section form {
        max-width: 100%;
        padding: 30px;
    }

    .contact-us-container {
        padding: 30px 15px;
    }

    .contact-us-container h1 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }

    .info-card {
        padding: 20px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        /* Stack columns on smaller screens */
    }

    .contact-form-section {
        padding: 30px;
    }

    .contact-form-section h2,
    .map-section h2 {
        font-size: 2em;
    }

    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .hero-section {
        height: 450px;
    }

    .overlay-form {
        padding: 15px;
    }

    .overlay-form h2 {
        font-size: 1.8em;
    }

    .teacher-card {
        width: 90%;
    }

    .testimonials h2 {
        font-size: 2em;
    }

    .testimonial-slider {
        height: 220px;
    }

    .testimonial-item {
        padding: 15px;
    }

    .footer-section {
        min-width: unset;
        margin: 10px 0;
    }

    .job-card {
        padding: 15px;
    }

    .job-card-image img {
        width: 80px;
        height: 80px;
    }

    .job-card-details h3 {
        font-size: 1.1em;
    }

    .job-card-details p {
        font-size: 13px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .process-section,
    .registration-section,
    .profile-pic-section,
    .user-login-section {
        padding: 20px;
    }

    .step-icon {
        font-size: 1.8em;
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }

    .step-title {
        font-size: 1.1em;
    }

    .step-description {
        font-size: 0.85em;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="password"],
    .form-group select,
    .form-group textarea {
        font-size: 13px;
        padding: 6px;
    }

    button.firstStep,
    button.secondStep,
    button.commonClassStep {
        width: 70%;
        font-size: 14px;
    }

    .submit-button {
        font-size: 14px;
        padding: 12px 20px;
    }

    .imageUploader label {
        font-size: 15px;
        padding: 8px 20px;
    }

    .user-login-section form {
        padding: 25px;
    }

    .login-button {
        font-size: 16px;
        padding: 12px;
    }
}

/*dashboard Html*/

/* User Dashboard Styles */
.user-dashboard-main {
    padding: 20px;
    background-color: var(--light-gray);
    min-height: calc(100vh - 90px);
    /* Adjust for header height */
}

.dashboard-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    font-size: 13px;
    /* Allow wrapping on smaller screens */
}

.dashboard-sidebar {
    flex: 0 0 250px;
    /* Fixed width sidebar */
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
    /* Stick to the top */
}

.profile-summary {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--facebook-blue);
    margin-bottom: 10px;
}

.profile-summary h3 {
    margin: 10px 0 5px 0;
    color: #333;
}

.profile-summary .user-role {
    color: #777;
    font-size: 0.9em;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-nav li {
    margin-bottom: 10px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dashboard-nav a .fas {
    margin-right: 10px;
    font-size: 1.1em;
    color: var(--facebook-blue);
}

.dashboard-nav a:hover,
.dashboard-nav li.active a {
    background-color: var(--facebook-blue);
    color: white;
}

.dashboard-nav a:hover .fas,
.dashboard-nav li.active a .fas {
    color: white;
    /* Change icon color on hover/active */
}


.dashboard-content {
    flex-grow: 1;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    color: var(--facebook-blue);
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.8em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #e0f2f7;
    /* Light blue background */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5em;
    color: var(--facebook-darker-blue);
    margin-bottom: 10px;
}

.stat-card h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.stat-card p {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--facebook-blue);
}

.dashboard-section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.dashboard-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.recent-activity ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-activity li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    font-size: 0.95em;
}

.recent-activity li:last-child {
    border-bottom: none;
}

.recent-activity li .fas {
    margin-right: 10px;
    color: var(--facebook-blue);
}

.activity-date {
    margin-left: auto;
    font-size: 0.85em;
    color: #888;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.quick-link-card {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    background-color: var(--facebook-blue);
    color: white;
}

.quick-link-card .fas {
    font-size: 2.5em;
    color: var(--facebook-darker-blue);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.quick-link-card:hover .fas {
    color: white;
}

.quick-link-card span {
    display: block;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }

    .dashboard-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dashboard-nav li {
        margin: 5px 10px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        /* Stack stat cards on smaller screens */
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .about-us-container {
        padding: 30px 15px;
    }

    .about-us-container h1 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }

    .about-section h2,
    .team-section h2,
    .values-section h2 {
        font-size: 2em;
    }

    .team-grid {
        grid-template-columns: 1fr;
        /* Stack columns on smaller screens */
    }
}

@media (max-width: 480px) {
    .user-dashboard-main {
        padding: 10px;
    }

    .dashboard-sidebar {
        padding: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .dashboard-nav a {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    .dashboard-nav a .fas {
        font-size: 1em;
        margin-right: 5px;
    }

    .dashboard-content {
        padding: 15px;
    }

    .dashboard-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        font-size: 2em;
    }

    .stat-card h4 {
        font-size: 0.9em;
    }

    .stat-card p {
        font-size: 1.2em;
    }

    .dashboard-section h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .recent-activity li {
        font-size: 0.9em;
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-date {
        margin-left: 0;
        margin-top: 5px;
    }

    .links-grid {
        grid-template-columns: 1fr;
        /* Stack quick links on very small screens */
    }
}

/* blogs*/

/* Custom styles for Blog pages */

.blog-container,
.blog-details-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-title,
.single-post-title {
    color: var(--facebook-blue);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

.blog-main-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.blog-posts-list,
.profile-details {
    flex: 3;
    /* Takes up 3/4 of the space */
}

.profile-details {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-card {
    display: flex;
    background-color: white;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-content {
    padding: 20px;
}

.post-title a {
    color: var(--facebook-blue);
    text-decoration: none;
    font-size: 1.8em;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--facebook-dark-blue);
}

.post-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    background-color: #0a4e9e;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--facebook-dark-blue);
}

.blog-sidebar {
    flex: 1;
    /* Takes up 1/4 of the space */
}

.sidebar-widget {
    background-color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: var(--facebook-blue);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget ul li a {
    display: block;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--facebook-blue);
}

/* Blog Details Page Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-post-title {
    font-size: 2.8em;
    margin-bottom: 10px;
}

.single-post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-body p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.post-body h2,
.post-body h3 {
    color: var(--facebook-blue);
    margin-top: 40px;
    margin-bottom: 15px;
}

.post-body h2 {
    font-size: 2em;
}

.post-body h3 {
    font-size: 1.5em;
}

/* Read Next Section */
.read-next-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.read-next-section h2 {
    color: var(--facebook-blue);
    text-align: center;
    margin-bottom: 30px;
}

.read-next-posts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.read-next-card {
    display: block;
    text-decoration: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
}

.read-next-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.read-next-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.read-next-content {
    padding: 15px;
}

.read-next-content h3 {
    color: var(--facebook-blue);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
}

.read-next-content p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-main-content {
        flex-direction: column;
    }

    .blog-posts-list,
    .blog-sidebar {
        flex: auto;
    }

    .blog-post-card {
        flex-direction: column;
    }

    .post-image {
        width: 100%;
        height: auto;
    }

    .single-post-title {
        font-size: 2em;
    }
}

.rating-view {
    display: flex;
    /* Aligns the stars horizontally */
    font-size: 20px;
    /* Sets the size of the stars */
}

.star {
    color: #ccc;
    /* Default color for empty stars */
    padding: 0 2px;
    /* Adds a small space between stars */
}

.star.filled {
    color: #0a4e9e;
    /* Color for filled stars */
}

.list-container {
    font-family: Arial, sans-serif;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.list-row.header {
    font-weight: bold;
    background-color: #f4f4f4;
    border-bottom: 2px solid #ccc;
}

.list-row:last-child {
    border-bottom: none;
}

.list-column {
    flex-grow: 1;
    flex-basis: 0;
    padding: 0 0px;
    text-align: left;
    /* Use 'min-width' or 'flex-basis' to control column width */
}

.last-column {
    text-align: center !important;
}

.connection-comment {
    width: 335px;
}

.two-col-field {
    width: 90% !important;
}

.conn-time {
    width: 20px;
}

.self-ini {
    background-color: #f0f8ff;
}

.last-mess-self {
    color: #0a4e9e
}

.fogot-email-form,
.fogot-otp-form {
    width: 35%;
    margin-left: 33%;
}

.forgot-email-input,
.forgot-otp-input {
    width: 70% !important;
}

.reset-link-button {
    background-color: #0A4E9E;
    color: #fff;
    padding: 6px 4px 6px 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border-color: transparent;
    width: 112px;
    ;
}

.forgot-password-container .error-message {
    text-align: center;
}


#otpPassword {
    width: 50%;
}

#verify-otp {
    border: 1px solid #1877f2;
    padding: 2px 7px 4px 8px;
    background-color: #1877f2;
    color: #fff;
    border-radius: 2px;
    display: none;
    cursor: pointer;
}

.resend-otp,
.fa-edit {
    cursor: pointer;
}

.resend-otp,
.otp-varified {
    padding-right: 4px;
}

.overlay-form .form-group.one-line {
    flex-wrap: nowrap;
}

.fogot-email-form .one-line {
    display: flex;
    gap: 10px
}

.fogot-email-form #otpPassword {
    flex: 1;
    /* Optional: allows input to grow and fill available space */
    padding: 8px;
    font-size: 14px;
}

.fogot-email-form #verify-otp {
    display: block !important;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.fogot-email-form .form-group input[type="password"] {
    width: calc(100% - 0px);
}

.fogot-email-form .resend-otp,
.fogot-email-form .otp-varified {
    padding-top: 10px;
}

.form-error-message {
    color: red;
    font-size: 12px;
    max-width: 500px;
    padding-top: 6px;
}

.form-success-message {
    color: green;
    font-size: 12px;
    max-width: 500px;
    padding-top: 6px;
}

.disabled {
    color: grey;
}

.forget-separator {
    text-align: center;
    color: grey;
    margin-bottom: 12px;
    ;
}

/*footer section*/
a {
    text-decoration: none;
    color: var(--primary-color);
}

/* --- 2. Header and Navigation --- */

.footer-main-header__title {
    font-size: 1.8rem;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.footer-main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-main-nav__button {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-main-nav__button:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-main-nav__button--active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

/* --- 3. Cards Container (CSS Grid for Layout) --- */
.footer-card-container {
    display: grid;
    /* Default: 1 column for mobile */
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    
}

/* Tablet Layout (2 columns) */
@media (min-width: 768px) {
    .footer-card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Layout (5 columns - or 3/2 split) */
@media (min-width: 1024px) {
    .footer-card-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* --- 4. Individual Card Styles --- */
.card {
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    /* Makes the card fill available height in the grid row */
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-card-container .card {
    font-size: 12px
}

;

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card__header {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--background-light);
    padding-bottom: 10px;
}

/* --- 5. List and Links --- */
.card__list {
    list-style: none;
    flex-grow: 1;
    /* Pushes the CTA button to the bottom */
    margin-bottom: 20px;
    padding-left: 5px;
}

.card__item {
    padding: 8px 0;
}

.card__item a {
    display: block;
    color: #ffffff;
    font-size: 12px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    text-align: left;
}

.card__item a::before {
    content: "➤ ";
    color: inherit;
    /* or set a specific color like #ffffff */
    margin-right: 6px;
}

.card__item a:hover {
    color: var(--primary-dark);
    padding-left: 0px;
    /* Subtle hover effect */
}

/* --- 6. Call-to-Action Button --- */
.card__cta-button {
    display: block;
    padding: 10px 15px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    margin-top: auto;
    /* Ensures button is always at the bottom */
    transition: background-color 0.3s ease;
}

.card__cta-button:hover {
    background-color: var(--primary-dark);
}

.footer-section a {
    color: var(--facebook-blue);
    text-align: right;
    text-decoration: underline;
}

/* City Listing Table Styles */
.city-listing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--card-background); /* White background */
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures rounded corners look correct */
    box-shadow: var(--shadow-light);
}

.city-listing-table th,
.city-listing-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--background-light); /* Light gray border */
}

.city-listing-table th {
    background-color: var(--background-light); /* Slightly shaded header */
    color: var(--text-color-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
}

.city-listing-table tbody tr:hover {
    background-color: #f6f6f6; /* Subtle hover effect */
}

/* Pagination Styles (used in the previous step, included here for context) */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-bottom: 20px;
}
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
}
.page-item {
    margin: 0 4px;
}
.page-item.active .page-link {
    color: white;
    background-color: var(--facebook-blue);
    border-color: var(--facebook-blue);
}
