/* ======== GOOGLE FONT ======== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ======== CSS VARIABLES (COLOR PALETTE) ======== */
:root {
    --primary-color: #4b5c09;
    --dark-color: #121212;
    --secondary-dark: #333;
    --light-color: #f4f4f4;
    --text-color: #555;
    --white-color: #fff;
    --border-color: #ddd;
    --header-height: 120px;

    /* Theme variables */
    --bg-color: #fff;
    --header-bg: #fff;
    --section-bg: #fff;
    --card-bg: #fff;
    --footer-bg: var(--dark-color);
    --footer-bottom-bg: var(--secondary-dark);
    --header-text-color: var(--dark-color);
    --footer-text-color: #ccc;
    --footer-heading-color: var(--white-color);

    --top-bar-bg: var(--primary-color);
    --top-bar-text: var(--white-color);

}

/* Alternative: Make top bar change with theme */




.theme-toggle-label {
    margin-right: 10px;
    font-size: 14px;
    color: var(--top-bar-text);
}

/* Yellow theme variables */
body.yellow-theme {
    --top-bar-bg: #ffecb3;
    /* Light yellow for top bar */
    --top-bar-text: #333;
    --bg-color: #fffef5;
    --header-bg: #fff9e6;
    --section-bg: #fffef5;
    --card-bg: #fffef5;
    --border-color: #ffecb3;
    --footer-bg: #fff9e6;
    --footer-bottom-bg: #ffecb3;
    --header-text-color: #121212;
    --footer-text-color: #333;
    --footer-heading-color: #121212;
}

/* ======== GLOBAL STYLES ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: var(--header-height);
    /* Padding for fixed header */
}

#hero {
    position: relative;
    min-height: 100vh;
    /* allows more space if content grows */
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* blurred background layer */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: url("images/career.png") center/cover no-repeat;
    filter: blur(6px) brightness(0.4);
    /* blur + darken */
    transform: scale(1.05);
    /* avoid edge blur lines */
    z-index: 0;
}

/* transparent overlay (optional tint) */
#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    /* light tint */
    z-index: 1;
}

/* content */
#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    margin-top: -40px;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #ffffff;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 60px;
    color: #f0f0f0;
}

#hero .btn {
    margin-bottom: 120px;
    display: inline-block;
    margin: 8px;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-color);
}

h1,
h2,
h3,
h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.4rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title.light {
    color: var(--white-color);
}

.content-section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.bg-light {
    background-color: var(--light-color) !important;
}

body.yellow-theme .bg-light {
    background-color: #fff9e6 !important;
}

.bg-dark {
    background-color: var(--dark-color);
    color: var(--light-color);
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

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

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

.btn-primary-vision:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-primary-vision {
    display: block;
    margin: 0 auto;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    text-align: center;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}

.btn-primary-light {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
}

.btn-primary-light:hover {
    background-color: transparent;
    color: var(--white-color);
}

/* ======== HEADER ======== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--top-bar-text);
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--top-bar-text);
    margin-right: 20px;
}
.top-bar a:hover {
    opacity: 0.8;
}

.social-icons a {
    margin: 0 8px;
}

.btn-login {
    background: rgb(255, 255, 255);
    color: rgb(255, 123, 0) !important;
    /* text stays orange when not hovered */
    padding: 5px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    /* smooth hover effect (optional) */
}

.btn-login:hover {
    background: var(--light-color);
    color: var(--primary-color);
    /* or keep orange if you prefer */
}

.main-nav {
    padding: 15px 0;
    background-color: var(--header-bg);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
}

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

.nav-link {
    color: var(--header-text-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--header-text-color);
    transition: all 0.3s ease-in-out;
}

/* --- Sticky Header (Advanced) --- */
#main-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .top-bar {
    display: none;
    /* Hide top bar on scroll */
}

#main-header.scrolled .main-nav {
    padding: 10px 0;
}

