/* ======================================================
   LingualSync — PUBLIC UI ONLY
   Applies to: index.php, login.php, signup.php
====================================================== */

:root {
    --primary: #02355c;
    --primary-light: #0d4a7a;
    --accent: #f4a21f;
    --accent-dark: #ea8111;
    --text-main: #111827;
    --text-muted: #4b5563;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", system-ui, sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

html {
    scroll-behavior: smooth;
}

/* ==============================
   NAVBAR
============================== */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 53, 92, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links .login-btn {
    background: var(--accent);
    color: var(--primary);
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(244, 162, 31, 0.3);
}

.nav-links .login-btn:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==============================
   HERO SECTION
============================== */
.lp-hero-premium {
    min-height: 100vh;
    background: var(--bg-light); 
    position: relative;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-left h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 800;
}

.hero-left h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: var(--text-muted);
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 15px;
}

.hero-btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    font-size: 15px;
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(234, 129, 17, 0.3);
    border: none;
}

.hero-btn.secondary {
    border: 2px solid var(--accent-dark);
    color: var(--accent-dark);
    background: transparent;
}

.hero-btn:hover {
    transform: translateY(-3px);
}

.hero-btn.secondary:hover {
    background: rgba(234, 129, 17, 0.05);
}

.what-we-do-wrapper {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.what-we-do-backdrop {
    position: absolute;
    top: 20px; 
    left: -20px; 
    right: 20px; 
    bottom: -20px;
    background: var(--accent);
    border-radius: 40px 10px 40px 10px;
    z-index: 1;
    opacity: 0.8;
}

.what-we-do-card.new-shape {
    position: relative;
    z-index: 2;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px 40px 10px 40px; 
    padding: 45px 35px;
    box-shadow: 0 20px 40px rgba(2, 53, 92, 0.25);
}

.what-we-do-card.new-shape h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.what-we-do-card.new-shape h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 40px; height: 3px;
    background: var(--white);
    border-radius: 5px;
}

.what-we-do-card.new-shape ul {
    list-style: none;
}

.what-we-do-card.new-shape ul li {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 12px;
}

.what-we-do-card.new-shape ul li .icon {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ==============================
   ABOUT SECTION
============================== */
.about-premium {
    padding: 100px 0;
    background: var(--white);
}

/* 2-Column Split for About Text & Image */
.about-top-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 70px;
}

.about-left .about-header {
    text-align: left;
    margin-bottom: 20px;
}

.about-left .about-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.about-left .about-intro {
    font-size: 1.2rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-top: 8px;
}

.about-left .about-text-content {
    text-align: left;
    color: var(--text-muted);
}

.about-left .about-text-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* About Right Side Image Styles */
.about-right {
    position: relative;
}

.about-image-container {
    position: relative;
    z-index: 1;
    padding-right: 25px;
    padding-bottom: 25px;
}

/* Decorative backdrop box behind the image */
.about-image-container::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 0;
    bottom: 0;
    left: 25px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.85;
}

.about-image-container img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(2, 53, 92, 0.15);
    display: block;
    object-fit: cover;
}

/* Existing grids */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.about-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(2, 53, 92, 0.08);
}

.about-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card ul {
    padding-left: 20px;
    color: var(--text-muted);
}

.about-card ul li {
    margin-bottom: 12px;
}

.values-section {
    text-align: center;
    margin-top: 60px;
}

.center-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.values-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.values-row span {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 6px 15px rgba(2, 53, 92, 0.2);
    transition: var(--transition);
}

.values-row span:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.about-experience {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(2, 53, 92, 0.2);
}

.about-experience h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.about-experience p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 1.05rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================
   COURSES SECTION
============================== */
.courses-section {
    padding: 40px 5%;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

.course-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.course-slider.collapsed .course-card:nth-child(n+4) {
    display: none;
}

.view-all-container {
    text-align: center;
    margin-top: 45px;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2, 53, 92, 0.1);
}

.card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.card-header h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.course-card ul {
    padding-left: 20px;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.course-card ul li {
    margin-bottom: 8px;
}

.enroll-btn {
    margin-top: auto;
    display: block;
    background: var(--primary);
    color: var(--white);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.course-card:hover .enroll-btn {
    background: var(--accent);
    color: var(--white);
}

/* ==============================
   TESTIMONIALS (MODERN SLIDER)
============================== */
.testimonials-modern {
    padding: 100px 0;
    background: var(--white); 
    text-align: center;
    border-top: 1px solid #eaeaea;
}

.testimonials-header {
    margin-bottom: 40px;
}

.avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.avatars img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -15px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.avatars img:first-child {
    margin-left: 0;
}

.rating-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rating-text .star {
    color: #ffb703;
    font-size: 1.4rem;
}

.rating-text strong {
    color: var(--text-main);
    font-size: 1.3rem;
}

.testimonials-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-top: 10px;
}

.testimonial-carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    padding: 20px 5px;
}

