* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-polmed {
    width: 50px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #667eea;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 20px 80px;
    margin-top: 60px;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #ffd700;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    padding-top: 30px;
}

.btn {
    padding: 14px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-illustration {
    flex: 1;
    position: relative;
    height: 400px;
}

.floating-book {
    position: absolute;
    font-size: 80px;
    animation: float 3s ease-in-out infinite;
}

.floating-book:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.floating-book:nth-child(2) {
    top: 100px;
    right: 0;
    animation-delay: 1s;
}

.floating-book:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #667eea;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* Statistics Section */
.statistics {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 80px 20px;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-info {
    margin-top: 30px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
    margin: 0;
}

.about-image {
    flex: 1;
}

.image-placeholder {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: white;
}

.placeholder-icon {
    font-size: 120px;
    display: block;
    margin-bottom: 20px;
}

.image-placeholder p {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #a78bfa;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 20px 20px;
}

.motto {
    font-style: italic;
    color: #ffd700;
    margin-top: 10px;
}

/* Visi Misi Section */
.visi-misi {
    padding: 80px 20px;
    background: white;
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.visi-card, .misi-card, .tujuan-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.visi-card:hover, .misi-card:hover, .tujuan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.vm-icon {
    font-size: 60px;
    text-align: center;
    margin-bottom: 20px;
}

.visi-card h3, .misi-card h3, .tujuan-card h3 {
    text-align: center;
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
}

.visi-card p {
    text-align: center;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.misi-card ul, .tujuan-card ul {
    list-style: none;
    padding: 0;
}

.misi-card ul li, .tujuan-card ul li {
    padding: 12px 0;
    color: #666;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.misi-card ul li:before, .tujuan-card ul li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

/* Modal Tata Tertib */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-large {
    max-width: 900px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-size: 24px;
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.tata-tertib-content {
    color: #333;
}

.tt-section {
    margin-bottom: 30px;
}

.tt-section h3 {
    color: #667eea;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.tt-section ol {
    padding-left: 20px;
}

.tt-section ol li {
    margin: 15px 0;
    line-height: 1.8;
    color: #666;
}

.tt-section ul {
    margin: 10px 0;
    padding-left: 30px;
}

.tt-section strong {
    color: #667eea;
    font-weight: 600;
}

.tt-note {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.tt-note p {
    margin: 0;
    color: #856404;
    line-height: 1.8;
}

/* Modal Profil */
.profil-content {
    color: #333;
}

.profil-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: 30px;
}

.profil-logo {
    width: 100px;
    height: auto;
}

.profil-title h3 {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 5px;
}

.profil-title p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.profil-text p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    font-size: 15px;
}

.profil-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
    margin-top: 30px;
}

.profil-highlight h4 {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.profil-highlight p {
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
    margin: 0;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-polmed {
        width: 40px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .visi-misi-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-height: 95vh;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #a78bfa;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #a78bfa;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-illustration {
        height: 200px;
    }

    .about-content {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}