@font-face {
    font-family: 'JMMNJ Font Regular';
    src: url(../fonts/Ubuntu-Regular.ttf)
}

@font-face {
    font-family: 'JMMNJ Font Bold';
    src: url(../fonts/Ubuntu-Bold.ttf)
}

@font-face {
    font-family: 'JMMNJ Font Light';
    src: url(../fonts/Ubuntu-Light.ttf)
}

@font-face {
    font-family: 'JMMNJ Font Medium';
    src: url(../fonts/Ubuntu-Medium.ttf)
}

:root {
    --primary-color: #1f3f9b;
    --secondary-color: #ffbd1a;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #1f3f9b;
    --bg-gray: #f8f9fa;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'JMMNJ Font Regular', sans-serif;
    line-height: 1.6;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    color: var(--text-dark);
}

/* default */
.section-dark {
    font-family: 'JMMNJ Font Regular';
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
}

.section-light {
    font-family: 'JMMNJ Font Regular';
    background-color: var(--bg-light) !important;
    color: var(--text-dark) !important;
}

section {
    position: relative;
    word-wrap: break-word;
    padding: 4rem 0;
}

/* Remove background pattern */
.bg-vect {
    background: var(--bg-dark);
    background-image: none;
}

.bg-left-vect {
    background-image: none;
}

.bg-right-vect {
    background-image: none;
}

.blank-content-height {
    height: calc(68vh - 75px - 275px);
}

.grey-font {
    color: #777777;
}

/* Navigation bar */
.nav-bar-dark {
    font-size: 1em;
    background-color: var(--bg-dark) !important;
    box-shadow: var(--shadow);
}

.navbar-brand {
    padding: 0.5rem 0.5rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.navbar-brand .logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: var(--transition);
}

.nav-bar-dark .nav-link {
    color: var(--text-light) !important;
    font-size: 1.1em !important;
    transition: var(--transition);
    padding: 0.7rem 1rem;
}

.nav-bar-dark .nav-link:hover {
    color: var(--secondary-color) !important;
}

.current {
    font-weight: bold;
    border-bottom: 4px solid var(--secondary-color);
}