.testimonial-track::-webkit-scrollbar {
    display: none; 
}

.testimonial-card {
    max-width: 100%;
    min-width: calc(33.333% - 20px); 
    background: var(--bg-light);
    border-radius: 20px;
    padding: 35px 30px;
    scroll-snap-align: center;
    flex-shrink: 0;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    flex-grow: 1;
}

.testimonial-user {
    margin-top: 25px;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    font-size: 1rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

.nav-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.prev-btn {
    background: #b0b0b0; 
    color: var(--white);
}

.next-btn {
    background: #000000; 
    color: var(--white);
}

.nav-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.dots-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3d3d3;
    cursor: pointer;
    transition: 0.3s ease;
}

.dot.active {
    width: 28px; 
    border-radius: 5px;
    background: #000000;
}

@media(max-width: 992px) {
    .testimonial-card {
        min-width: calc(50% - 15px); 
    }
}

@media(max-width: 600px) {
    .testimonial-card {
        min-width: calc(100% - 10px); 
    }
}

/* ==============================
   CONTACT SECTION
============================== */
.contact-section {
    padding: 40px 0;
    background: var(--bg-light);
    text-align: center;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 20px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    top: 0;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2, 53, 92, 0.1);
    border-color: var(--accent);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(2, 53, 92, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.contact-card:hover .icon-circle {
    background: var(--primary);
    color: var(--white);
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==============================
   FLOATING HELP WIDGET
============================== */
.floating-help {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-text {
    background: var(--white);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: floatPulse 3s infinite ease-in-out;
}

.help-icon img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.help-icon:hover img {
    transform: scale(1.1);
}

.close-help {
    cursor: pointer;
    background: var(--white);
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: -10px;
    right: -10px;
    font-weight: bold;
}

@keyframes floatPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==============================
   FOOTER
============================== */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 25px 0;
    text-align: center;
    font-size: 0.95rem;
}

/* ==============================
   RESPONSIVE DESIGN (MOBILE & TABLET)
============================== */
@media (max-width: 1024px) {
    .hero-content-wrap {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-left h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .landing-header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .lp-hero-premium {
        padding-top: 180px;
    }

    /* Stack About section elements on smaller screens */
    .about-top-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-left .about-header,
    .about-left .about-text-content {
        text-align: center;
    }

    .about-image-container {
        padding-right: 15px;
        padding-bottom: 15px;
    }

    .about-image-container::before {
        top: 15px;
        left: 15px;
    }

    .about-left .about-header h2,
    .section-title,
    .testimonials-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-left h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-btn { width: 100%; text-align: center; margin-bottom: 10px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 0;}
    
    .nav-links a { font-size: 13px; }
    
    .what-we-do-wrapper { padding: 0 15px; }
    
    .floating-help {
        right: 20px;
        bottom: 20px;
    }
    .help-text { display: none; }
}

/* ======================================================
   LOGIN & SIGNUP STYLES (Kept completely untouched)
====================================================== */
.auth-wrapper,
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 980px;
    background: #fff;
    border-radius: 22px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.auth-left {
    flex: 1;
    background: #02355c;
    color: #f7bd57;
    padding: 80px 60px;
    position: relative;
}

.auth-left h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.auth-right {
    flex: 1;
    padding: 60px 50px;
    background:#f7bd57bd;
}

.auth-right h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #02355c;
}

.auth-right input,
.auth-right select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin-bottom: 16px;
}

.login-btn button {
    background: #02355c;
    color: #f7bd57;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.auth-links a {
    font-size: 14px;
    color:#02355c;
    font-weight: 600;
}

.error {
    background: #ffe1e1;
    color: #b00020;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    font-size: 16px;
}

@media (max-width: 900px) {
    .auth-card { flex-direction: column; }
}

.hero-content-wrap.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1;
    display: flex;
    gap: 15px;
}

.hero-right img {
    width: 50%;
    border-radius: 15px;
    object-fit: cover;
}

.blog-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-card img {
    width: 100%;
    border-radius: 10px;
}

.blog-card a {
    color: #007bff;
    font-weight: 500;
}

.form-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-section input,
.form-section textarea,
.form-section select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.form-section button {
    background: #000;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}