/*
Theme Name: Veteran RI Theme
Theme URI: #
Author: Semuajadi.com
Author URI: https://semuajadi.com/
Description: Tema custom WordPress menggunakan Bootstrap dan jQuery
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Metrophobic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

:root {
    --primary-color: #2e2b26;
    --secondary-color: #e39b4f;
    --font-family: 'Roboto Slab', sans-serif;
    --font-family-number: 'Manrope', sans-serif;
    --background-color: #fffcf2;
}
.wp-theme-veteranritheme {
    font-family: var(--font-family), sans-serif;
    padding-top: 106px;
    background-color: var(--background-color);
}
.btn-primary{
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--secondary-color) !important;
    color: #fff;
}

p{
    font-size: 1.175rem;
    line-height: 1.78;
}
.container{
    padding-left: 24px;
    padding-right: 24px;
}

nav {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 0px !important;
    border-bottom: var(--secondary-color) 20px solid;
}

.navbar-brand {
    background-color: #63554a;
    position: absolute;
    top: 0px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    padding-bottom: 30px;
    transition: padding-bottom 0.8s ease;
}

.navbar-brand img {
    width: 100px;
    height: auto;
    transition: width 0.8s ease;
}

.navbar-nav .dropdown-menu{
    top: 53px;
    border: none;
    border-radius: 0;
    background-color: var(--primary-color);
}

.navbar-nav .dropdown-menu .nav-item a:active {
    background-color: #efefef !important;
}

.navbar-nav .dropdown-menu .nav-item a{
    color: var(--secondary-color) !important;
    font-size: 1.1rem;
    padding: 10px 20px !important;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 0px 20px !important;
}

.bg-brand {
    background-color: #63554a;
}

.wrapper-logo {
    max-width: 180px;
    text-align: center;
    padding: 20px 0;
}

.wrapper-logo img {
    width: 170px;
    height: auto;
    transition: width 0.8s ease;
}

footer {
    color: #fff !important;
    border-top: 20px solid var(--secondary-color);
}

footer h5 {
    font-size: 1.3rem;
    text-transform: capitalize;
    color: var(--secondary-color) !important;
    font-weight: bold;
}

footer h5:hover {
    color: var(--secondary-color) !important;
    font-weight: bold;
}

footer a {
    color: #fff !important;
    text-decoration: none;
}

footer .copyright {
    font-size: 12px;
}
footer .copyright{
    font-size: 11px
}
footer .copyright a {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}
.bg-orange {
    background-color: var(--secondary-color) !important;
}

.bg-basic {
    background-color: var(--background-color) !important;
}

.text-orange{
    color: var(--secondary-color);
}

.media-post .grid-media-post {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-row-gap: 1rem;
    grid-column-gap: 1rem;
    position: relative;
}

.media-post .grid-media-post .card:first-child {
    grid-area: 1 / 1 / 3 / 3;
    max-width: 100%;
    margin-top: 0;
}

.media-post .grid-media-post .card:first-child .card-body p {
    display: block;
}

.media-post .grid-media-post .card .card-body p {
    display: none;
}

.media-post .grid-media-post .card .card-body{
    background-color: var(--background-color);
}

.media-post .grid-media-post .card {
    border: none;
}

.media-post .grid-media-post .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-post .grid-media-post .card:first-child img {
    height: 400px;
}

.related-posts .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* #majalah .owl-stage-outer {
  padding-right: 0 !important;
  padding-left: 200px;
  overflow: visible;
} */

#majalah {
    position: relative;
    overflow: hidden;
}

#majalah::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://lvri.semuajadi.com/wp-content/themes/veteranritheme/assets/images/asset-gambar-tangan.png');
    background-size: 280px;
    background-position: left;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    opacity: 1;
}

/* Saat background ingin disembunyikan */
#majalah.no-bg::before {
    opacity: 0;
}

/* Konten tetap di atas background */
#majalah>* {
    position: relative;
    z-index: 1;
}

#myTabProfile .nav-link{
    border-top: 5px solid transparent !important;
    background-color: #000000 !important;
    color: #714d27 !important;
    padding: 20px !important;
    border-radius: 0;
    font-weight: bold;
}

#myTabProfile .nav-link.active {
    border-top: 5px solid var(--secondary-color) !important;
    background-color: #2f2a26 !important;
    color: var(--secondary-color) !important;
}

