style(ui): optimasi jarak padding, floating CTA card, dan sinkronisasi warna dinamis
This commit is contained in:
+36
-29
@@ -32,7 +32,7 @@
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 2. STATISTIK DESAIN KARTU (FLOATING OVERLAP) -->
|
||||
<!-- 2. STATISTIK KARTU MELAYANG -->
|
||||
<?php if ( get_option('edukarsa_tampil_stats', 1) == 1 ) : ?>
|
||||
<section class="edukarsa-stats">
|
||||
<div class="container stats-grid">
|
||||
@@ -71,31 +71,31 @@
|
||||
</div>
|
||||
<div class="sambutan-content">
|
||||
<span class="badge-title">ABOUT US</span>
|
||||
<h2 class="section-title"><?php echo esc_html( get_option('edukarsa_nama_kepsek', 'Nama Kepala Sekolah') ); ?></h2>
|
||||
<h4 class="section-subtitle-strong" style="color:var(--primary-color); margin-bottom:15px; font-size:18px;"><?php echo esc_html( get_option('edukarsa_subtitle_about', 'Pimpinan Institusi') ); ?></h4>
|
||||
<h2 class="section-title" style="margin-bottom: 6px;"><?php echo esc_html( get_option('edukarsa_nama_kepsek', 'Nama Kepala Sekolah') ); ?></h2>
|
||||
<h4 class="section-subtitle-strong" style="color:var(--primary-color); margin-bottom:18px; font-size:17px; font-weight:700;"><?php echo esc_html( get_option('edukarsa_subtitle_about', 'Pimpinan Institusi') ); ?></h4>
|
||||
<div class="sambutan-text"><?php echo wpautop( wp_kses_post( get_option('edukarsa_teks_sambutan') ) ); ?></div>
|
||||
<a href="<?php echo esc_url( get_option('edukarsa_link_about', '#') ); ?>" class="btn-primary">Ketahui Lebih Lanjut</a>
|
||||
<a href="<?php echo esc_url( get_option('edukarsa_link_about', '#') ); ?>" class="btn-primary" style="margin-top: 5px;">Ketahui Lebih Lanjut</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 4. MILESTONES (HANYA DITAMPILKAN JIKA ADA POSTINGAN) -->
|
||||
<!-- 4. MILESTONES -->
|
||||
<?php
|
||||
if ( get_option('edukarsa_tampil_milestone', 1) == 1 ) :
|
||||
$query_milestone = new WP_Query( array( 'post_type' => 'milestone', 'posts_per_page' => 4 ) );
|
||||
if ( $query_milestone->have_posts() ) :
|
||||
?>
|
||||
<section class="edukarsa-section edukarsa-milestones bg-light-blue" style="padding: 50px 0;">
|
||||
<section class="edukarsa-section edukarsa-milestones bg-light-blue" style="padding: 45px 0;">
|
||||
<div class="container milestone-grid text-center">
|
||||
<?php
|
||||
while ( $query_milestone->have_posts() ) : $query_milestone->the_post();
|
||||
?>
|
||||
<div class="milestone-item card-style" style="padding: 30px 20px;">
|
||||
<h3 class="milestone-title" style="color: var(--primary-color); font-size: 36px; font-weight: 800; margin-bottom: 6px; line-height: 1;">
|
||||
<div class="milestone-item card-style" style="padding: 25px 20px;">
|
||||
<h3 class="milestone-title" style="color: var(--primary-color); font-size: 34px; font-weight: 800; margin-bottom: 6px; line-height: 1;">
|
||||
<?php the_title(); ?>
|
||||
</h3>
|
||||
<div class="milestone-desc" style="font-size: 14px; color: var(--text-muted); line-height: 1.5;">
|
||||
<div class="milestone-desc" style="font-size: 13px; color: var(--text-muted); line-height: 1.5;">
|
||||
<?php the_excerpt(); ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -126,18 +126,18 @@
|
||||
while ( $query_program->have_posts() ) : $query_program->the_post();
|
||||
?>
|
||||
<div class="program-card card-style text-center top-border-blue">
|
||||
<div class="img-wrapper-landscape" style="margin-bottom: 20px;">
|
||||
<div class="img-wrapper-landscape" style="margin-bottom: 18px;">
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<?php the_post_thumbnail( 'medium' ); ?>
|
||||
<?php else: ?>
|
||||
<div class="img-placeholder"><i>🏫</i><span>Gambar Program</span></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<h3 style="margin-bottom: 12px; font-size: 20px; color: var(--heading-color); font-weight: 700;">
|
||||
<h3 style="margin-bottom: 10px; font-size: 19px; color: var(--heading-color); font-weight: 700;">
|
||||
<?php the_title(); ?>
|
||||
</h3>
|
||||
<div class="program-desc" style="margin-bottom: 25px; font-size: 14px; color: var(--text-muted); line-height: 1.6;">
|
||||
<?php echo wp_trim_words( get_the_excerpt(), 16, '...' ); ?>
|
||||
<div class="program-desc" style="margin-bottom: 20px; font-size: 14px; color: var(--text-muted); line-height: 1.6;">
|
||||
<?php echo wp_trim_words( get_the_excerpt(), 15, '...' ); ?>
|
||||
</div>
|
||||
<a href="<?php the_permalink(); ?>" class="btn-outline-primary">Lihat Detail</a>
|
||||
</div>
|
||||
@@ -151,19 +151,18 @@
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- WRAPPER PARALLAX -->
|
||||
<!-- 6 & 7. WRAPPER PARALLAX (SINKRON DENGAN WARNA TEMA) -->
|
||||
<?php
|
||||
$mid_bg = get_option('edukarsa_mid_bg_image');
|
||||
$mid_color = get_option('edukarsa_mid_bg_color', '#0b4a8e');
|
||||
$parallax_style = $mid_bg ? 'background-image: url('.esc_url($mid_bg).');' : 'background-color: '.esc_attr($mid_color).';';
|
||||
$parallax_style = $mid_bg ? 'background-image: url('.esc_url($mid_bg).');' : 'background: linear-gradient(135deg, var(--primary-color), var(--heading-color));';
|
||||
?>
|
||||
<div class="parallax-section-wrapper" style="<?php echo $parallax_style; ?>">
|
||||
<div class="parallax-overlay" style="background-color: <?php echo esc_attr($mid_color); ?>; opacity: <?php echo $mid_bg ? '0.9' : '1'; ?>;"></div>
|
||||
<div class="parallax-overlay"></div>
|
||||
<div class="parallax-content relative-z2">
|
||||
|
||||
<!-- 6. VIDEO -->
|
||||
<?php if ( get_option('edukarsa_tampil_video', 1) == 1 ) : ?>
|
||||
<section class="edukarsa-section edukarsa-videos">
|
||||
<section class="edukarsa-section edukarsa-videos" style="padding-bottom: 30px;">
|
||||
<div class="container video-grid">
|
||||
<?php for($i=1; $i<=2; $i++) : ?>
|
||||
<div class="video-item">
|
||||
@@ -186,7 +185,7 @@
|
||||
|
||||
<!-- 7. KEUNGGULAN DINAMIS -->
|
||||
<?php if ( get_option('edukarsa_tampil_keunggulan', 1) == 1 ) : ?>
|
||||
<section class="edukarsa-section edukarsa-keunggulan" style="padding-top: 0; padding-bottom: 100px;">
|
||||
<section class="edukarsa-section edukarsa-keunggulan" style="padding-top: 20px; padding-bottom: 80px;">
|
||||
<div class="container">
|
||||
<div class="section-header text-center">
|
||||
<span class="badge-title text-white"><?php echo esc_html( get_option('edukarsa_keunggulan_subtitle', 'WHY CHOOSE US') ); ?></span>
|
||||
@@ -222,25 +221,33 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 8. CTA SECTION -->
|
||||
<!-- 8. CTA SECTION (FLOATING CARD DESIGN - PEMISAH ELEGAN) -->
|
||||
<?php if ( get_option('edukarsa_tampil_cta', 1) == 1 ) : ?>
|
||||
<?php $cta_bg = get_option('edukarsa_cta_bg'); ?>
|
||||
<section class="edukarsa-section edukarsa-cta-bg" <?php if($cta_bg) echo 'style="background-image: url('.esc_url($cta_bg).');"'; ?>>
|
||||
<div class="container text-center text-white relative-z2">
|
||||
<h2 class="section-title text-white"><?php echo esc_html( get_option('edukarsa_cta_title', 'Siap Bergabung Bersama Kami?') ); ?></h2>
|
||||
<a href="<?php echo esc_url( get_option('edukarsa_cta_btn_url', '#') ); ?>" class="btn-primary btn-light" style="margin-top: 20px;">
|
||||
<?php echo esc_html( get_option('edukarsa_cta_btn_teks', 'Daftar Sekarang') ); ?>
|
||||
</a>
|
||||
<section class="edukarsa-cta-floating-section">
|
||||
<div class="container">
|
||||
<div class="cta-floating-card">
|
||||
<div class="cta-floating-content">
|
||||
<span class="badge-title" style="color: rgba(255,255,255,0.85);">PENDAFTARAN MAHASISWA BARU</span>
|
||||
<h2 class="cta-floating-title"><?php echo esc_html( get_option('edukarsa_cta_title', 'Siap Bergabung Bersama Kami?') ); ?></h2>
|
||||
</div>
|
||||
<div class="cta-floating-action">
|
||||
<a href="<?php echo esc_url( get_option('edukarsa_cta_btn_url', '#') ); ?>" class="btn-primary btn-light cta-btn-custom">
|
||||
<?php echo esc_html( get_option('edukarsa_cta_btn_teks', 'Daftar Sekarang') ); ?> »
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 9. LATEST NEWS -->
|
||||
<?php if ( get_option('edukarsa_tampil_news', 1) == 1 ) : ?>
|
||||
<section class="edukarsa-section edukarsa-latest-news">
|
||||
<section class="edukarsa-section edukarsa-latest-news" style="padding-top: 50px;">
|
||||
<div class="container">
|
||||
<div class="section-header text-center">
|
||||
<span class="badge-title">INFORMASI TERKINI</span>
|
||||
<h2 class="section-title"><?php echo esc_html( get_option('edukarsa_news_title', 'News & Update') ); ?></h2>
|
||||
<hr class="title-underline">
|
||||
</div>
|
||||
<div class="news-grid">
|
||||
<?php
|
||||
|
||||
@@ -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