/* ==========================================
           GLOBAL STYLES & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* ==========================================
           ANIMATED BACKGROUND ELEMENTS
   ========================================== */
body::before {
    content: "";
    position: fixed;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #3498db15, #2ecc7115);
    border-radius: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    bottom: -75px;
    right: -75px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #e74c3c15, #f39c1215);
    border-radius: 50%;
    z-index: -1;
    animation: float 8s ease-in-out infinite reverse;
}

.global-circle-1 {
    position: fixed;
    top: 20%;
    right: -50px;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #9b59b615, #8e44ad15);
    border-radius: 50%;
    z-index: -1;
    animation: float 7s ease-in-out infinite;
}

.global-circle-2 {
    position: fixed;
    bottom: 30%;
    left: -40px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #f39c1215, #e67e2215);
    border-radius: 50%;
    z-index: -1;
    animation: float 5s ease-in-out infinite reverse;
}

.global-circle-3 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, #1abc9c15, #16a08515);
    border-radius: 50%;
    z-index: -1;
    animation: float 9s ease-in-out infinite;
}

.global-circle-4 {
    position: fixed;
    top: 10%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #e74c3c10, #c0392b10);
    border-radius: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite reverse;
}

.global-circle-5 {
    position: fixed;
    bottom: 10%;
    right: 25%;
    width: 110px;
    height: 110px;
    background: linear-gradient(45deg, #3498db10, #2980b910);
    border-radius: 50%;
    z-index: -1;
    animation: float 7s ease-in-out infinite;
}

/* ==========================================
           HEADER & NAVIGATION
   ========================================== */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

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

.logo img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
}

.nav-menu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    color: #333 !important;
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid #eee;
}

.dropdown a:hover {
    background-color: #f8f9fa !important;
    color: #2c3e50 !important;
}

.dropdown a:last-child {
    border-bottom: none;
}

.has-dropdown > a::after {
    content: " ▼";
    font-size: 0.8rem;
    margin-left: 5px;
}

/* ==========================================
           PAGE HEADER
   ========================================== */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0iIzM0OThkYiIvPgo8L3N2Zz4K");
    background-size: cover;
    background-position: center;
    height: auto;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 8rem 2rem 4rem;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: slideInUp 1s ease-out;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: slideInUp 1s ease-out 0.3s both;
}

/* ==========================================
           HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0iIzM0OThkYiIvPgo8L3N2Zz4K");
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
}

.cta-button {
    background: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* ==========================================
           MAIN CONTENT SECTIONS
   ========================================== */
.main-content {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 300;
}

/* ==========================================
           FEATURES SECTION
   ========================================== */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* ==========================================
           SAMBUTAN KEPALA SEKOLAH
   ========================================== */
.sambutan-kepsek {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.sambutan-content {
    position: relative;
    z-index: 2;
}

.sambutan-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sambutan-header .section-title {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 0 auto;
    border-radius: 2px;
}

.sambutan-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kepala-sekolah-photo {
    text-align: center;
    position: sticky;
    top: 2rem;
}

.photo-placeholder img{
    width: 200px;
    height: 240px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 15px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.photo-placeholder img::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.photo-icon {
    font-size: 4rem;
    color: white;
    z-index: 1;
    position: relative;
}

.nama-jabatan h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nama-jabatan p {
    color: #3498db;
    font-weight: 500;
    font-size: 1rem;
}

.sambutan-text {
    position: relative;
}

.quote-mark {
    font-size: 6rem;
    color: #3498db;
    opacity: 0.3;
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.sambutan-paragraf {
    position: relative;
    z-index: 1;
}

.sambutan-paragraf p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #34495e;
    text-align: justify;
    position: relative;
}

.sambutan-paragraf p:first-child,
.sambutan-paragraf p:last-child {
    font-weight: 600;
    color: #2c3e50;
}

.sambutan-signature {
    margin-top: 2.5rem;
    text-align: right;
}

.signature-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db);
    margin-left: auto;
    margin-bottom: 1rem;
}

.sambutan-signature p {
    margin: 0.3rem 0;
    color: #2c3e50;
}

.sambutan-signature .signature-title {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* ==========================================
           VISI MISI SECTION
   ========================================== */
.visi-misi {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.visi-misi-content {
    position: relative;
    z-index: 2;
}

.visi-misi-header {
    text-align: center;
    margin-bottom: 4rem;
}

.visi-misi-header h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.visi-card,
.misi-card {
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visi-card {
    background: rgba(116, 75, 162, 0.7);
}

.misi-card {
    background: rgba(236, 100, 166, 0.7);
}

.visi-card:hover,
.misi-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.visi-header,
.misi-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.visi-icon,
.misi-icon {
    font-size: 2.5rem;
}

.visi-header h3,
.misi-header h3 {
    font-size: 2.2rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.visi-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    text-align: justify;
}

.misi-list {
    list-style: none;
    padding: 0;
}

.misi-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
}

.misi-list li:before {
    content: "🎯";
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ==========================================
           PROFILE & CONTENT CARDS
   ========================================== */
.profile-grid,
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.profile-card,
.info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.profile-card:hover,
.info-card:hover {
    transform: translateY(-5px);
}

.info-card {
    overflow: hidden;
    padding: 0;
    position: relative;
}

.card-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1),
        rgba(255, 255, 255, 0.1)
    );
    z-index: 1;
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
    transform: translateX(5px);
}

