/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    background-image: url("https://smrajaxii-unita.id/wp-content/uploads/2019/08/images.jpg");
    background-position: center top;
    background-repeat: repeat;
    background-attachment: scroll;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #294a70;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #15305b;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.clear-fix::after {
    content: "";
    display: table;
    clear: both;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Page Container */
#page {
    background-color: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* Top Header */
#tophead {
    background-color: #49688e;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

#tophead .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

/* Social Media Icons Left */
.social-media-icons {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.facebook:hover {
    background-color: #2d4373;
}

.social-icon.twitter {
    background-color: #000;
}

.social-icon.twitter:hover {
    background-color: #333;
}

.social-icon.youtube {
    background-color: #cd201f;
}

.social-icon.youtube:hover {
    background-color: #a01917;
}

#quick-contact {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#quick-contact ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 10px;
}

#quick-contact ul li {
    display: flex;
    align-items: center;
    gap: 5px;
}

#quick-contact ul li.quick-separator {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
}

#quick-contact ul li a {
    color: #fff;
    display: inline-flex;
    align-items: center;
}

#quick-contact ul li i {
    font-size: 14px;
}

#quick-contact ul li.quick-call i {
    color: #f4a024;
}

#quick-contact ul li.quick-email i {
    color: #f4a024;
}

.top-news {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.top-news i {
    color: #f4a024;
    font-size: 16px;
    flex-shrink: 0;
}

.top-news-title {
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.top-news a {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-news a:hover {
    color: #f4a024;
}

.quick-links {
    position: relative;
    flex-shrink: 0;
}

.links-btn {
    color: #fff;
    padding: 7px 15px;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.links-btn i {
    font-size: 14px;
    background-color: #f4a024;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -10px -15px -10px 15px;
}

.links-btn:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: #fff;
}

.links-btn:hover i {
    background-color: #d88a1a;
}

.quick-links .menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background-color: #fff;
    list-style: none;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 3px;
    overflow: hidden;
}

.quick-links:hover .menu {
    display: block;
}

.quick-links .menu li {
    border-bottom: 1px solid #f0f0f0;
}

.quick-links .menu li:last-child {
    border-bottom: none;
}

.quick-links .menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    font-size: 13px;
    transition: all 0.3s ease;
}

.quick-links .menu li a i {
    font-size: 16px;
    width: 20px;
}

.quick-links .menu li a:hover {
    background-color: #f5f5f5;
    color: #f4a024;
    padding-left: 20px;
}

/* Main Header */
#masthead {
    background-image: url("https://smrajaxii-unita.id/wp-content/uploads/2019/06/cropped-gedung-unita-1.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 30px 0;
    position: relative;
}

#masthead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.9);
}

#masthead .container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    margin-right: 20px;
}

#site-identity .site-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 5px 0;
}

#site-identity .site-title a {
    color: #294a70;
}

.site-description {
    font-size: 16px;
    font-style: italic;
    color: #666;
    margin: 0;
}

.search-section {
    min-width: 250px;
}

.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background-color: #fff;
}

.search-field {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    background-color: transparent;
}

.search-submit {
    background-color: #294a70;
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    border-radius: 0 25px 25px 0;
}

.search-submit:hover {
    background-color: #15305b;
}

/* Navigation */
#main-nav {
    background-color: #15305b;
    position: relative;
    border-bottom: 4px solid #f4a024;
}

.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.menu-toggle i {
    margin-right: 5px;
}

.menu-toggle .fa-close {
    display: none;
}

#primary-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

#primary-menu > li {
    position: relative;
}

#primary-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
}

#primary-menu > li:hover > a {
    background-color: rgba(41, 74, 112, 0.8);
    border-bottom: 3px solid #f4a024;
}

#primary-menu > li.current-menu-item > a {
    border-bottom: 3px solid #f4a024;
}

#primary-menu > li:first-child {
    background-color: #f4a024;
}

#primary-menu > li:first-child > a {
    color: #fff;
}

/* Sub Menu */
.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    color: #ffffff;
    font-size: 12px;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #294a70;
    list-style: none;
    min-width: 250px;
    display: none;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-top: 3px solid #f4a024;
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.sub-menu li {
    position: relative;
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.sub-menu li a:hover {
    background-color: #15305b;
    padding-left: 25px;
}

.sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

.sub-menu .menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    color: #fff;
    font-size: 12px;
}

/* Featured Slider */
#featured-slider {
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
}

.cycle-slideshow {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.slider-item {
    position: relative;
}

.slider-item img {
    width: 100%;
    height: auto;
}

.slide-caption {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.64);
    color: #294a70;
    padding: 10px 20px;
    border-radius: 0 100px 0 0;
    border-right: 6px solid #f4a024;
    max-width: fit-content;
}

.slide-caption h3 {
    font-size: 16px;
    margin: 0;
    color: #294a70;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.slide-caption h3 a {
    color: #294a70;
    text-decoration: none;
}

.cycle-prev,
.cycle-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    background-color: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.cycle-prev {
    left: 0;
}

.cycle-next {
    right: 0;
}

#main-slider .cycle-prev::after,
#main-slider .cycle-next::after {
    background-color: #294a70;
    display: block;
    font-size: 36px;
    line-height: 0.9;
    text-shadow: 0 0 1px #000000;
    transition: all 0.5s ease-in-out;
}

#main-slider .cycle-prev::after {
    content: "\f104";
    height: auto;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    padding: 10px 10px 10px 15px;
    border-radius: 0 30px 30px 0;
}

