/* ============ NAVBAR RESPONSIVE ============ */
@media screen and (max-width: 1024px) {
    .navbar {
        width: 95%;
        padding: 16px 24px;
    }

    .nav-menu {
        gap: 32px;
    }

    .nav-link {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        width: calc(100% - 40px);
        padding: 15px 20px;
        top: 15px;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide and convert desktop menu to slide-in */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 36vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
    }

    /* Move login button to mobile menu */
    .login-btn {
        margin-top: 20px;
        width: auto;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        width: calc(100% - 30px);
        padding: 12px 15px;
    }

    .logo {
        height: 35px;
    }

    .nav-menu {
        width: 260px;
        min-height: 335px;
    }

    .banner-image img {
        width: 100%;
        left: none !important;
        position: static;
    }
}

/* ============ FOOTER RESPONSIVE ============ */
@media screen and (max-width: 1024px) {
    .footer {
        padding: 50px 24px 25px;
    }

    .footer-content {
        gap: 30px;
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-policies {
        flex-direction: column;
        gap: 10px;
    }

    .banner-image img {
        width: 100%;
        left: none !important;
        position: static;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 30px 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }

    .footer-section h3 {
        font-size: 15px;
    }

    .footer-section p,
    .footer-link {
        font-size: 13px;
    }

    .socials {
        gap: 15px;
    }

    .social-icon {
        width: 26px;
        height: 26px;
    }
}

/* ============ PAYROLL PAGE RESPONSIVE ============ */

/* Container */
@media screen and (max-width: 1024px) {
    .container {
        padding: 30px 5%;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 20px 4%;
        margin-top: 80px !important;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 15px 4%;
    }
}

/* ============ HERO SECTION - IMPROVED RESPONSIVE ============ */

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1px;
    margin-top: 16px;
    color: #3F3D56B2;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.5;
    text-align: left;
}

.explore-btn {
    text-decoration: none;
    background-color: #ffc107;
    color: #1a1a1a;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.explore-btn:hover {
    background-color: #ffb300;
}

.banner-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 45%;
}

.banner-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

/* Hero Section - Tablet */
@media screen and (max-width: 1024px) {
    .hero-section {
        padding: 50px 50px;
        position: relative;
    }

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

    .features-list li {
        font-size: 18px;
        margin-top: 16px;
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 40px 30px;
        text-align: left;
        max-height: none;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 20px;
        text-align: center;
    }

    .features-list {
        margin-bottom: 25px;
    }

    .features-list li {
        font-size: 16px;
        margin-top: 12px;
        justify-content: flex-start;
        text-align: left;
    }

    .explore-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .hero-section img {
        max-width: 100%;
    }

    .banner-image {
        max-width: 80%;
        width: 100%;
    }

    .banner-image img {
        max-width: 100%;
    }

    .contact-container img {
        max-width: 100%;
        max-height: 200px;
    }
}

