/*
Theme Name: CNU Theme
Description: Custom Cebu Normal University Theme
Author: Cebu Normal University
Version: 1.0
*/

/* ================================
   RESET
================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}


/* ================================
   CONTAINER
================================ */

.cnu-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ================================
   BRAND
================================ */

.cnu-header-brand {
    background: #ffffff;
    border-bottom: 4px solid #ffd700;
}

.cnu-brand {
    display: flex;
    align-items: center;
    padding: 18px 0;
    gap: 18px;
}

.cnu-logo img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.cnu-title {
    font-size: 30px;
    font-weight: 700;
    color: #800000;
    line-height: 1.2;
}

.cnu-tagline {
    margin-top: 4px;
    font-size: 14px;
    color: #666666;
}


/* ================================
   NAVIGATION
================================ */

.cnu-navigation {
    position: relative;
    z-index: 9999;
    background: #800000;
}

.cnu-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cnu-menu li {
    position: relative;
}

.cnu-menu li a {
    display: block;
    padding: 16px 15px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.cnu-menu li a:hover {
    color: #ffd700;
    background: rgba(255,255,255,0.08);
}


/* ================================
   DROPDOWN
================================ */

.cnu-menu ul {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 240px;

    margin: 0;
    padding: 0;

    list-style: none;

    background: #800000;

    border-top: 3px solid #ffd700;

    opacity: 0;
    visibility: hidden;

    z-index: 9999;
}

.cnu-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.cnu-menu ul li {
    width: 100%;
}

.cnu-menu ul li a {
    padding: 11px 15px;
}

.cnu-menu ul ul {
    top: -3px;
    left: 100%;
}


/* ================================
   STICKY NAVIGATION
================================ */

.cnu-navigation.cnu-navigation-fixed {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 99999;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.20);

    transition: top 0.25s ease;
}


/* ================================
   HIDE WHEN SCROLLING DOWN
================================ */

.cnu-navigation.cnu-navigation-hidden {
    top: -100px;
}


/* ================================
   SHOW WHEN SCROLLING UP
================================ */

.cnu-navigation.cnu-navigation-visible {
    top: 0;
}


/* ================================
   FOOTER
================================ */

.cnu-footer {
    padding: 30px 0;
    background: #800000;
    color: #ffffff;
    text-align: center;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

    .cnu-brand {
        padding: 12px 0;
    }

    .cnu-logo img {
        width: 55px;
        height: 55px;
    }

    .cnu-title {
        font-size: 21px;
    }

    .cnu-tagline {
        font-size: 11px;
    }

    .cnu-menu {
        display: block;
    }

    .cnu-menu li {
        width: 100%;
    }

    .cnu-menu ul {
        position: static;

        display: none;

        opacity: 1;
        visibility: visible;

        min-width: 0;

        border: 0;
    }

    .cnu-menu li:hover > ul {
        display: block;
    }

}

/* ========================================
   SINGLE POST / NEWS ARTICLE
======================================== */

.cnu-single {
    background: #f5f5f5;
    padding: 50px 0 70px;
}


/* ========================================
   ARTICLE CONTAINER
======================================== */

.cnu-post {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 45px 55px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


/* ========================================
   CATEGORY
======================================== */

.cnu-post-category {
    margin-bottom: 15px;
}

.cnu-post-category a {
    display: inline-block;
    padding: 6px 12px;

    background: #800000;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    text-decoration: none;

    border-radius: 3px;
}

.cnu-post-category a:hover {
    background: #a00000;
    color: #ffd700;
}


/* ========================================
   TITLE
======================================== */

.cnu-post-title {
    margin: 0;

    color: #222222;

    font-size: 42px;
    line-height: 1.2;

    font-weight: 700;
}


/* ========================================
   META
======================================== */

.cnu-post-meta {
    margin-top: 15px;

    color: #777777;

    font-size: 14px;
}

.cnu-meta-divider {
    margin: 0 8px;
    color: #800000;
}


/* ========================================
   FEATURED IMAGE
======================================== */

.cnu-post-featured {
    margin-top: 35px;
    margin-bottom: 35px;

    text-align: center;
}

.cnu-featured-image {
    display: block;

    width: 100%;
    height: auto;

    max-height: 600px;

    object-fit: cover;

    margin: 0 auto;

    border-radius: 5px;
}


/* ========================================
   ARTICLE CONTENT
======================================== */

.cnu-post-content {

    color: #333333;

    font-size: 17px;

    line-height: 1.8;
}


/* Paragraphs */

.cnu-post-content p {
    margin: 0 0 22px;
}


/* Headings */

.cnu-post-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;

    color: #800000;

    font-size: 30px;
}

.cnu-post-content h3 {
    margin-top: 30px;
    margin-bottom: 12px;

    color: #800000;

    font-size: 24px;
}


/* Links */

.cnu-post-content a {
    color: #800000;
    font-weight: 600;
}

.cnu-post-content a:hover {
    color: #b00000;
}


/* Images inside article */

.cnu-post-content img {
    max-width: 100%;
    height: auto;
}


/* Lists */

.cnu-post-content ul,
.cnu-post-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}


/* Blockquotes */

.cnu-post-content blockquote {

    margin: 30px 0;

    padding: 20px 25px;

    border-left: 5px solid #ffd700;

    background: #f8f8f8;

    font-size: 19px;
    font-style: italic;
}


/* ========================================
   POST FOOTER
======================================== */

.cnu-post-footer {

    margin-top: 45px;

    padding-top: 25px;

    border-top: 1px solid #eeeeee;
}


/* ========================================
   TAGS
======================================== */

.cnu-post-tags {
    font-size: 14px;
}

.cnu-post-tags strong {
    color: #800000;
    margin-right: 8px;
}

.cnu-post-tags a {

    display: inline-block;

    margin: 3px;

    padding: 5px 10px;

    background: #f1f1f1;

    color: #555555;

    text-decoration: none;

    border-radius: 3px;
}

.cnu-post-tags a:hover {
    background: #800000;
    color: #ffffff;
}


/* ========================================
   PREVIOUS / NEXT
======================================== */

.cnu-post-navigation {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-top: 35px;
}

.cnu-post-navigation a {

    display: inline-block;

    padding: 12px 18px;

    background: #800000;

    color: #ffffff;

    text-decoration: none;

    border-radius: 4px;

    font-size: 14px;

    font-weight: 600;
}

.cnu-post-navigation a:hover {
    background: #a00000;
    color: #ffd700;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .cnu-single {
        padding: 25px 0 40px;
    }

    .cnu-post {

        width: 94%;

        padding: 25px 20px;

        border-radius: 4px;
    }

    .cnu-post-title {
        font-size: 30px;
    }

    .cnu-post-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .cnu-post-navigation {
        display: block;
    }

    .cnu-post-navigation > div {
        margin-bottom: 10px;
    }

}