:root {
    --primary-color: #003366;
    --primary-dark: #002244;
    --secondary-color: #f8f9fa;
    --accent-color: #c00000;
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    --pointer-x: 50%;
    --pointer-y: 50%;
    --page-hue: 0deg;
    --page-sat: 1;
    --loader-color-a: #003366;
    --loader-color-b: #2f6fae;
    --loader-color-c: #d7e8ff;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Header & Mobile Menu */
.main-header {
    background-color: var(--white);
    box-shadow: 0 8px 24px rgba(2, 22, 48, 0.08);
    backdrop-filter: saturate(140%) blur(8px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1800;
    isolation: isolate;
    overflow: visible;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 16px;
    position: relative;
    overflow: visible;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.site-brand-image {
    max-height: 58px;
    width: auto;
    display: block;
}

.mobile-menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1900;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu-toggle .material-icons {
    font-size: 2rem;
}

.main-nav {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--white);
    padding: 24px 0 32px;
    box-shadow: var(--shadow-md);
    transform: translate3d(0, -12px, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s var(--ease-premium), opacity 0.24s var(--ease-premium), visibility 0.24s var(--ease-premium);
    z-index: 1750;
    min-height: calc(100dvh - var(--header-height) + 1px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 16px;
}

.main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.mobile-nav-open .main-header {
    box-shadow: 0 14px 30px rgba(2, 22, 48, 0.12);
}

body.mobile-nav-open .mobile-menu-toggle {
    color: var(--accent-color);
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.28s var(--ease-premium);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.lang-selector select {
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

@media (min-width: 769px) {
    .container {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        display: block;
        flex: 1;
        margin-left: auto;
        width: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: none;
        min-height: auto;
        overflow: visible;
        z-index: auto;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 30px;
        text-align: left;
        justify-content: flex-end;
        padding: 0;
        width: auto;
    }
}

/* Hero Section */
.hero {
    --hero-solid-color: #002758;
    --hero-background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80');
    background-color: var(--hero-solid-color);
    background-image: linear-gradient(145deg, rgba(0, 39, 88, 0.85), rgba(0, 20, 48, 0.62)), var(--hero-background-image);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: var(--white);
    padding: 96px 0;
    text-align: center;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 100%;
}

.hero--fullscreen {
    min-height: calc(100svh - var(--header-height, 0px));
    padding: clamp(36px, 6vw, 72px) 0;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 39, 88, 0.72), rgba(0, 20, 48, 0.48));
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
}

.hero--video {
    background-image: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 42%);
    pointer-events: none;
    z-index: 1;
}

.hero h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
    letter-spacing: 0.02em;
    line-height: 1.16;
}

.hero p {
    font-size: clamp(1rem, 1.7vw, 1.3rem);
    max-width: 760px;
    margin: 0 auto 40px;
    opacity: 0.96;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    animation: heroScrollBounce 1.8s ease-in-out infinite;
}

.hero-scroll-indicator:hover {
    transform: translateX(-50%) translateY(-3px);
    background: rgba(255, 255, 255, 0.22);
}

.hero-scroll-indicator .material-icons {
    font-size: 1.8rem;
}

.hero-scroll-target {
    scroll-margin-top: calc(var(--header-height, 0px) + 24px);
}

@keyframes heroScrollBounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.28s var(--ease-premium), box-shadow 0.28s var(--ease-premium), background-color 0.28s var(--ease-premium), color 0.28s var(--ease-premium), border-color 0.28s var(--ease-premium);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.btn:hover {
    background-color: #a00000;
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 0;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

@media (min-width: 769px) {
    .hero:not(.hero--video) {
        background-attachment: fixed;
        padding: 140px 0;
        min-height: 680px;
    }

    .hero--fullscreen {
        min-height: calc(100svh - var(--header-height, 0px));
        padding: clamp(48px, 8vw, 88px) 0;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 15px;
    }
}

/* Sections General */
section {
    padding: clamp(70px, 9vw, 110px) 0;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(42px, 6vw, 72px);
}

.section-title h2 {
    font-size: clamp(1.8rem, 3.1vw, 2.6rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.section-title p {
    color: var(--light-text);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* Timeline (About Page) */
.timeline-section {
    background: var(--secondary-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 31px;
}

.timeline-item {
    padding: 10px 25px 10px 70px;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 21px;
    background-color: var(--white);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: 21px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.timeline-section-modern {
    padding: 100px 0;
    background: var(--white);
}

.timeline-modern {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16px;
    width: 4px;
    background: #eee;
    border-radius: 999px;
}

.timeline-modern-item {
    position: relative;
    padding-left: 52px;
}

.timeline-modern-item::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 6px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #eee;
    z-index: 1;
}

.timeline-modern-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px 22px;
}

.timeline-modern-year {
    display: block;
    font-size: clamp(2.2rem, 9vw, 3rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.timeline-modern-card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-modern-card p {
    color: #666;
}

@media (min-width: 769px) {
    .timeline-modern {
        gap: 34px;
    }

    .timeline-modern::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-modern-item {
        width: calc(50% - 34px);
        padding-left: 0;
    }

    .timeline-modern-item.is-left {
        justify-self: start;
    }

    .timeline-modern-item.is-right {
        justify-self: end;
    }

    .timeline-modern-item.is-left .timeline-modern-card {
        text-align: right;
    }

    .timeline-modern-item::before {
        left: auto;
        right: -44px;
    }

    .timeline-modern-item.is-right::before {
        left: -44px;
        right: auto;
    }
}

@media (min-width: 769px) {
    .timeline::after {
        left: 50%;
        margin-left: -1px;
    }

    .timeline-item {
        width: 50%;
        padding: 10px 40px;
    }

    .timeline-item.right {
        left: 50%;
    }

    .timeline-item::after {
        left: auto;
        right: -10px;
    }

    .timeline-item.right::after {
        left: -10px;
    }
}

/* Accordion (FAQ) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-content {
    display: none;
    padding: 0 20px 20px;
    color: var(--light-text);
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .accordion-header {
    color: var(--primary-color);
}

/* Stats Section (Services) */
.stats-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Alternating Features (Services) */
.alt-features {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.alt-feature-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.alt-feature-row.reverse {
    flex-direction: column;
}

.alt-feature-img {
    flex: 1;
}

.alt-feature-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.alt-feature-text {
    flex: 1;
}

.alt-feature-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.alt-feature-text ul {
    margin-top: 20px;
}

.alt-feature-text ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alt-feature-text ul li .material-icons {
    color: var(--accent-color);
}

@media (min-width: 769px) {
    .alt-feature-row {
        flex-direction: row;
    }

    .alt-feature-row.reverse {
        flex-direction: row-reverse;
    }
}

/* Why Choose Us (Features) */
.features-section {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 40px;
    }
}

.feature-item {
    text-align: center;
    padding: 30px;
    transition: transform 0.34s var(--ease-premium), box-shadow 0.34s var(--ease-premium), background-color 0.34s var(--ease-premium);
    border-radius: var(--radius-lg);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 42px rgba(0, 27, 56, 0.11);
    background-color: #fff;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2.5rem;
    transition: background 0.3s, color 0.3s;
}

.feature-item:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Tabs Section */
.tabs-container {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 40px;
}

.tab-nav {
    display: flex;
    flex-direction: column;
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e9e9e9;
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    padding: 28px 20px;
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.tab-flex {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.tab-image {
    flex: 1;
}

.tab-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.tab-text {
    flex: 1;
}

.tab-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tab-text ul {
    margin: 20px 0;
    list-style: none;
}

.tab-text ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-text ul li::before {
    content: 'check_circle';
    font-family: 'Material Icons';
    color: var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (min-width: 769px) {
    .tab-nav {
        flex-direction: row;
    }

    .tab-content {
        padding: 50px;
    }

    .tab-flex {
        flex-direction: row;
        gap: 40px;
    }
}

/* Process Section */
.process-section {
    background-color: var(--secondary-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 0;
    display: none;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--secondary-color);
    padding: 8px 10px;
    min-width: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(0, 28, 64, 0.12);
}

.step-item h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

@media (min-width: 769px) {
    .process-steps {
        display: flex;
        gap: 0;
    }

    .process-steps::before {
        display: block;
    }
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 40px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: var(--text-color);
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 80px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
    }
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
    transition: padding 0.3s;
}

.footer-bottom {
    padding: 26px 0 34px;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.footer-bottom-inner p {
    color: #cfcfcf;
}

.footer-credit {
    font-size: 0.84rem;
    color: #d8d8d8;
}

.footer-credit a {
    color: #ffffff;
    font-weight: 600;
}

.footer-credit a:hover {
    color: #ffffff;
    opacity: 0.85;
}

.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2600;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.24s var(--ease-premium), transform 0.24s var(--ease-premium), visibility 0.24s var(--ease-premium);
}

.cookie-consent.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(11, 31, 56, 0.96);
    color: #e5edf7;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 22px 40px rgba(2, 12, 27, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent-content strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.cookie-consent-content p {
    color: #c9d8e8;
    font-size: 0.95rem;
}

.cookie-consent-btn {
    white-space: nowrap;
    box-shadow: none;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

@media (min-width: 769px) {
    .floating-buttons {
        bottom: 30px;
        right: 30px;
        gap: 15px;
    }
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    border: none;
    cursor: pointer;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.line {
    background-color: #00B900;
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.card-link {
    background: linear-gradient(135deg, #0b2f59, #c00000);
}

.float-btn.to-top {
    background-color: var(--primary-color);
    display: none;
}

.float-btn.to-top.visible {
    display: flex;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 40px;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-premium);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Admin Styles */
.admin-login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.admin-body {
    background: #f3f6fb;
    min-height: 100vh;
    padding-left: 280px;
    transition: padding-left 0.25s var(--ease-premium);
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: linear-gradient(180deg, #0b2f59 0%, #0a2546 100%);
    color: #e8f1fb;
    z-index: 2200;
    padding: 22px 16px;
    overflow-y: auto;
    transition: width 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding: 6px 8px;
}

.admin-side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d7e5f5;
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.admin-side-nav a:hover,
.admin-side-nav a.active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5ebf2;
    min-height: 74px;
    padding: 14px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}

.admin-topbar h1 {
    font-size: 1.15rem;
    color: #12345a;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #d6e1ec;
    background: #fff;
    color: #1d3f69;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-lang-select {
    border: 1px solid #d6e1ec;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.admin-mini-btn {
    padding: 8px 12px;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.admin-mini-btn.btn-secondary {
    border-color: #173d6a;
    color: #173d6a;
}

.admin-body .btn-secondary,
.admin-body .btn-outline,
.admin-body a.btn-secondary,
.admin-body a.btn-outline,
.admin-body button.btn-secondary,
.admin-body button.btn-outline,
.admin-body label.btn-secondary,
.admin-body label.btn-outline {
    background: #fff;
    border-color: #173d6a;
    color: #173d6a;
}

.admin-body .btn-secondary:hover,
.admin-body .btn-outline:hover,
.admin-body a.btn-secondary:hover,
.admin-body a.btn-outline:hover,
.admin-body button.btn-secondary:hover,
.admin-body button.btn-outline:hover,
.admin-body label.btn-secondary:hover,
.admin-body label.btn-outline:hover {
    background: #173d6a;
    border-color: #173d6a;
    color: #fff;
}

.admin-body .action-btn:not(.action-btn-edit):not(.action-btn-delete) {
    color: #173d6a;
}

.admin-body .modal-close {
    color: #173d6a;
}

.admin-main {
    padding: 24px 0 34px;
}

.admin-dashboard {
    min-height: calc(100vh - 74px);
}

.admin-sidebar-collapsed {
    padding-left: 88px;
}

.admin-sidebar-collapsed .admin-sidebar {
    width: 88px;
}

.admin-sidebar-collapsed .admin-sidebar-brand span:last-child,
.admin-sidebar-collapsed .admin-side-nav a span:last-child {
    display: none;
}

.admin-sidebar-collapsed .admin-sidebar-brand {
    justify-content: center;
}

.admin-sidebar-collapsed .admin-side-nav a {
    justify-content: center;
}

.admin-card {
    background: white;
    padding: 22px 22px 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.admin-main .container {
    max-width: 1080px;
}

.admin-main .form-group input,
.admin-main .form-group textarea,
.admin-main .form-group select {
    max-width: 640px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.action-btn {
    padding: 5px 10px;
    background: #eee;
    border-radius: 3px;
    font-size: 0.8rem;
}

.admin-tabs {
    margin-bottom: 20px;
}

.admin-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid #d4dbe7;
    background: #f8fafc;
    color: #173d6a;
    cursor: pointer;
}

.admin-tab-btn:hover {
    background: #eef4fb;
    color: #0b2f59;
}

.admin-tab-btn.is-active {
    background: #0b2f59;
    color: #f9fafb;
    border-color: #0b2f59;
}

.admin-tabs button:not(.is-active),
.admin-tabs a:not(.is-active),
.admin-tab-nav button:not(.is-active),
.admin-tab-nav a:not(.is-active) {
    color: #173d6a;
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.is-active {
    display: block;
}

.admin-users-shell {
    display: grid;
    gap: 20px;
}

.admin-users-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-users-heading h2 {
    margin-bottom: 6px;
    color: #12345a;
}

.admin-users-heading p {
    color: #64748b;
}

.admin-users-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-feedback {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.admin-feedback-success {
    background: #e8f7ee;
    color: #166534;
}

.admin-feedback-error {
    background: #fef0f0;
    color: #991b1b;
}

.admin-users-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.admin-user-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 4px;
}

.admin-user-stat .material-icons {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fb;
    color: #123f72;
}

.admin-user-stat strong {
    display: block;
    font-size: 1.35rem;
    color: #102c4c;
}

.admin-user-stat span:last-child {
    color: #64748b;
}

.admin-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.admin-user-card {
    display: grid;
    gap: 18px;
}

.admin-user-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-user-avatar,
.admin-user-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    color: #123f72;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-user-avatar img,
.admin-user-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-main h3 {
    color: #102c4c;
    margin-bottom: 4px;
}

.admin-user-main p {
    color: #64748b;
    font-size: 0.92rem;
}

.admin-user-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.admin-user-badge {
    background: #e8f0fb;
    color: #123f72;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
}

.admin-user-badge-muted {
    background: #eef2f7;
    color: #475569;
}

.admin-user-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-user-details dt {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.admin-user-details dd {
    color: #0f172a;
    font-size: 0.92rem;
    word-break: break-word;
}

.admin-user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn-edit {
    background: #e8f0fb;
    color: #123f72;
}

.action-btn-delete {
    background: #fef0f0;
    color: #b91c1c;
}

.admin-user-modal {
    max-width: 760px;
    max-height: min(92vh, 820px);
    overflow-y: auto;
}

.admin-user-modal-header {
    margin-bottom: 20px;
}

.admin-user-modal-header h3 {
    color: #102c4c;
    margin-bottom: 6px;
}

.admin-user-modal-header p {
    color: #64748b;
}

.admin-user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-user-form-full {
    grid-column: 1 / -1;
}

.admin-user-avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-upload-btn {
    position: relative;
    overflow: hidden;
}

.admin-user-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

body.admin-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .admin-user-details,
    .admin-user-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-form-actions {
        flex-direction: column-reverse;
    }

    .admin-user-form-actions .btn {
        width: 100%;
    }

    .admin-user-avatar-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    .admin-body {
        padding-left: 0;
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-body.admin-sidebar-collapsed .admin-sidebar {
        transform: translateX(0);
        width: 280px;
    }

    .admin-sidebar-collapsed .admin-sidebar-brand span:last-child,
    .admin-sidebar-collapsed .admin-side-nav a span:last-child {
        display: inline;
    }
}

.service-card-home,
.news-card-modern,
.admin-card,
.timeline-content,
.accordion-item {
    border-radius: var(--radius-lg);
}

.service-card-home {
    transition: transform 0.34s var(--ease-premium), box-shadow 0.34s var(--ease-premium);
}

.service-card-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 44px rgba(0, 27, 56, 0.14);
}

.service-card-home img,
.news-card-modern img,
.alt-feature-img img,
.about-preview img {
    transition: transform 0.55s var(--ease-premium), filter 0.55s var(--ease-premium);
}

.service-card-home:hover img,
.news-card-modern:hover img,
.alt-feature-row:hover img,
.about-preview:hover img {
    transform: scale(1.04);
}

.news-card-modern {
    transition: transform 0.34s var(--ease-premium), box-shadow 0.34s var(--ease-premium);
}

.news-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px rgba(0, 27, 56, 0.14);
}

.footer-col a,
.main-footer a,
.main-nav a {
    transition: color 0.28s var(--ease-premium);
}

.footer-col a:hover {
    color: var(--white);
}

.site-loader {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.22), transparent 44%),
        radial-gradient(circle at 76% 78%, rgba(255, 255, 255, 0.12), transparent 50%),
        linear-gradient(145deg, var(--loader-color-a), var(--loader-color-b) 62%, var(--loader-color-c));
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.75s var(--ease-premium), visibility 0.75s var(--ease-premium);
    overflow: hidden;
}

.page-tint {
    position: fixed;
    inset: 0;
    z-index: 1400;
    pointer-events: none;
    background:
        radial-gradient(56vw 56vw at var(--pointer-x) var(--pointer-y), rgba(71, 146, 255, 0.34), transparent 62%),
        radial-gradient(42vw 42vw at calc(100% - var(--pointer-x)) calc(100% - var(--pointer-y)), rgba(224, 18, 79, 0.28), transparent 68%);
    opacity: 0.5;
    mix-blend-mode: overlay;
    filter: hue-rotate(var(--page-hue)) saturate(var(--page-sat));
    transition: opacity 0.2s linear;
}

body.fx-intense main,
body.fx-intense .main-footer {
    position: relative;
    z-index: 2;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader-center {
    text-align: center;
    color: var(--white);
    transform: translateY(0);
    animation: loaderFloat 1.8s ease-in-out infinite alternate;
}

.site-loader-mark {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.site-loader-message {
    margin-top: 14px;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    letter-spacing: 0.03em;
    opacity: 0.88;
    color: rgba(255, 255, 255, 0.94);
    min-height: 1.8em;
}

.site-loader-line {
    width: min(320px, 70vw);
    height: 3px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 25%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.45) 75%, transparent 100%);
    background-size: 220% 100%;
    animation: loaderPulse 1.3s var(--ease-premium) infinite;
}

.page-intro {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(165deg, rgba(0, 41, 84, 0.86), rgba(0, 24, 64, 0.66));
    color: var(--white);
    transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium), visibility 0.6s var(--ease-premium);
    overflow: hidden;
}

.page-intro-inner {
    padding: 40px 24px;
}

.page-intro-overline {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.78;
}

.page-intro-title {
    margin-top: 14px;
    font-size: clamp(2rem, 6vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: 0.03em;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.page-intro-hint {
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.page-intro.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -18px, 0);
}

@keyframes loaderPulse {
    0% { background-position: 100% 0; opacity: 0.65; }
    100% { background-position: -100% 0; opacity: 1; }
}

@keyframes loaderFloat {
    from { transform: translateY(-4px); }
    to { transform: translateY(8px); }
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 70px, 0) scale(0.93) rotateX(9deg);
    filter: blur(4px);
    transition: opacity 0.95s var(--ease-premium), transform 0.95s var(--ease-premium), filter 0.95s var(--ease-premium);
    will-change: opacity, transform, filter;
    transform-origin: center bottom;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
    filter: blur(0);
}

.reveal.reveal-left:not(.is-visible) {
    transform: translate3d(-110px, 44px, 0) scale(0.92) rotate(-4deg);
}

.reveal.reveal-right:not(.is-visible) {
    transform: translate3d(110px, 44px, 0) scale(0.92) rotate(4deg);
}

.reveal.reveal-zoom:not(.is-visible) {
    transform: translate3d(0, 80px, 0) scale(0.82);
}

.reveal.reveal-tilt:not(.is-visible) {
    transform: translate3d(0, 65px, 0) perspective(900px) rotateX(18deg);
}

.fx-intense section {
    transform-origin: center center;
    transition: filter 0.32s linear, opacity 0.32s linear, background-color 0.42s var(--ease-premium);
    will-change: filter, opacity;
}

.fx-intense section.is-in-view {
    filter: saturate(1.06) contrast(1.03);
    background-color: rgba(255, 255, 255, 0.015);
}

.hero .animate-fade-in:nth-child(1) {
    animation-delay: 120ms;
}

.hero .animate-fade-in:nth-child(2) {
    animation-delay: 260ms;
}

.hero .animate-fade-in:nth-child(3) {
    animation-delay: 360ms;
}

.services-list-home {
    background-color: #f8f9fa;
    padding: 72px 0;
    position: relative;
    z-index: 0;
}

.services-list-home .section-title {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.home-services-grid,
.home-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}

.home-news-grid {
    margin-bottom: 50px;
}

.service-card-home,
.news-card-modern {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.service-card-media,
.news-card-media {
    min-height: 200px;
    overflow: hidden;
    position: relative;
    background: #eee;
}

.service-card-media img,
.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-icon {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
}

.service-card-icon .material-icons {
    color: var(--white);
    font-size: 2rem;
}

.service-card-body,
.news-card-body {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-service-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.35;
}

.home-service-description,
.news-card-summary {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 22px;
    flex: 1;
}

.btn-outline {
    border: 2px solid currentColor;
    background: transparent;
    text-align: center;
    width: auto;
    box-shadow: none;
}

.service-card-home .btn-outline {
    color: var(--accent-color);
    margin-top: auto;
    align-self: flex-start;
    min-width: 180px;
}

.about-preview-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

.about-preview-media-stack {
    display: grid;
    gap: 20px;
}

.about-preview-main-image-wrap {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-preview-main-image {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.about-preview-media,
.about-preview-content {
    flex: 1;
    width: 100%;
}

.about-preview-media img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-preview-copy {
    margin: 20px 0;
    color: #555;
}

.about-intro-main-image {
    width: 100%;
    min-height: 460px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    display: block;
}

.media-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
}

.media-slider.is-static {
    grid-template-columns: 1fr;
}

.media-slider.is-static .media-slider-arrow {
    display: none;
}

.media-slider-viewport {
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.media-slider-track {
    display: flex;
    gap: 18px;
    transition: transform 0.45s var(--ease-premium);
    will-change: transform;
}

.media-slider-item {
    min-width: 0;
    flex: 0 0 auto;
}

.media-slider-arrow {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(11, 47, 89, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #11375c;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(10, 31, 55, 0.08);
    cursor: pointer;
    transition: transform 0.25s var(--ease-premium), background-color 0.25s var(--ease-premium), color 0.25s var(--ease-premium), opacity 0.25s var(--ease-premium);
}

.media-slider-arrow:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #0b2f59;
    color: var(--white);
}

.media-slider-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.about-gallery-slide {
    border-radius: 20px;
    overflow: hidden;
    background: #f4f7fb;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
}

.about-gallery-slide--compact {
    aspect-ratio: 1 / 1;
}

.about-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--ease-premium);
}

.about-gallery-slide:hover img {
    transform: scale(1.04);
}

.card-standalone-body {
    margin: 0;
    padding: 0;
    background: #f4f7fb;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.card-iframe-full {
    width: 100vw;
    height: 100vh;
    border: none;
    display: block;
}

.card-back-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.card-back-floating .btn {
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    border-radius: 99px;
    padding: 12px 24px;
    font-weight: 500;
}

.social-showcase {
    position: relative;
    overflow: hidden;
}

.social-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 38%);
}

.social-showcase .container {
    position: relative;
    z-index: 1;
}

.social-showcase-heading {
    margin-bottom: 28px;
}

.social-media-tabs {
    display: grid;
    gap: 18px;
}

.social-media-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-media-tab-btn {
    padding: 10px 18px;
    border: 1px solid rgba(11, 47, 89, 0.14);
    background: rgba(255, 255, 255, 0.84);
    color: #123a63;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s var(--ease-premium), color 0.25s var(--ease-premium), border-color 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
}

.social-media-tab-btn:hover {
    background: rgba(228, 238, 248, 0.95);
    color: #0b2f59;
    transform: translateY(-1px);
}

.social-media-tab-btn.is-active {
    background: #0b2f59;
    color: var(--white);
    border-color: #0b2f59;
}

.social-media-tab-panel {
    display: none;
}

.social-media-tab-panel.is-active {
    display: block;
}

.instagram-feed-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.instagram-reels-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.instagram-feed-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md);
    background: linear-gradient(145deg, rgba(0, 51, 102, 0.08), rgba(192, 0, 0, 0.08));
}

.instagram-feed-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--ease-premium);
}

.instagram-feed-card:hover img {
    transform: scale(1.05);
}

.instagram-feed-overlay {
    position: absolute;
    inset: auto 12px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 26, 58, 0.78);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.instagram-reel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-md);
}

.instagram-reel-thumb {
    position: relative;
    aspect-ratio: 9 / 16;
    background: linear-gradient(145deg, rgba(0, 51, 102, 0.08), rgba(192, 0, 0, 0.08));
    flex-shrink: 0;
}

.instagram-reel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instagram-reel-video,
.instagram-reel-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instagram-reel-thumb .instagram-reel-video {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(0, 51, 102, 0.08), rgba(192, 0, 0, 0.08));
}

.instagram-reel-thumb .instagram-reel-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(145deg, rgba(0, 51, 102, 0.08), rgba(192, 0, 0, 0.08));
}

.instagram-reel-thumb .instagram-reel-fallback.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.instagram-reel-play {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(11, 47, 89, 0.72);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.instagram-reel-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
    padding: 16px;
}

.instagram-reel-body h3 {
    font-size: 0.98rem;
    line-height: 1.45;
    color: #14324f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-reel-link {
    color: #5a6f85;
    font-weight: 600;
    font-size: 0.92rem;
}

.youtube-feed-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.youtube-feed-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(0, 15, 34, 0.18);
}

.youtube-feed-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.08);
}

