/* RESPONSIVE STYLES */

/* Small devices: phones (≤600px) */
@media (max-width: 600px) {
    /* Hero Section */
    .hero {
        height: auto;
        padding: 0 0 20px;
    }

    .circle-container {
        flex: none;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 20px 10px 40px;
    }

    .circle {
        width: 80px;
        height: 80px;
    }

    .circle-icon {
        width: 50%;
        height: 50%;
    }

    .circle span {
        opacity: 1;
        transform: translateY(0);
        font-size: 1.1rem;
        color: #2E7D32;
        font-weight: 700;
        display: block;
    }

    .circle:hover {
        transform: scale(1.05);
        background-color: #2E7D32;
    }


    /* Savings Section */
    .savings {
        padding: 80px 20px;
    }

    .savings .savings-content .savings-header{
        align-items: flex-start;
    }

    .savings .savings-content .savings-header .savings-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .savings .savings-content .savings-header .savings-description {
        font-size: 1rem;
        text-align: left;
    }

    .savings-card-container .group-row {
        gap: 30px;
    }

    .savings-name {
        font-size: 1.35rem !important;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .card-back p {
        font-size: 0.95rem;
        padding: 20px;
        line-height: 1.6;
    }

    .savings-card:active .card-inner {
        transform: rotateY(180deg);
    }


    /* Loans Section */
    .loans {
        padding: 80px 20px;
    }

    .loans .loans-content .loans-header .loans-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .loans .loans-content .loans-header .loans-description {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
        padding: 0 10px;
    }

    /* Carousel adjustments */
    .loans-carousel-container {
        padding: 0 10px;
    }

   .loans-carousel-container {
        max-width: 100%;
        padding: 0 10px;
    }

    /* Hide default buttons on mobile – use swipe instead */
    .carousel-btn {
        display: none !important;
    }

    .loans-carousel {
        border-radius: 16px;
        overflow: hidden;
    }

    .loans-wrapper {
        display: flex;
        gap: 20px;
        padding: 20px 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .loans-item {
        min-width: calc(100% - 40px); /* Full width minus padding */
        max-width: 260px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        margin: 0 auto;
    }

    .loan-card {
        padding: 32px 24px;
        height: 220px;
        text-align: center;
        border-radius: 16px;
    }

    .loans-name {
        font-size: 1.35rem;
    }

    .loan-max {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 12px 0;
    }

    .loan-interest {
        font-size: 0.95rem;
        padding: 8px 16px;
    }

    .loans-item:active {
        transform: scale(0.98);
    }

    .loan-detail-content {
        width: 95% !important;
        padding: 30px 20px !important;
        border-radius: 20px;
    }

    .loan-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        font-size: 1rem;
    }

    .calculator-section input,
    .calculator-section button {
        font-size: 1rem;
    }

    .detail-title{
        font-size: 1.4rem !important;
    }

    .detail-desc{
        font-size: 1rem !important;
    }

    #result {
        font-size: 0.9rem;
    }   


    /* Benefits Section */
    .benefits {
        min-height: auto;
        padding: 80px 20px;
    }

    .benefits .benefits-content {
        flex-direction: column;
        gap: 20px;
    }

    .benefits .benefits-content .benefits-text .benefits-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .benefits .benefits-content .benefits-hex-grid{
        gap: 5px;
    }

    .hex-row:nth-child(1), .hex-row:nth-child(3) {
        padding-left: 60px;
    }

    .benefits-info {
        padding: 10px 0;
        width: 150px;
    }

    .benefits-info .benefit-title {
        font-size: 0.85rem;
    }

    .benefit-description{
        font-size: 0.75rem;
    }

    .hex-wrapper{
        width: 120px;
    }


    /* Other Services Section */
    .other-services{
        padding: 80px 20px;
    }

    .other-services .other-services-content .section-header .section-title{
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .other-services .other-services-content .services-body {
        flex-direction: column;
        gap: 30px;
    }

    .other-services .other-services-content .services-body .services-labels {
        flex-direction: row;
        border-right: none;
        border-bottom: 2px solid #000;
        padding-right: 0;
        padding-bottom: 20px;
        justify-content: center;
        gap: 40px;
        min-width: auto;
    }

    .other-services .other-services-content .services-body .services-labels .tab.active::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -27px;
        transform: translateX(-50%);
    }

    .other-services .other-services-content .services-body .service-item {
        width: 100%; /* 1 column */
        height: 180px;
    }
    
}

