/* =====================================================
   Məzmun Stilləri - Content Styles
   Poppins font, justify text, abzas, şəkil stilləri,
   list və cədvəl stilləri
   ===================================================== */

/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =====================================================
   Əsas Font Tənzimləmələri
   ===================================================== */

/* Bütün content sahəsi üçün Poppins */
.content,
.blog-single .content,
.course-content,
.page-content,
.ftco-section .content {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* Font taglarını override et */
.content font,
.blog-single font,
.course-content font,
.page-content font {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
}

/* Span-lardakı font təsirini sil */
.content span,
.blog-single span,
.course-content span,
.page-content span {
    font-family: inherit !important;
}

/* =====================================================
   Mətni Justify Et və Abzas Özəlliyi
   ===================================================== */

/* Paraqraflar üçün justify və ilk sətir girinti */
.content p,
.blog-single .content p,
.course-content p,
.page-content p {
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 1.2em;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px;
    line-height: 1.8;
}

/* İlk paraqraf və başlıqdan sonrakı paraqraf üçün abzas yoxdur */
.content > p:first-child,
.content h1 + p,
.content h2 + p,
.content h3 + p,
.content h4 + p,
.content h5 + p,
.content h6 + p {
    text-indent: 0;
}

/* =====================================================
   Şəkil Stilləri
   ===================================================== */

/* Böyük şəkillər (eni 500px-dən böyük) - 100% */
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sol tərəfdə yerləşən kiçik şəkillər */
.content img[style*="float: left"],
.content img[style*="float:left"],
.content img.float-left {
    max-width: 45%;
    margin: 0.5em 1.5em 1em 0;
    padding-right: 15px;
    display: inline;
    border-radius: 8px;
}

/* Sağ tərəfdə yerləşən kiçik şəkillər */
.content img[style*="float: right"],
.content img[style*="float:right"],
.content img.float-right {
    max-width: 45%;
    margin: 0.5em 0 1em 1.5em;
    padding-left: 15px;
    display: inline;
    border-radius: 8px;
}

/* Mobil görünüş üçün */
@media (max-width: 768px) {
    .content img[style*="float: left"],
    .content img[style*="float:left"],
    .content img[style*="float: right"],
    .content img[style*="float:right"],
    .content img.float-left,
    .content img.float-right {
        float: none !important;
        display: block;
        max-width: 100%;
        margin: 1em auto;
        padding: 0;
    }
}

/* =====================================================
   List Stilləri (Elegant)
   ===================================================== */

/* Sırasız siyahılar */
.content ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5em 0;
}

.content ul li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 0.8em;
    text-indent: 0;
}

.content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #1eb2a6 0%, #17a39a 100%);
    border-radius: 50%;
}

/* Sıralı siyahılar */
.content ol {
    list-style: none;
    padding-left: 0;
    margin: 1.5em 0;
    counter-reset: item;
}

.content ol li {
    position: relative;
    padding-left: 2.5em;
    margin-bottom: 0.8em;
    text-indent: 0;
    counter-increment: item;
}

.content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #1eb2a6 0%, #17a39a 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* İç içə siyahılar */
.content ul ul,
.content ol ol,
.content ul ol,
.content ol ul {
    margin: 0.5em 0 0.5em 1em;
}

.content ul ul li::before {
    width: 6px;
    height: 6px;
    background: #999;
}

/* =====================================================
   Cədvəl Stilləri (Elegant)
   ===================================================== */

.content table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.content table thead {
    background: linear-gradient(135deg, #1eb2a6 0%, #17a39a 100%);
}

.content table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    text-align: left;
    border: none;
}

.content table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.content table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.content table tbody tr:hover {
    background: #f0fffe;
}

.content table tbody tr:last-child {
    border-bottom: none;
}

.content table tbody td {
    padding: 15px 20px;
    font-size: 15px;
    color: #444;
    border: none;
    text-indent: 0;
}

/* Cədvəl responsive */
@media (max-width: 768px) {
    .content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .content table thead th,
    .content table tbody td {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* =====================================================
   Başlıq Stilləri
   ===================================================== */

.content h1, .content h2, .content h3,
.content h4, .content h5, .content h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}

.content h1 { font-size: 2em; }
.content h2 { font-size: 1.6em; }
.content h3 { font-size: 1.4em; }
.content h4 { font-size: 1.2em; }
.content h5 { font-size: 1.1em; }
.content h6 { font-size: 1em; }

/* =====================================================
   Blockquote Stilləri
   ===================================================== */

.content blockquote {
    margin: 1.5em 0;
    padding: 1.5em 2em;
    background: linear-gradient(to right, #f8f9fa 0%, #fff 100%);
    border-left: 4px solid #1eb2a6;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 1.1em;
    color: #555;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.content blockquote p {
    margin-bottom: 0;
    text-indent: 0;
}

/* =====================================================
   Link Stilləri
   ===================================================== */

.content a {
    color: #1eb2a6;
    text-decoration: none;
    border-bottom: 1px dotted #1eb2a6;
    transition: all 0.3s ease;
}

.content a:hover {
    color: #17a39a;
    border-bottom-style: solid;
}

/* =====================================================
   Kod Bloqu Stilləri
   ===================================================== */

.content code {
    background: #f4f4f4;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

.content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5em;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* =====================================================
   Düzəliş: MSO classlarını override et
   ===================================================== */

.content [class*="Mso"],
.content [class*="mso-"],
.content .MsoNormal,
.content .MsoListParagraph,
.content .MsoListParagraphCxSpFirst,
.content .MsoListParagraphCxSpMiddle,
.content .MsoListParagraphCxSpLast,
.content .MsoListBullet,
.content .MsoListBulletCxSpFirst,
.content .MsoListBulletCxSpMiddle,
.content .MsoListBulletCxSpLast {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin: 0 0 1em 0 !important;
    text-indent: 0 !important;
}

/* =====================================================
   HR Stilləri
   ===================================================== */

.content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1eb2a6, transparent);
    margin: 2em 0;
}

/* =====================================================
   Clearfix
   ===================================================== */

.content::after {
    content: '';
    display: table;
    clear: both;
}
