/* ===========================================
   SERVICE DETAIL PAGES STYLING
   =========================================== */

/* Page Title Section */
/* Page Title Section */
.page-title {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    padding: 80px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.page-title .heading {
    position: relative;
    z-index: 2;
}

.page-title .service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-title .service-badge i {
    font-size: 16px;
}

.page-title h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    letter-spacing: -1px;
}

.page-title p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* More compact page title */
.page-title-animated {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    padding: 60px 0 45px;
    /* Reduced from 80px/60px to make it more compact */
    position: relative;
    overflow: hidden;
}

/* Animated Translation Text Background - More subtle and compact */
.page-title-animated::before {
    content: "Hello • Hola • Bonjour • こんにちは • 你好 • Ciao • Привет • مرحبا • Olá • Hallo     Translation • Traducción • Traduction • 翻訳 • 翻译 • Traduzione • Перевод • ترجمة • Tradução • Übersetzung     Language • Idioma • Langue • 言語 • 语言 • Lingua • Язык • لغة • Língua • Sprache";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 200%;
    opacity: 0.9;
    /* More subtle */
    pointer-events: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 8vw, 100px);
    /* Smaller, more compact */
    line-height: 2;
    color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    animation: slideRightSmooth 80s linear infinite;
    z-index: 0;
}

/* Decorative Document Elements */
.page-title-animated::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 200px;
    top: 15%;
    right: 8%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transform: rotate(12deg);
    animation: floatDocument 8s ease-in-out infinite;
    z-index: 1;
}

/* Floating Translation Icons */
.page-title-animated .heading::before {
    content: "📄";
    position: absolute;
    left: 5%;
    top: 20%;
    font-size: 60px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.page-title-animated .heading::after {
    content: "🌐";
    position: absolute;
    right: 10%;
    bottom: 10%;
    font-size: 50px;
    opacity: 0.1;
    animation: float 7s ease-in-out infinite 2s;
    z-index: 1;
}

/* Language Symbol Decorations */
.page-title-animated .breadcrumbs::before {
    content: "A";
    position: absolute;
    left: 12%;
    top: -60px;
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
    z-index: 1;
}

.page-title-animated .breadcrumbs::after {
    content: "語";
    position: absolute;
    right: 15%;
    top: -50px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 70px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    z-index: 1;
}

/* Compact heading styles */
.page-title-animated h1 {
    font-size: 42px !important;
    /* Reduced from 48px */
    font-weight: 800;
    margin-bottom: 12px !important;
    /* More compact */
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.page-title-animated p {
    font-size: 16px !important;
    /* Reduced from 18px */
    margin-bottom: 0;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.page-title-animated .service-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    padding: 6px 18px !important;
    /* More compact */
    font-size: 12px !important;
    margin-bottom: 14px !important;
    position: relative;
    z-index: 2;
}

/* Ensure text is white on dark background */
.page-title-animated h1,
.page-title-animated .service-badge,
.page-title-animated p {
    color: white !important;
}

.page-title-animated .breadcrumbs ol li a {
    color: rgba(255, 255, 255, 0.9);
}

.page-title-animated .breadcrumbs ol li {
    color: rgba(255, 255, 255, 0.7);
}

.page-title-animated .breadcrumbs ol li.current {
    color: rgba(255, 255, 255, 0.95);
}

/* Translation Symbols Floating Around */
.page-title-animated .container {
    position: relative;
}

.page-title-animated .container::before {
    content: "⟳";
    position: absolute;
    right: 5%;
    top: 30%;
    font-size: 45px;
    color: rgba(255, 255, 255, 0.08);
    animation: rotate360 10s linear infinite;
    z-index: 1;
}

.page-title-animated .container::after {
    content: "⇄";
    position: absolute;
    left: 8%;
    bottom: 20%;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.08);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

/* Smooth Animations */
@keyframes slideRightSmooth {
    0% {
        transform: translateY(-50%) translateX(-50%);
    }

    100% {
        transform: translateY(-50%) translateX(0%);
    }
}

@keyframes floatDocument {

    0%,
    100% {
        transform: rotate(12deg) translateY(0px);
    }

    50% {
        transform: rotate(15deg) translateY(-15px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.08;
        transform: scale(1);
    }

    50% {
        opacity: 0.12;
        transform: scale(1.1);
    }
}

/* Globe particles effect */
.page-title-animated .heading .col-lg-8::before {
    content: "●";
    position: absolute;
    left: -30px;
    top: 50%;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    animation: twinkle 2s ease-in-out infinite;
}

.page-title-animated .heading .col-lg-8::after {
    content: "●";
    position: absolute;
    right: -30px;
    top: 50%;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    animation: twinkle 2s ease-in-out infinite 1s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-title-animated {
        padding: 50px 0 40px;
    }

    .page-title-animated h1 {
        font-size: 36px !important;
    }

    .page-title-animated::after,
    .page-title-animated .heading::before,
    .page-title-animated .heading::after {
        display: none;
        /* Hide some decorations on tablets */
    }
}

@media (max-width: 768px) {
    .page-title-animated {
        padding: 45px 0 35px;
    }

    .page-title-animated::before {
        font-size: clamp(30px, 6vw, 70px);
        line-height: 1.8;
    }

    .page-title-animated h1 {
        font-size: 30px !important;
    }

    .page-title-animated p {
        font-size: 15px !important;
    }

    .page-title-animated .breadcrumbs::before,
    .page-title-animated .breadcrumbs::after {
        font-size: 50px;
        top: -40px;
    }
}

@media (max-width: 576px) {
    .page-title-animated {
        padding: 40px 0 30px;
    }

    .page-title-animated h1 {
        font-size: 26px !important;
    }

    .page-title-animated p {
        font-size: 14px !important;
    }

    /* Hide decorative elements on mobile */
    .page-title-animated .breadcrumbs::before,
    .page-title-animated .breadcrumbs::after,
    .page-title-animated .container::before,
    .page-title-animated .container::after {
        display: none;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background: rgba(27, 94, 32, 0.95);
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumbs ol li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs ol li+li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs ol li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs ol li a:hover {
    color: var(--accent-mint);
}

.breadcrumbs ol li.current {
    color: white;
    font-weight: 500;
}

/* Service Details Section */
.service-details-page {
    background: var(--bg-light);
}

.service-details {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .service-details {
        padding: 60px 0;
    }
}

/* Service Box / Sidebar Widgets */
.service-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.service-box:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-mint);
}

/* Services List in Sidebar */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.services-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-light);
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border-left: 3px solid transparent;
}

.services-list a i {
    font-size: 18px;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.services-list a:hover {
    background: rgba(82, 183, 136, 0.1);
    border-left-color: var(--primary-light);
    transform: translateX(4px);
}

.services-list a:hover i {
    transform: translateX(4px);
}

.services-list a.active {
    background: var(--primary-green);
    color: white;
    border-left-color: var(--primary-light);
    font-weight: 600;
}

.services-list a.active i {
    color: white;
}

/* Download Catalog / Quick Contact Button */
.download-catalog a,
.download-catalog .contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--primary-green);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.download-catalog a:hover,
.download-catalog .contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
}

