/*
Theme Name: Exiromed
Theme URI: https://exiromed.com/
Author: Mohammad
Author URI: https://mohammad.me/
Description: A senior WordPress theme conversion of Exiromed static HTML.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: exiromed
*/

/*
This is the primary stylesheet for Exiromed. 
Most styles are loaded from assets/css/ for modularity.
*/


/* ========================================================
   CATEGORY & ARCHIVE PAGE STYLES (News Grid)
======================================================== */

/* 1. Fix the giant banner titles */
body:not(.home) .hero-text {
    width: 90% !important;
    max-width: 1000px !important;
    left: 5% !important;
    right: 5% !important;
    bottom: 20% !important;
    text-align: center !important;
}
body:not(.home) .slide-content h1 {
    font-size: clamp(24px, 4vw, 42px) !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 2. Archive Container */
.sub_wrap.news .sub_content { width: 100%; }
.sub_wrap.news .sub_content .inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    box-sizing: border-box;
}

/* 3. Grid Layout */
.gall_row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.gall_row > li {
    width: calc((100% - 64px) / 3);
    display: flex;
    flex-direction: column;
    /* Force visibility in case AOS animation fails */
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* 4. Image Box & Hover Effects */
.gall_img {
    overflow: hidden;
    border-radius: 80px 20px 0 20px;
    position: relative;
    aspect-ratio: 4/3;
    background-color: #f5f7f9;
}
.gall_img a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.gall_img a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s ease;
}
.gall_row > li:hover .gall_img a img {
    transform: scale(1.1);
}

/* 5. Custom Corner Arrow (Bottom Right) */
.gall_img a .radius {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 66px;
    height: 66px;
    border-radius: 66px 0 0 66px;
    background-color: #fff;
}
.gall_img a .radius:before {
    content:''; position:absolute; right:66px; bottom: 0; width:33px; height:33px; border-radius:0 0 33px 0; box-shadow:33px 33px 0 33px #fff;
}
.gall_img a .radius:after {
    content:''; position:absolute; right:0; bottom:66px; width:33px; height:33px; border-radius:0 0 33px 0; box-shadow:33px 33px 0 33px #fff;
}
.gall_img a .radius .arrow {
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid #e1e1e1;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s;
}
.gall_row > li:hover .gall_img a .radius .arrow {
    border: none;
    color: #fff;
    background: #FF4D00;
}
.gall_row > li:hover .gall_img a .radius .arrow svg path {
    stroke: #fff;
}

/* 6. Typography / Texts */
.gall_info {
    margin-top: 24px;
    font-size: 13px;
    text-align: right;
    color: #999;
    font-weight: 500;
}
.gall_text_href {
    margin-top: 15px;
    width: 100%;
}
.gall_text_href a {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    transition: color 0.3s;
}
.gall_row > li:hover .gall_text_href a {
    color: #FF4D00;
}
.sub_text {
    margin-top: 15px;
    width: 100%;
}
.sub_text span {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 7. Pagination */
.pg_wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    width: 100%;
}
.pg_wrap .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f7f9;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s;
}
.pg_wrap .page-numbers.current {
    background: #111;
    color: #fff;
}
.pg_wrap .page-numbers:hover:not(.current) {
    background: #e2e2e2;
}

/* 8. Mobile Responsiveness */
@media (max-width: 1024px) {
    .gall_row > li { width: calc((100% - 32px) / 2); }
}
@media (max-width: 768px) {
    .gall_row > li { width: 100%; }
    .gall_img { border-radius: 60px 20px 0 20px; }
    .gall_img a .radius { width: 56px; height: 56px; border-radius: 56px 0 0 56px;}
    .gall_img a .radius .arrow { width: 46px; height: 46px; }
    .gall_img a .radius:before, .gall_img a .radius:after { display: none; }
}