/* font */
@font-face {
    font-family: 'kalame1';
    src: url(/font/ttf/iransansdnbold.ttf);
    src: url(/font/woff/iransansdnbold.woff) format('woff');

}

@font-face {
    font-family: 'kalame3';
    src: url(/font/ttf/iransansdnlight.ttf);
    src: url(/font/woff/iransansdnlight.woff) format('woff');
}

@font-face {
    font-family: 'kalame2';
    src: url(/font/ttf/iransansdn.ttf);
    src: url(/font/woff/iransansdn.woff) format('woff');

}

* {
    font-family: kalame3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: kalame3;

}

.font {
    font-family: kalame3;
}

.font-bold {
    font-family: kalame1;
    position: relative;
    z-index: 999;
}

/* navbar */
.search {
    border: 1px solid #000;
    border-radius: 9px;
    height: 35px;
}

@media (max-width: 768px) {
    .search {
        border: 1px solid #000;
        border-radius: 9px;
        height: 35px;
        width: 135px;
    }
}


strong {
    color: #000;
}

a {
    text-decoration: none;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 2px 1px 8px #888888;
}

nav .wrapper {
    position: relative;
    max-width: 1300px;
    padding: 0px 30px;
    height: 70px;
    line-height: 70px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wrapper .logo a {
    color: #000;
    font-size: 30px;
    font-weight: 600;
    text-decoration: none;
}

.wrapper .nav-links {
    display: inline-flex;
    text-align: right;
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}


@media (max-width: 768px) {
    .nav-links {
        color: #000000;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        padding: 9px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
        background-color: #fff !important;
    }
}



.nav-links li a:hover {
    background: #5867dd;
}

.nav-links .mobile-item {
    display: none;
    color: #000;
}

.nav-links .drop-menu {
    position: absolute;
    background: #ffffff;
    width: 180px;
    line-height: 45px;
    top: 85px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.nav-links li:hover .drop-menu,
.nav-links li:hover .mega-box {
    transition: all 0.3s ease;
    top: 70px;
    opacity: 1;
    visibility: visible;
}

.drop-menu li a {
    width: 100%;
    display: block;
    padding: 0 0 0 15px;
    font-weight: 400;
    border-radius: 0px;
}

.mega-box {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 0 30px;
    top: 85px;
    opacity: 0;
    visibility: hidden;
}

.mega-box .content {
    background: #5867dd;
    padding: 25px 20px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.mega-box .content .row {
    width: calc(25% - 30px);
    line-height: 45px;
}

.content .row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content .row header {
    color: #f2f2f2;
    font-size: 20px;
    font-weight: 500;
}

.content .row .mega-links {
    margin-left: -40px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.row .mega-links li {
    /* padding: 0 20px; */
}

.row .mega-links li a {
    padding: 0px;
    padding: 0 20px;
    color: #d9d9d9;
    font-size: 17px;
    display: block;
}

.row .mega-links li a:hover {
    color: #f2f2f2;
}

.wrapper .btn {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
}

.wrapper .btn.close-btn {
    position: absolute;
    right: 30px;
    top: 10px;
}

@media screen and (max-width: 970px) {
    .wrapper .btn {
        display: block;
    }

    .wrapper .nav-links {
        position: fixed;
        height: 100vh;
        width: 100%;
        max-width: 350px;
        top: 0;
        left: -100%;
        background: #242526;
        display: block;
        padding: 50px 10px;
        line-height: 50px;
        overflow-y: auto;
        box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.18);
        transition: all 0.3s ease;
    }

    /* custom scroll bar */
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #242526;
    }

    ::-webkit-scrollbar-thumb {
        background: #3A3B3C;
    }

    #menu-btn:checked~.nav-links {
        left: 0%;
    }

    #menu-btn:checked~.btn.menu-btn {
        display: none;
    }

    #close-btn:checked~.btn.menu-btn {
        display: block;
    }

    .nav-links li {
        margin: 15px 10px;

    }

    .nav-links li a {
        padding: 0 20px;
        display: block;
        font-size: 20px;
    }

    .nav-links .drop-menu {
        position: static;
        opacity: 1;
        top: 65px;
        visibility: visible;
        padding-left: 20px;
        width: 100%;
        max-height: 0px;
        overflow: hidden;
        box-shadow: none;
        transition: all 0.3s ease;
    }

    #showDrop:checked~.drop-menu,
    #showMega:checked~.mega-box {
        max-height: 100%;
    }

    .nav-links .desktop-item {
        display: none;
    }

    .nav-links .mobile-item {
        display: block;
        color: #f2f2f2;
        font-size: 20px;
        font-weight: 500;
        padding-left: 20px;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .nav-links .mobile-item:hover {
        background: #3A3B3C;
    }

    .drop-menu li {
        margin: 0;
    }

    .drop-menu li a {
        border-radius: 5px;
        font-size: 18px;
    }

    .mega-box {
        position: static;
        top: 65px;
        opacity: 1;
        visibility: visible;
        padding: 0 20px;
        max-height: 0px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .mega-box .content {
        box-shadow: none;
        flex-direction: column;
        padding: 20px 20px 0 20px;
    }

    .mega-box .content .row {
        width: 100%;
        margin-bottom: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mega-box .content .row:nth-child(1),
    .mega-box .content .row:nth-child(2) {
        border-top: 0px;
    }

    .content .row .mega-links {
        border-left: 0px;
        padding-left: 15px;
    }

    .row .mega-links li {
        margin: 0;
    }

    .content .row header {
        font-size: 19px;
    }
}

nav input {
    display: none;
}

.body-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    padding: 0 30px;
}

.body-text div {
    font-size: 45px;
    font-weight: 600;
}

/* slider */
.slider {
    margin-top: 95px;
    border-radius: 25px;
}

/* why */
.why {
    border: 1px solid #cccfd3;
    padding: 7px;
    padding-bottom: 12px;
    border-radius: 0 12px 12px 0;
    background-color: #cccfd3;
    color: #3A3B3C;
    font-size: 25px;
}

@media(max-width:768px) {
    .why {
        border: 1px solid #cccfd3;
        padding: 7px;
        padding-bottom: 9px;
        border-radius: 0 12px 12px 0;
        background-color: #cccfd3;
        color: #3A3B3C;
        font-size: 15px;
    }
}

.why1 {
    border: 1px solid #5867dd;
    padding: 7px;
    padding-bottom: 12px;
    border-radius: 12px 0 0 12px;
    background: #2336c4;
    background: linear-gradient(269deg, rgba(35, 54, 196, 1) 16%, rgba(88, 103, 221, 1) 82%);
    color: #fff;
    font-size: 25px;
    margin-right: -5px;
}

@media(max-width:768px) {
    .why1 {
        border: 1px solid #5867dd;
        padding: 7px;
        padding-bottom: 9px;
        border-radius: 12px 0 0 12px;
        background: #2336c4;
        background: linear-gradient(269deg, rgba(35, 54, 196, 1) 16%, rgba(88, 103, 221, 1) 82%);
        color: #fff;
        font-size: 15px;
        margin-right: -5px;
    }
}

.why-p {
    margin-top: 14px;
    color: #4a5565;
}


@media(max-width:768px) {
    .why-p {
        margin-top: 14px;
        font-size: 10px;
    }
}

.support {
    border-radius: 15px;
    box-shadow: 1px 1px 11px #acacac;
    text-align: center;
    border-radius: 5px;
    padding: 15px;
}

.img-support {
    width: 50px;
    /* border: 1px solid #c3c4c5; */
    /* background-color: #c3c4c5; */
    /* padding: 3px; */
    margin-top: 20px;
    border-radius: 3px;
}

.img-p {
    color: #4a5565;
    font-weight: 600;
    padding-top: 20px;
}

.img-p1 {
    color: #6a7282;
    font-size: 14px;
}

/* product* */
.products-container {
    background: #2000a9;
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b2ef5, #8c6cff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
    background: #f8f9fa;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #5867dd;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: #5867dd;
    color: white;
    transform: scale(1.1);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.4;
}

.product-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.star.filled {
    background: #5867dd;
}

.rating-text {
    font-size: 0.8rem;
    color: #666;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.price-number {
    color: #5867dd;
}

.buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b2ef5, #8c6cff);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.buy-btn:hover::before {
    left: 100%;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.view-all {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(-50%);
    }

    40% {
        transform: translateY(-60px);
    }

    60% {
        transform: translateY(-55px);
    }
}