/* Medium devices: tablets (601px–1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    /* Hero Section */
    .hero {
        height: auto;
        padding: 0 0 20px;
    }

    .circle-container {
        flex: 0;
        padding: 20px 40px 40px;
        gap: 60px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .circle {
        width: 140px;
        height: 140px;
    }

    .circle-icon {
        width: 55%;
        height: 55%;
    }

    .circle span {
        font-size: 1.2rem;
        bottom: -40px;
    }

    .circle span {
        opacity: 1;
        transform: translateY(0);
        bottom: -45px;
        color: #2E7D32;
        font-weight: 700;
    }

    .circle:hover span {
        color: #47aa4c;
    }


    /* Savings Section */
    .savings {
        padding: 100px 40px;
    }

    .savings .savings-content .savings-header .savings-title {
        font-size: 2.6rem;
    }

    .savings .savings-content .savings-header .savings-description {
        font-size: 1.1rem;
        max-width: 750px;
        margin: 0 auto;
    }

    .savings .savings-content .savings-card-container .group-row {
        gap: 30px;
        justify-content: center;
    }

    .savings .savings-content .savings-card-container .group-row .savings-card {
        flex: 1 1 calc(50% - 30px);
        max-width: 380px;
        height: 210px;
    }

    .card-back p {
        padding: 24px;
    }


    /* Loans Section */
    .loans {
        padding: 100px 40px;
    }

    .loans .loans-content .loans-header .loans-title {
        font-size: 2.6rem;
    }

    .loans .loans-content .loans-header .loans-description {
        font-size: 1.1rem;
        max-width: 750px;
    }

    .loans-carousel-container {
        max-width: 900px;
    }

    .loans-wrapper {
        gap: 30px;
        padding: 30px 0;
    }

    .loans-item {
        max-width: 400px;
    }

    .loan-card {
        height: 250px;
        padding: 40px 32px;
    }

    .loans-name {
        font-size: 1.5rem;
    }

    .loan-max {
        font-size: 1.4rem;
    }

    /* Show buttons but keep them close */
    .prev-btn { left: -25px; }
    .next-btn { right: -25px; }


    /* Benefits Section */
    .benefits {
        padding: 100px 40px;
        min-height: auto;
    }

    .benefits .benefits-content {
        gap: 20px;
    }

    .benefits .benefits-content .benefits-text .benefits-title {
        font-size: 2.6rem;
    }

    .benefits .benefits-content .benefits-text .benefits-description {
        font-size: 1.1rem;
        max-width: 700px;
    }

    .benefits .benefits-content .benefits-hex-grid{
        gap: 0;
    }

    .hex-wrapper{
        width: 160px;
    }


    /* Other Services Section */
    .other-services {
        padding: 100px 40px;
        min-height: auto;
    }

    .other-services .other-services-content .section-header .section-title {
        font-size: 2.6rem;
    }

    .other-services .other-services-content .section-header .section-description {
        font-size: 1.1rem;
        max-width: 750px;
    }

    .other-services .other-services-content .services-body .services-labels {
        gap: 60px;
        font-size: 1.3rem;
    }

    .other-services .other-services-content .services-body .service-item {
        width: calc(33.333% - 20px);
        height: 200px;
    }

    .service-item h3 {
        font-size: 1.15rem;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    /* Hero Section */
    .circle-container {
        padding: 0 120px;
    }

    .circle {
        width: 200px;
        height: 200px;
    }

    .circle-icon {
        width: 60%;
        height: 60%;
    }

    .circle span {
        font-size: 1.3rem;
        bottom: -45px;
    }

    .circle:hover {
        transform: translateY(-10px) scale(1.05);
    }

    .circle:hover .circle-icon {
        transform: scale(1.15);
    }


    /* Savings Section */
    .savings {
        padding: 90px 80px;
    }

    .savings .savings-content {
        gap: 40px;
    }

    .savings .savings-content .savings-header {
        gap: 24px;
    }

    .savings .savings-content .savings-header .savings-title {
        font-size: 3.2rem;
    }

    .savings .savings-content .savings-header .savings-description {
        font-size: 1.2rem;
        max-width: 900px;
    }

    .savings .savings-content .savings-card-container .group-row {
        gap: 40px;
    }

    .savings .savings-content .savings-card-container .group-row .savings-card {
        height: 240px;
        transition: transform 0.4s ease;
    }

    .savings .savings-content .savings-card-container .group-row .savings-card .savings-name {
        font-size: 1.8rem;
        font-weight: 800;
    }

    .card-back p {
        font-size: 1.15rem;
        padding: 32px;
        line-height: 1.8;
    }


    /* Loans Section */
    .loans {
        padding: 140px 80px;
    }

    .loans-content {
        gap: 60px;
        max-width: 1600px;
        margin: 0 auto;
    }

    .loans .loans-content .loans-header .loans-title {
        font-size: 3.2rem;
    }

    .loans .loans-content .loans-header .loans-description {
        font-size: 1.2rem;
        max-width: 900px;
    }

    .loans-carousel-container {
        max-width: 1500px;
    }

    .loans-wrapper {
        gap: 40px;
        padding: 40px 0;
    }

    .loan-card {
        height: 280px;
        padding: 44px 36px;
        transition: all 0.4s ease;
        border: 1px solid #e0e0e0;
    }

    .loan-card:hover {
        transform: translateY(-16px) scale(1.04);
        box-shadow: 0 30px 60px rgba(26, 93, 26, 0.2);
        border-color: #1a5d1a;
    }

    .loans-name {
        font-size: 1.7rem;
    }

    .loan-max {
        font-size: 1.55rem;
    }

    .prev-btn { left: -80px; }
    .next-btn { right: -80px; }

    .carousel-btn {
        width: 60px;
        height: 60px;
        background: white;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .carousel-btn:hover {
        background: #1a5d1a;
        transform: translateY(-50%) scale(1.15);
        box-shadow: 0 15px 40px rgba(26, 93, 26, 0.3);
    }


    /* Benefits Section */
    .benefits {
        padding: 140px 80px;
    }

    .benefits-content {
        gap: 140px;
        max-width: 1400px;
    }

    .benefits .benefits-content .benefits-text .benefits-title {
        font-size: 3.2rem;
    }

    .benefits .benefits-content .benefits-text .benefits-description {
        font-size: 1.2rem;
        max-width: 600px;
    }

    .benefits-hex-grid {
        gap: 15px;
    }

    .hex-wrapper {
        width: 180px;
        padding: 6px;
        transition: transform 0.3s ease;
    }

    .hex-wrapper:hover {
        transform: translateY(-8px);
    }

    .hex {
        background: #2E7D32;
    }

    .hex:hover,
    .hex.active {
        background: #1a5d1a !important;
        box-shadow: 0 0 30px rgba(26, 93, 26, 0.7);
        transform: scale(1.08);
    }

    .benefits .benefits-content .benefits-hex-grid .hex-row .hex img {
        width: 78px;
        height: 78px;
        transition: transform 0.3s ease;
    }

    .hex:hover img,
    .hex.active img {
        transform: scale(1.15);
    }

    .hex-row:nth-child(1),
    .hex-row:nth-child(3) {
        padding-left: 100px;
    }

    .benefits-info{
        width: 230px;
        padding: 0 20px;
    }

    .benefits-info .benefit-title{
        font-size: 1.3rem;
    }

    .benefits-info .benefit-description{
        font-size: 1.1rem;
    }


    /* Other Services Section */
    .other-services {
        padding: 140px 80px;
    }

    .other-services .other-services-content {
        max-width: 1500px;
        gap: 60px;
    }

    .other-services .other-services-content .section-header .section-title {
        font-size: 3.2rem;
    }

    .other-services .other-services-content .section-header .section-description {
        font-size: 1.2rem;
        max-width: 900px;
    }

    .other-services .other-services-content .services-body .services-labels {
        gap: 80px;
        font-size: 1.5rem;
        border-right-width: 3px;
    }

    .tab.active::after {
        width: 14px;
        height: 14px;
        right: -52px;
    }

    .other-services .other-services-content .services-body .services-items {
        gap: 30px;
    }

    .other-services .other-services-content .services-body .service-item {
        height: 280px;
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    .service-item h3 {
        font-size: 1.6rem;
        font-weight: 700;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        padding: 20px;
    }

}