/* =========================================================
   Top Page Styles (Edel Hearts)
   ========================================================= */

/* Base Styles */
#edel-top-lp {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: clip;
    isolation: isolate;
    background: #ffffff;
    color: #182640;
    --text: #182640;
    --sub: #546e7a;
    --stroke: #e2e8f0;
    --brand: #21759b;
    /* Updated to Blue */
    --accent-blue: #38bdf8;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    line-height: 1.8;
}

/* Resets inside LP wrapper */
#edel-top-lp * {
    box-sizing: border-box;
}

#edel-top-lp a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

#edel-top-lp a:hover {
    opacity: 0.8;
}

#edel-top-lp img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
#edel-top-lp h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}

#edel-top-lp p {
    margin: 0 0 24px;
    color: var(--sub);
    font-size: 18px;
    /* Increased from default */
}

/* Container */
#edel-top-lp .edel-wrap {
    width: min(1200px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ... (Hero styles unchanged) ... */

/* --- Features (Flip Cards) --- */
#edel-top-lp .feature-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    #edel-top-lp .feature-cols {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

#edel-top-lp .feat-item {
    background: transparent;
    perspective: 1000px;
    height: 400px;
    /* Increased height for content */
    cursor: pointer;
}

#edel-top-lp .feat-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

#edel-top-lp .feat-item:hover .feat-inner {
    transform: rotateY(180deg);
    /* Remove animation on hover so it doesn't conflict */
    animation: none;
}

/* Hint Animation */
@keyframes flipHint {
    0%,
    100% {
        transform: rotateY(0);
    }

    20% {
        transform: rotateY(20deg);
    }

    40% {
        transform: rotateY(-15deg);
    }

    60% {
        transform: rotateY(10deg);
    }

    80% {
        transform: rotateY(-5deg);
    }
}

#edel-top-lp .feat-item.animate-hint .feat-inner {
    animation: flipHint 1.2s ease-in-out;
}

#edel-top-lp .feat-front,
#edel-top-lp .feat-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px solid var(--stroke);
    background: #fff;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

#edel-top-lp .feat-front {
    background-color: #fff;
    color: var(--text);
}

#edel-top-lp .feat-back {
    background-color: var(--text);
    color: #fff;
    transform: rotateY(180deg);
    border-color: var(--text);
}

#edel-top-lp .feat-back p {
    color: #fff;
    font-size: 16px !important;
    margin: 0;
    line-height: 1.8;
}

#edel-top-lp .feat-icon-box {
    font-size: 48px;
    color: var(--brand);
    /* Updated color */
    margin-bottom: 20px;
}

#edel-top-lp .feat-item h3 {
    font-size: 26px !important;
    /* Force override */
    font-weight: 800;
    margin-bottom: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.edel-wrap.hero-content p.line1 {
    margin: 40px 0 6px !important;
}

.edel-wrap.hero-content p.line2 {
    margin: 6px 0 60px !important;
}

/* --- Hero Section --- */
#edel-top-lp .hero {
    position: relative;
    padding: 200px 0 120px;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
}

#edel-top-lp .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(24, 38, 64, 0.45);
    z-index: 1;
}

#edel-top-lp .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

#edel-top-lp .hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

#edel-top-lp .hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 500;
}

#edel-top-lp .btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 99px;
    font-weight: 700;
    background: #fff;
    color: var(--text);
    transition: transform 0.2s;
}

#edel-top-lp .btn:hover {
    transform: translateY(-3px);
}

/* --- Udemy Section --- */
#edel-top-lp .udemy-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    /* Contain the scrolling text */
    background-color: #f8fafc;
    /* Clean background */
    border-bottom: 1px solid var(--stroke);
}

/* Background Scrolling Text */
#edel-top-lp .udemy-bg-scroll {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 20rem;
    /* Huge text */
    font-weight: 900;
    color: rgba(164, 53, 240, 0.1);
    /* Udemy Purple (#a435f0) with 10% opacity */
    /* Very faint watermark */
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
    z-index: 0;
    font-family: 'Montserrat', sans-serif;
    will-change: transform;
    /* Hint for performance */
}

#edel-top-lp .udemy-section .edel-wrap {
    position: relative;
    z-index: 2;
}

/* ... */