.view-all-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.view-all-text {
    font-size: 1rem;
    font-weight: 600;
}

.discount-badge {
    position: absolute;
    text-align: right;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    z-index: 100;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.status-indicators {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.status-dot.green {
    background: #28a745;
}

.status-dot.yellow {
    background: #ffc107;
    animation-delay: 0.5s;
}

.status-dot.red {
    background: #dc3545;
    animation-delay: 1s;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .products-container {
        margin: 1rem;
        padding: 1rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .view-all {
        position: static;
        transform: none;
        margin-top: 2rem;
        text-align: center;
    }

    .view-all-icon {
        font-size: 2rem;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* category */
.category-box {
    background: #fff;
    box-shadow: 1px 1px 11px #acacac;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    border: 1px solid #eee;
    height: 100%;
}

.category-img {
    width: 60px;
    height: auto;
    margin-left: 10px;
}

.category-title {
    font-weight: bold;
    color: #2c2c2c;
}

.category-subtitle {
    font-size: 14px;
    color: gray;
}

.btn-outline-dark {
    border-radius: 10px;
    padding: 5px 15px;
    font-weight: bold;
}

.read_all {
    text-align: left;
    margin-top: 55px;
}

@media (max-width: 768px) {
    .read_all {
        text-align: center;
        margin-top: 1px;
    }
}

/* banner */
.banner {
    width: 100%;
    border-radius: 20px;
}

/* new prodect */
.products-container1 {
    background: #9fc0fb;
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b2ef5, #8c6cff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
    background: #f8f9fa;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #5867dd;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: #5867dd;
    color: white;
    transform: scale(1.1);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.4;
}

.product-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.star.filled {
    background: #5867dd;
}

.rating-text {
    font-size: 0.8rem;
    color: #666;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.price-number {
    color: #5867dd;
}

.buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b2ef5, #8c6cff);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.buy-btn:hover::before {
    left: 100%;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.view-all {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(-50%);
    }

    40% {
        transform: translateY(-60px);
    }

    60% {
        transform: translateY(-55px);
    }
}

.view-all-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.view-all-text {
    font-size: 1rem;
    font-weight: 600;
}

.discount-badge {
    position: absolute;
    text-align: right;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    z-index: 100;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.status-indicators {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.status-dot.green {
    background: #28a745;
}

.blue {
    background: #2336c4;
}

.status-dot.yellow {
    background: #ffc107;
    animation-delay: 0.5s;
}

.status-dot.red {
    background: #dc3545;
    animation-delay: 1s;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .products-container {
        margin: 1rem;
        padding: 1rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .view-all {
        position: static;
        transform: none;
        margin-top: 2rem;
        text-align: center;
    }

    .view-all-icon {
        font-size: 2rem;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* brand */
.img-brand {
    border-radius: 15px;
    box-shadow: 1px 1px 11px #acacac;
    width: 100%;
    height: 196px;
}

/* article */
.articles-section {
    padding: 4rem 0;
}

.article-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    /* Ensure cards in a row have equal height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* For rounded corners on image */
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    /* 3:2 aspect ratio (200/300) */
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #2d3748;
    /* Dark blue/gray */
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

/* If you want the arrow on the image (for carousel context) */
/*
.carousel-arrow-left {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d3748;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 1;
}

.carousel-arrow-left:hover {
  background-color: #4299e1;
  color: white;
}
*/

.article-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #718096;
    padding-top: 0.5rem;
    border-top: 1px solid #edf2ff;
    /* Light border for separation */
}

.view-info,
.date-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-footer i {
    color: #a0aec0;
    /* Lighter icon color */
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {

    /* For md and below (tablet and mobile) */
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
        /* 2 items per row */
    }
}

@media (max-width: 767.98px) {

    /* For sm and below (mobile) */
    .col-12 {
        flex: 0 0 auto;
        width: 100%;
        /* 1 item per row on very small screens */
    }

    .article-card {
        padding-bottom: 0;
        /* Adjust padding for smaller screens */
    }

    .article-content {
        padding: 0.75rem 1rem;
    }

    .article-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .article-footer {
        font-size: 0.8rem;
    }
}

/* footer */
.main-footer {
    background-color: #ffffff;
    /* White background for the footer */
    color: #4a5568;
    /* Default text color */
    font-size: 0.9rem;
}

.footer-top-section {
    border-color: #edf2f7 !important;
    /* Light border for separation */
}

.footer-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    /* Darker title color */
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 100px;
    /* Adjust logo size */
    height: auto;
}

.footer-links {
    padding-right: 0;
    /* Remove default ul padding for RTL */
    font-size: 15px;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #4a5568;
    /* Link color */
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    /* For icon alignment */
    align-items: center;
}

.footer-links a:hover {
    color: #4299e1;
    /* Blue hover color */
}

.social-links i {
    color: #a0aec0;
    /* Lighter icon color for social links */
    font-size: 15px;
    width: 20px;
    /* Fixed width for consistent alignment */
    text-align: center;
}

/* Email Subscription Input */
.email-subscribe-input .form-control {
    border-radius: 8px 0 0 8px;
    /* Rounded on right for RTL */
    border-color: #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.email-subscribe-input .form-control::placeholder {
    color: #a0aec0;
}

.email-subscribe-input .btn {
    background-color: #4299e1;
    /* Blue button */
    border-color: #4299e1;
    color: white;
    border-radius: 0 8px 8px 0;
    /* Rounded on left for RTL */
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.email-subscribe-input .btn:hover {
    background-color: #2b6cb0;
    /* Darker blue on hover */
    border-color: #2b6cb0;
}

/* Footer Description - Adjusted for Collapse */
/* The .collapse class is now on the parent div, not the content itself */
.footer-description-content {
    color: #718096;
    line-height: 1.8;
    margin-bottom: 1rem;
    /* Keep margin for spacing below text */
    text-align: justify;
    /* Justify text for better readability */
    position: relative;
    /* For the fade overlay */
    /* No transition here, Bootstrap's .collapse handles height transition on its parent div */
}

/* Initial collapsed state and fade effect */
/* Target the content when its parent .collapse is NOT .show */
#footerDescriptionCollapse:not(.show) .footer-description-content {
    max-height: 100px;
    /* Adjust this to show desired number of lines (approx 3-4 lines) */
    overflow: hidden;
}

#footerDescriptionCollapse:not(.show) .footer-description-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 40px;
    /* Height of the fade effect */
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    /* Allow clicks through */
    transition: opacity 0.3s ease;
    /* Smooth transition for fade */
}

/* When expanded, remove max-height and fade */
/* Target the content when its parent .collapse IS .show */
#footerDescriptionCollapse.show .footer-description-content {
    max-height: none;
    /* Remove max-height to show full content */
    overflow: visible;
}

#footerDescriptionCollapse.show .footer-description-content::after {
    opacity: 0;
    /* Hide the fade effect */
}

/* Read More Link */
.read-more-link {
    color: #4299e1;
    /* Blue link color */
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: #2b6cb0;
    /* Darker blue on hover */
}

.read-more-link i {
    transition: transform 0.2s ease;
}

/* Rotate icon when expanded */
.read-more-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Trust Badges */
.trust-badges {
    margin-top: 2rem;
}

.trust-badge-item {
    max-width: 80px;
    /* Adjust size of badges */
    height: auto;
    filter: grayscale(100%);
    /* Make them grayscale as in the image */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.trust-badge-item:hover {
    filter: grayscale(0%);
    /* Color on hover */
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .footer-top-section .col-md-6 {
        text-align: center !important;
        /* Center align columns on tablet */
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .email-subscribe-input {
        max-width: 350px;
        /* Limit width on smaller screens */
        margin-left: auto;
        margin-right: auto;
    }

    .footer-middle-section .col-md-6 {
        text-align: center !important;
    }

    .read-more-link {
        justify-content: center;
        /* Center the read more link */
    }
}

@media (max-width: 767.98px) {
    .main-footer {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .footer-column-title {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .email-subscribe-input .form-control,
    .email-subscribe-input .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .footer-description-content {
        font-size: 0.85rem;
    }

    .read-more-link {
        font-size: 0.85rem;
    }

    .trust-badge-item {
        max-width: 60px;
    }
}