.youtube-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.youtube-play-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(192, 0, 0, 0.92);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.youtube-feed-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.youtube-feed-date {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.74);
}

.youtube-feed-body h3 {
    font-size: 1.1rem;
    line-height: 1.5;
}

.youtube-feed-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.social-showcase-actions {
    margin-top: 28px;
}

@media (max-width: 1024px) {
    .instagram-feed-grid,
    .instagram-reels-grid,
    .youtube-feed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .instagram-feed-grid > :nth-child(n+4),
    .instagram-reels-grid > :nth-child(n+4),
    .youtube-feed-grid > :nth-child(n+4) {
        display: none;
    }
}

.cta-primary {
    background-color: var(--primary-color);
}

.news-section {
    background: #f8f9fa;
    padding: 72px 0;
}

.news-divider {
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto;
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.news-card-placeholder .material-icons {
    font-size: 3rem;
}

.news-card-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.news-card-date .material-icons {
    font-size: 0.9rem;
    vertical-align: text-bottom;
    margin-right: 4px;
}

.news-card-link {
    color: inherit;
}

.news-card-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-color);
}

.news-card-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-card-more .material-icons {
    font-size: 1rem;
}

.news-footer-actions {
    text-align: center;
}

.news-footer-actions .btn-outline {
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: auto;
}