#main-header.scrolled .nav-logo img {
    height: 35px;
}

/* ======== VALUES & ABOUT SECTION ======== */
#values-content .container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

.sidebar ul {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.sidebar li a {
    display: block;
    padding: 15px 20px;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    cursor: pointer;
}

.sidebar li:last-child a {
    border-bottom: none;
}

.sidebar li.active a,
.sidebar li a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.brochure-box {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
}

.btn-download {
    display: inline-block;
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
}

.btn-download:hover {
    background-color: var(--secondary-dark);
}

/* --- New Content Panel Styles --- */
.content-panel {
    padding: 20px;
    display: none;
    /* Hide all panels by default */
    text-align: center;
    /* Centers all text and inline elements */
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.content-panel.active {
    display: block;
    /* Show the active panel */
}

/* Centered headings with icons */
.content-panel h3 {
    display: inline-flex;
    /* keeps both icon & text tightly grouped */
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 auto 20px auto;
    /* ensures horizontal centering */
}

/* Icon style inside headings */
.content-panel h3 i {
    font-size: 1.6rem;
    color: var(--primary-color);
}

/* Paragraph text styling */
.content-panel p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-color);
}

/* Centered images with nice visuals */
.content-panel img {
    display: block;
    margin: 20px auto;
    /* centers horizontally */
    width: 80%;
    /* adjust if needed */
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Centered buttons like "View Open Positions" */
.content-panel .btn-primary-vision {
    display: block;
    margin: 20px auto;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Button hover effect */
.content-panel .btn-primary-vision:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* --- End New Styles --- */

.values-image-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.image-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.image-overlay-text h2 {
    color: var(--white-color);
    font-size: 2.5em;
    border: 3px solid var(--white-color);
    padding: 10px 20px;
}

.values-text-content {
    display: flex;
    flex-direction: column;
    /* stack items vertically */
    gap: 40px;
    /* space between each value */
}

.value-item {
    width: 100%;
    padding: 20px 0;
}

/* Center the heading + icon */
.value-item h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Style the icon nicely */
.value-item h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Left-align the paragraph text */
.value-item p {
    text-align: left;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    /* keeps it centered in layout, text still left-aligned */
}

.value-item i {
    margin-right: 8px;
}

/* ======== HOW IT WORKS SECTION ======== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--card-bg);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ======== SERVICES SECTION ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
}

.read-more {
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* ======== TESTIMONIALS SECTION ======== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--secondary-dark);
    padding: 30px;
    border-radius: 8px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.testimonial-card p::before {
    content: '\f10d';
    /* Font Awesome quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.client-info {
    display: flex;
    align-items: center;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

.client-info h4 {
    color: var(--white-color);
    margin: 0;
}

.client-info span {
    font-size: 0.9rem;
    color: #bbb;
}

/* ======== CTA SECTION ======== */
#cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px 0;
}

#cta .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#cta h2 {
    color: var(--white-color);
    font-size: 1.8rem;
    margin: 0;
}

/* ======== FOOTER ======== */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding-top: 60px;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    display: block;
    margin: 0 auto 20px auto;
    /* centers horizontally */
    height: 40px;
}

.footer-col h4 {
    color: var(--footer-heading-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--footer-text-color);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    /* keeps icon top-aligned with wrapped text */
    gap: 20px;
    /* spacing between icon and text */
    color: var(--footer-text-color);
    line-height: 1.5;
    margin: 8px 0;
}

.footer-contact i {
    color: var(--primary-color);
    /* icon color */
    font-size: 1.2rem;
}

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

.footer-col ul li a {
    color: var(--footer-text-color);
}

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

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    border: none;
    cursor: pointer;
}

