﻿/* Custom styles for a modern look and feel */
/*body {
    background-color: #f0f2f5;
    font-family: 'Inter', sans-serif;
}
*/
.title-wrap {
    position: relative;
    display: inline-block;
    overflow: visible
}

h1.title {
    font-size: 36px;
    margin: 0;
    letter-spacing: -0.02em
}

.title-underline {
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 6px;
    width: 0;
    border-radius: 6px;
    background: linear-gradient(90deg,#4fd1c5,#7c3aed);
    transition: width 600ms cubic-bezier(.2,.9,.3,1)
}

/* animation on load */
.animate .title-underline {
    width: 100%
}
.blog-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in the same row are the same height */
    display: flex;
    flex-direction: column;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    }

.card-img-container {
    position: relative;
}

.blog-card .card-img-top {
   
    aspect-ratio: 16 / 16;
    object-fit: contain;
    height: 300px;
    width: 250px;
    margin: 4%;
}

.blog-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #4299e1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-card .card-body {
    padding: 1.75rem;
    flex-grow: 1; /* Allows body to expand and push footer down */
}

.blog-card .card-title {
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

/* Blog card without image - highlighted title */
.blog-card-no-image {
    min-height: 350px;
}

.blog-title-highlighted {
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.blog-card-no-image:hover .blog-title-highlighted {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

/* Adjust body padding for cards without image */
.blog-card-no-image .card-body {
    padding: 2rem 1.75rem 1.5rem;
}

.blog-card .card-text {
    color: #4a5568;
    line-height: 1.6;
}

/* Mobile responsive adjustments for blog cards */
@media (max-width: 768px) {
    .blog-title-highlighted {
        font-size: 1.25rem;
    }
    
    .blog-card-no-image {
        min-height: 320px;
    }
    
    .blog-card-no-image .card-body {
        padding: 1.5rem 1.25rem 1rem;
    }
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

    .author-info img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 0.75rem;
        object-fit: cover;
    }

    .author-info .author-name {
        font-weight: 600;
        color: #2d3748;
        margin: 0;
    }

    .author-info .post-date {
        font-size: 0.875rem;
        color: #718096;
        margin: 0;
    }

.blog-card .card-footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

    .card-actions .action-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        color: #718096;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        .card-actions .action-item:hover,
        .card-actions .action-item:focus {
            color: #2d3748;
        }

        .card-actions .action-item.liked {
            color: #e53e3e;
        }

            .card-actions .action-item.liked:hover {
                color: #c53030;
            }

        .card-actions .action-item.wishlisted {
            color: #4299e1;
        }

            .card-actions .action-item.wishlisted:hover {
                color: #2b6cb0;
            }

        .card-actions .action-item i {
            font-size: 1.1rem;
        }

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .read-more-btn:hover {
        color: #2b6cb0;
    }

.popover {
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: none;
}

.popover-body {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
}

    .popover-body a {
        font-size: 1.5rem;
        transition: transform 0.2s ease;
    }

        .popover-body a:hover {
            transform: scale(1.1);
        }

        .popover-body a.instagram-icon {
            color: #E1306C;
        }

        .popover-body a.whatsapp-icon {
            color: #25D366;
        }

        .popover-body a.snapchat-icon {
            color: #FFFC00;
        }

        .popover-body a.twitter-icon {
            color: #1DA1F2;
        }

        .popover-body a.facebook-icon {
            color: #1877F2;
        }

        /*Filter */
.filter-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .filter-box h5 {
        font-weight: bold;
        color: #e63946;
        margin-bottom: 20px;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
    }

.input-group-text {
    background: #f8f9fa;
    border-right: none;
}

.form-control, .form-select {
    border-left: none;
}

.btn-filter {
    background: #06d6a0;
    color: white;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.3s;
}

    .btn-filter:hover {
        background: #04b488;
    }

.ui-datepicker {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/*Video*/
.video-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background: #fff;
}

    .video-card:hover {
        transform: translateY(-5px);
    }

/* Responsive video container - fixes Safari mobile issues */
.video-responsive-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

    .video-responsive-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

.video-body {
    padding: 12px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a202c;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-summary {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

    .video-actions .icons {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .video-actions .icons span {
        cursor: pointer;
        transition: color 0.2s;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

/* Mobile responsive adjustments for videos */
@media (max-width: 768px) {
    .video-card {
        margin-bottom: 1rem;
    }

    .video-title {
        font-size: 0.95rem;
    }

    .video-summary {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .video-actions .icons span {
        font-size: 0.85rem;
    }
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    .video-responsive-container {
        -webkit-overflow-scrolling: touch;
    }

    .video-responsive-container iframe {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

.like-btn.liked {
    color: #0d6efd !important;
}

.share-popup {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

    .share-popup a {
        margin: 5px;
        font-size: 1.3rem;
        color: #555;
        text-decoration: none;
    }

        .share-popup a:hover {
            color: #0d6efd;
        }
/* Icon Colors */
.like-btn {
    color: #6c757d;
}

.comment-btn {
    color: #198754;
}

.view-btn {
    color: #fd7e14;
}

.share-btn {
    color: #6f42c1;
}