h1 {
    color: #04121C;
    text-align: center;
    font-family: "Playfair Display";
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 20px;
}

h2 {
    color: #04121C;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

h3 {
    color: #827A5B;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

h4 {
    color: #FFF;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

p {
    color: #04121C;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

body {
    margin: 0 6% 0 6%;
    background-color: #f3efeb;
}

h2 .article-main {
    margin: 30px 0 15px 0; 
}

a {
    color:inherit;
    text-decoration: none;
}

/* General Container Rules */
.flexbox {
    display: flex;
}

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

.bold {
    font-weight: 800;
}

/* Component Rules */

.line {
    background: #827A5B;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.15);
    margin: 0 0 20px 0;
    height: 7px;
    margin: 5% 0 5% 0;
}

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

.button {
    border: 0px;
    border-radius: 7px;
    background: #827A5B;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.button:hover {
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.25) inset;
}

/* Title */

.title-container {
    margin: 100px 0px 15px 0px;
}
.title {
    color: #827A5B;
}

/* Outer Rules */

.page-container {
    margin: 40px 0% 100px 0%;
    align-content: space-between;
    flex-direction: column;
    gap: 5%;
    width: 100%;
}

.main {
    flex-direction: column;
    align-content: space-between;
    gap: 5%;
}

/* Main Article */

.article-main {
    position: relative;
    border-radius: 8px;
    background: #f8f5f3;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.15);
    width:100%;
}

.article-main-sat {
    position: relative;
    border-radius: 8px;
    background: #f8f5f3;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.15);
    width:100%;
}

.article-main-article {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 12;
     overflow: hidden;
}

.img-article-main {
    width: 90%;
    padding: 5% 5% 0 5%;
    border-radius: 6px;
}

.text-article-main {
    padding: 0 5% 5% 5%;
    min-height: 500px;
}

.text-small {
    color: #04121C;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 0% 5% 0 0%;
}

.button-article-main {
    height: 42px;
    width: 42px;
    margin-left: 85%;
    position: absolute;
}

.sat-button-article-main {
    height: 42px;
    width: 42px;
    margin-left: 95%;
    position: absolute;
}

.button-main {
    padding-bottom: 3%;
    position: relative;
}

/* Sidebar Nagivation */
.side-nav {
    width: 85%;
    display: flex;
    align-content: space-between;
    gap: 2%;
}

.side-button {
    padding: 12px 5px;
    justify-content: center;
    align-items: center;
    gap: 9px;
    border-radius: 5px;
    background: #827A5B;
    box-shadow: 0px 10px 16px 0px rgba(0, 0, 0, 0.16), 0px 4px 4px 1px rgba(0, 0, 0, 0.06);
    margin-bottom: 35px;
    width: 100%;
    color: #FFFFFF;
    border-color: transparent;
}

.side-button:hover {
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.25) inset; 
}

/* Article-Right Styling*/

.article-right {
    width: 100%;
}

.card-container {
    flex-direction: column;
}

.article-right-card {
    flex-direction: column;
    padding: 5% 5% 5% 5%;
    margin: 4% 4% 4% 4%;
    border-radius: 8px;
    background: #f8f5f3;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.15);
}

.button-container-right {
    padding: 0% 0 0 75%;
}

.button-article-right {
    height: 36px;
    width: 36px;
    margin-left: 85%;
}

/*Sub-Article Styling*/

.sub-articles-main {
    flex-direction: column;
    align-content: space-between;
    gap: 6%;
    width: 100%;
}

.sub-article-container {
    width: 100%;
    margin: 2% 0 2% 0;
    border-radius: 8px;
    background: #f8f5f3;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.15);  
}

.sub-articles-card {
    position: relative;
    padding-bottom: 55px;
}

.sub-article-headline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.img-sub-articles-card {
    width: 90%;
    height: 200px;
    object-fit: contain;
    text-align: center;
    border-radius: 6px;
    padding: 5% 0% 5% 5%;
}

.sub-article-text {
    width: 80%;
    text-align: center;
    margin: 5% 0% 5% 5%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 9;
    overflow: hidden;
}

.button-container-sub {
    min-height: 55px;
    bottom: 0px;
    justify-content: flex-end;
    position: absolute;
    width: 92%;
}

.sub-button {
    height: 40px;
    width: 40px;
    padding: 0 0 0 0;
    margin: 0 0 0 0; 
}

@media screen and (min-width:768px) and (max-width: 1023px) {
    h1 {
        font-size: 56px;
        margin-bottom: 20px;
    }

    .page-container {
        flex-direction: column;
    }

    .side-nav {
        width: 100%;
        display: inline-flex;
        gap: 5%;
    }

    .side-button {
        width: 15%;
    }

    .main {
        flex-direction: column;
    }

    .article-main {
        width: 100%;
    }

    .trending-news {
        font-size: 36px;
        text-align: center;
    }

    .card-container {
        flex-direction: row;
        align-items: space-between;
        flex-wrap: wrap;
    }

    .article-right {
        width: 100%;
    }
    .article-right-card {
        width: 30%;
        flex-direction: column;
        padding: 5% 5% 5% 5%;
        margin: 4% 4% 4% 4%;
        border-radius: 8px;
        background: #f8f5f3;
        box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.15);
    }

    .sub-articles-main {
        flex-direction: row;
        flex-wrap: wrap;

    }
    .sub-article-container {
        width: 45%;

    }
}

@media screen and (min-width: 1024px) {

    h1 {
        font-size: 87px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    h4 {
        font-size: 24px;
    }
    
    p {
        font-size: 16px;
    }
    
    .line {
        height: 11px;
    }
    
    .trending-news {
        text-align: center;
    }
 
    .title-container {
        margin: 100px 0px 15px 0px;
    }
    .title {
        color: #827A5B;
    }
    
    .page-container {
        flex-direction: row;
    }
    
    .main {
        flex-direction: row;
        align-content: space-between;
        gap: 5%;
    }
    
    .article-main {
        width:75%;
    }
    
    .text-small {
        font-size: 14px;
    }
    
    .side-nav {
        width: 10%;
        flex-direction: column;
        gap:0;
    }
    
    .side-button {
        padding: 13px 12px;
    }
    
    .article-right {
        width: 30%;
    }
    
    .card-container {
        flex-direction: column;
    }
    
    .sub-articles-main {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sub-article-container {
        width: 28%;
    }
} 