/*
Theme Name: Beaver Builder Child Theme
Theme URI: https://www.wpbeaverbuilder.com
Version: 1.37
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: https://www.fastlinemedia.com
template: bb-theme
*/

/* Add your custom styles here...Remember to change the Version number above! */ 
#fl-to-top {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    transition: all 0.3s ease;
}

#fl-to-top[style*="display: none"] {
    display: none;
}

#fl-to-top:hover {
    background-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

#fl-to-top i {
    position: static;
    top: auto;
    left: auto;
    color: #333333;
    font-size: 15px;
    line-height: 1;
    margin: 0;
}

/* Mobile Responsiveness: Adjust spacing to avoid overlapping floating widgets */
@media screen and (max-width: 768px) {
    #fl-to-top {
        bottom: 70px; /* Moves it higher up so it clears the language switcher */
        right: 40px;  /* Pushes it slightly further away from the right edge */
    }
}


/* =========================================
   WORDPRESS PASSWORD PROTECTED PAGE
   Clean Corporate / Premium Style
   ========================================= */

.post-password-form {
    max-width: 520px;
    margin: 80px auto;
    padding: 45px 40px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 31, 63, 0.08);
    text-align: center;
}

/* Intro text */
.post-password-form > p:first-of-type {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #001F3F;
}

/* Description */
.post-password-form > p:nth-of-type(2) {
    margin: 0 auto 28px;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.7;
    color: #667085;
}

/* Password row */
.post-password-form > p:last-of-type {
    margin: 0;
}

/* Label */
.post-password-form label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    text-align: left;
}

/* Password input */
.post-password-form input[type="password"] {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: 8px;
    padding: 0 15px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    color: #101828;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

/* Input focus */
.post-password-form input[type="password"]:focus {
    border-color: #195FAD;
    box-shadow: 0 0 0 3px rgba(25, 95, 173, 0.12);
}

/* Submit button */
.post-password-form input[type="submit"] {
    width: 100%;
    height: 50px;
    margin-top: 6px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #195FAD;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Button hover */
.post-password-form input[type="submit"]:hover {
    background: #124C8D;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(25, 95, 173, 0.22);
}

/* Mobile */
@media (max-width: 600px) {

    .post-password-form {
        margin: 40px 20px;
        padding: 32px 24px;
        border-radius: 12px;
    }

    .post-password-form > p:first-of-type {
        font-size: 21px;
    }

    .post-password-form > p:nth-of-type(2) {
        font-size: 14px;
    }
}

/* =========================================================
   KAD LATEST POST (KETINGGIAN BARU & KESAN TINDAN JS)
   ========================================================= */
:root {
    --upsi-blue: #0756a5;
    --navy: #10243d;
    --muted: #6d7d8e;
}

.paper-scene {
    max-width: 350px; 
    margin: 30px auto; /* Margin supaya kertas condong tak terpotong */
    position: relative;
    perspective: 1000px; /* Penting untuk efek 3D Parallax JS */
}

/* Asas untuk semua lapisan kertas */
.paper {
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 1. Lapisan Paling Belakang (Tidak terkesan dengan animasi mouse) */
.paper-back {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0; 
    z-index: 1; 
    opacity: 0.5; 
    border: 1px solid rgba(0,0,0,0.05); 
    transform: rotate(-3deg) translate(-4px, 4px); 
}

/* 2. Lapisan Tengah (Ada sedikit efek parallax mengikut JS) */
.paper-middle {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0; 
    z-index: 2; 
    opacity: 0.75; 
    border: 1px solid rgba(0,0,0,0.05);
    transform: rotate(-5deg); /* Posisi asal selari dengan JS */
    transition: transform 0.1s ease-out; /* Smoothkan pergerakan JS */
}

/* 3. Kad Utama (Lapisan Paling Depan) */
.paper-front {
    display: block !important; 
    position: relative; 
    z-index: 3; 
    min-height: 460px; /* Tinggi dikurangkan */
    overflow: hidden;
    background: #ffffff; 
    transform: rotate(1.5deg); /* Posisi asal selari dengan JS */
    transition: transform 0.1s ease-out; /* Smoothkan pergerakan JS */
}

.paper-poster {
    width: 100%;
    height: 200px; 
    background-color: #e9f0f6;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(7, 86, 165, 0.10);
    position: relative;
}

.paper-content-card {
    padding: 22px 25px;
}

.paper-small {
    color: var(--upsi-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.paper-heading-card {
    margin: 0;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 700;
    
    /* Elakkan tajuk terlalu panjang melimpah ke bawah */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.paper-rule {
    width: 40px;
    height: 2px;
    margin: 12px 0;
    background: var(--upsi-blue);
}

.paper-lines {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    
    /* Elakkan teks konten melimpah */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit kepada 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.paper-bottom {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
}

.paper-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(7, 86, 165, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--upsi-blue);
    font-size: 9px;
    font-weight: 800;
}

.paper-page {
    color: #9aa8b7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.paper-bottom:hover .paper-page {
    color: var(--upsi-blue);
}

/* =========================================================
   FLOATING TYPOGRAPHY (HR & UPSI)
   ========================================================= */
.visual-word {
    position: absolute;
    color: rgba(7, 86, 165, 0.075);
    font-size: 80px; /* Saiz ditetapkan supaya tak terlalu besar untuk kad kecil */
    font-weight: 800;
    letter-spacing: -0.08em;
    user-select: none;
    pointer-events: none;
    z-index: 0; /* Pastikan ia berada di belakang kertas */
}

.visual-word.one {
    top: -25px; /* Tolak naik ke atas kad */
    right: -40px; /* Tolak keluar ke kanan kad */
    transform: rotate(-8deg);
}

.visual-word.two {
    bottom: -35px; /* Tolak turun ke bawah kad */
    left: -50px; /* Tolak keluar ke kiri kad */
    transform: rotate(7deg);
    font-size: 90px;
}

/* =========================================================
   SMALL DECORATIVE ELEMENT (TITIK ANIMASI)
   ========================================================= */
.visual-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--upsi-blue);
    box-shadow: 0 0 0 7px rgba(7, 86, 165, 0.08);
    z-index: 8; /* Z-index 8 bermaksud titik ini akan terapung DI ATAS kad */
    animation: dotPulse 3s ease-in-out infinite;
}

.dot-one {
    top: -10px;
    left: -15px; /* Berada di penjuru atas kiri */
}

.dot-two {
    bottom: 80px; 
    right: -15px; /* Berada di penjuru bawah kanan */
    top: auto;
    width: 6px;
    height: 6px;
    background: var(--upsi-sky, #56b5e8); /* Letak fallback warna jika tiada dalam :root */
    animation-delay: -1.5s;
}

/* =========================================================
   ANIMASI UNTUK TITIK (KEYFRAMES)
   ========================================================= */
@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.35);
        opacity: 0.45;
    }
}

/* 1. Required for the container so the shine doesn't spill out */
.shine-effect {
  position: relative;
  overflow: hidden;
}

/* 2. The shine overlay */
.shine-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 5s infinite;
  
  /* Ensures the shine overlay doesn't block clicks on your container */
  pointer-events: none; 
}

/* 3. The 5-second timing loop (1s movement, 4s pause) */
@keyframes shine {
  0% {
    left: -100%;
  }
  30% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}

/* Media query targets screens larger than mobile phones */
@media (min-width: 768px) {
    .sticky-col {
        position: -webkit-sticky; /* For Safari compatibility */
        position: sticky;
        top: 120px; /* Space from the top of the viewport when stuck */
        z-index: 10; /* Keeps it layered above background elements */
    }
}