#myTabContent{
    padding: 20px;
    background-color: #2f2a26 !important;
    border-radius: 0;
    color: #fff;
}

.sejarah-lvri h2{
    border-left: 15px solid var(--secondary-color);
    padding-left: 20px;
    margin-bottom: 50px;
    line-height: 2.7rem;
}

.sejarah-lvri p {
    font-size: 1.5rem;
    text-align: justify;
    line-height: 1.6;
}

.timeline {
    /* font-size: 1.5rem;
    line-height: 1.6; */
    position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 185px;
  border-right:2px dashed #999;
  z-index: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.timeline-year {
  text-align: right;
  padding-right: 2rem;
}

.timeline-year div {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}

.timeline-year span {
  text-transform: uppercase;
  font-weight: bold;
}

.timeline-label {
  background-color: var(--secondary-color);
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: bold;
  position: relative;
  top: 10px;
  white-space: nowrap;
  margin-right: 2rem;
}

.timeline-content {
  flex: 1;
}

.timeline-content ul {
  padding-left: 1.2rem;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.tentang-lvri h2{
    border-left: 15px solid var(--secondary-color);
    padding-left: 20px;
    margin-bottom: 20px;
}

.section-title{
    position: relative;
    height: 2rem;
    margin-bottom: 10px;
}

.section-title:before {
    content: "";
    position: absolute;
    height: 1px;
    width: 100%;
    background: var(--secondary-color);
    z-index: 0;
    bottom: 50%;
}

.page-title{
    position: relative;
    height: 3.5rem;
    margin-bottom: 20px;
}

.page-title:before {
    content: "";
    position: absolute;
    height: 1px;
    width: 100%;
    background: var(--secondary-color);
    z-index: 0;
    bottom: 50%;
}

.page-title h1{
    position:absolute;
    background-color: var(--background-color);
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    padding-right: 20px;
}


.sidebar-title{
    height: 28px;
    position: relative;
    z-index: 1;
}

.page-title h5, .sidebar-title h5, .section-title h3{
    position: absolute;
    background-color: var(--background-color);
    padding-right: 10px;
    margin: 0;
    z-index: 2;
}

.sidebar-title h5 span{
    font-weight: bold;
}
.sidebar-title:before {
    content: "";
    position: absolute;
    height: 1px;
    width: 100%;
    background: var(--secondary-color);
    z-index: 0;
    bottom: 50%;
}

.sidebar-content img{
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.sidebar-content .item-post{
    color: black;
    font-weight: bold;
    text-decoration: none;
}

.sidebar-content .item-post:hover {
    color: var(--secondary-color);
}

.sidebar-content .item-post .title{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.list-group-custom{
    border-radius: 0;
}
.list-group-custom .list-group-item {
    display: flex;
    border: none;
    border: 1px solid #efefef;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.list-group-custom .list-group-item:hover a{
    color: var(--secondary-color) !important;
}
.list-group-custom .list-group-item.active {
    background-color: #2f2a26 !important;
}

.list-group-custom .list-group-item.active a {
    color: var(--secondary-color) !important;
}

.post-wrapper .item-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-wrapper .item-post{
    margin-bottom: 20px;
}

.post-wrapper .item-post .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
}
.page-kontak-kami{
    padding-top:300px;
    background-image: url(assets/images/tlnelw38jfok3wl.jpeg);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

.majalah-list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-row-gap: 2rem;
    grid-column-gap: 2rem;
}

.majalah-list .majalah-item {
    position: relative;
}

.majalah-list .majalah-item a {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.majalah-list .majalah-item a span{
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.majalah-list .majalah-item a img{
    border-radius: 10px;
    width: 100%;
    height: 390px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.majalah-flip {
    perspective: 1000px;
}

.majalah-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.majalah-cover {
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    transform-origin: left center;
    will-change: transform;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.majalah-cover img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.majalah-flip:hover .majalah-cover {
    transform: rotateY(-15deg) scale(1.02);
}

.post-navigation a{
    text-decoration: none;
    color: #2f2a26;
}
.pengurus-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.pengurus-item{
    width: 25%;
    text-align: center;
    margin-bottom: 20px;
}
.pengurus-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5%;
    transition: transform 0.3s ease;
}

.pengurus-item .jabatan{
    font-weight: bold;
    color: #2f2a26;
    margin-top: 10px;
    font-size: 1rem;
}

.pengurus-item .nama{
    color: var(--secondary-color);
    font-size: 1rem;
}

.breadcrumb{
    font-size: 0.75rem;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-meta{
    margin-bottom: 20px;
}
.post-category{
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 5px;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.post-title {
    font-size: 2.0rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-thumbnail img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.post-majalah-thumbnail img{
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.78;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-buttons a {
    display: inline-block;
    text-decoration: none;
    color: #555;
    transition: background-color 0.3s ease;
}

.share-buttons a .fa-facebook{
    color: #3b5998;
}
.share-buttons a .fa-twitter{
    color: #1da1f2;
}
.share-buttons a .fa-linkedin{
    color: #0077b5;
}
.share-buttons a .fa-whatsapp{
    color: #25d366;
}

.card-image {
  overflow: hidden;
}

.card:hover .card-image img {
  transform: scale(1.1); /* zoom out ke normal saat hover */
}

.otherMagz .item{
    position: relative;
    padding: 0 !important;
}

.otherMagz .more-item{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 0.375rem;
}

.otherMagz .item span{
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* .otherMagz .item::before{
    content: "Majalah";
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background-color: var(--background-color);
    width: 100px;
    height: 20px;

} */
/* .otherMagz .item:hover {
    border: 1px solid #efefef;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
} */
.otherMagz .item img{
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.font-number{
    font-family: var(--font-family-number);
    font-weight: 600;
}

.font-number:hover{
    color: #fff !important;
}

@media (max-width: 768px) {
    .media-post .grid-media-post {
        grid-template-columns: repeat(1, 1fr);
        grid-row-gap: 0;
        grid-column-gap: 0;
        padding-bottom: 5px;
    }

    .media-post .grid-media-post .card {
        grid-area: unset !important;
    }
}

@media (max-width: 420px) {
    .wp-theme-veteranritheme {
        padding-top: 89px;
    }
    .page-title h1{
        font-size: 1.8rem;
    }

    .post-thumbnail img{
        height: 200px;
    }

    .breadcrumb{
        display: none;
    }
    nav {
        padding: 0px !important;
        border-bottom: var(--secondary-color) 10px solid;
    }
    .navbar-brand {
        background-color: transparent;
        position: relative;
        top: 0px;
        clip-path: none;
        padding-bottom: 0;
    }

    .navbar-nav {
        top: 50px;
        display: flex;
        flex-direction: column;
    }

    .navbar-nav .nav-item {
        padding: 10px 0 !important;
    }

    .navbar-nav .dropdown-menu{
        border: none;
        background-color: transparent !important;
    }

    .navbar-nav .dropdown-menu .nav-item{
        padding: 0 20px !important;
    }

    .navbar-nav .dropdown-menu .nav-item a {
        color: var(--secondary-color) !important;
        font-size: 1.1rem;
    }

    .navbar-brand img{
        width: 75px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .wrapper-logo {
        display: none;
    }

    .media-post .grid-media-post .card img {
        height: 220px !important;
    }

    .media-post .grid-media-post .card .card-body p {
        display: block;
    }

    .pengurus-item{
        width: 60%;
    }

    .majalah-list{
        grid-template-columns: repeat(2, 1fr);
        grid-row-gap: 1rem;
        grid-column-gap: 1rem;
    }
    .majalah-list .majalah-item a img{
        border-radius: 5px;
        width: 100%;
        height: 210px;
        transition: transform 0.3s ease;
    }
    .timeline::before {
        display: none;
    }

    .timeline-label{
        top: 0;
    }
    
    .timeline-item {
        display: flex;
        flex-direction: column;
        margin-bottom: 3rem;
        position: relative;
        gap: 1.5rem;
        z-index: 1;
    }
    .timeline-year {
        text-align: center;
        padding: 0;
    }

    .otherMagz .item img,
    .otherMagz .more-item{
        height: 230px;
    }

    .otherMagz .item span{
        padding: 5px;
        font-size: 12px;
    }

    .share-buttons{
        font-size: 14px;
    }

    .btn-download{
        width: 100%;
    }

    /* .timeline-year div {
        font-size: 1rem;
        font-weight: bold;
        margin: 0;
    } */
}