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

body {
    font-family: Arial, sans-serif;
    background: #0C2B4E;
    padding: 0px;
    padding-top: 80px;
    min-height: 100vh;
    margin: 0;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

#kandidat {
    scroll-margin-top: 150px;
}

.layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    /* margin-top: 50px; */
}

.container {
    width: 100%;
    margin: auto;
    max-width: 1855px;
    background-color: #ffffff;
    padding: 30px;
    margin-top: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex: 1;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #0C2B4E, #1a4d72);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 4px solid #FFD700;
}

footer p {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.9;
}

footer nav {
    margin-top: 10px;
}

footer nav a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

footer nav a:hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: white;
    transform: translateY(-2px);
}

.container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.container h1 {
    color: #2c3e50;
    font-size: 32px;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.container h1:hover {
    color: #1a4d72;
    transform: scale(1.02);
}

.container p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: fadeInRight 0.8s ease 0.2s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.container p:hover {
    color: #333;
    transform: translateX(5px);
}

p {
    text-align: center;
    font-family: "Poppins", sans-serif;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-family: 'Montserrat', sans-serif;
}

.hero-content {
    width: 100%;
    margin: auto;
    max-width: 1850px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 50px;
    text-align: center;
    padding: 65px;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.4s ease;
    animation: fadeInDown 0.8s ease;
}

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

.hero-content:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.hero-content img {
    width: 300px;
    transition: all 0.4s ease;
    animation: zoomIn 1s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content img:hover {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1);
}

.hero-content h1 {
    margin-top: 20px;
    font-size: 32px;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease 0.3s both;
}

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

.hero-content h1:hover {
    color: #1a4d72;
    transform: scale(1.02);
}

.hero-content p {
    font-size: 25px;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease 0.5s both;
}

.hero-content p:hover {
    color: #1a4d72;
    transform: scale(1.02);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar {
    width: 100%;
    margin: auto;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    position: relative;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 50px;
    margin-left: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: rotate(5deg) scale(1.1);
    filter: brightness(1.1);
}

.logo-text h1 {
    text-align: left;
    margin: 0;
    color: #0C2B4E;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    transition: color 0.3s ease;
}

.logo:hover .logo-text h1 {
    color: #1a4d72;
}

.logo-text p {
    text-align: left;
    margin: 0;
    font-size: 16px;
    color: #0C2B4E;
    font-weight: 500;
}

.navbar img {
    width: 60px;
    /* border-radius: 10px; */
    margin-left: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #0C2B4E;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-links a:hover {
    color: #fff;
    background-color: #0C2B4E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 43, 78, 0.3);
}


.menu-toggle {
    display: none;
    background: #0C2B4E;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    padding: 8px 12px;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background-color: #0C2B4E;
    border-radius: 4px;
}

.menu-toggle.active {
    color: white;
    font-size: 20px;
    background: #0C2B4E;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mobile-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-menu li {
    margin: 30px 0;
}

.mobile-menu a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: 25px;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(20px);
        opacity: 0;
    }
}

.mobile-menu.show a:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.show a:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu.show a:nth-child(3) { animation-delay: 0.3s; }

.mobile-menu.closing {
    opacity: 0;
    transform: translateY(-20px);
}

.mobile-menu.closing a {
    animation: slideOutRight 0.3s ease forwards;
}

.mobile-menu.closing a:nth-child(1) { animation-delay: 0s; }
.mobile-menu.closing a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.closing a:nth-child(3) { animation-delay: 0.2s; }

.mobile-menu a:hover {
    color: #fff;
    background-color: #0C2B4E;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(12, 43, 78, 0.3);
}

@media (max-width: 768px) {
    .nav-links{
        display: none;
    }   

    .menu-toggle {
        display: flex;
        background: #0C2B4E;
        border: 0;
        color: white;
        padding: 8px 12px;
        cursor: pointer;
        border-radius: 4px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
    }
}

hr {
    width: 35%;
    height: 5px;
    background-color: #0C2B4E;
    border: none;
    margin: auto;
    border-radius: 10px;
    transition: all 0.4s ease;
    animation: expandWidth 1s ease 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0%;
        opacity: 0;
    }
    to {
        width: 35%;
        opacity: 1;
    }
}

