/*
Theme Name: Campus Theme
Theme URI: https://example.com/
Author: Nama Kamu
Author URI: https://example.com/
Description: Custom WordPress theme untuk website perguruan tinggi.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: campus-theme
*/


/* ==================================================
   Base
================================================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222222;
    background-color: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}


/* ==================================================
   Header
================================================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
}

.site-header__container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* ==================================================
   Branding
================================================== */

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-logo {
    display: block;
    width: 60px;
    height: auto;
}

.site-title {
    display: block;
    color: #222222;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.site-description {
    margin: 5px 0 0;
    color: #666666;
    font-size: 14px;
}


/* ==================================================
   Navigation
================================================== */

.primary-menu {
    display: flex;
    align-items: center;
    gap: 25px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.primary-menu a {
    color: #222222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus {
    text-decoration: underline;
}


/* ==================================================
   Accessibility
================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 20px;
    top: 20px;

    padding: 10px 15px;

    background-color: #ffffff;
    color: #000000;

    z-index: 9999;
}


/* ==================================================
   Layout
================================================== */

.site-main {
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

/* ==================================================
   Home Intro
================================================== */

.home-intro {
    padding: 80px 0;
}

.home-intro__label {
    margin: 0 0 10px;

    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-intro__title {
    margin: 0 0 20px;

    font-size: 42px;
    line-height: 1.2;
}

.home-intro__content {
    max-width: 800px;

    font-size: 18px;
}

.home-intro__content p:first-child {
    margin-top: 0;
}

.home-intro__content p:last-child {
    margin-bottom: 0;
}

/* ==================================================
   Page
================================================== */

.page-content {
    padding: 70px 0;
}

.page-header {
    margin-bottom: 35px;
}

.page-title {
    margin: 0;

    font-size: 42px;
    line-height: 1.2;
}

.page-body {
    max-width: 850px;

    font-size: 17px;
    line-height: 1.8;
}

.page-body > *:first-child {
    margin-top: 0;
}

.page-body > *:last-child {
    margin-bottom: 0;
}

.page-body h2 {
    margin-top: 45px;
    margin-bottom: 15px;

    font-size: 30px;
    line-height: 1.3;
}

.page-body h3 {
    margin-top: 35px;
    margin-bottom: 12px;

    font-size: 24px;
    line-height: 1.3;
}

.page-body img {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ==================================================
   Single Post
================================================== */

.single-post {
    max-width: 900px;
    padding: 70px 0;
}

.single-post__header {
    margin-bottom: 35px;
}

.single-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-bottom: 15px;

    color: #666666;
    font-size: 14px;
}

.single-post__title {
    margin: 0;

    font-size: 44px;
    line-height: 1.2;
}

.single-post__thumbnail {
    margin: 0 0 40px;
}

.single-post__image {
    display: block;
    width: 100%;
    height: auto;
}

.single-post__content {
    font-size: 17px;
    line-height: 1.8;
}

.single-post__content > *:first-child {
    margin-top: 0;
}

.single-post__content > *:last-child {
    margin-bottom: 0;
}

.single-post__content h2 {
    margin-top: 45px;
    margin-bottom: 15px;

    font-size: 30px;
    line-height: 1.3;
}

.single-post__content h3 {
    margin-top: 35px;
    margin-bottom: 15px;

    font-size: 24px;
    line-height: 1.3;
}

.single-post__content p {
    margin-top: 0;
    margin-bottom: 22px;
}

.single-post__content img {
    max-width: 100%;
    height: auto;
}

/* ==================================================
   Home News
================================================== */

.home-news {
    padding: 80px 0;

    background-color: #f7f7f7;
}

.home-news__header {
    margin-bottom: 40px;
}

.home-news__label {
    margin: 0 0 8px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-news__title {
    margin: 0;

    font-size: 36px;
    line-height: 1.2;
}

.home-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* ==================================================
   News Card
================================================== */

.news-card {
    overflow: hidden;

    background-color: #ffffff;
    border: 1px solid #e5e5e5;
}

.news-card__thumbnail {
    display: block;
}

.news-card__image {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;
}

.news-card__content {
    padding: 25px;
}

.news-card__date {
    margin: 0 0 10px;

    color: #666666;
    font-size: 14px;
}

.news-card__title {
    margin: 0 0 15px;

    font-size: 22px;
    line-height: 1.35;
}

.news-card__title a {
    color: #222222;
    text-decoration: none;
}

.news-card__title a:hover,
.news-card__title a:focus {
    text-decoration: underline;
}

.news-card__excerpt {
    margin-bottom: 20px;

    color: #555555;
    font-size: 15px;
    line-height: 1.7;
}

.news-card__excerpt p {
    margin: 0;
}

.news-card__link {
    font-weight: 700;
    text-decoration: none;
}

.news-card__link:hover,
.news-card__link:focus {
    text-decoration: underline;
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 900px) {

    .home-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .home-news__grid {
        grid-template-columns: 1fr;
    }

    .home-intro {
        padding: 60px 0;
    }

    .home-intro__title {
        font-size: 34px;
    }

    .home-news {
        padding: 60px 0;
    }

    .home-news__title {
        font-size: 30px;
    }

}

/* ==================================================
   Footer
================================================== */

footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #dddddd;
}

footer p {
    margin: 0;
}