/* ============================================================
   INNER PAGES - SHARED STYLES
   Colors from homepage: Gold #D4AF37, Green #1B5E20, Navy #1e3a8a
   ============================================================ */

/* Section Header (matches homepage style) */
.ip-sec-head { margin-bottom: 55px; text-align: center; }
.ip-sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #D4AF37;
    margin-bottom: 18px;
}
.ip-sec-tag::before,
.ip-sec-tag::after {
    content: '';
    display: inline-block;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37);
    border-radius: 2px;
}
.ip-sec-tag::after {
    background: linear-gradient(90deg, #D4AF37, transparent);
}
.ip-sec-tag.ipst-white {
    color: rgba(255,255,255,0.85);
}
.ip-sec-tag.ipst-white::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
}
.ip-sec-tag.ipst-white::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.6), transparent);
}
.ip-sec-title {
    font-size: 44px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.ip-sec-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #D4AF37, #1B5E20);
    border-radius: 3px;
    margin: 0 auto 22px;
}
.ip-sec-line.isl-white {
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.3));
}
.ip-sec-desc {
    font-size: 17px;
    color: #666;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.75;
}

/* View All Button */
.ip-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #D4AF37;
    padding: 13px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(26,26,46,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ip-view-all-btn:hover {
    background: linear-gradient(135deg, #D4AF37, #b8860b);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.4);
    gap: 14px;
}
.ip-view-all-btn.ip-btn-white {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
}
.ip-view-all-btn.ip-btn-white:hover {
    background: linear-gradient(135deg, #D4AF37, #b8860b);
    border-color: transparent;
    color: #fff;
}

/* Inner Page Banner (enhanced) */
.ip-banner {
    position: relative;
    background-size: cover;
    background-position: center;
}
.ip-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(27,94,32,0.6) 100%);
}
.ip-banner-content {
    position: relative;
    z-index: 1;
    padding: 80px 0 60px;
    text-align: center;
}
.ip-banner-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}
.ip-banner-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.ip-banner-breadcrumb a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s;
}
.ip-banner-breadcrumb a:hover {
    color: #fff;
}
.ip-banner-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 12px;
    color: rgba(255,255,255,0.4);
}

/* Card Base */
.ip-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.ip-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.ip-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ip-card:hover .ip-card-img img {
    transform: scale(1.07);
}
.ip-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ip-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.ip-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s;
}
.ip-card-title a:hover {
    color: #D4AF37;
}
.ip-card-text {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}
.ip-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}
.ip-card-meta i {
    color: #D4AF37;
}
.ip-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #D4AF37;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
    margin-top: auto;
}
.ip-card:hover .ip-card-link {
    gap: 10px;
}

/* Date Badge */
.ip-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #D4AF37, #b8860b);
    color: #fff;
    width: 52px;
    text-align: center;
    border-radius: 10px;
    padding: 8px 6px;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}
.ip-date-day { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.ip-date-month { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* Category Badge */
.ip-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1a1a2e;
    color: #D4AF37;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Pagination (enhanced) */
.ip-pagination .page-link {
    color: #1a1a2e;
    border: 1px solid #e5e7eb;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s;
}
.ip-pagination .page-link:hover {
    background: linear-gradient(135deg, #D4AF37, #b8860b);
    color: #fff;
    border-color: #D4AF37;
}
.ip-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #D4AF37, #b8860b);
    border-color: #D4AF37;
    color: #fff;
}

/* Empty State */
.ip-empty {
    text-align: center;
    padding: 80px 20px;
}
.ip-empty-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}
.ip-empty-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.ip-empty-text {
    font-size: 15px;
    color: #999;
}

/* Responsive */
@media (max-width: 991px) {
    .ip-sec-title { font-size: 32px; }
    .ip-banner-title { font-size: 32px; }
    .ip-banner-content { padding: 60px 0 40px; }
}
@media (max-width: 767px) {
    .ip-sec-title { font-size: 28px; }
    .ip-banner-title { font-size: 26px; }
    .ip-card-img { height: 180px; }
}

/* ============================================================
   RTL FIXES
   ============================================================ */
html[lang="ar"] .ip-banner-breadcrumb li:not(:last-child)::after {
    margin-left: 0;
    margin-right: 12px;
}
html[lang="ar"] .ip-date-badge { left: auto; right: 12px; }
html[lang="ar"] .ip-category-badge { right: auto; left: 12px; }