hr:hover {
    width: 50%;
    background: linear-gradient(45deg, #0C2B4E, #1a4d72);
    box-shadow: 0 2px 10px rgba(12, 43, 78, 0.3);
}

.kandidat-card {
    background:var(--card);
    color:var(--ink);
    border-radius:14px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    padding:18px;
    display:grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto auto;
    gap:10px;
    align-items:start;
    margin-bottom:24px;
    transition: all 0.4s ease;
    animation: slideInFromLeft 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kandidat-card:nth-child(2) { animation-delay: 0.2s; }
.kandidat-card:nth-child(3) { animation-delay: 0.4s; }
.kandidat-card:nth-child(4) { animation-delay: 0.6s; }

.kandidat-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    border: 2px solid #0C2B4E;
}
  
.kandidat-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-left: 20px;
    transition: all 0.4s ease;
    filter: brightness(0.95);
}

.kandidat-card img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.kandidat-card h2 {
    margin: 10px 0 5px;
    margin-left: 20px;
    font-size: 30px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.kandidat-card h2:hover {
    color: #0C2B4E;
    transform: translateX(5px);
}

.kandidat-card h4 {
    margin: 20px 0 5px;
    margin-left: 20px;
    font-size: 30px;
}
  
.kandidat-card p {
    margin-left: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: gray;
    text-align: left;
}

.kandidat-card .info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 20px;
    grid-column: 2;
    grid-row: 1;
}

.info h4 {
    margin: 10px 0 5px;
    margin-left: 20px;
    font-size: 19px;
    margin-top: 1px;
    font-style: normal;
    font-family: 'Montserrat', sans-serif;
}

.info .deskripsi {
    margin: 10px 0 5px;
    margin-left: 20px;
    font-size: 19px;
    margin-top: 1px;
    font-style: normal;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    color: #333;
    line-height: 1.6;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.info .deskripsi:hover {
    color: #0C2B4E;
    transform: translateX(5px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
  
.jabatan-osis {
    margin: 0;
    font-size: 19px;
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: -5px;
}

.visi-misi {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-left: 20px;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.visi, .misi {
  flex: 1;
  min-width: 250px;
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 10px;
  position: relative;
}

.visi:hover, .misi:hover {
  background-color: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.visi h3, .misi h3 {
  margin-bottom: 10px;
  color: #123b6d;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 8px;
}

.visi h3:hover, .misi h3:hover {
  color: #0C2B4E;
  transform: scale(1.05);
}

.visi h3::after, .misi h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #0C2B4E, #1a4d72);
  transition: width 0.3s ease;
}

.visi h3:hover::after, .misi h3:hover::after {
  width: 30%;
}

.visi ul, .misi ul {
  margin: 0;
  padding-left: 20px;
}

.visi li, .misi li {
  margin-bottom: 8px;
  line-height: 1.5;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.visi li:hover, .misi li:hover {
  background-color: #e8f4fd;
  transform: translateX(10px);
  color: #0C2B4E;
  font-weight: 500;
}

.visi li::before, .misi li::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(12, 43, 78, 0.1), transparent);
  transition: left 0.5s ease;
}

.visi li:hover::before, .misi li:hover::before {
  left: 100%;
}

.visi, .misi {
    flex: 1;
    min-width: 250px;
}

/* Untuk Responsif Di Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 15px;
        flex-wrap: wrap;
    }

    .logo img {
        width: 40px;
        margin-left: 10px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 13px;
    }

    .nav-links a {
        font-size: 16px;
        margin: 10px;
    }

    .hero-content {
        padding: 30px 20px;
        margin-top: 20px;
    }

    .hero-content img {
        width: 200px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .container {
        padding: 20px;
        margin-top: 20px;
    }

    .container h1 {
        font-size: 24px;
    }

    .container p {
        font-size: 16px;
    }

    hr {
        width: 50%;
    }

    .kandidat-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 15px;
        text-align: center;
    }
  
    .kandidat-card img {
        width: 80%;
        height: auto;
        order: 1;
    }

    .jabatan-osis {
        margin: 10px 0;
        text-align: center;
        font-size: 16px;
        order: 2;
    }

    .kandidat-card .info {
        margin: 0;
        text-align: center;
        order: 3;
        width: 100%;
    }

    .kandidat-card h2 {
        font-size: 22px;
        margin: 10px 0;
        text-align: center;
    }

    .info .deskripsi {
        font-size: 16px;
        margin: 10px 0;
        text-align: justify;
    }
  
    .visi-misi {
        flex-direction: column;
        gap: 20px;
        margin-left: 0;
    }

    .visi h3, .misi h3 {
        font-size: 18px;
    }

    .visi li, .misi li {
        font-size: 14px;
    }
}

/* Untuk layar sangat kecil */
@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 16px;
    }

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

    .hero-content img {
        width: 150px;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .container h1 {
        font-size: 20px;
    }

    .kandidat-card h2 {
        font-size: 18px;
    }

    .info .deskripsi {
        font-size: 14px;
    }
}