/* Page Specific Styles */

:root {
    --accent-pink: #ff4757;
}

/* Common Page Header */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 176, 155, 0.05) 0%, rgba(150, 201, 61, 0.05) 100%);
}

/* Company Page */
.info-table {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 0;
    border-collapse: collapse;
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-out);
}

.info-table th,
.info-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-table th {
    width: 30%;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.02);
}

.info-table td {
    color: var(--text-muted);
    line-height: 1.6;
}

.map-container {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-in);
}

.location-block {
    margin-bottom: 60px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1280px) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }

    .location-block {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .info-table td {
        padding-top: 5px;
    }
}

/* Services Page */
.service-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-main);
}

.service-list li svg {
    margin-right: 20px;
    color: var(--accent-blue);
    min-width: 24px;
    flex-shrink: 0;
}

.bg-gray {
    background-color: #f8f9fa;
}

/* Balanced Service Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(20px, 3vw, 40px);
}

.services-grid>.feature-card {
    flex: 0 1 calc(33.333% - 30px);
    min-width: 300px;
    min-height: 340px;
    /* More compact height */
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top to prevent wobble */
    text-align: left;
}

.services-grid>.feature-card .h3 {
    font-size: 1.5rem;
    color: var(--accent-blue);
    /* Added accent color for dynamics */
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.services-grid>.feature-card .p-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
    /* Crisper dark color */
    margin-bottom: 24px;
}

/* Align buttons to the bottom and center horizontally */
.services-grid>.feature-card .btn {
    margin-top: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content;
}

@media (max-width: 1100px) {
    .services-grid>.feature-card {
        flex: 0 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .services-grid>.feature-card {
        flex: 0 1 100%;
    }
}

/* Device Page */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

.feature-list li svg {
    margin-right: 5px;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 0px;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    background: var(--gemini-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.price-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 4px;
    margin-right: 10px;
}

.tax {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.maker-logo {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-main);
    box-shadow: var(--shadow-out);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(30deg);
    }

    50% {
        transform: translateY(-15px) rotate(30deg);
    }

    100% {
        transform: translateY(0px) rotate(30deg);
    }
}

.floating-anim {
    animation: float 4s ease-in-out infinite;
}

.particle {
    display: none;
}

.gradient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: conic-gradient(from 0deg at 50% 50%,
            rgba(111, 255, 203, 0.6) 0%,
            rgba(174, 255, 138, 0.5) 25%,
            rgba(115, 245, 255, 0.5) 50%,
            rgba(174, 255, 138, 0.5) 75%,
            rgba(111, 255, 203, 0.6) 100%);
    filter: blur(60px);
    border-radius: 50%;
    animation: rotate-bg 10s linear infinite;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
}

@keyframes rotate-bg {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Table Styles for Device */
@media (max-width: 768px) {
    .desktop-only-table {
        display: none;
    }

    .mobile-only-list {
        display: block;
    }

    .cert-section {
        margin-bottom: 40px;
        background: #fff;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .cert-section h3 {
        font-size: 1.1rem;
        color: var(--text-main);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--accent-blue);
    }

    .cert-dl {
        display: grid;
        gap: 16px;
    }

    .cert-dl dt {
        font-weight: 700;
        color: var(--accent-blue);
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .cert-dl dd {
        margin-left: 0;
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (min-width: 769px) {
    .mobile-only-list {
        display: none;
    }
}

/* News Page */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: block;
    padding: 30px;
    margin-bottom: 30px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-date {
    font-family: 'Space Mono', monospace;
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
    font-weight: 700;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 10px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-num.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: var(--shadow-out);
}