/* Unified Styles - Article + Blog Cards */

/* ========================================
   RESET AND BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* ========================================
   ARTICLE PAGE STYLES
   ======================================== */

/* Article container */
.full-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header section */
.full-article-wrapper {
    padding: 40px 0;
}

/* Article header */
.full-article-wrapper > .flex:first-child {
    text-align: center;
}

/* Published date */
.published {
    font-size: 14px;
    color: #03B1C7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* Article title */
.full-article .title {
    font-size: 48px;
    font-weight: 700;
    color: #03B1C7;
    line-height: 1.2;
}

/* Article subtitle/intro */
.full-article .html-content p:first-child {
    font-size: 20px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Body wrapper */
.body-wrapper {
    margin: 0 auto;
}

/* Article content */
.html-content {
    font-size: 18px;
    line-height: 1.8;
    color: #1a1a1a;
}

.html-content p {
    margin-bottom: 24px;
}

.html-content h3 {
    font-size: 28px !important;
    font-weight: 700;
    color: #03B1C7 !important;
    margin-top: 48px !important;
    margin-bottom: 24px !important;
    line-height: 1.3;
    border-left: 4px solid #03B1C7;
    padding-left: 16px !important;
}

.html-content strong {
    font-weight: 600;
    color: #000;
}

/* ========================================
   BLOG CARDS & CATEGORIES STYLES
   ======================================== */

/* Categories Section */
.articles-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.articles-categories h2 {
    font-size: 32px;
    font-weight: 700;
    color: #03B1C7;
    margin-bottom: 32px;
    text-align: center;
}

.articles-categories h2:hover {
    color: #028a9e;
}

/* Category tags */
.articles-categories p {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.articles-categories p:hover {
    background-color: #03B1C7;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Articles Grid Container */
.articles {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.articles-wrapper {
    width: 100%;
}

/* Grid Card Wrapper */
.card-wrapper {
    height: 100%;
}

.card-wrapper .wrapper {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.card-wrapper .wrapper:hover {
    box-shadow: 0 8px 24px rgba(3, 177, 199, 0.15);
    border-color: #03B1C7;
    transform: translateY(-4px);
}

/* Card Image */
.card-wrapper img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content */
.article-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card Title */
.card-wrapper h2.title {
    font-size: 24px;
    font-weight: 700;
    color: #03B1C7;
    line-height: 1.3;
    margin: 0;
}

/* Card Description */
.card-wrapper .desc p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

/* Article Preview Section (Single article view) */
.article-preview-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Single Article Preview Card */
.articles-preview {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.articles-preview:hover {
    box-shadow: 0 8px 24px rgba(3, 177, 199, 0.15);
    border-color: #03B1C7;
    transform: translateY(-4px);
}

/* Single Preview Content */
.preview-block-wrapper {
    gap: 24px;
}

/* Single Preview Title */
.title-wrapper h2.title {
    font-size: 32px;
    font-weight: 700;
    color: #03B1C7;
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Single Preview Description */
.html-content.desc p {
    font-size: 18px;
    line-height: 1.8;
    color: #4a4a4a;
    margin: 0;
}

/* Read post button */
.button-selector {
    display: inline-block;
    padding: 12px 24px;
    background-color: #03B1C7;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.button-selector:hover {
    background-color: #028a9e;
    transform: translateX(4px);
}

.global-link {
    text-decoration: none;
}

/* Footer section */
.powered-by {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    color: #4a4a4a;
}

.powered-by a {
    color: #03B1C7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: #028a9e;
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    /* Article page responsive */
    .full-article .title {
        font-size: 32px;
    }
    
    .html-content {
        font-size: 16px;
    }
    
    .html-content h3 {
        font-size: 24px;
        margin-top: 36px;
    }
    
    .full-article-wrapper {
        padding: 24px 0;
    }
    
    /* Blog cards responsive */
    .articles-categories h2 {
        font-size: 28px;
    }
    
    .title-wrapper h2.title {
        font-size: 24px;
    }
    
    .card-wrapper h2.title {
        font-size: 20px;
    }
    
    .html-content.desc p {
        font-size: 16px;
    }
    
    .card-wrapper .desc p {
        font-size: 15px;
    }
    
    .articles-preview {
        padding: 24px;
    }
    
    .card-wrapper .wrapper {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    /* Article page responsive */
    .full-article .title {
        font-size: 28px;
    }
    
    .published {
        font-size: 12px;
    }
    
    .full-article .html-content p:first-child {
        font-size: 18px;
    }
    
    /* Blog cards responsive */
    .articles-categories h2 {
        font-size: 24px;
    }
    
    .title-wrapper h2.title {
        font-size: 20px;
    }
    
    .card-wrapper h2.title {
        font-size: 18px;
    }
    
    .articles-categories p {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

.gap-8 {
    gap: 32px;
}

.gap-9 {
    gap: 36px;
}

.gap-16 {
    gap: 64px;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.py-2\.5 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.py-5 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.py-8 {
    padding-top: 32px;
    padding-bottom: 32px;
}

.py-10 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.p-0 {
    padding: 0;
}

.text-center {
    text-align: center;
}

.cursor-pointer {
    cursor: pointer;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.overflow-hidden {
    overflow: hidden;
}

.min-h-\[300px\] {
    min-height: 300px;
}

.max-h-\[300px\] {
    max-height: 300px;
}

.object-cover {
    object-fit: cover;
}

.self-start {
    align-self: flex-start;
}