/* Global Styles */
:root {
    --primary-color: #040053; /* Updated: Header/footer color */
    --secondary-color: #003366; /* Now used for accents */
    --accent-color: #fffafa; /* Orange accent */
    --light-accent: #ffcc66; /* Light yellow accent */
    --background-color: #ffffff; /* White background */
    --text-color: #333333;
    --light-text: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    line-height: 1.3;
}

section {
    padding: 60px 0;
}

.hidden {
    display: none;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    height: auto;
    overflow: visible;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0; /* Reduce padding on the left side */
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible; /* Ensures the logo isn't clipped */
    z-index: 1001; /* Makes sure logo appears above other elements */
    margin-left: -45px; /* Move the entire logo container to the left */
}

.title-container {
    display: flex;
    flex-direction: column;
    position: relative;
}

.logo {
    height: 110px; /* Further increased from 90px */
    margin-right: -10px;
    margin-top: -15px; /* Increased negative margin to prevent header expansion */
    margin-bottom: -15px; /* Increased negative margin to prevent header expansion */
    transform: scale(1.05); /* Slight additional scale boost */
}

header h1 {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
    margin-left: 2px; /* Move the title slightly to the left */
    background: #ffcd00;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    text-shadow: 0px 0px 1px rgba(255, 255, 255, 0.3);
    margin-bottom: 2px; /* Reduced margin to bring the tagline closer */
}

.title-container p {
    font-family: 'Lora', serif;
    font-size: 0.7rem;
    font-weight: 400;
    
    color: #3de2e5; /* Updated to the requested color */
    margin: 0;
    margin-top: 2px;
    letter-spacing: 0.5px;
    display: block;
    margin-left: -3px; /* Slight adjustment to align with the company name */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

.logo-container:hover .title-container p {
    color: #ffcd00; /* Gold color on hover, same as the company name */
    filter: brightness(1.2); /* Add a slight brightness effect on hover */
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    color: #f3eded; /* Navigation links in #333333 */
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

nav a:visited {
    color: #fcf7f7;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: var(--transition);
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--light-text);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    background: linear-gradient(to right bottom, rgba(var(--secondary-color), 0.05), rgba(var(--accent-color), 0.05));
}

.video-container {
    width: 50%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: auto;
    position: relative;
}

video {
    width: 100%;
    display: block;
    height: auto;
    object-fit: contain;
    max-height: 100%;
}

/* Video Controls Enhancement */
video::-webkit-media-controls {
    opacity: 0.8;
    transition: opacity 0.3s;
}

video::-webkit-media-controls:hover {
    opacity: 1;
}

/* Fix video size consistency */
video.hero-video {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: 500px !important; /* Adjust this value as needed */
    display: block;
    aspect-ratio: 16/9; /* Maintain a consistent aspect ratio */
}

/* Our Presence Section */
.our-presence {
    background-color: #cdf3f9;
    text-align: center;
    padding: 50px 0;
}

.our-presence h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.our-presence .description {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.logos {
    display: flex;
    animation: scroll 100s linear infinite;
    width: calc(180px * 16); /* 8 logos * 2 for seamless loop */
}

.logos img {
    width: 150px;
    height: auto;
    margin: 0 15px;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 8)); /* Move by 8 logos width */
    }
}

/* Course Cards Section */
.courses {
    padding: 60px 0;
    background-color: var(--background-color);
}

.courses h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.course-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
}

.course-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.course-content p {
    color: #666;
    margin-bottom: 20px;
    min-height: 75px;
    font-family: 'Lora', serif;
    font-weight: 400;
    line-height: 1.6;
}

