/* ADU@KL 2.0 - Exact Replica Styles */
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Roboto:wght@300;400;500;700&display=swap');

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

:root {
    --primary-dark: #003366;
    --teal: #17a2b8;
    --yellow: #f0c14b;
    --white: #ffffff;
    --gray: #6c757d;
    --light-bg: #f5f5f5;
    --text: #333333;
    --warning-orange: #e67e22;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--light-bg);
    color: var(--text);
    min-height: 100vh;
}

/* =============== HEADER =============== */
.main-header {
    background: linear-gradient(to bottom, rgba(0, 51, 102, 0.4) 0%, rgba(0, 51, 102, 0.1) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo img {
    height: 45px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 5px;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 0.8;
}

.lang-selector {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.globe-icon {
    font-size: 16px;
}

/* =============== HERO SECTION =============== */
.hero-section {
    margin-top: 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    animation: zoomOut 7s ease-out forwards;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.85) 0%, rgba(0, 51, 102, 0.5) 60%, rgba(0, 51, 102, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 60px;
    max-width: 650px;
}

.hero-title {
    font-family: 'Abril Fatface', serif;
    font-size: 42px;
    color: var(--yellow);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-text {
    color: var(--white);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn-login {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #138496;
}

/* =============== SECTIONS =============== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading {
    font-family: 'Abril Fatface', serif;
    font-size: 28px;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 400;
}

.section-heading .teal {
    color: var(--teal);
}

.section-heading .yellow {
    color: var(--yellow);
}

.teal { color: var(--teal); }
.yellow { color: var(--yellow); }

.section-desc {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* =============== SERVICES =============== */
.services-section {
    padding: 50px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

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

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

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

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

.service-content {
    background: #2a7d8c;
    padding: 25px 20px;
    text-align: center;
}

.service-content h3 {
    font-family: 'Abril Fatface', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--white);
}

.service-content p {
    font-size: 14px;
    color: var(--white);
    line-height: 1.6;
    opacity: 0.95;
}

/* =============== ANNOUNCEMENTS =============== */
.announcements-section {
    padding: 50px 0;
    background: var(--light-bg);
}

.no-announcement {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    font-size: 14px;
}

/* =============== FEEDBACK =============== */
.feedback-section {
    padding: 50px 0;
    background: var(--white);
}

/* =============== FOOTER =============== */
.main-footer {
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    color: var(--white);
    padding: 30px 20px 20px;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-left h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.footer-left p {
    font-size: 12px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.footer-left a {
    color: var(--teal);
    text-decoration: none;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 50px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 11px;
    opacity: 0.8;
}

/* =============== LOGIN PAGE =============== */
.login-page {
    background: var(--light-bg);
}

.login-section {
    margin-top: 60px;
    min-height: calc(100vh - 50px);
    background: url('https://adukl.dbkl.gov.my/content/images/DBKL-bg-login.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: var(--white);
    border-radius: 8px;
    padding: 35px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.login-title {
    font-family: 'Abril Fatface', serif;
    font-size: 26px;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 400;
}

.login-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 25px;
}

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--teal);
}

.form-group input::placeholder {
    color: #999;
}

.form-warning {
    color: var(--warning-orange);
    font-size: 11px;
    margin-top: 5px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 45px;
}

.toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Roboto', sans-serif;
}

.btn-submit:hover {
    background: #138496;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.link-teal {
    color: var(--teal);
    text-decoration: none;
    font-size: 13px;
}

.link-teal:hover {
    text-decoration: underline;
}

.login-help {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: var(--gray);
}

.login-help a {
    color: var(--teal);
    text-decoration: none;
}

/* SSO Section */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--gray);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 15px;
}

.sso-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-me {
    background: #e74c3c;
}

.btn-me:hover {
    background: #c0392b;
}

.btn-zitadel {
    background: #00a8e8;
}

.btn-zitadel:hover {
    background: #0088cc;
}

/* =============== CONTENT PAGES =============== */
.content-page {
    background: var(--light-bg);
}

.content-section {
    margin-top: 60px;
    min-height: calc(100vh - 50px);
    background: url('https://images.unsplash.com/photo-1596422846543-75c6fc197f07?w=1920') center/cover no-repeat fixed;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.content-card {
    background: var(--white);
    border-radius: 8px;
    padding: 35px 40px;
    width: 100%;
    max-width: 850px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.content-title {
    font-family: 'Abril Fatface', serif;
    font-size: 26px;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 400;
}

.content-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn-search {
    padding: 10px 25px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* FAQ List */
.faq-list {
    border-top: 1px solid #eee;
}

.faq-item {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-item:hover {
    color: var(--teal);
}

.faq-item .arrow {
    color: var(--gray);
    margin-right: 15px;
    font-size: 10px;
}

/* Hotline */
.hotline-list {
    /* List of hotline groups */
}

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

.hotline-group h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hotline-table {
    width: 100%;
    border-collapse: collapse;
}

.hotline-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.hotline-table td {
    padding: 8px 0;
    font-size: 13px;
    vertical-align: top;
}

.hotline-table td:first-child {
    color: var(--text);
    padding-right: 20px;
}

.hotline-table td.phone {
    color: var(--teal);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
        gap: 10px;
    }

    .main-header {
        height: auto;
    }

    .hero-section,
    .login-section,
    .content-section {
        margin-top: 70px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-content {
        padding: 30px;
    }

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

    .footer-container {
        flex-direction: column;
        gap: 25px;
    }

    .login-card,
    .content-card {
        padding: 25px 20px;
    }
}

/* =============== WARNING MODAL =============== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    background: #dc3545;
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 15px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 15px 25px 25px;
    text-align: center;
}

.btn-understand {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-understand:hover {
    background: #138496;
}
