﻿h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 12px;
}

h6 {
    font-size: 10px;
}

p {
    font-size: 16px;
}

.container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 40px;
    max-width: 1200px;
    margin: auto;
/*    padding-left: 17%;*/
    max-width: 1300px;
}

/* Left Article */
.article {
    width: 59%;
    margin-top: -25px;
}

.article h1 {
font-weight: 500;
margin-bottom: 15px;
}

.meta {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta span {
    display: block;
}

.meta b {
    font-weight: bold;
}

/* Common table styles */
.article table {
    width: 100%;
    border: 1px solid;
    border-collapse: collapse;
    background-color: #fff;
    border-color: #000;
}

    .article table th,
    .article table td {
        border: 1px solid;
        padding: 6px;
        color: #000;
        word-break: break-word;
    }

/* Striped rows */
.article tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* container end */

.article img {
    width: 100%;
    border-radius: 10px;
}

.article {
    margin-bottom: 2rem;
}

    .article p {
        margin-bottom: 0.1rem;
        color: #444;
    }

.article strong {
    color: #222;
    font-weight: 600;
}

    .article h3 {
        margin: 1rem 0 0.5rem;
        color: #222;
    }

    .article ul,
    .article ol {
        margin: 1.5rem 0;
        padding-left: 1.5rem;
    }

.article li {
    margin-bottom: 0.5rem;
}

.article img {
    height: auto !important;
    width: 100% !important;
}

/* Common table styles */
.article table {
    width: 100%;
    border: 1px solid;
    border-collapse: collapse;
    background-color: #fff;
    border-color: #000;
}

    .article table th,
    .article table td {
        border: 1px solid;
        padding: 6px;
        color: #000;
        word-break: break-word;
    }

    /* Striped rows */
    .article table tr:nth-child(even) {
        background-color: #f9f9f9;
    }


.author-card {
    margin: 20px auto;
    padding: 1rem 1rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: justify;
}

    .author-card .content {
        display: flex;
        gap: 20px;
    }

.author-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    max-width: 90px;
    max-height: 90px;
}

.author-info h3 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}


.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .author-info h3 {
        font-weight: 600;
        color: var(--dark-color);
        margin: 0;
    }

    .author-info p {
        color: var(--secondary-color);
        margin: 0px;
    }

/* Sidebar */
.sidebar {
    /* flex: 0.49; */
    width: 25%;
}

.ad-label {
    color: #555;
    text-align: center;
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ad {
    margin-bottom: 30px;
}

.ad img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.sidebar h3 {
    font-weight: bold;
    margin: 0;
}

.underline {
    width: 93%;
    height: 5px;
    background: #40c6cd;
    margin-bottom: 1.5rem;
}

/* Related Card */
.card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 350px;
    margin: auto;
}

.card {
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card:hover,
.card-content:hover {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    transform: scale(1.05);
    color: #ef4565;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 15px;
    color: #fff;
}

    .card-content h3 {
        font-weight: 700;
        margin-bottom: 10px;
        text-decoration: underline;
    }

    .card-content .author,
    .card-content .date {
        color: #ccc;
        margin: 6px 0px;
    }

.card-content .btn {
    display: inline-block;
    background-color: #35d0d6;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 12px;
}

.card-content .btn:hover {
    background-color: white;
    color: #ef4565;
}

.share-section {
    text-align: center;
    max-width: 600px;
    margin: auto;
}

    .share-section h4 {
        margin-bottom: 10px;
        font-weight: 600;
    }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

    .social-icons a {
        color: #222;
        transition: color 0.3s ease;
    }

.social-icons a:hover {
    color: #ef4565;
}

.note-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    color: #555;
}

    .note-box i {
        color: #555;
    }

.note-box span {
    flex: 1;
    text-align: left;
}

/* Section Title */
.heading {
    display: inline-block;
    padding-left: 5%;
    padding-top: 4%;
}

    .heading h1 {
        font-weight: 500;
        color: #111;
        margin: 0;
    }

.underline {
    width: 100%;
    height: 4px;
    background-color: #3ec8c8;
    margin-top: 4px;
}


/* Cards Container */
.cards-center {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-inline: 5%;
}

/* Card */
.cards {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 260px;
    display: flex;
    flex-direction: column;
}

.cards img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cards-content {
    padding: 15px;
    color: #fff;
    flex-direction: column;
    /* display: flex; */
    /* gap: 8px; */
}

.card-content a, .cards-content a {
    color: white;
}

    .card-content h3,
    .cards-content h3 {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 2.4em; /* reserve space for 2 lines */
        font-size: 18px;
        margin: 6px 0px;
    }

    .cards-content p {
        color: #ccc;
    }

.cards:hover,
.cards-content:hover {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    transform: scale(1.05);
    color: #ef4565;
}

/* Button */
.btn {
    display: inline-block;
    background: #35d0d6;
    color: #000;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    width: fit-content;
    margin-top: 10px;
}

.btn:hover {
    background: white;
    color: #ef4565;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 20px 5%;
    }

    .article {
        width: 100%;
    }

    .sidebar {
        width: 100%;
    }

    .next-reads h2 {
        padding-left: 0;
        text-align: center;
    }

    .cards-center {
        flex-wrap: wrap;
        gap: 35px;
    }

    .card-container {
        flex-direction: row;
        max-width: 100%
    }
    .heading {
        padding-top: 3%;
    }

}

/* --- Tablets & Large Phones (max-width: 768px) --- */
@media (max-width: 768px) {

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 14px;
    }

    h5 {
        font-size: 10px;
    }

    h6 {
        font-size: 8px;
    }

    .meta {
        flex-direction: column;
        gap: 5px;
    }

    .underline {
        width: 100%;
    }

    .card-container {
        flex-direction: column;
        max-width: 100%;
        gap: 15px;
    }

    .cards {
        width: 45%;
    }

}

/* --- Small Phones (max-width: 480px) --- */
@media (max-width: 480px) {

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }

    h4 {
        font-size: 12px;
    }

    h5 {
        font-size: 8px;
    }

    h6 {
        font-size: 6px;
    }

    .more-artilce {
        margin-inline: 10px;
    }

    .container {
        padding: 20px 10px;
    }

    .cards {
        width: 100%;
    }

    .cards-center {
        margin-inline: 0px;
    }

    .btn {
        padding: 5px 12px;
    }

    .social-icons {
        gap: 10px;
    }

    .author-card .content {
        gap: 15px;
    }

    .author-image {
        width: 75px;
        height: 75px;
        max-width: 75px;
        max-height: 75px;
    }

    .author-info {
        gap: 0px;
        height: 75px;
    }

    .heading {
        padding-left: 0px
    }
}



.threelinedot {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    cursor: pointer;
    transition: max-height 0.3s ease;
}

    /* When expanded, remove clamping */
    .threelinedot.expanded {
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
    }