/* Gambar AJK */
.content0 img {
    min-height: 550px;
    max-height: 550px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Kata-Kata Aluan */
.content1 .title {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.content1 .title2 {
    font-family: 'JMMNJ Font Light';
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.content1 p,
.content1 div {
    font-family: 'JMMNJ Font Regular';
    text-align: justify !important;
    position: unset !important;
    line-height: 1.8;
}

/* Exco Portfolio */
.little-profile .pro-img img {
    width: 128px;
    height: 128px;
    box-shadow: var(--shadow);
    border-radius: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.little-profile .pro-img img:hover {
    transform: scale(1.05);
}

.content2 .title {
    font-family: 'JMMNJ Font Regular';
    color: var(--primary-color);
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.content2 .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.content2 .sub-title {
    font-family: 'JMMNJ Font Light';
    font-size: 1em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2em;
}

.profile {
    text-align: center;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 1.5rem;
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile .pro-img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.profile .pro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile:hover {
    transform: translateY(-5px);
}

.profile:hover .pro-img img {
    transform: scale(1.05);
}

.profile h5 {
    font-family: 'JMMNJ Font Regular';
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.profile h6 {
    font-family: 'JMMNJ Font Light';
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Add row height consistency */
.content2 .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.content2 .row > [class*='col-'] {
    display: flex;
    margin-bottom: 2rem;
}

.content2 .row > [class*='col-'] > .profile {
    width: 100%;
}

/* Aktiviti */
.content3 {
    min-height: 470px;
    max-height: 470px;
}

.activity-slider .slideshow-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mySlidesAct {
    display: none;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.activity-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activity-content h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.activity-info {
    margin-bottom: 1.5rem;
}

.activity-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.activity-info p:last-child {
    margin-bottom: 0;
}

.activity-description {
    color: var(--text-light);
    line-height: 1.6;
}

.activity-description .btn {
    margin-top: 1.5rem;
    background-color: var(--secondary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.activity-description .btn:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.custom-bg-1 {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #304db3 100%);
    background-image: none;
}

@media only screen and (max-width: 1024px) {
    .custom-bg-1 {
        background: linear-gradient(135deg, var(--bg-dark) 0%, #304db3 100%);
        background-image: none;
    }
}

@media only screen and (max-width: 850px) {
    .custom-bg-1 {
        background: linear-gradient(135deg, var(--bg-dark) 0%, #304db3 100%);
        background-image: none;
    }
}

@media only screen and (max-width: 600px) {
    .custom-bg-1 {
        background: linear-gradient(135deg, var(--bg-dark) 0%, #304db3 100%);
        background-image: none;
    }
}

.content3 .title {
    font-family: 'JMMNJ Font Regular';
    color: var(--secondary-color);
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.content3 .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--text-light);
}

.content3 .sub-title {
    font-family: 'JMMNJ Font Light';
    font-size: 1em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2em;
}

.content3 p {
    font-family: 'JMMNJ Font Regular';
    text-align: justify !important;
    padding: 8px 0px !important;
    position: unset !important;
    line-height: 1.8;
}

/* Responsive logo adjustments */
@media only screen and (max-width: 1000px) {
    .navbar-brand .logo-img {
        width: 80px;
        height: 80px;
    }
    
    .navbar-brand {
        padding: 0.3rem;
    }
}

@media only screen and (max-width: 480px) {
    .navbar-brand .logo-img {
        width: 45px;
        height: 45px;
    }
}

/* Hebahan Maklumat */
.content4 .pro-img img {
    max-height: 150px;
    min-height: 150px;
    box-shadow: var(--shadow);
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: var(--transition);
}

.content4 .pro-img img:hover {
    transform: scale(1.05);
}

.content4 .title {
    font-family: 'JMMNJ Font Regular';
    color: var(--primary-color);
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.content4 .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.content4 .sub-title {
    font-family: 'JMMNJ Font Light';
    font-size: 1em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: A2em;
}

.content4 .card-title {
    font-family: 'JMMNJ Font Regular';
    color: var(--text-dark);
    font-size: 1.1em;
    font-weight: 600;
}

.content4 .card-text {
    font-family: 'JMMNJ Font Light';
}

/* Aplikasi Online */
#aplikasi-online {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #304db3 100%);
}

.content5 .title {
    font-family: 'JMMNJ Font Regular';
    color: var(--secondary-color);
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.content5 .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--text-light);
}

.content5 .card {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    transition: var(--transition);
}

.content5 .card-body {
    text-align: center;
    padding: 1.5rem;
}

.content5 .card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.content5 .card-title {
    font-family: 'JMMNJ Font Regular';
    color: var(--text-light);
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.2rem;
}

.content5>.card>img {
    max-height: 150px;
    margin: 15px auto;
}

/* Hubungi Kami */
.content6 .title {
    font-family: 'JMMNJ Font Regular';
    color: var(--primary-color);
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.content6 .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.content6 .sub-title {
    font-family: 'JMMNJ Font Light';
    font-size: 1em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2em;
}

.content6 .text-contact {
    font-family: 'JMMNJ Font Regular';
    color: var(--text-dark);
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

.content6 .text-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

#kata-aluan {
    background-color: var(--bg-light);
}

#kata-aluan .image-container {
    margin-bottom: 30px;
}

#kata-aluan .image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

#kata-aluan .title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

#kata-aluan .title2 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

#kata-aluan .kata-content {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Make sure content is visible */
.content0, .content1, .content2, .content3, .content4, .content5, .content6 {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 550px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #304db3 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    max-width: 800px;
    animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

.hero-buttons .btn-primary:hover {
    background-color: #e6a800;
    border-color: #e6a800;
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #kata-aluan .image-container {
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .profile .pro-img {
        width: 180px;
        height: 180px;
    }
    
    .profile h5 {
        font-size: 1rem;
    }
    
    .profile h6 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .profile .pro-img {
        width: 150px;
        height: 150px;
    }
}