/* Card color schemes */
.berita .card-image {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.pengumuman .card-image {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.kegiatan .card-image {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.prestasi .card-image {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* ==========================================
           NEWS SECTION
   ========================================== */
.news {
    padding: 5rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* ==========================================
           LIBRARY SPECIFIC SECTIONS
   ========================================== */
.library-intro {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.library-logo img{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.intro-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.intro-description {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    animation: fadeInUp 0.6s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Services Grid */
.services-section {
    margin: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-left: 5px solid #3498db;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 5px solid #3498db;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-left-color: #e74c3c;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 600;
}

.service-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    color: #34495e;
    position: relative;
    padding-left: 2rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.service-features li:last-child {
    border-bottom: none;
}

/* ==========================================
           NAVIGATION TABS
   ========================================== */
.section-nav {
    background: white;
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-tab {
    background: #f8f9fa;
    color: #6c757d;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.nav-tab.active {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* ==========================================
           FORMS & BUTTONS
   ========================================== */
.access-button,
.submit-btn {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.submit-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    width: 100%;
}

.access-button:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.submit-btn:hover {
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.4);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
           SPECIALIZED CONTENT SECTIONS
   ========================================== */
/* Featured Collection */
.featured-collection {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.collection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.collection-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.book-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s;
    background: rgba(248, 249, 250, 0.8);
}

.book-card:hover {
    transform: scale(1.05);
    background: rgba(233, 236, 239, 0.9);
}

.book-cover {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.book-publisher {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.book-category {
    font-size: 0.8em;
    color: #888;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

/* .book-cover {
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
} */

.book-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.book-author {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Digital Catalog Section */
.catalog-section {
    background: linear-gradient(
        135deg,
        rgba(240, 147, 251, 0.95) 0%,
        rgba(245, 87, 108, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    color: white;
    padding: 4rem;
    border-radius: 20px;
    margin: 4rem 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.digital-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Vision Mission Section */
.vision-mission {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 20px;
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.vision-box,
.mission-box,
.regulations-box {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.vision-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mission-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.regulations-box {
    background: linear-gradient(135deg, #fb9393ff 0%, #f58c57ff 100%);
    color: white;
}

.vision-title,
.mission-title,
.regulations-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mission-list,
.regulations-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.mission-list,
.regulations-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.mission-list li::before {
    content: "🎯";
    position: absolute;
    left: 0;
}

.ttd {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

.ttd img {
            max-width: 100%;
            height: auto;
            width: 200px;
            display: block;
            margin: 0 auto;
        }

/* ==========================================
           SCHOOL SPECIFIC SECTIONS
   ========================================== */
/* Sejarah Section */
.sejarah-section {
    margin-bottom: 5rem;
}

.sejarah-content {
    background: linear-gradient(
        135deg,
        rgba(52, 152, 219, 0.1),
        rgba(44, 62, 80, 0.1)
    );
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sejarah-content h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.sejarah-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Fasilitas Section */
.fasilitas-section {
    margin-bottom: 5rem;
}

.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fasilitas-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.fasilitas-image {
    height: 200px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.fasilitas-info {
    padding: 1.5rem;
}

.fasilitas-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.fasilitas-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Ekstrakurikuler Section */
.ekstrakurikuler-section {
    margin-bottom: 5rem;
}

.ekstrakurikuler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ekstrakurikuler-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.ekstrakurikuler-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ekstrakurikuler-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.ekstrakurikuler-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Teacher Grid */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.teacher-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.teacher-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.teacher-name {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.teacher-subject {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ==========================================
           CONTACT & LOCATION SECTIONS
   ========================================== */
.contact-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info,
.contact-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.contact-info:hover,
.contact-form:hover {
    transform: translateY(-5px);
}

.contact-info h2,
.contact-form h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(52, 152, 219, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
    background: rgba(52, 152, 219, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    color: #3498db;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-details p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
}

.map-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.map-container iframe {
            position: absolute; 
            top: 0;
            left: 0;
            width: 100%; 
            height: 100%; 
            border: 0; 
        }

.map-container:hover {
    transform: translateY(-5px);
}

/* Hours Section */
.hours-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.hours-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hours-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hours-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hours-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    color: #555;
    font-size: 1rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li strong {
    color: #2c3e50;
}

.hours-day {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #dee2e6;
}

.hours-day:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
    color: #2c3e50;
}

.time {
    color: #3498db;
    font-weight: 600;
}

.hours-info {
    background: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border-radius: 10px;
}

/* ==========================================
           PLACEHOLDERS & EMPTY STATES
   ========================================== */
.struktur-section {
    margin-bottom: 4rem;
}

.struktur-placeholder,
.org-chart {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
}
.struktur-placeholder img{
            border: 2px dashed #dee2e6;
            border-radius: 15px;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 2rem 0;
            transition: all 0.3s ease;
        }

.struktur-placeholder img:hover,
.org-chart:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db10, #2c3e5010);
}

.struktur-placeholder i,
.org-placeholder {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.org-placeholder {
    font-size: 5rem;
    color: #bdc3c7;
}

.struktur-placeholder p,
.org-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Struktur Organization Section */
.struktur-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 20px;
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contact Section Card */
.contact-section.card {
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.95) 0%,
        rgba(52, 152, 219, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 1.2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: none;
    animation: slideInUp 0.5s ease-out;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

/* ==========================================
           PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.8rem 1.2rem;
    background: white;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* ==========================================
           SECTION VISIBILITY CONTROLS
   ========================================== */
.info-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.info-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
           FOOTER
   ========================================== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

/* ==========================================
           ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================
           ANIMATION DELAYS & EFFECTS
   ========================================== */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}
.service-card:nth-child(2) {
    animation-delay: 0.2s;
}
.service-card:nth-child(3) {
    animation-delay: 0.3s;
}
.service-card:nth-child(4) {
    animation-delay: 0.4s;
}
.service-card:nth-child(5) {
    animation-delay: 0.5s;
}
.service-card:nth-child(6) {
    animation-delay: 0.6s;
}
.service-card:nth-child(7) {
    animation-delay: 0.7s;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}
.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}
.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}
.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.3s linear;
    pointer-events: none;
}

.loaded {
    animation: fadeIn 0.5s ease-in;
}

/* ==========================================
           MOBILE RESPONSIVE STYLES
========================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
    }

    .sambutan-kepsek {
        padding: 4rem 0;
    }

    .sambutan-header .section-title {
        font-size: 2.2rem;
    }

    .sambutan-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        margin: 0 1rem;
    }

    .photo-placeholder img{
        width: 150px;
        height: 180px;
    }

    .photo-icon {
        font-size: 3rem;
    }

    .sambutan-paragraf p {
        font-size: 1rem;
        text-align: left;
    }

    .quote-mark {
        font-size: 4rem;
        top: -1rem;
        left: -0.5rem;
    }

    .sambutan-signature {
        text-align: center;
    }

    .signature-line {
        margin: 0 auto 1rem;
    }

    .visi-misi-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .visi-misi-header h2 {
        font-size: 2.2rem;
    }

    .visi-card,
    .misi-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .visi-header h3,
    .misi-header h3 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fasilitas-grid,
    .ekstrakurikuler-grid,
    .teacher-grid {
        grid-template-columns: 1fr;
    }

    .sejarah-content {
        padding: 2rem;
    }

    .struktur-placeholder img{
        height: 300px;
    }

    .struktur-placeholder i {
        font-size: 3rem;
    }

    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }

    .nav-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
        margin: 0 1rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-icon {
        font-size: 2rem;
        margin-right: 1rem;
        width: 50px;
    }

    .map-container {
        margin: 0 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .digital-title {
        font-size: 2rem;
    }

    .hours-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sambutan-kepsek {
        padding: 3rem 0;
    }

    .sambutan-wrapper {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .sambutan-header .section-title {
        font-size: 1.8rem;
    }

    .visi-misi {
        padding: 4rem 0;
    }

    .visi-card,
    .misi-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .sejarah-content {
        padding: 1.5rem;
    }

    .sejarah-content h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .library-logo img{
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .intro-title {
        font-size: 2rem;
    }

    .contact-info,
    .contact-form,
    .map-container {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }

    .contact-section {
        padding: 3rem 0;
    }
}


/* ==========================================
   COMPLETE CSS STYLES - ALL COMPONENTS
========================================== */

/* ==========================================
   BUTTON STYLES
========================================== */
.book-link,
.btn,
.read-more {
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

/* Read More Links */
.read-more {
    padding: 6px 12px;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    border-radius: 15px;
}

.read-more:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Book Link - Lihat Detail (Small Button) */
.book-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.book-link:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Primary Button - Lihat Semua */
.btn-primary {
    padding: 12px 24px;
    font-size: 1rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d4fe 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
    color: white;
    text-decoration: none;
}

/* Secondary Button */
.btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(240, 147, 251, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e67ee8 0%, #f04559 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.3);
    color: white;
    text-decoration: none;
}

/* ==========================================
   IMAGE STYLES
========================================== */

/* Card Images */
.card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f8f9fa;
}

.card-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image-full:hover {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    z-index: 2;
}

/* ==========================================
   FASILITAS STYLES
========================================== */
.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fasilitas-card {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fasilitas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.fasilitas-image {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.fasilitas-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fasilitas-icon {
    font-size: 3rem;
    color: white;
}

.fasilitas-placeholder {
    font-size: 3rem;
    color: white;
}

.fasilitas-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fasilitas-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.fasilitas-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* ==========================================
   EKSTRAKURIKULER STYLES
========================================== */
.ekstrakurikuler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ekstrakurikuler-card {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ekstrakurikuler-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.ekstrakurikuler-image {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ekstrakurikuler-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10%;
}

.ekstrakurikuler-icon {
    font-size: 2.5rem;
    color: white;
}

.ekstrakurikuler-placeholder {
    font-size: 2.5rem;
    color: white;
}

.ekstrakurikuler-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.ekstrakurikuler-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ==========================================
   TEACHER STYLES
========================================== */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.teacher-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.teacher-image {
    width: 100px;
    height: 130px;
    margin: 0 auto 15px;
    border-radius: 10%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.teacher-photo {
    width: 100%;
    height: 100%;
}

.teacher-placeholder {
    font-size: 2.5rem;
    color: white;
}

.teacher-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.teacher-subject {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.teacher-degree {
    color: #888;
    font-size: 0.8rem;
}

/* ==========================================
   INFO CARD STYLES (Berita, Pengumuman, dll)
========================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-author {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ==========================================
   BOOK STYLES
========================================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.book-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.book-cover {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.book-author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.book-publisher {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.book-category {
    font-size: 0.8em;
    color: #888;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

/* ==========================================
   SECTION STYLES
========================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.collection-header {
    text-align: center;
    margin-bottom: 40px;
}

.collection-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.collection-footer {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================
   UTILITY CLASSES
========================================== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.col-12 {
    grid-column: 1 / -1;
}

.no-books {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 1024px) {
    .fasilitas-grid {
        grid-template-columns: 1fr;
    }

    .fasilitas-card {
        flex-direction: column;
    }

    .fasilitas-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section-title,
    .collection-title,
    .section-header h2 {
        font-size: 2rem;
    }

    .info-grid,
    .books-grid,
    .ekstrakurikuler-grid,
    .teacher-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fasilitas-grid {
        gap: 20px;
    }

    .card-content,
    .fasilitas-info {
        padding: 15px;
    }

    .book-link,
    .btn-primary,
    .btn-secondary,
    .read-more {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .section-title,
    .collection-title,
    .section-header h2 {
        font-size: 1.75rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .fasilitas-name,
    .ekstrakurikuler-name {
        font-size: 1.1rem;
    }

    .card-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .card-image {
        height: 150px;
    }

    .book-cover {
        height: 150px;
    }
}

/* ==========================================
   NAVIGATION TAB STYLES
========================================== */
.section-nav {
    margin-bottom: 40px;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.nav-tab:hover {
    background: #e9ecef;
    color: #333;
}

.nav-tab.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-color: transparent;
}

/* ==========================================
   INFO SECTION STYLES
========================================== */
.info-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.info-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   FOCUS STYLES FOR ACCESSIBILITY
========================================== */
.book-link:focus,
.btn:focus,
.read-more:focus,
.nav-tab:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.3);
}

/* ==========================================
   LOADING STATES
========================================== */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   DARK MODE SUPPORT
========================================== */
/* @media (prefers-color-scheme: dark) {
    .fasilitas-card,
    .ekstrakurikuler-card,
    .teacher-card,
    .info-card,
    .book-card {
        background: #2c3e50;
        color: #ecf0f1;
    }

    .card-title,
    .fasilitas-name,
    .ekstrakurikuler-name,
    .teacher-name,
    .book-title {
        color: #ecf0f1;
    }

    .card-excerpt,
    .fasilitas-description,
    .ekstrakurikuler-description,
    .teacher-subject,
    .book-author {
        color: #bdc3c7;
    }

    .section-title,
    .collection-title,
    .section-header h2 {
        color: #ecf0f1;
    }

    .nav-tab {
        background: #34495e;
        color: #bdc3c7;
    }

    .nav-tab:hover {
        background: #3d566e;
        color: #ecf0f1;
    }
} */

/* ==========================================
   PRINT STYLES
========================================== */
@media print {
    .btn,
    .book-link,
    .read-more,
    .nav-tabs {
        display: none;
    }

    .info-section {
        display: block !important;
    }

    .fasilitas-card,
    .ekstrakurikuler-card,
    .teacher-card,
    .info-card,
    .book-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
