style(ui): optimasi jarak padding, floating CTA card, dan sinkronisasi warna dinamis
This commit is contained in:
@@ -4,7 +4,7 @@ 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.1
|
||||
Version: 1.1.2
|
||||
*/
|
||||
|
||||
:root {
|
||||
@@ -35,15 +35,15 @@ 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 */
|
||||
/* 2. LAYOUT KOTAK UTAMA (PADDINGS TERKALIBRASI) */
|
||||
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
|
||||
.text-center { text-align: center; }
|
||||
.text-white { color: #fff !important; }
|
||||
.edukarsa-section { padding: 75px 0; }
|
||||
.section-title { font-size: 32px; color: var(--heading-color); margin-bottom: 15px; font-weight: 800; letter-spacing: -0.5px; }
|
||||
.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 & 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; }
|
||||
.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; }
|
||||
@@ -85,96 +85,80 @@ h1, h2, h3, h4, h5, h6 { color: var(--heading-color); font-weight: 800; line-hei
|
||||
.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(-5px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12); }
|
||||
.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 30px; }
|
||||
.title-underline { width: 50px; border: 2px solid #f39c12; margin: 10px auto 25px; }
|
||||
|
||||
/* 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-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: 10px; }
|
||||
.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 & PROPORSI SPASI TERKALIBRASI */
|
||||
/* 6. GRID SYSTEM & SPASI DINAMIS */
|
||||
.edukarsa-stats { padding: 0; position: relative; z-index: 20; }
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 28px;
|
||||
margin-top: -95px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.stat-card-modern {
|
||||
padding: 35px 30px;
|
||||
text-align: left;
|
||||
border-radius: 20px;
|
||||
border-top: 5px solid var(--secondary-color);
|
||||
background: #fff;
|
||||
}
|
||||
.stat-icon-wrapper {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
background-color: #e6f0fa;
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 20px;
|
||||
font-size: 26px;
|
||||
}
|
||||
.stat-icon-wrapper img { width: 30px; height: 30px; object-fit: contain; }
|
||||
.stat-card-modern .stat-number { font-size: 42px; 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; }
|
||||
.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; }
|
||||
|
||||
/* SEKSI SAMBUTAN DENGAN JARAK IDEAL */
|
||||
.edukarsa-sambutan { padding: 65px 0 80px; }
|
||||
.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; }
|
||||
/* SEKSI SAMBUTAN */
|
||||
.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; }
|
||||
.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; }
|
||||
.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 (SINKRON WARNA TEMA) */
|
||||
.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; }
|
||||
.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-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 (FLEXIBLE GRID AUTO-FIT) */
|
||||
.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: 10px; font-size: 18px; }
|
||||
.keunggulan-content-inner h4 { color: var(--primary-color); margin-bottom: 8px; font-size: 17px; }
|
||||
|
||||
.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; }
|
||||
/* 8. FLOATING CTA SECTION (MENGHAPUS WALL OF BLUE) */
|
||||
.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-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; }
|
||||
.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; }
|
||||
|
||||
/* 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-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 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; }
|
||||
@@ -188,29 +172,31 @@ h1, h2, h3, h4, h5, h6 { color: var(--heading-color); font-weight: 800; line-hei
|
||||
.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; }
|
||||
/* 11. FOOTER & PAGINATION */
|
||||
.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; }
|
||||
.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: 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 { 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: 992px) {
|
||||
.single-layout-wrapper { grid-template-columns: 1fr; }
|
||||
.keunggulan-grid, .program-grid, .milestone-grid, .news-grid { grid-template-columns: repeat(2, 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: 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, .news-grid { grid-template-columns: 1fr; }
|
||||
.program-grid, .milestone-grid, .news-grid { grid-template-columns: 1fr; }
|
||||
.stats-grid { grid-template-columns: 1fr; margin-top: -50px; gap: 16px; }
|
||||
.edukarsa-sambutan { padding: 45px 0 60px; }
|
||||
.edukarsa-sambutan { padding: 35px 0 40px; }
|
||||
.img-wrapper-slider { height: 380px; }
|
||||
.cta-floating-card { padding: 25px; }
|
||||
.cta-floating-title { font-size: 20px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user