/* Reset dan Variabel Warna */
:root {
    --primary: #1a5f1a;
    --secondary: #2e8b57;
    --accent: #ffd700;
    --accent-dark: #e6c200;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
}

.btn-accent:hover {
    background: var(--accent-dark);
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* On announcement detail pages, keep header in normal flow to avoid overlap */
body.announcement-page header {
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 10px;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 95, 26, 0.8), rgba(46, 139, 87, 0.9)), url('/images/dewi.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0 100px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Programs Section */
.programs {
    background: var(--light);
}

.program-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.program-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-icon {
    background: var(--primary);
    color: white;
    font-size: 2.5rem;
    padding: 30px;
    text-align: center;
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.program-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.program-details {
    list-style: none;
    margin-bottom: 25px;
}

.program-details li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.program-details i {
    color: var(--accent);
    margin-right: 10px;
}

/* Curriculum Section */
.curriculum-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 12px 30px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 3px solid var(--accent);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.semester {
    margin-bottom: 30px;
}

.semester h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.course {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.course:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.course h5 {
    color: var(--primary);
    margin-bottom: 5px;
}

.course p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Announcements Section */
.announcements {
    background: var(--light);
}

.announcement-container {
    display: flex;
    gap: 30px;
}

.announcement-list, .agenda-list {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.announcement-header, .agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.announcement-header h3, .agenda-header h3 {
    color: var(--primary);
}

.view-all {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary);
}

.announcement-item, .agenda-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
}

.announcement-item:last-child, .agenda-item:last-child {
    border-bottom: none;
}

.announcement-date, .agenda-date {
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-date .day, .agenda-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.announcement-date .month, .agenda-date .month {
    font-size: 0.8rem;
}

.announcement-content, .agenda-content {
    flex: 1;
}

.announcement-content h4, .agenda-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

/* Keep announcement title link styled as plain text (no underline, no color change) */
.announcement-title a {
    text-decoration: none;
    color: inherit;
}
.announcement-title a:hover, .announcement-title a:focus {
    text-decoration: none;
    color: inherit;
}

/* Tweak: ensure announcement and agenda panels match screenshot layout */
.announcement-items, .agenda-items {
    display: block;
}

.announcement-item {
    align-items: flex-start;
}

.announcement-date .day, .agenda-date .day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.announcement-date .month, .agenda-date .month {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Testimonials photo */
.testimonial-photo {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 auto 15px auto;
}
.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Announcement detail layout */
.announcement-detail .announcement-article {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.announcement-detail .announcement-article::after { content: ''; display: table; clear: both; }
.announcement-detail .announcement-article-header h1 {
    color: var(--primary);
    margin-bottom: 10px;
}
.announcement-detail .meta { color: var(--gray); margin-bottom: 20px; }
.announcement-detail .announcement-image {
    float: left;
    width: 320px;
    margin-right: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.announcement-detail .announcement-image img { width: 100%; height: auto; display:block; }
.announcement-detail .announcement-article-body {
    color: var(--gray);
    line-height: 1.8;
}

@media (max-width: 900px) {
    .announcement-detail .announcement-image { float: none; width: 100%; margin-right: 0; }
}

/* Offset for fixed header so announcement title doesn't sit under the header */
.announcement-detail {
     padding-top: 16px; /* Keep padding for JS enhancement */
}

/* Read-more small button inside announcement listing */
.announcement-content .read-more {
    padding: 8px 14px;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 12px;
}

.announcement-content p, .agenda-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.facility-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.facility-card:hover {
    transform: translateY(-5px);
}

.facility-image {
    height: 200px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.facility-card:hover .facility-image img {
    transform: scale(1.1);
}

.facility-content {
    padding: 20px;
}

.facility-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.facility-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--light);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--gray);
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-details i {
    width: 40px;
    height: 40px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 95, 26, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Scoped styles for D3 page (migrated from d3.php) */
.d3-page * {
    margin: 0;
    padding: 3px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.d3-page {
    color: var(--dark, #212529);
    line-height: 1.6;
    background-color: #f5f5f5;
    padding-bottom: 40px;
}

.d3-page .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.d3-page .info-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent, #ffd700);
}

.d3-page .info-box p { margin-bottom: 10px; }

.d3-page .tabs-container { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 30px; }
.d3-page .tabs-header { display:flex; flex-wrap:wrap; background: var(--light, #f8f9fa); border-bottom:1px solid #ddd; }
.d3-page .tab-btn { padding:15px 20px; background:none; border:none; font-size:1rem; font-weight:600; color:var(--gray,#6c757d); cursor:pointer; transition:all .3s ease; border-bottom:3px solid transparent; flex:1; min-width:120px; text-align:center; }
.d3-page .tab-btn:hover { background: rgba(26,95,26,0.05); color:var(--primary,#1a5f1a); }
.d3-page .tab-btn.active { color:var(--primary,#1a5f1a); border-bottom:3px solid var(--accent,#ffd700); background:white; }
.d3-page .tab-content { display:none; padding:20px; }
.d3-page .tab-content.active { display:block; }

.d3-page .curriculum-table { width:100%; border-collapse:collapse; margin:20px 0; font-size:0.9rem; }
.d3-page .curriculum-table th { background:var(--primary,#1a5f1a); color:white; padding:12px 8px; text-align:left; font-weight:600; }
.d3-page .curriculum-table td { padding:10px 8px; border-bottom:1px solid #eee; }
.d3-page .curriculum-table tr:nth-child(even){ background:#f9f9f9; }
.d3-page .curriculum-table tr:hover{ background:#f0f0f0; }
.d3-page .semester-total { background:var(--light,#f8f9fa) !important; font-weight:bold; }
.d3-page .course-code { font-weight:600; color:var(--primary,#1a5f1a); }
.d3-page .course-religion { padding-left:20px !important; font-style:italic; }

.d3-page .legend { display:flex; flex-wrap:wrap; gap:15px; margin:20px 0; padding:15px; background:#f9f9f9; border-radius:5px; }
.d3-page .legend-item { display:flex; align-items:center; gap:5px; }
.d3-page .legend-color { width:15px; height:15px; border-radius:3px; }
.d3-page .legend-color.mkbd { background:#e8f5e9; }
.d3-page .legend-color.mkk { background:#e3f2fd; }
.d3-page .legend-color.mkb { background:#fff3e0; }
.d3-page .legend-color.mbb { background:#fce4ec; }
.d3-page .legend-color.mpbd { background:#e8eaf6; }
.d3-page .legend-color.tga { background:#e0f2f1; }

.d3-page footer { margin-top:30px; }

@media (max-width: 992px) { .d3-page .tab-btn { min-width:100px; font-size:0.9rem; padding:12px 10px; } }
@media (max-width: 768px) {
    .d3-page .header-content h1 { font-size:1.6rem; }
    .d3-page .tabs-header { flex-direction:column; }
    .d3-page .tab-btn { width:100%; text-align:left; border-bottom:1px solid #ddd; border-left:3px solid transparent; }
    .d3-page .tab-btn.active { border-left:3px solid var(--accent,#ffd700); border-bottom:1px solid #ddd; }
    .d3-page .curriculum-table { font-size:0.8rem; }
    .d3-page .curriculum-table th, .d3-page .curriculum-table td { padding:8px 5px; }
}
@media (max-width:576px) {
    .d3-page .container { padding:0 10px; }
    .d3-page .curriculum-table { display:block; overflow-x:auto; white-space:nowrap; }
    .d3-page .tab-content { padding:15px 10px; }
    .d3-page .info-box { padding:15px; }
}

/* Scoped styles for s1 page (migrated from s1.html) */
.s1-page .info-box { background: white; border-radius: 8px; padding: 20px; margin: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-left:4px solid var(--accent); }
.s1-page .concentration-section { margin: 25px 0; padding: 15px; border-left: 4px solid var(--accent); background: #f9f9f9; }
.s1-page .concentration-title { font-size: 1.2rem; color: var(--primary); margin-bottom: 10px; font-weight: 600; }
.s1-page .summary-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.s1-page .summary-table th, .s1-page .summary-table td { padding: 12px 15px; border: 1px solid #ddd; text-align: left; }
.s1-page .summary-table th { background: var(--primary); color: white; }
.s1-page .summary-table tr:nth-child(even) { background: #f9f9f9; }
.s1-page .course-type-A { background: #e8f5e9; }
.s1-page .course-type-B { background: #fff3e0; }
.s1-page .legend-color.type-A { background: #e8f5e9; }
.s1-page .legend-color.type-B { background: #fff3e0; }

@media (max-width: 992px) {
    .s1-page .tab-btn { min-width: 100px; font-size: 0.9rem; padding: 12px 10px; }
}

@media (max-width: 768px) {
    .s1-page .header-content h1 { font-size: 1.6rem; }
    .s1-page .tabs-header { flex-direction: column; }
    .s1-page .tab-btn { width: 100%; text-align: left; border-bottom: 1px solid #ddd; border-left: 3px solid transparent; }
    .s1-page .tab-btn.active { border-left: 3px solid var(--accent); border-bottom: 1px solid #ddd; }
    .s1-page .curriculum-table { font-size: 0.8rem; }
    .s1-page .curriculum-table th, .s1-page .curriculum-table td { padding: 8px 5px; }
}

@media (max-width: 576px) {
    .s1-page .container { padding: 0 10px; }
    .s1-page .curriculum-table { display: block; overflow-x: auto; white-space: nowrap; }
    .s1-page .tab-content { padding: 15px 10px; }
    .s1-page .info-box { padding: 15px; }
}

    /* Pagination styles (compact) */
    .pagination { text-align: center; margin-top: 24px; }
    .pagination ul { list-style: none; display: inline-flex; gap: 8px; padding: 0; margin: 0; align-items: center; }
    .pagination ul li { display: inline-block; }
    .pagination ul li a, .pagination ul li strong { display: inline-block; padding: 8px 12px; border-radius: 6px; color: var(--dark); text-decoration: none; border: 1px solid #e6e6e6; background: white; }
    .pagination ul li a:hover { background: var(--light); color: var(--primary); }
    .pagination ul li.active strong { background: var(--primary); color: white; border-color: var(--primary); }
    .pagination ul li.disabled { opacity: 0.5; color: var(--gray); pointer-events: none; }
    .pagination ul li.dots { display: flex; align-items: center; padding: 0 6px; color: var(--gray); }
    .pagination ul li.prev a, .pagination ul li.next a { font-weight: 600; }