@media screen and (max-width: 599px) {
    .hero-section {
        padding: 30px 20px;
        gap: 25px;
        position: relative;
        /* top: 30px; */
        margin-bottom: 50px;
    }

    .features-list {
        margin-bottom: 25px;
    }

    .features-list li {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .explore-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .banner-image {
        max-width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .hero-section {
        padding: 25px 16px;
        position: relative;
        top: 20px;
        border-radius: 12px;
        gap: 20px;
    }

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

    .features-list {
        margin-bottom: 20px;
    }

    .features-list li {
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .banner-image {
        max-width: 100%;
    }
}

/* Info Section */
@media screen and (max-width: 1024px) {
    .info-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .info-section h2 {
        font-size: 32px;
        text-align: left;
    }

    .info-section p {
        font-size: 18px;
        text-align: left;
    }
}

@media screen and (max-width: 768px) {
    .info-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .info-section h2 {
        font-size: 28px;
        text-align: left !important;
        line-height: 40px;
    }

    .info-section p {
        font-size: 16px;
        text-align: left !important;
    }

    .info-image-container {
        padding: 30px;
    }

    .info-image-container img {
        max-width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    .info-section h2 {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 28px;
        text-align: left !important;
    }

    .info-section p {
        font-size: 14px;
        text-align: left !important;
    }

    .info-image-container {
        padding: 20px;
    }
}

/* Payslip Sections */
@media screen and (max-width: 1024px) {
    .payslip-section {
        gap: 60px;
        padding: 50px 60px;
    }

    .payslip-content h2 {
        font-size: 32px;
        text-align: left;
    }

    .payslip-content h3 {
        text-align: left;
    }

    .payslip-content p {
        font-size: 18px;
        text-align: left;
    }

    .payslip-image img {
        height: 280px;
    }
}

@media screen and (max-width: 768px) {
    .payslip-section {
        flex-direction: column;
        text-align: left;
        padding: 40px 30px;
        gap: 30px;
    }

    .payslip-section.taxation {
        flex-direction: column;
    }

    .payslip-image {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .payslip-image img {
        height: auto;
        max-width: 100%;
        max-height: 250px;
    }

    .payslip-content {
        flex: none;
        width: 100%;
    }

    .payslip-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
        text-align: left !important;
    }

    .payslip-content h3 {
        text-align: left !important;
    }

    .payslip-content p {
        font-size: 16px;
        text-align: left !important;
    }

    .custom-container {
        padding: 40px 5%;
    }
}

@media screen and (max-width: 480px) {
    .payslip-section {
        padding: 30px 20px;
        gap: 25px;
    }

    .payslip-content h2 {
        font-size: 22px;
        text-align: left !important;
        line-height: 30px;
    }

    .payslip-content h3 {
        font-size: 16px;
        text-align: left !important;
    }

    .payslip-content p {
        font-size: 14px;
        text-align: left !important;
    }

    .payslip-image img {
        max-height: 200px;
    }

    .custom-container {
        padding: 30px 4%;
    }
}

/* ============ CONTACT SECTION RESPONSIVE ============ */
@media screen and (max-width: 1024px) {
    .contact-container {
        gap: 60px;
    }

    .contact-title {
        font-size: 42px;
    }

    .contact-image {
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
        left: 0;
    }

    .contact-content {
        max-width: 100%;
        text-align: center;
    }

    .contact-title {
        font-size: 36px;
        margin-bottom: 25px;
    }

    .contact-phone,
    .contact-email {
        font-size: 15px;
    }

    .contact-image {
        max-width: 100%;
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .contact-section {
        padding: 30px 15px;
    }

    .contact-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .contact-phone,
    .contact-email {
        font-size: 14px;
    }

    .contact-image {
        height: 250px;
    }
}

/* ============ FAQ SECTION RESPONSIVE ============ */
@media screen and (max-width: 1024px) {
    .faq-title {
        font-size: 30px;
    }

    .faq-header {
        padding: 25px 35px;
    }

    .faq-number {
        font-size: 28px;
    }

    .faq-question {
        font-size: 18px;
        margin-left: 25px;
    }

    .faq-answer {
        padding: 25px 35px 25px 100px;
    }
}

@media screen and (max-width: 768px) {
    .faq-section {
        padding: 40px 20px;
    }

    .faq-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .faq-header {
        padding: 20px 25px;
        flex-wrap: wrap;
    }

    .faq-number {
        font-size: 24px;
        min-width: 40px;
    }

    .faq-question {
        font-size: 16px;
        margin-left: 20px;
        flex: 1;
        min-width: 200px;
    }

    .faq-icon {
        width: 22px;
        height: 22px;
    }

    .faq-answer {
        padding: 20px 25px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .faq-section {
        padding: 40px 15px;
    }

    .faq-title {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .faq-header {
        padding: 15px 15px;
    }

    .faq-number {
        font-size: 20px;
        min-width: 35px;
    }

    .faq-question {
        font-size: 14px;
        margin-left: 15px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    .faq-answer {
        padding: 18px 20px;
        font-size: 14px;
    }
}

/* ============ UTILITY CLASSES ============ */
@media screen and (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

/* Services Dropdown in Mobile Menu */
@media screen and (max-width: 768px) {
    .navbar {
        width: calc(100% - 40px);
        padding: 15px 20px;
        top: 15px;
        border-radius: 25px;
    }

    .logo {
        height: 35px;
    }

    .hamburger {
        display: flex ;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link {
        width: 100%;
        display: block;
        padding: 18px 30px;
        font-size: 16px;
    }

    .services-dropdown-container {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        background: #f8f9fa;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .services-dropdown-container.active {
        max-height: 500px;
    }

    .dropdown-content {
        padding: 15px;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dropdown-item {
        background: white;
        border: 1px solid #e0e0e0;
        padding: 15px;
    }

    .dropdown-item:hover {
        background: #f5f5f5;
        transform: none;
    }

    .item-title {
        color: #1a1a1a;
        font-size: 15px;
    }

    .item-subtitle {
        color: #666;
        font-size: 13px;
    }

    .dropdown-arrow {
        margin-left: auto;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        width: calc(100% - 30px);
        padding: 12px 15px;
    }

    .logo {
        height: 32px;
    }

    .nav-menu {
        width: 260px;
        min-height: 50vh;
    }

    .nav-link {
        padding: 16px 25px;
        font-size: 15px;
    }
}

/* ============ IDEOLOGY SECTION - FIXED ALIGNMENT ============ */
.ideology-section {
    margin-bottom: 50px;
    padding: 0 20px;
}

.ideology-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ideology-text {
    font-size: clamp(20px, 3.5vw, 40px);
    color: #3F3D56;
    font-family: "Qualy Neue", sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    position: relative;
    top: 70px;
}

/* Desktop */
@media (min-width: 1400px) {
    .ideology-section {
        margin-bottom: 60px;
        padding: 0 40px;
    }
}

/* Large tablets / small desktop */
@media (max-width: 1399px) {
    .ideology-section {
        padding: 0 30px;
    }
}

/* Tablets */
@media (max-width: 1023px) {
    .ideology-section {
        margin-bottom: 40px;
        padding: 0 25px;
    }
}

/* Mobile landscape / small tablets */
@media (max-width: 767px) {
    .ideology-section {
        /* margin-bottom: 35px; */
        padding: 0 20px;
    }

    .ideology-text {
        line-height: 1.4;
        top: 1;
    }
}

/* Mobile portrait */
@media (max-width: 599px) {
    .ideology-section {
        margin-bottom: 30px;
        padding: 0 16px;
    }
}

/* Small mobile */
@media (max-width: 479px) {
    .ideology-section {
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .ideology-text {
        line-height: 1.5;
        top: 10px;
    }

    .custom-container {
        padding: 2;
    }

}