191 lines
12 KiB
CSS
191 lines
12 KiB
CSS
/*
|
|
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.0
|
|
*/
|
|
|
|
:root {
|
|
--primary-color: #0b4a8e;
|
|
--secondary-color: #1a73e8;
|
|
--text-color: #334155;
|
|
--text-muted: #64748b;
|
|
--heading-color: #0f172a;
|
|
--bg-light-blue: #f8fafc;
|
|
--bg-white: #ffffff;
|
|
--radius: 12px;
|
|
--shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
|
|
--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;
|
|
}
|
|
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 KOTAK UTAMA */
|
|
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
|
|
.text-center { text-align: center; }
|
|
.text-white { color: #fff !important; }
|
|
.edukarsa-section { padding: 80px 0; }
|
|
.section-title { font-size: 32px; color: var(--heading-color); margin-bottom: 15px; font-weight: 800; letter-spacing: -0.5px; }
|
|
|
|
/* 3. HEADER & MENU NAVIGATION */
|
|
.site-header { position: sticky; top: 0; z-index: 999; box-shadow: 0 4px 15px rgba(0,0,0,0.12); padding: 15px 0; }
|
|
.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; }
|
|
.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 MENU */
|
|
.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. ANIMASI 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.8); transition: transform 0.3s ease, box-shadow 0.3s ease; }
|
|
.card-style:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(15, 23, 42, 0.09); }
|
|
.top-border-blue { border-top: 4px solid var(--primary-color); }
|
|
.title-underline { width: 50px; border: 2px solid #f39c12; margin: 10px auto 30px; }
|
|
|
|
/* BUTTONS */
|
|
.btn-primary { display: inline-block; background-color: var(--primary-color); color: var(--bg-white); padding: 12px 32px; border-radius: 50px; font-weight: 700; font-size: 15px; letter-spacing: 0.3px; }
|
|
.btn-primary:hover { background-color: var(--secondary-color); color: #fff; }
|
|
.btn-light { background-color: #fff; color: var(--primary-color); }
|
|
.btn-light:hover { background-color: #f8fafc; color: var(--primary-color); }
|
|
.btn-outline-primary { display: inline-block; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 8px 22px; border-radius: 50px; font-size: 14px; 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: 10px; }
|
|
|
|
/* 6. GRID SYSTEM */
|
|
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 10; margin-top: -80px; margin-bottom: 40px; }
|
|
.stat-card-modern { padding: 40px 30px; text-align: left; border-radius: 20px; border-top: 5px solid var(--secondary-color); background: #fff; }
|
|
.stat-icon-wrapper { width: 65px; height: 65px; background-color: #e6f0fa; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; font-size: 28px; }
|
|
.stat-icon-wrapper img { width: 32px; height: 32px; object-fit: contain; }
|
|
.stat-card-modern .stat-number { font-size: 44px; font-weight: 800; color: var(--primary-color); margin-bottom: 5px; line-height: 1; }
|
|
.stat-card-modern .stat-title { font-size: 18px; font-weight: 800; color: var(--heading-color); margin-bottom: 8px; }
|
|
.stat-card-modern .stat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
|
|
.pt-0 { padding-top: 20px !important; }
|
|
|
|
.sambutan-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
|
|
.sambutan-text { color: #475569; font-size: 16px; margin-bottom: 30px; }
|
|
.milestone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
|
|
.milestone-item { padding: 25px; }
|
|
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
|
|
.program-card { padding: 35px 25px; }
|
|
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 40px 0; }
|
|
.video-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 5px solid rgba(255,255,255,0.2); }
|
|
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #e74c3c; color: white; padding: 20px; border-radius: 50%; font-size: 24px; 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; }
|
|
.relative-z2 { position: relative; z-index: 2; }
|
|
|
|
.keunggulan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
|
|
.keunggulan-card { position: relative; padding: 30px; display: flex; align-items: flex-start; overflow: hidden; }
|
|
.keunggulan-number { position: absolute; top: 10px; right: 10px; font-size: 72px; font-weight: 900; color: rgba(11, 74, 142, 0.06); line-height: 1; z-index: 0; }
|
|
.keunggulan-content-inner { position: relative; z-index: 1; }
|
|
.keunggulan-content-inner h4 { color: var(--primary-color); margin-bottom: 10px; font-size: 18px; }
|
|
|
|
.edukarsa-cta-bg { background-size: cover; background-position: center; position: relative; padding: 90px 0; }
|
|
.edukarsa-cta-bg::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 74, 142, 0.88); z-index: 1; }
|
|
.edukarsa-cta-bg .container { position: relative; z-index: 2; }
|
|
|
|
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
|
|
.news-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
|
|
.news-title { font-size: 18px; margin-bottom: 12px; line-height: 1.4; font-weight: 700; }
|
|
|
|
/* 7. IMAGE LOCKS & PLACEHOLDERS */
|
|
.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: 12px; }
|
|
.img-wrapper-portrait { aspect-ratio: 3/4; width: 100%; max-width: 350px; 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 STYLING */
|
|
.footer-links-custom { list-style: none; padding: 0; margin: 0; line-height: 2.2; }
|
|
.footer-links-custom li a { color: #ffffff; opacity: 0.85; font-size: 15px; }
|
|
.footer-links-custom li a:hover { opacity: 1; color: #f39c12; padding-left: 5px; }
|
|
|
|
/* 9. SINGLE, PAGE & SIDEBAR LAYOUT */
|
|
.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 ARTIKEL & HALAMAN */
|
|
.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; }
|
|
.entry-content table { width: 100%; border-collapse: collapse; margin: 30px 0; }
|
|
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid #e2e8f0; text-align: left; }
|
|
.entry-content th { background-color: #f1f5f9; font-weight: 700; color: var(--heading-color); }
|
|
|
|
/* 11. PAGINATION MODERN */
|
|
.pagination { margin-top: 50px; text-align: center; }
|
|
.pagination .nav-links { display: inline-flex; gap: 8px; align-items: center; }
|
|
.pagination .page-numbers { display: inline-block; padding: 10px 18px; background: #fff; color: var(--text-color); border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all 0.2s ease; }
|
|
.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: 992px) {
|
|
.single-layout-wrapper { grid-template-columns: 1fr; }
|
|
.keunggulan-grid, .program-grid, .milestone-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
|
|
.video-grid { grid-template-columns: 1fr; }
|
|
.sambutan-grid { grid-template-columns: 1fr; }
|
|
}
|
|
@media (max-width: 768px) {
|
|
.header-container { flex-direction: column; gap: 15px; }
|
|
.nav-menu-custom { flex-wrap: wrap; justify-content: center; }
|
|
.nav-menu-custom .sub-menu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; background: rgba(0,0,0,0.1); }
|
|
.keunggulan-grid, .program-grid, .milestone-grid, .stats-grid, .news-grid { grid-template-columns: 1fr; }
|
|
.edukarsa-stats { margin-top: -40px; }
|
|
.img-wrapper-slider { height: 380px; }
|
|
}
|