/* Help Box */
.help-box {
    background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-sage) 100%);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
}

.help-box i.bi-headset {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.help-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    border: none;
    padding: 0;
}

.help-box p {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

.help-box p i {
    color: var(--primary-green);
}

/* Main Content Area */
.services-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.service-details h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    margin-top: 40px;
}

.service-details h3:first-of-type {
    margin-top: 0;
}

.service-details h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    margin-top: 36px;
}

.service-details h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.service-details p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.service-details ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-gray);
}

.service-details ul li:last-child {
    border-bottom: none;
}

.service-details ul li i.bi-check-circle {
    font-size: 20px;
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-details ul li strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 30px 0;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-emerald) 100%);
    color: white;
    font-size: 24px;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.feature-item i {
    font-size: 32px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.feature-item div {
    flex: 1;
}

.feature-item h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Pricing Tiers */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0 50px;
}

.pricing-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-light);
    box-shadow: 0 8px 30px rgba(82, 183, 136, 0.2);
}

.pricing-card.featured:hover {
    box-shadow: 0 16px 50px rgba(82, 183, 136, 0.3);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-emerald) 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(82, 183, 136, 0.4);
}

.pricing-card h5 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
}

.pricing-card .price {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--bg-gray);
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.pricing-card .price span {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 15px;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li i {
    font-size: 18px;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-box * {
    position: relative;
    z-index: 2;
}

.cta-box h4 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    margin-top: 0;
}

.cta-box p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

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

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-green);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-cta-primary:hover {
    background: var(--accent-mint);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(255, 255, 255, 0.4);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .cta-box h4 {
        font-size: 24px;
    }

    .cta-box p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}