#main-slider .cycle-next::after {
    content: "\f105";
    height: auto;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    padding: 10px 15px 10px 10px;
    border-radius: 30px 0 0 30px;
}

/* Featured Content */
#featured-content {
    padding: 50px 0;
    background-color: #fff;
}

#featured-content article {
    text-align: center;
}

#featured-content .entry-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #294a70;
}

#featured-content img {
    margin: 0 auto 20px;
    border-radius: 5px;
}

#featured-content .entry-content {
    color: #666;
    line-height: 1.8;
}

/* News and Events */
#featured-news-events {
    background-color: #f5f5f5;
    padding: 50px 0;
}

.recent-news h2 {
    font-size: 32px;
    color: #294a70;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f4a024;
}

.recent-news .inner-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-post {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-post img {
    width: 100%;
    height: auto;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a {
    color: #294a70;
}

.block-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-content .button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f4a024;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
}

.news-content .button:hover {
    background-color: #d88a1a;
}

/* Main Content */
#content {
    padding: 50px 0;
}

#content .inner-wrapper {
    display: flex;
    gap: 30px;
}

#primary {
    flex: 1;
}

.entry-header .entry-title {
    font-size: 36px;
    color: #294a70;
    margin-bottom: 20px;
}

.entry-content {
    line-height: 1.8;
    color: #666;
}

.entry-content p {
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sidebar */
#sidebar-primary {
    width: 350px;
    flex-shrink: 0;
}

.widget {
    background-color: #f5f5f5;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.widget-title {
    font-size: 20px;
    color: #294a70;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f4a024;
}

.widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #666;
}

.widget ul li a:hover {
    color: #294a70;
}

.mapouter {
    position: relative;
    text-align: right;
    height: 246px;
    width: 100%;
}

.gmap_canvas {
    overflow: hidden;
    background: none !important;
    height: 246px;
    width: 100%;
}

.gmap_canvas iframe {
    width: 100%;
}

/* Footer */
#colophon {
    background-color: #15305b;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

#footer-navigation {
    margin-bottom: 20px;
}

#footer-navigation .menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#footer-navigation .menu li {
    margin: 0 15px;
}

#footer-navigation .menu li a {
    color: #fff;
}

#footer-navigation .menu li a:hover {
    color: #f4a024;
}

.copyright {
    margin: 15px 0;
    font-size: 14px;
}

.site-info {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.site-info a {
    color: #f4a024;
}

.sep {
    margin: 0 5px;
}

/* Scroll Up Button */
.scrollup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #f4a024;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s;
}

.scrollup:hover {
    background-color: #d88a1a;
    transform: translateY(-5px);
}

.scrollup.show {
    display: flex;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    #primary-menu {
        flex-wrap: wrap;
    }
    
    #primary-menu > li > a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    #main-slider .cycle-caption {
        left: 8.5%;
        max-width: 60%;
        padding: 15px 22px;
        top: 25%;
        width: auto;
        z-index: 999;
    }
}

@media screen and (max-width: 768px) {
    #tophead .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    #main-slider .cycle-caption {
        left: 12.5%;
        padding: 15px;
    }
    
    .social-media-icons {
        order: 1;
    }
    
    #quick-contact {
        order: 2;
        width: 100%;
    }
    
    #quick-contact ul {
        flex-wrap: wrap;
    }
    
    .top-news {
        order: 3;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    
    .quick-links {
        order: 4;
        margin-top: 5px;
    }
    
    #masthead .container {
        flex-direction: column;
        text-align: center;
    }
    
    .site-branding {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .custom-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    

    
    .menu-toggle {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .wrap-menu-content {
        display: none;
    }
    
    .wrap-menu-content.active {
        display: block;
    }
    
    #primary-menu {
        flex-direction: column;
    }
    
    #primary-menu > li {
        width: 100%;
    }
    
    .sub-menu {
        position: static;
        display: none;
        background-color: #294a70;
        box-shadow: none;
    }
    
    .menu-item-has-children.open > .sub-menu {
        display: block;
    }
    
    .recent-news .inner-wrapper {
        grid-template-columns: 1fr;
    }
    
    #content .inner-wrapper {
        flex-direction: column;
    }
    
    #sidebar-primary {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    #tophead .container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    #main-slider .cycle-caption {
        left: 13%;
        padding: 8px 15px;
        top: 55px;
        width: auto;
        max-width: 70%;
    }
    
    #main-slider .cycle-caption h3 {
        font-size: 14px;
        letter-spacing: 0.2px;
    }
    
    .social-media-icons {
        display: none;
    }
    
    #quick-contact {
        order: 1;
        width: 100%;
    }
    
    #quick-contact ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-news {
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    .quick-links {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .links-btn {
        width: 100%;
        text-align: center;
        justify-content: space-between;
    }
    
    #site-identity .site-title {
        font-size: 20px;
    }
    
    .search-form {
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    
    .search-submit {
        padding: 12px 20px;
        flex-shrink: 0;
        margin: -1px -1px -1px 0;
        border-radius: 0 25px 25px 0;
    }
    
    .search-field {
        padding: 12px 15px;
    }
    
    .slide-caption h3 {
        font-size: 14px;
    }
    
    #featured-content .entry-title {
        font-size: 22px;
    }
    
    .recent-news h2 {
        font-size: 24px;
    }
    
    .entry-header .entry-title {
        font-size: 28px;
    }
}
