Files
edukarsa/style.css
T

385 lines
21 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
Theme Name: EduKarsa
Theme URI: https://edukarsa.masbudi.my.id
Author: masbudikusuma
Author URI: https://masbudi.my.id
Description: Tema WordPress profesional untuk sekolah dan kampus (Gaya Modern Card Layout).
Version: 1.1.4
*/
:root {
--primary-color: #0b4a8e;
--secondary-color: #1a73e8;
--text-color: #334155;
--text-muted: #64748b;
--heading-color: #0f172a;
--bg-light-blue: #f8fafc;
--bg-white: #ffffff;
--radius: 14px;
--shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
--font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
/* 1. RESET & DASAR */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: var(--font-main);
color: var(--text-color);
background-color: var(--bg-white);
line-height: 1.7;
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
top: 0px !important;
position: static !important;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--primary-color); transition: 0.3s; }
h1, h2, h3, h4, h5, h6 { color: var(--heading-color); font-weight: 800; line-height: 1.3; }
/* 2. LAYOUT UTAMA */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.edukarsa-section { padding: 50px 0; }
.section-title { font-size: 30px; color: var(--heading-color); margin-bottom: 12px; font-weight: 800; letter-spacing: -0.5px; }
/* 3. HEADER & NAV */
.site-header { position: sticky; top: 0; z-index: 999; box-shadow: 0 4px 15px rgba(0,0,0,0.12); padding: 15px 0; background-color: var(--primary-color); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 15px; color: #fff; }
.site-title { margin: 0; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.header-nav-wrap { display: flex; align-items: center; gap: 20px; }
.nav-menu-custom { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
.nav-menu-custom li a { display: block; color: #ffffff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.8px; padding: 10px 0; }
.nav-menu-custom li a:hover { color: #f39c12; }
/* DROPDOWN */
.nav-menu-custom li { position: relative; }
.nav-menu-custom .sub-menu {
position: absolute;
top: 100%;
left: 0;
background-color: var(--primary-color);
min-width: 220px;
padding: 10px 0;
border-radius: 0 0 8px 8px;
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
opacity: 0;
visibility: hidden;
transform: translateY(15px);
transition: all 0.3s ease;
z-index: 1000;
}
.nav-menu-custom li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu-custom .sub-menu li a { padding: 10px 20px; font-size: 14px; text-transform: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-menu-custom .sub-menu li:last-child a { border-bottom: none; }
.nav-menu-custom .sub-menu .sub-menu { top: 0; left: 100%; transform: translateX(15px); }
.nav-menu-custom .sub-menu li:hover > .sub-menu { transform: translateX(0); }
/* 4. SLIDER */
.edukarsa-hero-slider { padding: 0; }
.slider-container { position: relative; width: 100%; overflow: hidden; }
.slider-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.slider-wrapper::-webkit-scrollbar { display: none; }
.slide-item { flex: 0 0 100%; position: relative; scroll-snap-align: center; }
/* 5. KOMPONEN UMUM */
.bg-light-blue { background-color: var(--bg-light-blue); }
.bg-dark-blue { background-color: var(--primary-color); }
.card-style { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, 0.9); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-style:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1); }
.top-border-blue { border-top: 4px solid var(--primary-color); }
.title-underline { width: 50px; border: 2px solid #f39c12; margin: 10px auto 25px; }
/* BUTTONS */
.btn-primary { display: inline-block; background-color: var(--primary-color); color: #ffffff !important; padding: 12px 30px; border-radius: 50px; font-weight: 700; font-size: 14px; letter-spacing: 0.3px; border: none; cursor: pointer; }
.btn-primary:hover { background-color: var(--secondary-color); color: #ffffff !important; transform: translateY(-2px); }
.btn-light { background-color: #ffffff !important; color: var(--primary-color) !important; }
.btn-light:hover { background-color: #f8fafc !important; color: var(--primary-color) !important; }
.btn-outline-primary { display: inline-block; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 700; }
.btn-outline-primary:hover { background-color: var(--primary-color); color: #fff; }
.badge-title { display: inline-block; color: var(--secondary-color); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
/* 6. GRID SYSTEM BERANDA */
.edukarsa-stats { padding: 0; position: relative; z-index: 20; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -95px; margin-bottom: 0; }
.stat-card-modern { padding: 32px 28px; text-align: left; border-radius: 18px; border-top: 5px solid var(--secondary-color); background: #fff; }
.stat-icon-wrapper { width: 55px; height: 55px; background-color: #f1f5f9; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 24px; }
.stat-icon-wrapper img { width: 28px; height: 28px; object-fit: contain; }
.stat-card-modern .stat-number { font-size: 40px; font-weight: 800; color: var(--primary-color); margin-bottom: 4px; line-height: 1; }
.stat-card-modern .stat-title { font-size: 17px; font-weight: 800; color: var(--heading-color); margin-bottom: 6px; }
.stat-card-modern .stat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.edukarsa-sambutan { padding: 45px 0 50px; }
.sambutan-grid { display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: start; }
.sambutan-text { color: #475569; font-size: 15px; line-height: 1.8; margin-bottom: 25px; }
.milestone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.program-card { padding: 30px 22px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.video-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 4px solid rgba(255,255,255,0.25); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #e74c3c; color: white; padding: 18px; border-radius: 50%; font-size: 22px; cursor: pointer; }
/* PARALLAX */
.parallax-section-wrapper { position: relative; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }
.parallax-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; background-color: var(--primary-color); opacity: 0.92; }
.relative-z2 { position: relative; z-index: 2; }
/* KEUNGGULAN */
.keunggulan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 25px; }
.keunggulan-card { position: relative; padding: 25px 28px; display: flex; align-items: flex-start; overflow: hidden; }
.keunggulan-number { position: absolute; top: 8px; right: 12px; font-size: 64px; font-weight: 900; color: rgba(11, 74, 142, 0.07); line-height: 1; z-index: 0; }
.keunggulan-content-inner { position: relative; z-index: 1; }
.keunggulan-content-inner h4 { color: var(--primary-color); margin-bottom: 8px; font-size: 17px; }
/* FLOATING CTA */
.edukarsa-cta-floating-section { position: relative; z-index: 15; margin-top: -45px; margin-bottom: 20px; }
.cta-floating-card {
background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
border-radius: 20px;
padding: 35px 45px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 18px 40px rgba(0,0,0,0.18);
border: 1px solid rgba(255,255,255,0.2);
}
.cta-floating-title { font-size: 26px; font-weight: 800; color: #ffffff; margin: 0; letter-spacing: -0.5px; }
.cta-btn-custom { padding: 14px 34px; font-size: 15px; font-weight: 800; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
/* NEWS */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-content { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.news-title { font-size: 17px; margin-bottom: 10px; line-height: 1.4; font-weight: 700; }
/* FAQ ACCORDION SECTION */
.edukarsa-faq-section { padding: 60px 0 80px; background-color: #f8fafc; }
.faq-accordion-container { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #ffffff; border-radius: var(--radius); border: 1px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.03); overflow: hidden; transition: all 0.25s ease; }
.faq-item:hover { border-color: var(--secondary-color); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.faq-header { width: 100%; padding: 22px 26px; background: transparent; border: none; outline: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; }
.faq-title { font-size: 16px; font-weight: 700; color: var(--heading-color); margin: 0; line-height: 1.45; transition: color 0.2s ease; }
.faq-item:hover .faq-title, .faq-item.active .faq-title { color: var(--primary-color); }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px; font-weight: 800; color: var(--primary-color); transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease; line-height: 1; }
.faq-item.active .faq-icon { background: var(--primary-color); color: #ffffff; transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 26px; color: var(--text-color); font-size: 15px; line-height: 1.75; }
.faq-body-content p { margin-bottom: 0; }
.faq-body-content p + p { margin-top: 10px; }
.faq-item.active .faq-body { max-height: 400px; padding: 0 26px 22px; }
/* 7. IMAGE LOCKS */
.img-wrapper-slider { height: 580px; width: 100%; overflow: hidden; position: relative; }
.img-wrapper-landscape { aspect-ratio: 16/10; width: 100%; overflow: hidden; position: relative; border-radius: 8px; }
.img-wrapper-video { aspect-ratio: 16/9; width: 100%; overflow: hidden; position: relative; border-radius: 10px; }
.img-wrapper-portrait { aspect-ratio: 3/4; width: 100%; max-width: 360px; overflow: hidden; position: relative; border-radius: 16px; box-shadow: var(--shadow); }
.img-wrapper-slider img, .img-wrapper-landscape img, .img-wrapper-video img, .img-wrapper-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.img-placeholder { width: 100%; height: 100%; background-color: #f1f5f9; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; text-align: center; border: 2px dashed #cbd5e1; }
/* 8. FOOTER */
.site-footer { background: linear-gradient(180deg, var(--primary-color) 0%, #08284d 100%); color: #ffffff; padding: 70px 0 0; border-top: 5px solid var(--secondary-color); }
.footer-grid-wrapper { display: grid; grid-template-columns: 1.4fr 1.1fr 0.9fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-col-title { color: #ffffff; font-size: 17px; font-weight: 700; margin-bottom: 22px; position: relative; padding-bottom: 10px; letter-spacing: -0.2px; }
.footer-col-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 35px; height: 3px; background-color: var(--secondary-color); border-radius: 2px; }
.footer-brand-desc { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 20px; }
.footer-hours-box { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.06); padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.hours-icon { font-size: 22px; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; }
.footer-contact-list li a { color: rgba(255,255,255,0.9); }
.footer-contact-list li a:hover { color: #f39c12; }
.f-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-links-custom { list-style: none; padding: 0; margin: 0; }
.footer-links-custom li { margin-bottom: 12px; }
.footer-links-custom li a { color: rgba(255,255,255,0.82); font-size: 14px; transition: all 0.25s ease; display: inline-flex; align-items: center; gap: 8px; }
.footer-links-custom li a::before { content: '›'; font-size: 16px; color: var(--secondary-color); font-weight: bold; transition: transform 0.2s; }
.footer-links-custom li a:hover { color: #ffffff; padding-left: 5px; }
.footer-links-custom li a:hover::before { transform: translateX(3px); color: #f39c12; }
.footer-social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); color: #ffffff !important; border: 1px solid rgba(255,255,255,0.15); transition: all 0.25s ease; }
.social-btn:hover { background: var(--secondary-color); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.25); border-color: transparent; }
.footer-bottom-bar { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; background: rgba(0,0,0,0.15); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.copyright-text { margin: 0; font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-bottom-badge { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 500; }
/* 9. SINGLE & SIDEBAR */
.single-layout-wrapper { display: grid; grid-template-columns: 2.6fr 1fr; gap: 35px; align-items: start; }
.sidebar-widget { padding: 25px; margin-bottom: 25px; }
.sidebar-widget-title { font-size: 18px; font-weight: 800; color: var(--heading-color); margin-bottom: 18px; border-bottom: 2px solid var(--primary-color); padding-bottom: 8px; }
/* 10. TYPOGRAPHY KONTEN */
.entry-content { font-size: 16px; color: #334155; line-height: 1.85; }
.entry-content p { margin-bottom: 22px; }
.entry-content h2 { font-size: 26px; margin: 35px 0 15px; color: var(--heading-color); }
.entry-content h3 { font-size: 21px; margin: 28px 0 12px; color: var(--heading-color); }
.entry-content ul, .entry-content ol { margin: 0 0 24px 25px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote { margin: 30px 0; padding: 20px 25px; background: #f8fafc; border-left: 4px solid var(--primary-color); font-style: italic; color: #475569; border-radius: 0 8px 8px 0; }
/* 11. PAGINATION */
.pagination { margin-top: 45px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; align-items: center; }
.pagination .page-numbers { display: inline-block; padding: 9px 16px; background: #fff; color: var(--text-color); border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
/* 12. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) { .footer-grid-wrapper { grid-template-columns: repeat(2, 1fr); gap: 35px; } }
@media (max-width: 992px) {
.single-layout-wrapper { grid-template-columns: 1fr; }
.program-grid, .milestone-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
.video-grid { grid-template-columns: 1fr; }
.sambutan-grid { grid-template-columns: 1fr; }
.cta-floating-card { flex-direction: column; text-align: center; gap: 20px; }
}
@media (max-width: 768px) {
.header-container { flex-direction: row; }
.nav-menu-custom { flex-wrap: wrap; justify-content: center; }
.footer-grid-wrapper { grid-template-columns: 1fr; gap: 30px; }
.footer-bottom-inner { flex-direction: column; text-align: center; }
.program-grid, .milestone-grid, .news-grid { grid-template-columns: 1fr; }
.stats-grid { grid-template-columns: 1fr; margin-top: -50px; gap: 16px; }
.edukarsa-sambutan { padding: 35px 0 40px; }
.img-wrapper-slider { height: 380px; }
.cta-floating-card { padding: 25px; }
.cta-floating-title { font-size: 20px; }
}
/* 13. MOBILE MENU TOGGLE & DRAWER */
.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 10px; flex-direction: column; gap: 5px; z-index: 1001; }
.menu-toggle span { display: block; width: 26px; height: 3px; background-color: #ffffff; border-radius: 3px; transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 768px) {
.menu-toggle { display: flex; }
.main-navigation {
position: fixed;
top: 0;
right: -100%;
width: 280px;
height: 100vh;
background: var(--primary-color);
box-shadow: -5px 0 25px rgba(0,0,0,0.3);
padding: 85px 25px 40px;
transition: right 0.35s ease-in-out;
z-index: 1000;
overflow-y: auto;
}
.main-navigation.active { right: 0; }
.nav-menu-custom { flex-direction: column; gap: 15px; align-items: flex-start; }
.nav-menu-custom li a { font-size: 15px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
}
/* 14. FLOATING WHATSAPP HOTLINE */
.edukarsa-wa-float {
position: fixed;
bottom: 25px;
right: 25px;
background-color: #25d366;
color: #ffffff !important;
padding: 10px 18px;
border-radius: 50px;
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 700;
box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
z-index: 998;
transition: all 0.3s ease;
}
.edukarsa-wa-float:hover {
background-color: #1ebc57;
transform: translateY(-3px) scale(1.03);
box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}
/* 15. BACK TO TOP BUTTON */
.back-to-top-btn {
position: fixed;
bottom: 25px;
left: 25px;
width: 44px;
height: 44px;
background-color: var(--primary-color);
color: #ffffff;
border: 2px solid rgba(255,255,255,0.2);
border-radius: 50%;
font-size: 14px;
cursor: pointer;
box-shadow: var(--shadow);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transform: translateY(15px);
transition: all 0.3s ease;
z-index: 997;
}
.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background-color: var(--secondary-color); transform: translateY(-3px); }
/* 16. MULTI-LANGUAGE SWITCHER */
.edukarsa-lang-switcher {
display: inline-flex;
align-items: center;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.25);
padding: 3px 8px;
border-radius: 20px;
backdrop-filter: blur(4px);
}
.lang-btn {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.7);
font-size: 12px;
font-weight: 800;
letter-spacing: 0.5px;
cursor: pointer;
padding: 3px 6px;
border-radius: 12px;
transition: all 0.2s ease;
}
.lang-btn:hover { color: #ffffff; }
.lang-btn.active {
background: #ffffff;
color: var(--primary-color) !important;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.lang-divider {
color: rgba(255, 255, 255, 0.3);
font-size: 11px;
user-select: none;
margin: 0 1px;
}
/* 17. BULLETPROOF GOOGLE TRANSLATE BANNER SUPPRESSION */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
#goog-gt-tt,
.goog-te-balloon-frame {
display: none !important;
visibility: hidden !important;
height: 0 !important;
width: 0 !important;
opacity: 0 !important;
}
body {
top: 0px !important;
position: static !important;
}
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }
font { background-color: transparent !important; box-shadow: none !important; }