/* ===== Article Page Styles - AC Masters UAE ===== */

/* Article Hero Section */
.tm-article-hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
    padding: 100px 0 20px;
    position: relative;
}

.tm-article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.tm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.tm-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.tm-breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tm-breadcrumb-link:hover {
    color: #fff;
}

.tm-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
}

.tm-breadcrumb-current {
    color: #fff;
    font-weight: 500;
}

/* Article Main */
.tm-article-main {
    background: #f8fafc;
    padding: 60px 0 80px;
}

.tm-article {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
}

/* Article Header */
.tm-article-header {
    margin-bottom: 40px;
    text-align: center;
}

.tm-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0c4a6e;
    line-height: 1.3;
    margin-bottom: 24px;
}

.tm-article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.tm-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.tm-meta-item img {
    opacity: 0.7;
    filter: invert(40%) sepia(15%) saturate(500%) hue-rotate(180deg);
}

/* Featured Image */
.tm-article-featured-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tm-article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.tm-image-caption {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
    color: #fff;
    padding: 16px 20px;
    font-size: 14px;
    text-align: center;
    font-style: italic;
}

/* Article Intro */
.tm-article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 40px;
    padding: 24px 30px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-left: 4px solid #0ea5e9;
    border-radius: 0 12px 12px 0;
}

.tm-article-intro p {
    margin: 0;
}

/* Article Content */
.tm-article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #374151;
}

.tm-article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0c4a6e;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0f2fe;
}

.tm-article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0369a1;
    margin: 36px 0 16px;
}

.tm-article-content p {
    margin-bottom: 20px;
}

.tm-article-content ul,
.tm-article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.tm-article-content li {
    margin-bottom: 12px;
    position: relative;
}

.tm-article-content ul li::marker {
    color: #0ea5e9;
}

.tm-article-content ol li::marker {
    color: #0ea5e9;
    font-weight: 600;
}

.tm-article-content blockquote {
    margin: 32px 0;
    padding: 24px 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #92400e;
}

.tm-article-content blockquote p {
    margin: 0;
}

.tm-article-content a {
    color: #0369a1;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.tm-article-content a:hover {
    color: #0ea5e9;
}

.tm-article-content strong {
    color: #0c4a6e;
    font-weight: 600;
}

.tm-article-content code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #0369a1;
}

.tm-article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

.tm-article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Article Conclusion */
.tm-article-conclusion {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 16px;
    border: 1px solid #a7f3d0;
}

.tm-article-conclusion h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 16px;
}

.tm-article-conclusion p {
    color: #047857;
    line-height: 1.8;
    margin: 0;
}

.tm-article-conclusion a {
    color: #059669;
    font-weight: 600;
}

/* Article Tags */
.tm-article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
}

.tm-article-tags img {
    opacity: 0.6;
    filter: invert(40%) sepia(15%) saturate(500%) hue-rotate(180deg);
}

/* Related Articles Section */
.tm-related-articles {
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tm-related-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0c4a6e;
    text-align: center;
    margin-bottom: 32px;
}

.tm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tm-related-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tm-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
}

.tm-related-link {
    display: block;
    padding: 28px 24px;
    text-decoration: none;
    position: relative;
}

.tm-related-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tm-related-icon img {
    filter: invert(30%) sepia(80%) saturate(1000%) hue-rotate(180deg);
}

.tm-related-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0c4a6e;
    line-height: 1.5;
    margin: 0 0 16px;
    transition: color 0.3s ease;
}

.tm-related-card:hover .tm-related-card-title {
    color: #0369a1;
}

.tm-related-arrow {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.tm-related-arrow img {
    filter: brightness(0) invert(1);
}

.tm-related-card:hover .tm-related-arrow {
    transform: translateX(5px);
}

/* ===== Responsive Design ===== */

@media (max-width: 1024px) {
    .tm-article {
        padding: 40px 35px;
    }

    .tm-article-title {
        font-size: 2rem;
    }

    .tm-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tm-article-hero {
        padding: 100px 0 30px;
    }

    .tm-article-main {
        padding: 40px 0 60px;
    }

    .tm-article {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .tm-article-title {
        font-size: 1.65rem;
    }

    .tm-article-meta {
        justify-content: center;
        gap: 16px;
    }

    .tm-meta-item {
        font-size: 12px;
        gap: 5px;
    }

    .tm-article-intro {
        font-size: 1.05rem;
        padding: 20px 24px;
    }

    .tm-article-content {
        font-size: 1rem;
    }

    .tm-article-content h2 {
        font-size: 1.5rem;
        margin: 36px 0 16px;
    }

    .tm-article-content h3 {
        font-size: 1.2rem;
        margin: 28px 0 12px;
    }

    .tm-article-conclusion {
        padding: 24px;
    }

    .tm-article-conclusion h2 {
        font-size: 1.3rem;
    }

    .tm-related-title {
        font-size: 1.5rem;
    }

    .tm-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tm-related-link {
        padding: 24px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .tm-related-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .tm-related-card-title {
        margin: 0;
        flex: 1;
    }

    .tm-related-arrow {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .tm-article-hero {
        padding: 90px 0 15px;
    }

    .tm-article-breadcrumb {
        font-size: 13px;
    }

    .tm-article {
        padding: 24px 18px;
    }

    .tm-article-title {
        font-size: 1.4rem;
    }

    .tm-article-meta {
        justify-content: center;
        gap: 12px;
    }

    .tm-meta-item {
        font-size: 11px;
        gap: 4px;
    }

    .tm-meta-item img {
        width: 14px;
        height: 14px;
    }

    .tm-article-featured-image {
        margin: 0 -18px 30px;
        border-radius: 0;
    }

    .tm-article-intro {
        font-size: 1rem;
        padding: 16px 20px;
        margin: 0 -18px 30px;
        border-radius: 0;
    }

    .tm-article-content h2 {
        font-size: 1.35rem;
    }

    .tm-article-content h3 {
        font-size: 1.15rem;
    }

    .tm-article-content blockquote {
        padding: 18px 20px;
        margin: 24px -18px;
        border-radius: 0;
    }

    .tm-article-conclusion {
        padding: 20px;
        margin: 36px -18px 0;
        border-radius: 0;
    }

    .tm-article-tags {
        flex-wrap: wrap;
        font-size: 13px;
    }

    .tm-related-articles {
        margin-top: 40px;
    }

    .tm-related-title {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 375px) {
    .tm-article-hero {
        padding: 75px 0 15px;
    }

    .tm-article {
        padding: 20px 15px;
    }

    .tm-article-title {
        font-size: 1.25rem;
    }

    .tm-article-meta {
        gap: 8px;
    }

    .tm-meta-item {
        font-size: 10px;
        gap: 3px;
    }

    .tm-meta-item img {
        width: 12px;
        height: 12px;
    }

    .tm-article-intro {
        margin: 0 -15px 25px;
        padding: 14px 16px;
    }

    .tm-article-featured-image {
        margin: 0 -15px 25px;
    }

    .tm-article-content {
        font-size: 0.95rem;
    }

    .tm-article-content h2 {
        font-size: 1.25rem;
    }

    .tm-article-content h3 {
        font-size: 1.1rem;
    }

    .tm-article-content blockquote {
        margin: 20px -15px;
        padding: 14px 16px;
    }

    .tm-article-conclusion {
        margin: 30px -15px 0;
        padding: 16px;
    }

    .tm-related-link {
        padding: 18px 16px;
    }

    .tm-related-icon {
        width: 42px;
        height: 42px;
    }

    .tm-related-card-title {
        font-size: 0.95rem;
    }
}
