/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

/* Header Styles - Updated for background image */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Match image height */
    background-image: url('../../images/menu-large.jpg');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.scrolled {
    background-size: 100%;
    /* Maintain size on scroll */
}

.nav-container {
    display: flex;
    justify-content: center;
    /* Center content within dark part */
    align-items: center;
    max-width: 1000px;
    /* Match large image width for centering */
    margin: 0 auto;
    height: 100%;
    padding: 0 40px;
    /* Adjust padding to fit within dark center area */
    gap: 60px;
    /* Space between logo, menu, and right items */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00ffff;
    /* Cyan neon */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.logo img {
    width: auto;
    /* Updated to auto */
    height: 40px;
    /* Updated to 40px */
}

/* Logo switching for responsive display */
.logo .logo-full {
    display: block;
}

.logo .logo-small {
    display: none;
}

/* Desktop nav-menu - now hidden on all screen sizes, use hamburger menu instead */
.nav-menu {
    display: none !important;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex: 1;
    justify-content: center;
    /* Center menu items horizontally */
    max-width: 400px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    /* Increased from 16px */
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #00ffff;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ffff;
    transition: width 0.3s ease;
}

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

.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.language-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.language-flag:hover {
    transform: scale(1.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #00ffff;
    border-radius: 5px;
    list-style: none;
    min-width: 180px;
    /* Increased from 100px to fit flag + text */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

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

.dropdown-menu li a {
    display: flex;
    /* Changed to flex for better flag-text alignment */
    align-items: center;
    /* Vertical center flag and text */
    gap: 10px;
    /* Space between flag and text */
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
    background: rgba(0, 255, 255, 0.1);
}

.flag-small {
    /* Added class for dropdown flags to make them smaller */
    width: 24px;
    height: 16px;
    border-radius: 3px;
}

.login-btn {
    background: rgba(128, 0, 128, 0.8);
    /* Purple matching image */
    border: 1px solid #00ffff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-btn:hover {
    background: #00ffff;
    color: #000;
}

.teatcher-btn {
    background: rgba(4, 16, 125, 0.8);
    /* Blue matching image */
    border: 1px solid #00ffff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.teatcher-btn:hover {
    background: #00ffff;
    color: #000;
}

/* Coin Balance Button */
.coin-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    height: 60px;
    /* Match logo height */
    flex-shrink: 0;
}

.coin-btn:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.coin-btn img {
    height: 60px;
    /* Match logo height */
    width: auto;
    display: block;
}

.coin-balance-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: -10px;
    margin-top: 4px;
    /* Adjust left/right positioning as needed */
    color: #00ffff;
    /* Cyan blue */
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    pointer-events: none;
    text-decoration: none;
    line-height: 1;
}

.coin-balance-text.coin-balance-zero {
    color: #8b0000;
    /* Dark red for zero or negative balance */
}

@media (max-width: 768px) {
    .coin-btn {
        height: 50px;
    }

    .coin-btn img {
        height: 50px;
    }

    .coin-balance-text {
        font-size: 14px;
        margin-left: -8px;
        margin-top: 3px;
    }
}

/* Hamburger Menu - Always visible on all screen sizes */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1002;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #00ffff;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hide desktop nav-menu on ALL screen sizes */
.nav-menu {
    display: none !important;
}

/* Mobile menu - hidden by default, shown when active on ALL screen sizes */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    list-style: none;
    z-index: 1001;
}

.mobile-menu.active {
    display: flex !important;
}

/* X animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu li a {
    color: #fff;
    /* White text */
    text-decoration: none;
    font-size: 18px;
    /* Match desktop size */
    transition: color 0.3s ease;
}

.mobile-menu li a:hover,
.mobile-menu li a.active {
    color: #00ffff;
    /* Cyan on hover/active */
}

@media (max-width: 768px) {
    .mobile-menu {
        gap: 0px;
        padding: 10px 20px;
        box-sizing: border-box;
    }

    .mobile-menu li a {
        color: #fff;
        font-size: 1.3rem;
        padding: 12px 0;
        display: block;
    }

    .mobile-menu li a:hover,
    .mobile-menu li a.active {
        color: #00ffff;
    }
}

