* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Styles */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover {
    color: #008000;
}

.dropdown .arrow {
    font-size: 10px;
    margin-left: 3px;
}

.login-btn {
    background-color: #00cc00;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #00b300;
}

/* Banner Styles */
.banner {
    background-color: #006400;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner h1 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    z-index: 2;
}

.banner-decoration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
}

/* Main Content Styles */
.main-content {
    background-color: white;
    padding: 40px 20px;
    min-height: 500px;
}

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

/* Tabs Styles */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    top: 2px;
}

.tab-btn:hover {
    color: #008000;
    background-color: #f9f9f9;
}

.tab-btn.active {
    color: #00cc00;
    border-bottom-color: #00cc00;
    font-weight: 600;
}

/* Tab Panel Styles */
.tab-panel {
    display: none;
    padding: 30px 0;
}

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

.instruction-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Form Styles */
.certificate-form,
.search-form {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #00cc00;
    box-shadow: 0 0 0 3px rgba(0, 204, 0, 0.1);
}

.validate-btn {
    background-color: #00cc00;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.validate-btn:hover {
    background-color: #00b300;
}

.validate-btn:active {
    transform: scale(0.98);
}

/* Footer Styles */
.footer {
    background-color: #000;
    color: white;
    padding: 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact-icon {
    font-size: 18px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.footer-social > span {
    font-size: 14px;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Certificate Modal Styles */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: hidden;
}

.certificate-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-modal.active .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 700px;
    max-width: 90vw;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.certificate-modal.active .modal-content {
    transform: translateX(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
    flex: 1;
}

.detail-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-of-type {
    border-bottom: none;
}

.detail-item strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.detail-item span {
    display: block;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    position: sticky;
    bottom: 0;
}

.cancel-btn {
    width: 100%;
    padding: 12px;
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cancel-btn:hover {
    background-color: #d0d0d0;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-width: 100vw;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 15px;
    }

    .detail-item {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .detail-item strong {
        font-size: 13px;
    }

    .detail-item span {
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .banner h1 {
        font-size: 36px;
    }

    .tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-btn {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
        text-align: left;
        top: 0;
    }

    .tab-btn.active {
        border-left-color: #00cc00;
        border-bottom-color: #e0e0e0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo-section {
        min-width: auto;
    }

    .logo-text {
        font-size: 12px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

