/* directory.css - FINAL VERSION */

/* 1. Reset & Basic */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; 
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column; 
}

/* 2. Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 45vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../image/hero-section-background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    padding: 60px 20px;
    clip-path: ellipse(120% 100% at 50% 0%); 
    z-index: 1;
}

.hero-text-container h1 {
    font-size: 50px;
    color: white;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.purple-line {
    width: 90px;
    height: 4px;
    background: #7b4dff;
    margin: 0 auto 15px;
    border-radius: 5px;
}

/* 3. Search Bar */
.search-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

#myInput {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    padding-left: 10px;
}


.number-circle {
    background: #f1f1f1;
    color: #4b2e83;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin: 12px auto 5px auto;
    font-weight: bold;
}

.label {
    padding: 8px 10px 12px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value {
    background: rgba(255, 255, 255, 0.45);
    padding: 12px 0;
    font-size: 24px;
    font-weight: 800;
}

/* 5. Campus Section */
.campus-main-section { 
    padding: 60px 20px;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-intro-card {
    background: #4b2e83;
    max-width: 900px;
    padding: 40px;
    border-radius: 20px;
    color: white;
    margin-bottom: 40px;
    text-align: center;
}

.campus-grid { 
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    width: 100%;
}

.campus-card {
    width: 480px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.campus-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.campus-card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 30px;
    transition: background 0.3s ease;
}

.overlay h2 { 
    color: white; 
    font-size: 22px; 
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.campus-card:hover {
    transform: translateY(-5px); /* Card naik sikit */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}


.campus-card:hover h2 {
    transform: translateY(-10px); /* Tulisan naik sikit */
    letter-spacing: 1px; /* Jarak huruf bertambah sikit */
}

/* 6. Footer */
.uitm-footer { background: #1e0b35; color: white; padding: 50px 20px; margin-top: 50px; }

/* Responsive */
@media (max-width: 768px) {
    .total-box { flex-direction: column; text-align: center; gap: 15px; }
    .hero-text-container h1 { font-size: 32px; }
    .campus-card { width: 100%; }
}

/* --- Background & Wrapper --- */
.data-section-wrapper {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    border-radius: 60px;
    margin: 40px auto;
    
    /* UBAH KAT SINI */
    max-width: 1400px; /* Asal 1200px, tukar ke 1400px atau 90% kalau nak lagi lebar */
    width: 95%;
    justify-content: center;
}

.title {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.title h2 {
    font-weight: 800;
    color: #333;
}

/* --- Hero Circle (444) --- */
.total-box {
    grid-column: 3;
    grid-row: 1;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(255,255,255,0.5);
}

.total-box p {
    font-size: 14px;
    font-weight: 700;
    color: #4b2e83;
    margin: 0;
    text-align: center;
}

.total-value {
    font-size: 60px;
    font-weight: 900;
    color: #4b2e83;
    line-height: 1;
}

/* --- Grid System --- */
.container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 column macam dalam gambar */
    gap: 20px;
    align-items: center;
    justify-items: center;
    width: 100%;
}

/* --- Glass Card Style --- */
.card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    padding: 20px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.6);
    border-color: #ffffff;
}

.card i {
    font-size: 35px;
    color: #4b2e83;
    margin-bottom: 15px;
    opacity: 0.8;
}

.card .label {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.card .value {
    font-size: 35px;
    font-weight: 600;
    
}

/* Responsive untuk Phone */
@media (max-width: 1024px) {
    .container { grid-template-columns: repeat(3, 1fr); }
    .total-box {grid-column: 2; }
}
@media (max-width: 600px) {
    .container { grid-template-columns: repeat(2, 1fr); }
    .total-box { width: 180px; height: 180px; }
}