/* Responsive Background fanajo.com */
@media (max-width: 768px) {
    .header {
        top: 0;
        margin: 0;
        padding: 0;
        height: 50px;
        /* Reduced from 60px for small screens */
        background-color: rgba(0, 0, 0, 0.95);
        background-image: url('../../images/menu-small.jpg');
        background-size: 100%;
    }

    .nav-container {
        max-width: 600px;
        padding: 0 15px;
        gap: 15px;
    }

    .right-section {
        gap: 8px;
    }

    .logo {
        order: 1;
    }

    /* Swap logos: hide full logo, show small logo */
    .logo .logo-full {
        display: none;
    }

    .logo .logo-small {
        display: block;
    }

    .logo img {
        height: 35px;
    }

    .right-section {
        order: 2;
        display: flex;
        align-items: center;
    }

    /* Smaller buttons for mobile */
    .login-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .teatcher-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Smaller hamburger */
    .hamburger span {
        width: 24px;
        height: 2px;
    }

    .hamburger {
        gap: 4px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        top: 0;
        margin: 0;
        padding: 0;
        height: 60px;
        /* ← adjust to your actual mobile header height */
        background-color: rgba(0, 0, 0, 0.95);
        background-image: url('../../images/menu-medium.jpg');
        background-size: 100%;
    }

    .nav-container {
        max-width: 800px;
        padding: 0 30px;
        gap: 40px;
    }
}

/* Hero Section - Cleaned & Mobile Gap Fixed */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image: url('../../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Bottom fade to full transparency starting 150px from bottom */
    mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 150px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 150px), transparent 100%);
}

/* Carousel container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide - default padding only for larger screens */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    display: none;
    box-sizing: border-box;
}

.carousel-slide.active {
    opacity: 1;
    display: flex;
    align-items: flex-start;
}

/* Main content wrapper - no top padding by default */
.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    width: 100%;
    box-sizing: border-box;
}

/* Left text area */
.hero-left {
    flex: 1;
    max-width: 50%;
    z-index: 2;
}

.hero-left h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #00ffff;
}

.hero-left h2 {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 30px;
}

/* Button */
.start-free {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    color: #000;
    padding: 15px 30px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.start-free:hover {
    transform: scale(1.05);
}

/* Right image */
.hero-right {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.hero-right img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 50px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 50px), transparent 100%);
}

/* ────────────────────────────────────────────────
   RESPONSIVE - ZERO GAP ON SMALL SCREENS
───────────────────────────────────────────────── */

/* Large screens */
@media (min-width: 1025px) {
    .carousel-slide {
        padding-top: 140px;
    }
}

/* Medium screens (tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-slide {
        padding-top: 120px;
    }

    .slide-content {
        padding: 0 30px 60px;
    }

    .hero-left h1 {
        font-size: 3.2rem;
    }

    .hero-left h2 {
        font-size: 2.2rem;
    }
}


/* Small screens: Hide the right image completely */
@media (max-width: 768px) {
    .carousel-slide {
        padding-top: 0 !important;
        /* Force remove any top padding */
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px 60px !important;
        /* No top padding at all */
        margin-top: 0 !important;
    }

    .hero-left {
        max-width: 100%;
        margin-bottom: 35px;
        padding-top: 0px !important;
        /* Tiny breathing room only if needed - can be 0 */
        opacity: 0;
        animation: fadeIn 1.2s ease forwards 0.3s;
    }

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

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

    .hero-right {
        display: none !important;
        /* As per your previous request */
    }

    .hero-left h1 {
        font-size: 2.6rem;
        margin-bottom: 15px;
    }

    .hero-left h2 {
        font-size: 1.9rem;
        margin-bottom: 25px;
    }

    .start-free {
        padding: 14px 36px;
        font-size: 1.2rem;
    }
}

/* ================================================
   AI PROMPT GENERATOR SECTION - COMPLETE STYLES
   ================================================ */

.prompt-generator-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 45px 25px;
    border: 4px solid transparent;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    /* Green glow */
    background: linear-gradient(#000, #000) padding-box,
        linear-gradient(90deg, #00ff00, #00ffff) border-box;
    /* Green to cyan dual tone */
}

.prompt-generator-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../images/generator-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    /* 60% transparency = opacity 0.4 */
    z-index: 0;
}

.prompt-generator {
    position: relative;
    z-index: 1;
    text-align: center;
}

.prompt-generator h2 {
    font-size: 2.8rem;
    color: #00ff00;
    /* Green accent */
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}

.prompt-generator p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.prompt-generator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    box-sizing: border-box;
}

.prompt-generator-form textarea {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 15px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 150px;
    resize: vertical;
}

.prompt-generator-form textarea:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* CAPTCHA container & elements */
.generator-captcha-container {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.generator-captcha-code {
    font-size: 2.1rem;
    font-weight: bold;
    color: #00ff00;
    letter-spacing: 8px;
    background: #111;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid #00ff00;
    white-space: nowrap;
    flex-shrink: 0;
}

.generator-captcha-container input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    /* Green border for prompt generator */
    border-radius: 30px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Focus state - matches newsletter (pink/cyan shift) */
.generator-captcha-container input[type="text"]:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    /* softer green glow */
}