/* Background Scrolling Text */
#edel-top-lp .udemy-bg-scroll {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-800px, -50%);
    font-size: 20rem;
    /* Huge text */
    font-weight: 900;
    color: rgba(164, 53, 240, 0.4);
    /* Increased opacity for visibility */
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
    z-index: 0;
    font-family: 'Montserrat', sans-serif;
    will-change: transform;
}

#edel-top-lp .udemy-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.15);
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 540px;
    margin: 0 auto;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

#edel-top-lp .udemy-box:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
}

@media (max-width: 768px) {
    #edel-top-lp .udemy-box {
        flex-direction: column;
        text-align: center;
    }
}

#edel-top-lp .udemy-icon {
    width: 80px;
    height: 80px;
    background: #a435f0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
}

#edel-top-lp .udemy-content h3 {
    text-align: left;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

@media (max-width: 768px) {
    #edel-top-lp .udemy-content h3 {
        text-align: center;
    }
}

#edel-top-lp .udemy-content p {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0;
}

#edel-top-lp .udemy-badge {
    display: inline-block;
    background: #ffd700;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* --- Services Grid (Parallax & Enhanced) --- */
#edel-top-lp .section {
    padding: 100px 0;
}

#edel-top-lp .bg-gray {
    background: #f8fafc;
}

/* Enhanced Service Section */
#edel-top-lp .service-parallax-section {
    padding: 120px 0;
    position: relative;
    /* Default: No image on mobile/tablet */
    background-image: none;
    background-color: #182640;
    color: #fff;
}

@media (min-width: 1200px) {
    #edel-top-lp .service-parallax-section {
        background-image: url('/wp-content/uploads/20260124-9F767F.webp');
        background-attachment: fixed;
        background-size: 100% auto;
        /* Full width priority */
        background-repeat: no-repeat;
        background-position: center top;
    }
}

#edel-top-lp .service-parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(24, 38, 64, 0.5);
    /* Reduced opacity for visibility */
    z-index: 1;
}

#edel-top-lp .service-parallax-section .edel-wrap {
    z-index: 2;
}

#edel-top-lp .service-parallax-section h2 {
    color: #fff;
    margin-bottom: 60px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#edel-top-lp .service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    #edel-top-lp .service-grid {
        grid-template-columns: 1fr;
    }
}

#edel-top-lp .service-card {
    background: rgba(255, 255, 255, 0.1);
    /* Glassmorphismish */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#edel-top-lp .service-card:hover {
    transform: translateY(-5px);
    /* Make transparent on hover to show background */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    /* Reduce blur */
    border-color: rgba(255, 255, 255, 0.4);
}

#edel-top-lp .svc-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 30px;
    /* Icon colors are set inline or via specific classes in HTML */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#edel-top-lp .svc-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#edel-top-lp .svc-desc {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

#edel-top-lp .svc-link {
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand);
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 15px;
    transition: background 0.2s;
}

#edel-top-lp .svc-link:hover {
    background: #fff;
    color: var(--brand);
}

/* --- Features --- */
#edel-top-lp .feature-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    #edel-top-lp .feature-cols {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

#edel-top-lp .feat-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

#edel-top-lp .feat-item h3 {
    font-size: 26px !important;
    /* Force override */
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

#edel-top-lp .feat-item h3 small {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    color: var(--sub);
    opacity: 0.7;
    /* Lighter appearance */
    text-shadow: none;
}

/* --- News --- */
#edel-top-lp .news-list {
    max-width: 800px;
    margin: 0 auto;
}

#edel-top-lp .news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--stroke);
    align-items: center;
}

#edel-top-lp .news-date {
    font-size: 14px;
    color: var(--sub);
    font-weight: 600;
    min-width: 100px;
    margin-right: 20px;
    /* Fallback for gap */
}

#edel-top-lp .news-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 24px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 2px;
    flex-shrink: 0;
    margin-right: 20px;
    /* Fallback for gap */
    line-height: 1;
    /* Better vertical centering */
}

#edel-top-lp .label-news {
    background-color: #374151;
    /* Dark Grey */
}

#edel-top-lp .label-blog {
    background-color: var(--brand);
    /* Brand Color */
}

#edel-top-lp .news-title {
    font-size: 16px;
    font-weight: 700;
    display: block;
    /* Ensure block behavior inside flex item if needed, mainly for line-height handling */
    line-height: 1.5;
    /* Normalize line height */
}

