/* =============================================
   INTER HORIZON - Custom CSS
   Brand Colors:
   Blue:  #3C51A3 / #2B3087
   Green: #119B48 / #0C6735
   ============================================= */

/* ---- CSS Variables ---- */
:root {
    --ih-blue-light: #3C51A3;
    --ih-blue-dark:  #2B3087;
    --ih-green-light: #119B48;
    --ih-green-dark:  #0C6735;
}

/* =============================================
   FOOTER
   ============================================= */

footer.footer-section {
    padding-top: 0 !important;
}

.footer-area {
    background: linear-gradient(
        135deg,
        #0C1F5C 0%,
        #1a2d6e 20%,
        #0d4a28 60%,
        #0C6735 100%
    ) !important;
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay */
.footer-area::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(60, 81, 163, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(17, 154, 72, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Keep content above overlay */
.footer-area .container {
    position: relative;
    z-index: 1;
}

/* ---- Footer Logo ---- */
.footer-logo img {
    max-width: 180px;
    filter: brightness(1.1);
}

/* ---- Footer Description ---- */
.footer-content p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 14px;
}

/* ---- Footer Headings ---- */
.footer-widget-items .widget-head h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    position: relative;
}

.footer-widget-items .widget-head h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 35px; height: 2px;
    background: linear-gradient(90deg, var(--ih-green-light), var(--ih-blue-light));
    border-radius: 2px;
}

/* ---- Footer Links ---- */
.footer-widget-items .list-area li a {
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 3px 0;
}

.footer-widget-items .list-area li a:hover {
    color: #ffffff;
    padding-left: 6px;
    opacity: 1;
}

/* ---- Footer Contact Text ---- */
.footer-widget-items .contact-content h6 {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 0;
}

.footer-widget-items .contact-content h6 a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.footer-widget-items .contact-content h6 a:hover {
    color: var(--ih-green-light);
}

/* ---- Social Icons ---- */
.footer-content .social-icon a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.80);
    margin-right: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-content .social-icon a:hover {
    background: var(--ih-green-light);
    border-color: var(--ih-green-light);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ---- Footer Bottom Bar ---- */
.footer-bottom-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.footer-bottom-wrapper p {
    color: rgba(255, 255, 255, 0.60);
    font-size: 13px;
    margin-bottom: 0;
}

.footer-bottom-wrapper p span {
    color: var(--ih-green-light);
    font-weight: 600;
}

.footer-bottom-wrapper p a {
    color: var(--ih-green-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom-wrapper p a span {
    color: var(--ih-green-light);
}

.footer-bottom-wrapper p a:hover {
    color: #ffffff;
}

.footer-list li a {
    color: rgba(255, 255, 255, 0.60);
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-list li a:hover {
    color: var(--ih-green-light);
}

.footer-list li {
    color: rgba(255, 255, 255, 0.40);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-widget-items {
        margin-bottom: 30px;
    }
}

/* =============================================
   PRODUCT & BLOG CARDS (.news-card-items)
   ============================================= */

.news-card-items {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card-items .news-image {
    aspect-ratio: 3 / 2;
}

.news-card-items .news-image img {
    height: 100%;
    object-fit: cover;
}

.news-card-items:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.news-card-items .news-top-content .news-content .cat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ih-green-dark);
    background: rgba(17, 155, 72, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin: 0 0 10px;
}

.news-card-items .news-top-content .news-content .card-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Clamp titles to 2 lines so all cards in a row are the same height */
.news-card-items .news-top-content .news-content h3 {
    overflow: hidden;
    min-height: 64px;
}

.news-card-items .news-top-content .news-content h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   HOME PAGE - NEWS & MEDIA CENTER SECTION
   ============================================= */

.home-news-section {
    padding-bottom: 120px;
}

@media (max-width: 1199px) {
    .home-news-section {
        padding-bottom: 100px;
    }
}

@media (max-width: 991px) {
    .home-news-section {
        padding-bottom: 80px;
    }
}

/* =============================================
   GALLERY MASONRY
   ============================================= */

.gallery-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 10px;
}

.gallery-filter-bar button {
    border: 1px solid rgba(12, 103, 53, 0.25);
    background: transparent;
    color: var(--ih-green-dark);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-filter-bar button.active,
.gallery-filter-bar button:hover {
    background: var(--ih-green-light);
    border-color: var(--ih-green-light);
    color: #ffffff;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 991px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .gallery-masonry {
        column-count: 1;
    }
}

.gallery-item {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-item.gallery-hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 103, 53, 0.75), rgba(12, 31, 92, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay i {
    color: #ffffff;
    font-size: 22px;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* =============================================
   BLOG SIDEBAR - RECENT POSTS THUMBNAILS
   ============================================= */

.gt-recent-post-area .gt-recent-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.gt-recent-post-area .gt-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================
   NEWS PAGE - SEARCH & CATEGORY FILTER BAR
   ============================================= */

.news-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(12, 103, 53, 0.12);
}

.news-search-form {
    display: flex;
    align-items: center;
    border: 1px solid rgba(12, 103, 53, 0.2);
    border-radius: 30px;
    width: 100%;
    max-width: 320px;
    padding: 4px;
}

.news-search-form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
}

.news-search-form button {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--ih-green-light);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.news-search-form button:hover {
    background: var(--ih-green-dark);
}

.news-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-cat-filter a {
    border: 1px solid rgba(12, 103, 53, 0.25);
    color: var(--ih-green-dark);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.news-cat-filter a span {
    margin-left: 2px;
    font-weight: 500;
    opacity: 0.65;
}

.news-cat-filter a.active,
.news-cat-filter a:hover {
    background: var(--ih-green-light);
    border-color: var(--ih-green-light);
    color: #ffffff;
}

.news-cat-filter a.active span,
.news-cat-filter a:hover span {
    opacity: 0.85;
}

@media (max-width: 767px) {
    .news-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search-form {
        max-width: none;
    }
}

/* =============================================
   CONTACT FORM - SUBMISSION FEEDBACK MESSAGE
   ============================================= */

.contact-form-box .form-message {
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 500;
}

.contact-form-box .form-message.success {
    background-color: #e6f6ec;
    color: #1a7f3c;
    border: 1px solid #b7e4c7;
}

.contact-form-box .form-message.error {
    background-color: #fdecec;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}
