/* Variables */
:root {
    --primary-color: #FFDE59; /* Yellow */
    --primary-dark: #FFD21F;
    --secondary-color: #333333;
    --light-color: #FFFFFF;
    --gray-color: #F5F5F5;
    --dark-gray: #666666;
    --border-color: #EEEEEE;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: #444;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    /* position: sticky; */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    
}


.navbar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
  position: relative;
  font-size: 42px;
  margin: 0;
  color: var(--primary-color);
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  padding: 10px 0;

    .main-text {
        display: block;
        text-transform: uppercase;
        font-family: 'Segoe UI';
    }

    .top-left {
    position: absolute;
    top: -1;
    left: 0;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    transform: translateY(-50%);
    font-weight: bold;
    }
    .bottom-middle {
        position: absolute;
        bottom: -2px;
        right: 0;
        left: auto;
        transform: none;
        font-size: 16px;
        color: #333;
        font-weight: 400;
        font-family: 'Playfair Display', serif;
        font-style: italic;
        font-weight: bold;
    }
    
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: space-evenly;
    justify-content: space-evenly;
    gap: 40px;
}

.hero-text {
    flex: 1;
    /* background-color: yellow; */
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}


.bounce-text span {
  display: inline-block;
  animation: bounce 1s infinite;
  color: var(--primary-color);
}

.bounce-text span:nth-child(even) {
  animation-delay: 0.1s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}





.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--dark-gray);
}



.cta-buttons {
    display: flex;
    gap: 15px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;

}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: var(--primary-color); */
    border-radius: 10px;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 5px solid var(--primary-color);
}

/* About Section */
.about {
    background-color: var(--gray-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 50%;
    box-shadow: var(--shadow);
    width: 50%;
    max-width: 400px;
    height: auto;
    /* border: 3px solid rgba(193, 193, 19, 0.527); */
    transition: var(--transition);
    box-shadow: #6c6c5b 0px 0px 10px 1px;
}

.about-text {
    flex: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--primary-dark);
}

/* Courses Section */
.courses {
    background-color: var(--light-color);
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.course-image {
    position: relative;
}

.course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.free {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.paid {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.course-details {
    padding: 20px;
}

.course-details h3 {
    margin-bottom: 10px;
}

.course-details p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--gray-color);
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    min-width: 350px;
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--secondary-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 222, 89, 0.2);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--gray-color);
}

.footer-links h3,
.footer-social h3 {
    color: var(--light-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--gray-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

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

/* Form Styles */
.auth-form {
    max-width: 400px;
    margin: 120px auto 60px;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-form .form-footer {
    text-align: center;
    margin-top: 20px;
    a{
        color: var(--primary-color);
        font-weight: 600;
    }
}

.auth-form .social-login {
    margin: 20px 0;
    text-align: center;
}

.auth-form #forgotPassword{
    display: block;
    text-align: center;
    margin-top: 10px; 
    color: var(--dark-gray);
    font-size: 14px;    
    /* Add hover effect */
    &:hover {
        /* color: rgb(177, 177, 67); */
        text-decoration: underline;
    }

}

.auth-form .divider {
    display: flex;
    align-items: center;
    margin: 20px 0;

}

.auth-form .divider::before,
.auth-form .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.auth-form .divider span {
    padding: 0 10px;
    color: var(--dark-gray);
    font-size: 14px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #4285F4;
    color: var(--light-color);
    width: 100%;
    margin-bottom: 15px;
}

.btn-google:hover {
    background-color: #3367D6;
}

/* ------------------------------------------------ */


/* Modal Styles */
.event-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.event-modal-content {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  width: 50%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.modal-title {
  margin-bottom: 10px;
  text-align: center;
  font-size: 24px;
}

/* Scrollable Card Area */
.event-cards-scroll {
  overflow-y: auto;
  padding-right: 10px;
  flex-grow: 1;
}

/* Card Styles */
.event-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.event-card:hover {
  transform: scale(1.02);
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-card-header h5 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.event-time {
  font-size: 14px;
  color: #666;
}

.event-desc {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.event-btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}

.event-btn:hover {
  background-color: #0056b3;
}

/* Animation */
.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

.close-event-modal {
  font-size: 40px;
  color: #888;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.3s ease;
}

.close-event-modal:hover {
  color: #333;
}


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

/* Scrollbar styling */
.event-cards-scroll::-webkit-scrollbar {
  width: 6px;
}
.event-cards-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}


/* Loader */

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

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


/* ---------- Hamberger -------------- */

/* Fixed mobile menu to prevent horizontal scrolling */
.mobile-menu {
    position: absolute;
    top: 110%;
    right: 0;
    width: 250px; /* Fixed width instead of using left/right positioning */
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 99;
    transform: translateY(-20px); /* Changed to vertical transition */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    overflow: hidden; /* Prevent content from causing overflow */
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Added to prevent any default margins */
}

.mobile-menu ul li {
    margin: 15px 0;
}

.mobile-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block; /* Makes the entire area clickable */
}

.mobile-menu ul li a:hover {
    color: var(--primary-color); /* Using var for consistency */
    text-decoration: underline; /* Added underline on hover for better UX */
}

.mobile-menu .auth-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu .auth-links a {
    display: block;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Fixed variable syntax and hover effects */
.mobile-menu .btn-outline {
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: black;
}

.mobile-menu .btn-outline:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Subtle background on hover */
}

.mobile-menu .btn-primary {
    border: 1px solid black;
    background-color: rgb(62, 60, 60);
    color: rgb(252, 252, 252);
}

.mobile-menu .btn-primary:hover {
    color: black;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}