.template-band {
    position: relative;
}

.template-band--soft {
    background: linear-gradient(180deg, #f5f7fa 0%, #eef3f7 100%);
}

.template-band--primary {
    background: linear-gradient(135deg, #002b57 0%, #003d78 100%);
    color: var(--white);
}

.template-band--primary .section-title h2,
.template-band--primary .section-title p,
.template-band--primary .seo-card,
.template-band--primary .service-link-card {
    color: inherit;
}

.template-band--primary .section-title h2::after {
    background: rgba(255, 255, 255, 0.82);
}

.seo-card-grid,
.process-flow-grid,
.link-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.seo-card,
.process-flow-step,
.service-link-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-sm);
}

.template-band--primary .seo-card,
.template-band--primary .process-flow-step,
.template-band--primary .service-link-card {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.seo-card h3,
.process-flow-step h3,
.service-link-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.template-band--primary .seo-card h3,
.template-band--primary .process-flow-step h3,
.template-band--primary .service-link-card h3 {
    color: var(--white);
}

.seo-card p,
.process-flow-step p,
.service-link-card p {
    color: var(--light-text);
    margin: 0;
}

.template-band--primary .seo-card p,
.template-band--primary .process-flow-step p,
.template-band--primary .service-link-card p {
    color: rgba(255, 255, 255, 0.86);
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.keyword-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.template-band--soft .keyword-chip {
    background: var(--white);
    border-color: rgba(0, 51, 102, 0.1);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.section-actions {
    margin-top: 34px;
    text-align: center;
}

.service-link-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-link-card .btn {
    align-self: flex-start;
}

.process-flow-step .step-index {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: rgba(192, 0, 0, 0.12);
    color: var(--accent-color);
    font-weight: 700;
}

.template-band--primary .process-flow-step .step-index {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

@media (max-width: 640px) {
    .service-main-layout {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .mission-vision-grid,
    .access-info-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .services-hero,
    .service-hero {
        height: auto !important;
        min-height: auto !important;
        padding: 72px 0 56px;
        align-items: flex-end !important;
        overflow: visible !important;
    }
}

@media (min-width: 640px) {
    .home-services-grid,
    .home-news-grid,
    .seo-card-grid,
    .process-flow-grid,
    .link-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card-media,
    .news-card-media {
        min-height: 220px;
    }

    .service-card-body,
    .news-card-body {
        padding: 30px;
    }
}

@media (min-width: 769px) {
    .services-list-home,
    .news-section {
        padding: 100px 0 80px;
    }

    .about-preview-layout {
        flex-direction: row;
        gap: 50px;
        align-items: center;
    }
}

@media (min-width: 1100px) {
    .home-services-grid,
    .home-news-grid,
    .seo-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: 600px;
    }

    .hero--fullscreen {
        min-height: calc(100svh - var(--header-height, 0px));
    }
}

@media (max-width: 768px) {
    .services-list-home {
        padding: 64px 0;
    }

    .instagram-feed-grid,
    .instagram-reels-grid,
    .youtube-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .instagram-feed-grid > :nth-child(n+3),
    .instagram-reels-grid > :nth-child(n+3),
    .youtube-feed-grid > :nth-child(n+3) {
        display: none;
    }

    .instagram-feed-card,
    .instagram-feed-card img {
        min-height: 0;
    }

    .service-card-media {
        min-height: 190px;
    }

    .service-card-home .btn-outline {
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    .hero {
        min-height: 520px;
        padding: 84px 0;
    }

    .media-slider {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
    }

    .media-slider.is-static {
        grid-template-columns: 1fr;
    }

    .media-slider-arrow {
        width: 42px;
        height: 42px;
    }

    .about-intro-main-image,
    .about-preview-main-image {
        min-height: 280px;
    }

    .card-embed-card {
        padding: 16px;
        border-radius: 18px;
    }

    .card-embed-card iframe {
        min-height: 760px;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }

    .hero--fullscreen {
        min-height: calc(100svh - var(--header-height, 0px));
        padding: 32px 0 88px;
    }

    .hero h2 {
        line-height: 1.2;
    }

    .hero p {
        margin-bottom: 28px;
    }

    .hero-scroll-indicator {
        bottom: 18px;
        width: 48px;
        height: 48px;
    }

    .service-card-home,
    .news-card-modern {
        border-radius: 12px;
    }

    .reveal {
        transform: translate3d(0, 56px, 0) scale(0.94);
    }

    .reveal.reveal-left:not(.is-visible),
    .reveal.reveal-right:not(.is-visible) {
        transform: translate3d(0, 56px, 0) scale(0.94);
    }

    .page-tint {
        opacity: 0.18;
    }

    .site-loader-center {
        width: min(100%, 280px);
        padding: 0 20px;
        animation: none;
    }

    .site-loader-line {
        width: min(220px, 62vw);
    }

    .page-intro {
        display: none;
    }

    .page-intro-inner {
        padding: 24px 18px;
    }

    .page-intro-title {
        font-size: clamp(1.7rem, 10vw, 2.6rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .animate-fade-in,
    .btn,
    .hero-scroll-indicator,
    .service-card-home,
    .news-card-modern,
    .feature-item,
    .gallery-item img {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .reveal {
        opacity: 1;
        filter: none !important;
    }

    .site-loader {
        display: none !important;
    }

    .page-tint {
        display: none !important;
    }

    .page-intro {
        display: none !important;
    }
}