/* Optional: make placeholder text slightly visible */
.generator-captcha-container input[type="text"]::placeholder {
    color: #888;
}


/* Submit button */
.prompt-generator-form button {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #00ff00, #00ffff);
    border: none;
    border-radius: 30px;
    color: #000;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: bold;
    align-self: center;
    min-width: 220px;
}

.prompt-generator-form button:hover {
    transform: scale(1.05);
}

/* Messages */
.prompt-generator-success,
.prompt-generator-error {
    font-size: 1.3rem;
    margin: 25px 0;
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 100%;
    word-break: break-word;
}

.prompt-generator-success.visible,
.prompt-generator-error.visible {
    display: block;
}

.prompt-generator-success {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
}

.prompt-generator-error {
    color: #ff69b4;
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid #ff69b4;
}

@media (min-width: 768px) {
    .prompt-generator-wrapper {
        padding: 60px 40px;
        margin: 10px auto;
    }

    .prompt-generator-form {
        max-width: 75%;
    }

    /* CAPTCHA side by side + input matches width */
    .generator-captcha-container {
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .generator-captcha-container input {
        max-width: none;
        flex: 1;
    }

    .generator-captcha-code {
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .prompt-generator-wrapper {
        margin: 10px auto;
        padding: 40px 20px;
    }

    .prompt-generator h2 {
        font-size: 2.3rem;
    }

    .generator-captcha-container {
        flex-direction: column;
        gap: 14px;
    }

    .generator-captcha-code {
        font-size: 1.9rem;
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .prompt-generator-wrapper {
        padding: 10px auto;
    }

    .prompt-generator-form button {
        width: 100%;
        min-width: unset;
    }
}


/* Courses Section */
.courses {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    /* Reduced top padding */
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.courses-header h2 {
    font-size: 2.5rem;
    color: #00ffff;
}

.courses-tabs {
    display: flex;
    gap: 20px;
}

.courses-tabs a {
    color: #00ffff;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #00ffff;
    border-radius: 20px;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.courses-tabs a.active,
.courses-tabs a:hover {
    background: #00ffff;
    color: #000;
    pointer-events: auto;
    cursor: pointer;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background: #000;
    border: 1px solid #00ffff;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.course-card img {
    width: 100%;
    height: auto;
    border-radius: 15px 15px 0 0;
    display: block;
}

.course-card-content {
    padding: 25px;
}

.course-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
}

.course-card p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.enroll-btn {
    background: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 20px;
}

.enroll-btn:hover {
    background: #00ffff;
    color: #000;
}

/* Blog Section */
.blog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.blog-header h2 {
    font-size: 2.5rem;
    color: #ff69b4;
}

.blog-tabs {
    display: flex;
    gap: 20px;
}

.blog-tabs a {
    color: #ff69b4;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #ff69b4;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.blog-tabs a.active,
.blog-tabs a:hover {
    background: #ff69b4;
    color: #000;
}

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

.blog-card {
    background: #000;
    border: 1px solid #ff69b4;
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #00ffff);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
}

.blog-card img {
    width: 100%;
    height: auto;
    border-radius: 15px 15px 0 0;
    margin-bottom: 10px;
    display: block;
}

.meta {
    color: #ccc;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.blog-card p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.read-more {
    background: transparent;
    border: 1px solid #ff69b4;
    color: #ff69b4;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    width: auto;
    align-self: flex-start;
}

.read-more:hover {
    background: #ff69b4;
    color: #000;
}

/* Share Label + Icons */
.share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    flex-wrap: wrap;
}

.share-label {
    color: #ff69b4;
    /* matches your blog accent color */
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-right: 8px;
    /* space before icons */
    white-space: nowrap;
}

.share-btn,
.web-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 105, 180, 0.12);
    color: #ff69b4;
    font-size: 1.0rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.share-btn:hover,
.web-share-btn:hover {
    background: #ff69b4;
    color: #000;
    transform: scale(1.12);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .share-buttons {
        justify-content: flex-start;
        gap: 6px;
        padding-top: 12px;
    }

    .share-label {
        font-size: 0.7rem;
        margin-right: 5px;
    }

    .share-btn,
    .web-share-btn {
        width: 26px;
        height: 26px;
        font-size: 1.0rem;
    }
}


/* ================================================
   NEWSLETTER SECTION - COMPLETE UPDATED STYLES
   (Medium/large: side-by-side names + side-by-side captcha with matching width)
   ================================================ */

.newsletter-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 50px 25px;
    border: 4px solid transparent;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    background: linear-gradient(#000, #000) padding-box,
        linear-gradient(90deg, #00ffff, #ff00ff) border-box;
}

.newsletter-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../images/newsletter.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.newsletter {
    position: relative;
    z-index: 1;
    text-align: center;
}

.newsletter h2 {
    font-size: 2.8rem;
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.newsletter p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    box-sizing: border-box;
}

.newsletter-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.newsletter-row>* {
    flex: 1;
    min-width: 0;
}

/* All input fields base styling */
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    border-radius: 30px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.newsletter-form input:focus {
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* CAPTCHA container & elements */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.captcha-code {
    font-size: 2.1rem;
    font-weight: bold;
    color: #00ffff;
    letter-spacing: 8px;
    background: #111;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid #00ffff;
    white-space: nowrap;
    flex-shrink: 0;
}

.captcha-container input {
    width: 100%;
    max-width: 320px;
    min-width: 140px;
    flex: 1 1 auto;
    box-sizing: border-box;
}

/* Submit button */
.newsletter-form button {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 30px;
    color: #000;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: bold;
    align-self: center;
    min-width: 220px;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* Messages */
.newsletter-success,
.newsletter-error {
    font-size: 1.3rem;
    margin: 25px 0;
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 100%;
    word-break: break-word;
}

.newsletter-success.visible,
.newsletter-error.visible {
    display: block;
}

.newsletter-success {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
}

.newsletter-error {
    color: #ff69b4;
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid #ff69b4;
}

/* ─────────────────────────────────────────────
   RESPONSIVE RULES
────────────────────────────────────────────── */

@media (min-width: 768px) {
    .newsletter-wrapper {
        padding: 60px 40px;
        margin: 80px auto;
    }

    .newsletter-form {
        max-width: 75%;
    }

    /* First + Last name side by side */
    .newsletter-row>* {
        flex: 1 1 45%;
    }

    /* CAPTCHA side by side + input matches name fields width */
    .captcha-container {
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .captcha-container input {
        max-width: none;
        flex: 1;
    }

    .captcha-code {
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .newsletter-wrapper {
        margin: 60px 15px;
        padding: 40px 20px;
    }

    .newsletter h2 {
        font-size: 2.3rem;
    }

    .newsletter-row {
        flex-direction: column;
        gap: 16px;
    }

    .captcha-container {
        flex-direction: column;
        gap: 14px;
    }

    .captcha-code {
        font-size: 1.9rem;
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .newsletter-wrapper {
        padding: 35px 15px;
    }

    .newsletter-form button {
        width: 100%;
        min-width: unset;
    }
}

/* Partners & Opportunities Section - Complete Standalone CSS */
.partners-opportunities {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.partners-header {
    text-align: center;
    margin-bottom: 50px;
}

.partners-header h2 {
    font-size: 2.8rem;
    color: #00ffff;
    margin-bottom: 15px;
}

.partners-header p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.partner-card {
    background: #000;
    border: 1px solid #ff69b4;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff00ff, #00ff00);
    /* Dual-tone magenta to lime green */
    z-index: 2;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
    border-color: #00ff00;
}

.partner-card img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 15px 15px 0 0;
    /* Rounded top corners only */
    object-fit: cover;
}

.partner-card .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.partner-card h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
}

.partner-card p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.partner-btn {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
}

.partner-btn:hover {
    background: #00ff00;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .partners-header h2 {
        font-size: 2.3rem;
    }

    .partner-card .card-content {
        padding: 20px;
    }
}

/* Testimonials 
        .testimonials {
            max-width: 1200px;
            margin: 50px auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-around;
            gap: 20px;
        }
        .testimonial {
            background: rgba(0,0,0,0.5);
            border: 1px solid #00ffff;
            border-radius: 20px;
            padding: 20px;
            max-width: 300px;
            position: relative;
        }
        .testimonial::before {
            content: '"';
            font-size: 4rem;
            color: #00ffff;
            position: absolute;
            top: -10px;
            left: 10px;
        }
        .testimonial img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-bottom: 10px;
        }
        .testimonial p {
            color: #ccc;
            font-style: italic;
        } 
        */

/* Footer Styles - Updated */
.footer {
    background-image: url('../../images/footer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px 20px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-goal {
    flex: 1;
}

.footer-goal h3 {
    font-size: 1.9rem;
    color: #00ffff;
    margin-bottom: 18px;
}

.footer-goal p {
    color: #ddd;
    line-height: 1.7;
    max-width: 500px;
}

.footer-logo {
    display: block;
    width: auto;
    /*max-width: 33%;*/
    height: 50px;
    margin-top: 20px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.4));
}

.footer-contact-social {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 15px;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-contact a {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-social ul {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-social h4 {
    display: inline-block;
    margin-right: 15px;
    vertical-align: middle;
}

.footer-social li a {
    color: #00ffff;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.footer-social li a:hover {
    color: #fff;
    transform: scale(1.2);
}

.footer-legal {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    border-top: 1px solid #00ffff;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-legal ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0 15px;
    flex-wrap: wrap;
}

.footer-legal li a {
    color: #eee;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-legal li a:hover {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.footer-copyright {
    text-align: center;
    color: #eee;
    font-size: 0.95rem;
    padding: 0 20px 30px;
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 50px;
    }

    .footer-goal {
        text-align: center;
    }

    .footer-logo {
        margin: 0px auto 0;
    }

    .footer-social ul {
        justify-content: center;
    }

    .footer-social h4 {
        display: block;
        margin: 0 0 10px;
        text-align: center;
    }

    .footer-legal ul {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 50px 15px 0;
    }

    .footer-goal h3,
    .footer-contact h4,
    .footer-social h4 {
        font-size: 1.6rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 160px 20px 20px;
        /* Adjust for mobile header, updated bottom */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 20px;
    }

    .testimonials {
        flex-direction: column;
        align-items: center;
    }

    .course-card img {
        border-radius: 10px;
    }

    .course-card-content {
        padding: 15px;
    }

    .enroll-btn {
        margin-top: 15px;
    }

    .blog-card {
        padding: 15px;
    }

    .blog-card img {
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .read-more {
        margin-top: 10px;
    }

    .share-buttons {
        justify-content: flex-start;
        gap: 5px;
    }

    .share-btn {
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-social ul {
        justify-content: center;
    }

    .footer-legal ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .courses-header {
        flex-direction: column;
        gap: 20px;
    }

    .blog-header {
        flex-direction: column;
        gap: 20px;
    }

    .nav-container {
        gap: 10px;
        padding: 0 10px;
    }

    .footer {
        padding: 40px 20px 0;
    }
}

/* ================================================
   COOKIE CONSENT POPUP - FANAJO STYLE
   ================================================ */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid #00ffff;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.35);
    z-index: 9999;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-consent.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in animation on first load */
@keyframes cookieFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body:not(.cookies-processed) .cookie-consent {
    animation: cookieFadeIn 0.8s ease forwards 0.6s;
}

.cookie-content {
    padding: 24px 28px;
    text-align: center;
}

.cookie-text {
    color: #ddd;
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 22px;
}

/* ← Added proper link styling inside cookie text */
.cookie-text a,
.cookie-text a:visited {
    color: #00ffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.cookie-text a:hover,
.cookie-text a:focus {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
    text-decoration-thickness: 2px;
    transform: translateY(-1px);
}

.cookie-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.cookie-decline {
    background: rgba(255, 50, 50, 0.18);
    color: #ff5050;
    border-color: #ff5050;
}

.cookie-decline:hover {
    background: #ff5050;
    color: #000;
    transform: translateY(-2px);
}

.cookie-accept {
    background: linear-gradient(45deg, #00ffff, #00ffaa);
    color: #000;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.cookie-accept:hover {
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.7);
}

/* Reset button - now fixed to BOTTOM-LEFT corner */
.cookie-reset-wrapper {
    position: fixed;
    bottom: 25px;
    left: 25px;
    /* ← Changed from right:25px to left:25px */
    z-index: 9998;
}

.cookie-reset-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.18);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.cookie-reset-btn:hover {
    background: #00ffff;
    color: #000;
    transform: rotate(15deg) scale(1.15);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

/* Optional: Make it less intrusive on very small screens */
@media (max-width: 480px) {
    .cookie-reset-wrapper {
        bottom: 5px;
        /* lift it up a bit so it doesn't overlap mobile menu */
        left: 15px;
    }

    .cookie-reset-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .cookie-consent {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
        max-width: none;
    }

    .cookie-content {
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-btn {
        width: 100%;
        min-width: unset;
    }
}

/* View All Courses Button */
.view-all-courses-wrapper {
    text-align: center;
    margin: 40px auto;
    max-width: 250px;
}

.view-all-courses-btn {
    display: inline-block;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
    background: linear-gradient(45deg, #00bfff, #00ff88);
    color: #000;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-all-courses-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.8);
    background: linear-gradient(45deg, #00d4ff, #33ffaa);
}