.footer-bottom {
    background-color: var(--footer-bottom-bg);
    color: var(--footer-text-color);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

.payment-icons {
    margin-top: 10px;
}

.payment-icons i {
    font-size: 2rem;
    color: var(--footer-text-color);
    margin: 0 10px;
}

/* ======== ANIMATIONS (Advanced) ======== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== CONTACT SECTION ======== */
.contact-section {
    background-color: var(--section-bg);
    padding: 80px 20px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 25px;
}

/* Form Section */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-box {
    padding: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-color);
    transition: border-color 0.3s, background-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--card-bg);
    outline: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Info Section */
.contact-info-box {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #333;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

.info-item a {
    color: #007bff;
    text-decoration: none;
    font-size: 1rem;
}

.info-item a:hover {
    text-decoration: underline;
}

.address p {
    margin: 0;
    line-height: 1.5;
}

/* Service Detail Styles */
.back-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 20px;
    cursor: pointer;
}

.back-btn i {
    margin-right: 5px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-detail {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease-in-out;
    border: 1px solid var(--border-color);
}

.service-detail ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-top: 10px;
    line-height: 1.7;
}

.service-detail li {
    margin-bottom: 5px;
}

/* ======== RESPONSIVE DESIGN ======== */
@media(max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    #hero h1 {
        font-size: 3rem;
    }

    #values-content .container {
        grid-template-columns: 1fr;
    }

    .values-text-content {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    body {
        padding-top: 70px;
        /* Adjust for smaller fixed header */
        --header-height: 70px;
    }

    .top-bar {
        display: none;
        /* Hide top bar on mobile */
    }

    #main-header.scrolled .main-nav,
    .main-nav {
        padding: 10px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        /* Match header height */
        flex-direction: column;
        background-color: var(--header-bg);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 30px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.2rem;
        color: var(--header-text-color);
    }

    .hamburger {
        display: block;
    }

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

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

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

    #hero {
        min-height: 112vh;
    }

    #hero h1 {
        margin-top: -180px;
        font-size: 2.0rem;
        margin-bottom: 80px;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 80px;
    }

    .steps-grid,
    .services-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    #cta .container {
        flex-direction: column;
        text-align: center;
    }

    #cta h2 {
        margin-bottom: 20px;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .contact-info-box {
        padding: 20px 15px;
        text-align: left;
        /* keep info aligned naturally */
    }

    .info-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .info-item i {
        font-size: 1rem;
        margin-right: 8px;
    }

    .submit-btn {
        font-size: 0.95rem;
        padding: 12px;
    }
}

/* Prevent mobile horizontal overflow */
html,
body {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    /* slightly smaller padding helps */
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* ensures no inline spacing */
}

/* Theme toggle styles */
.theme-toggle-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 15px;
}

/* Desktop toggle - visible on larger screens */
.desktop-toggle {
    display: flex;
}

/* Mobile toggle - hidden on larger screens */
.mobile-toggle {
    display: none;
}

.mobile-theme-toggle {
    display: none; /* Hidden on desktop */
}

.theme-toggle-label {
    margin-right: 10px;
    font-size: 14px;
    color: var(--white-color);
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.theme-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--light-color);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .theme-toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .theme-toggle-slider:before {
    transform: translateX(30px);
}

/* Yellow theme specific adjustments */
body.yellow-theme .theme-toggle-label {
    color: var(--header-text-color);
}

/* Mobile styles */
@media(max-width: 768px) {
    /* Hide desktop toggle on mobile */
    .desktop-toggle {
        display: none !important;
    }
    
    /* Show mobile toggle in navigation */
    .mobile-theme-toggle {
        display: block;
        padding: 15px 20px;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
    }
    
    .mobile-toggle {
        display: flex;
        justify-content: center;
        margin: 0;
    }
    
    .mobile-toggle .theme-toggle-label {
        color: var(--header-text-color);
        font-size: 16px;
    }
    
    /* Adjust mobile theme toggle appearance */
    .mobile-theme-toggle .theme-toggle-container {
        margin: 0;
        justify-content: center;
    }
}