#edel-top-lp .news-title:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #edel-top-lp .news-item {
        flex-wrap: wrap;
    }

    #edel-top-lp .news-date {
        margin-bottom: 8px;
    }

    #edel-top-lp .news-label {
        margin-bottom: 8px;
        margin-left: auto;
        margin-right: 0;
    }

    #edel-top-lp .news-title {
        width: 100%;
        flex-basis: 100%;
        margin-left: 0;
    }
}

/* --- Profile --- */
#edel-top-lp .profile-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--stroke);
}

@media (max-width: 700px) {
    #edel-top-lp .profile-card {
        flex-direction: column;
        text-align: center;
    }
}

#edel-top-lp .prof-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

#edel-top-lp .prof-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#edel-top-lp .prof-role {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#edel-top-lp .prof-name {
    font-size: 24px;
    font-weight: 700;
    margin: 5px 0 16px;
}

/* --- Contact CTA --- */
#edel-top-lp .cta-section {
    background: linear-gradient(135deg, #182640 0%, #2c3e50 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

#edel-top-lp .cta-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

#edel-top-lp .cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 18px;
}

/* Form overrides for dark bg */
#edel-top-lp .wpcf7-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    color: var(--text);
}

#edel-top-lp .wpcf7-text,
#edel-top-lp .wpcf7-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

#edel-top-lp .wpcf7-submit {
    width: 100%;
    padding: 16px;
    background: #182640;
    color: #fff;
    border: none;
    border-radius: 99px;
    font-weight: 700;
    cursor: pointer;
}

/* --- Custom Footer (LP Style) --- */
#edel-top-lp .edel-footer-cta {
    position: relative;
    padding: 80px 0;
    width: 100%;
    background-color: #182640;
    /* Critical Fallback */
    background-image: url('/wp-content/uploads/20260122-DC3671.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: #fff;
    text-align: center;
    margin-top: 0;
}

#edel-top-lp .edel-footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(24, 38, 64, 0.9);
    z-index: 1;
}

#edel-top-lp .edel-footer-cta .edel-wrap {
    position: relative;
    z-index: 2;
}

#edel-top-lp .edel-footer-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

#edel-top-lp .footer-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
    /* Matching other headings */
}

#edel-top-lp .footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9) !important;
    /* Override general p rule */
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Footer Links */
#edel-top-lp .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    flex-wrap: wrap;
}

#edel-top-lp .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

#edel-top-lp .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 600px) {
    #edel-top-lp .footer-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.edel-wrap .edel-button-wrapper a {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.edel-wrap .edel-button-wrapper a:hover {
    color: #fff !important;
}

.edel-wrap.hero-content a:hover {
    color: #fff !important;
}

.diagnosis-section .diagnosis-banner {
    background: linear-gradient(135deg, #182640 0%, #2a4066 100%);
    border-radius: 20px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(47, 249, 229, 0.3);
    position: relative;
    overflow: hidden;
}
.diagnosis-section .diagnosis-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(47, 249, 229, 0.1) 0%, transparent 70%);
    z-index: 0;
}
@media (max-width: 800px) {
    .diagnosis-section .diagnosis-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .diagnosis-section .diagnosis-banner::after {
        display: none;
    }
}

.diagnosis-section .diag-content {
    position: relative;
    z-index: 1;
    text-align: left;
}
@media (max-width: 800px) {
    .diagnosis-section .diag-content {
        text-align: center;
    }
}

.diagnosis-section {
    --accent-cyan: #2ff9e5; /* The requested accent color */
    --accent-blue: #38bdf8;
    --accent-green: #22c55e;
}

.diagnosis-section .diag-label {
    background: var(--accent-cyan);
    color: #182640;
    font-weight: 800;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}
.diagnosis-section .diag-title {
    font-size: 26px;
    margin-bottom: 10px;
    color: #fff !important;
    text-shadow: none !important;
}
.diagnosis-section .diag-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
}

.diagnosis-section .btn-cyan {
    background: var(--accent-cyan);
    color: #182640 !important;
    padding: 16px 40px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(47, 249, 229, 0.3);
}
.diagnosis-section .btn-cyan:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(47, 249, 229, 0.5);
}
