/* ---------- main set ---------- */
/* ------ font ------ */
@font-face 
{
    font-family: webFont;
    src: url(../../../font/archivo.ttf);
}

/* ------ variables ------ */
:root
{   
    /* default font size */
    --font-root-size: 12px;
    
    --news-border: #ef3e37; 
    --news-text: #58585a;
    --news-text-white: #ffffff;
}

/* ---------- css set ---------- */
html
{
    width: 100%;
    height: 100%;
}

body
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    padding: 0px;
    margin: 0px;
}

#content-box
{
    width:100%;
    max-width:1300px;
}

/* ---------- baner ---------- */
header img
{
    width:100%;
}

/* ---------- content ---------- */
#content
{
    width:98%;
    margin: 0px 1% 0px 1%;
    border-left: 5px solid var(--footer-frame);
}

.content-box
{
    width:93.7%;
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    font-family: webFont, sans-serif;
    padding: 10px 0px 10px 6%;
    font-size: var(--font-root-size);
}

.date
{
    margin: 0px;
    padding: 0px;
    text-align: right;
    font-size: 1.4em;
    color: var(--news-text);
}

/* news */
.news-box
{
    text-decoration: none;
    width: 25%;
    margin: 1% 2% 1% 2%;
}

.news-top
{
    width: 100%;  
    padding: 0px 0px 6% 0px;
    font-family: webFont, sans-serif;
    font-size: var(--font-root-size);
    border-top: 1px solid var(--news-text);
    border-left: 1px solid var(--news-text);
    border-right: 1px solid var(--news-text);
    border-bottom: 1px solid var(--news-text);
    cursor:pointer;
    transition: 0.25s linear;
}

.news-box:hover .news-top
{
    border-top: 1px solid var(--news-border);
    border-left: 1px solid var(--news-border);
    border-right: 1px solid var(--news-border);
    border-bottom: 1px solid var(--news-border);
    background-color: var(--news-border);
}

.news-box:hover .news-top .date
{
    color:#ffffff;
}

.news-box:hover .news-top .title
{
    color:#ffffff;
}

.news-box:hover .news-top .desc
{
    color:#ffffff;
}

.news-box:hover .news-top .button
{
    color:#ffffff;
}

.news-img
{
    width:100%;
}

.news-img img
{
    width:100%;
    margin-top: 5px;
    height: auto;
    border: top: 1px solid var(--news-text);
    border-left: 1px solid var(--news-text);
    border-right: 1px solid var(--news-text);
    border-bottom: 1px solid var(--news-text);
}

.date
{
    margin: 0px;
    padding: 7px 7px 2px 2px;
    font-size: 1.2em;
    text-align: right;
    color: var(--news-text);
}

.title
{
    margin: 0px;
    padding: 5% 10% 0px 10%;
    font-size: 1.4em;
    text-align: left;
    color: var(--news-text);
    text-transform: uppercase;
}

.desc
{
    margin: 0px;
    padding: 5% 10% 5% 10%;
    font-size: 1.4em;
    text-align: left;
    color: var(--news-text);
}

.button
{
    display: block;
    text-decoration: none;
    margin: 0px 30% 0px 30%;
    padding: 3px 3px 3px 3px;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    color: var(--news-text);
}

/* ---------- full news ---------- */
.f-content-box
{
    width:99.6%;
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-family: webFont, sans-serif;
    padding: 3% 0px 3% 0px;
    font-size: var(--font-root-size);
}

.f-news-box
{
    width: 70%;
    border: 2px solid var(--news-text);
    font-family: webFont, sans-serif;
    padding: 0px;
    font-size: var(--font-root-size);
}


/* foto */
.f-left
{
    width:30%;
    float: left;
    font-family: webFont, sans-serif;
    padding: 0px;
    font-size: var(--font-root-size);
}

.f-foto
{
    width:100%;
}

.f-noFoto
{
    width: 100% !important;
}

/* title & data */
.f-right
{
    width:70%;
    float: left;
}

.f-data
{
    width:99%;
    margin: 0px;
    padding: 4px 0px 0px 0px;
    font-size: 1.4em;
    text-align: right;
    color: var(--news-text);
}

.f-title
{
    margin: 0px;
    padding: 8% 10% 0px 10%;
    font-size: 1.7em;
    font-weight: bold;
    text-align: left;
    color: var(--news-text);
    text-transform: uppercase;
}

.f-content-box .f-title
{
     padding: 6% 10% 3% 10% !important;
}

/* desc */
.f-middle
{
    float: left;
    width:100%;
}

.f-desc
{
    padding: 0px 5% 0px 5%;
    margin: 0px;
    font-size: 1.6em;
    color: var(--news-text);
    text-align: justify;
}

/* link */
.f-linkBox
{
    float: left;
    width:100%;
}

.f-link-title
{
    padding: 0px 5% 0px 5%;
    margin: 2% 0px 1% 0px;
    text-align: left;
    font-size: 1.6em;
    font-weight: bold;
    color: var(--news-text);
}

.f-link-tab
{
    list-style-type: none;
    margin: 0px;
    padding: 0px 5% 0px 5.5%;
    
}

.f-link-tab li
{
    font-family: webFont, sans-serif;
    font-size: var(--font-root-size);
}

.f-link-tab li a
{
    font-size: 1.6em;
}

/* autor */
.f-bottom
{
    width:100%;
    float: left;
    display: flex;
    justify-content: flex-end;
    font-family: webFont, sans-serif;
    font-size: var(--font-root-size);
}

.f-autor
{
    margin: 0px;
    padding: 5px 10px 0px 10px;
    font-size: 1.5em;
    text-align: right;
    color: #fff;
    background-color: var(--news-border);
}


/* ---------- height-fix ---------- */
.height-fix:after
{
    content:'';
    display:block;
    clear:both;
}


@media screen and (max-width:1200px)
{
    
    .title
    {
        font-size: 1.2em;
    }

    .desc
    {
        font-size: 1.2em;
    }

    .button
    {
        font-size: 1.2em;
    }
}

@media screen and (max-width:1040px)
{
    .news-box
    {
        width: 28%;
    }
}

@media screen and (max-width:950px)
{
    .news-box
    {
        width: 245px;
    }
}

@media screen and (max-width:909px)
{
    .n-mobile
    {
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0px 10px 0px !important;
    }
}