.btn-learn-more {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-learn-more:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Explore More Button */
.explore-more {
    text-align: center;
    margin: 30px 0;
    position: relative;
    z-index: 10;
}

.btn-explore {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.btn-explore:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-explore:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Additional Courses (Initially Hidden) */
.additional-courses {
    margin-top: 40px;
}

.additional-courses.hidden {
    display: none;
}

/* Course Levels Popup Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
    width: 100%;
    overflow: hidden; /* Prevent any horizontal scroll */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin: 0;
}

.footer-contact {
    flex: 1;
}

.footer-contact h4,
.footer-social h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-contact h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-social.right-align {
    flex: 1;
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(250, 250, 250, 0.942);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icons i {
    font-size: 1.2rem;
}

/* Twitter logo image styling */
.twitter-logo-img {
    width: 1.2rem;
    height: 1.2rem;
    filter: brightness(0) saturate(100%) invert(58%) sepia(96%) saturate(2618%) hue-rotate(190deg) brightness(101%) contrast(101%);
    /* This creates Twitter's signature blue color (#1DA1F2) */
}

.footer-social .twitter-logo-img {
    width: 1.7rem;
    height: 1.7rem;
}

/* Medium size for footer social icons (applies to all pages) */
.footer-social .social-icons a {
    font-size: 1.7rem;
    margin: 0 12px;
}
.footer-social .social-icons i {
    font-size: 1.7rem;
}
.footer-social .social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap; /* Allow wrapping on mobile */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chatbot Styles */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chatbot-button button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chatbot-button button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 998;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header button {
    color: white;
    font-size: 1.2rem;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.bot {
    background-color: #f0f0f0;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.message.user {
    background-color: var(--secondary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
}

.chatbot-input button {
    background-color: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Our Team Section */
.about-section .text-center:contains('Our Team'),
.about-section h2.text-center:contains('Our Team'),
.about-section h2.text-center + p.mb-5, /* the intro text */
.about-section .team-video-container,
.about-section .team-bio-row,
.about-section .team-grid {
    background: #e6ffe6 !important;
}

/* Fallback for the whole section if needed */
.about-section.our-team-section {
    background: #e6ffe6 !important;
}

.our-team-section {
    background: #cdf3f9 !important;
}

/* Remove any inline background from the section if present */
.our-team-section[style] {
    background: #cdf3f9 !important;
}

/* Founder name and title styling */
.team-bio-row h3 {
    font-family: 'Times New Roman', Times, serif;
}

.team-bio-row h3 .founder-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Changed from 400 to 700 for bold */
    font-size: 0.9em;
    display: inline-block;
    margin-top: 5px;
}

/* Team Member Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    margin-bottom: 15px;
    height: 250px; /* Fixed height for image container */
    overflow: hidden; /* Hide overflow */
}

.member-image img {
    width: 100%;
    height: 100%; /* Fill the fixed-height container */
    object-fit: cover; /* Maintain aspect ratio while covering the container */
    object-position: center; /* Center the image */
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.member-info h3 {
    margin-top: 10px;
    font-size: 1.2rem;
}

.role {
    font-weight: 600;
    margin: 8px 0;
    color: var(--primary-color);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Ensure all nav items are perfectly aligned */
nav ul li {
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    vertical-align: baseline;
    line-height: inherit;
    padding: 5px 0;
    color: #f3eded;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--accent-color);
}

.dropdown-toggle:visited {
    color: #fcf7f7;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.dropdown-toggle:hover::after {
    width: 100%;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1000;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        background-color: rgba(255, 255, 255, 0.98) !important;
        padding: 0;
        margin: 0;
        border-radius: 5px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle {
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu li a {
        padding: 15px 20px;
        color: #333 !important;
        background-color: transparent;
        border-left: 3px solid transparent;
        display: block;
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 0.95rem;
    }
    
    .dropdown-menu li a:hover,
    .dropdown-menu li a:focus,
    .dropdown-menu li a:active {
        border-left-color: var(--primary-color) !important;
        background-color: rgba(0, 153, 204, 0.15) !important;
        color: var(--primary-color) !important;
        font-weight: 600;
    }
    
    /* Prevent dropdown from closing when clicking inside */
    .dropdown-menu {
        pointer-events: auto;
    }
    
    /* Ensure dropdown toggle works properly on mobile */
    .dropdown-toggle {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    nav ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .logo-container {
        margin-left: 0px; /* Reset margin for better alignment on mobile */
    }
    
    .logo {
        height: 95px; /* Increased but still appropriate for mobile */
        margin-top: -12px;
        margin-bottom: -12px;
        transform: scale(1.02); /* Slightly reduced scale effect on mobile */
    }
    
    header h1 {
        font-size: 1.6rem;
        letter-spacing: 0.3px;
    }
      .title-container p {
        font-size: 0.8rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000; /* Ensure menu appears over other content */
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        padding-left: 10px; /* Add a little padding for better appearance */
    }
    
    nav ul li {
        width: 100%; /* Full width for touch targets */
    }
    
    nav ul li a {
        display: block;
        padding: 8px 0; /* Larger touch target */
    }

    .hamburger {
        display: flex;
        z-index: 1001; /* Ensure hamburger is always clickable */
        padding: 10px; /* Larger touch target */
        margin-right: -10px; /* Offset the padding */
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }    .hamburger.active {
        background-color: rgba(255,255,255,0.1); /* Slight highlight when active */
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }.course-content p {
        min-height: auto;
        font-family: 'Lora', serif; /* Ensure font consistency on mobile */
    }

    .chatbot-container {
        width: 300px;
        height: 400px;
        bottom: 80px;
        right: 20px;
    }
}

/* Mobile Button Touch Optimization */
@media (max-width: 768px) {
    /* Ensure buttons are properly sized for touch on mobile */
    .btn-learn-more, .btn-explore {
        min-height: 48px; /* Larger touch target for mobile */
        min-width: 48px;
        padding: 16px 28px;
        touch-action: manipulation; /* Prevents zoom on double-tap */
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        border: none;
        outline: none;
        display: block;
        text-align: center;
        position: relative;
        z-index: 100 !important; /* Higher z-index for mobile */
        pointer-events: auto !important;
        margin: 15px auto;
        width: auto;
        max-width: 280px;
        font-size: 16px;
        line-height: 1.2;
        background-color: var(--accent-color);
        color: var(--primary-color);
        border: 2px solid var(--accent-color);
        border-radius: 30px;
        font-weight: 700;
    }
    
    /* Specific Learn More button styling */
    .btn-learn-more {
        background-color: var(--primary-color) !important;
        color: var(--light-text) !important;
        border: 2px solid var(--primary-color) !important;
        font-size: 14px;
        padding: 12px 20px;
        margin-top: 15px;
        z-index: 200 !important;
    }
    
    .btn-learn-more:active,
    .btn-learn-more:focus {
        background-color: var(--secondary-color) !important;
        border-color: var(--secondary-color) !important;
        transform: scale(0.95) !important;
    }
    
    /* Ensure course cards don't interfere with button clicks */
    .course-card {
        position: relative;
    }
    
    .course-content {
        position: relative;
        z-index: 1;
    }
    
    /* Ensure explore more section is properly accessible */
    .explore-more {
        position: relative;
        z-index: 99 !important;
        padding: 20px;
        text-align: center;
        background: transparent;
        margin: 20px auto;
        clear: both;
    }
    
    /* When explore button is hidden, ensure the container is also hidden */
    .explore-more:has(.btn-explore[style*="display: none"]) {
        display: none !important;
    }
}

/* Prevent any overlay issues */
.course-card::before, 
.course-card::after {
    pointer-events: none;
}

/* Mobile-specific button override */
@media (max-width: 768px) {
    .btn-explore {
        /* Override any conflicting styles */
        display: block !important;
        position: relative !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        /* Make it more prominent for debugging */
        background-color: var(--accent-color) !important;
        color: var(--primary-color) !important;
        border: 2px solid var(--accent-color) !important;
        border-radius: 30px !important;
        padding: 18px 30px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        margin: 20px auto !important;
        width: fit-content !important;
        max-width: 300px !important;
        min-height: 50px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        /* Ensure visibility */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* When the button is hidden, ensure it's truly hidden */
    .btn-explore[style*="display: none"] {
        display: none !important;
        visibility: hidden !important;
    }
    
    .btn-explore:active,
    .btn-explore:focus {
        background-color: var(--primary-color) !important;
        color: var(--accent-color) !important;
        transform: scale(0.95) !important;
        outline: 2px solid var(--accent-color) !important;
    }
    
    /* Ensure the container doesn't block clicks */
    .explore-more {
        position: relative !important;
        z-index: 9998 !important;
        padding: 25px 15px !important;
        margin: 25px auto !important;
        background: transparent !important;
        pointer-events: auto !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%; /* Full width to remove side gaps */
        padding: 0 10px; /* Minimal padding to avoid content touching the edges */
    }
    
    .logo-container {
        margin-left: 0px; /* Reset margin to align with edge */
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    .logo {
        height: 85px; /* Increased but still appropriate for smallest screens */
        margin-top: -10px;
        margin-bottom: -10px;
        transform: scale(1); /* Remove scale effect on smallest screens */
    }
      .title-container p {
        font-size: 0.75rem;
    }
      section {
        padding: 40px 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-logo {
        align-items: center;
        margin-bottom: 10px;
    }
    
    .footer-contact {
        margin-bottom: 15px;
    }

    .footer-contact h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }
    
    .footer-social.right-align {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .chatbot-button {
        bottom: 20px;
        right: 20px;
    }    .chatbot-button button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Additional footer mobile styles */
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-social .social-icons a {
        margin: 0 8px;
        width: 36px;
        height: 36px;
    }
    
    .footer-social .social-icons i {
        font-size: 1.4rem;
    }

    .chatbot-container {
        width: calc(100% - 40px);
        height: 400px;
        right: 20px;
        left: 20px;
        bottom: 80px;
    }
}

@media (max-width: 375px) {
    .social-icons {
        gap: 5px;
    }
    
    .footer-social .social-icons a {
        margin: 0 5px;
        width: 32px;
        height: 32px;
    }
    
    .footer-social .social-icons i {
        font-size: 1.2rem;
    }
    
    .footer-contact p {
        font-size: 0.9rem;
    }
}

/* Emergency mobile button fix - highest priority */
@media screen and (max-width: 768px) {
    #explore-btn {
        /* Force the button to be clickable */
        position: relative !important;
        z-index: 99999 !important;
        display: block !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
        
        /* Make it highly visible for testing */
        background: #ff6600 !important;
        color: white !important;
        border: 3px solid #ff6600 !important;
        border-radius: 25px !important;
        padding: 15px 25px !important;
        font-size: 18px !important;
        font-weight: bold !important;
        margin: 15px auto !important;
        width: auto !important;
        max-width: 280px !important;
        min-height: 50px !important;
        text-align: center !important;
        line-height: 1.3 !important;
        
        /* Remove any potential blockers */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        clip: none !important;
    }
    
    #explore-btn:active,
    #explore-btn:focus {
        background: #e55a00 !important;
        transform: scale(0.95) !important;
    }
    
    .explore-more {
        position: relative !important;
        z-index: 99998 !important;
        display: block !important;
        clear: both !important;
        margin: 20px auto !important;
        padding: 20px 10px !important;
        text-align: center !important;
        background: transparent !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }
    
    /* Make sure nothing is blocking the button */
    .course-cards,
    .course-card,
    .course-content {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Our Presence Section - Mobile Width Reduction */
    .our-presence {
        width: 90%; /* Increase width for better mobile view */
        margin: 0 auto;
        padding: 30px 15px; /* Reduce padding for mobile */
    }
    
    .our-presence h2 {
        font-size: 1.5rem; /* Smaller heading for mobile */
        margin-bottom: 15px;
    }
    
    .our-presence .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .our-presence .description {
        max-width: 95%; /* Optimize description width for mobile */
        margin: 0 auto 20px;
        padding: 0 5px;
        font-size: 0.85rem; /* Smaller text for mobile */
        line-height: 1.4;
    }
