/* Custom Styles for 247Invites Parth Theme */

.btn-gradient {
    background: linear-gradient(90deg, #f02060 0%, #ff6b95 100%);
}

.logo-shape {
    background: linear-gradient(135deg, #f02060 0%, #ff6b95 100%);
    border-radius: 8px 15px 8px 15px;
}

.dropdown-animate {
    transform-origin: top;
    transition: all 0.2s ease-out;
}

.hidden-dropdown {
    opacity: 0;
    transform: scaleY(0);
    pointer-events: none;
}

.show-dropdown {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

.container {
    max-width: 1400px !important;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.gradient-text {
    background: linear-gradient(45deg, #ce1153, #ff4c8b, #ffa6c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.primary-outline {
    background-color: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(to right, #ff005a, #ff4c8b, #ffa6c6);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    color: #ce1153;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
    padding: 0.5rem 1.5rem !important;
    font-size: 16px;
}

.primary-outline:hover {
    background-image: linear-gradient(to right, #ff005a, #ff4c8b, #ffa6c6), linear-gradient(to right, #ff005a, #ff4c8b, #ffa6c6);
    color: #fff;
    background-origin: border-box, border-box;
    background-clip: border-box, border-box;
    border-color: transparent;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tab-active {
    background-color: #fff0f3 !important;
    color: #ce1153 !important;
}

.tab-inactive {
    background-color: transparent !important;
    color: #000000 !important;
}

/* Utility: clamp text to 2 lines with ellipsis */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.6em; /* fallback to approx 2 lines (1.8em line-height) */
    line-height: 1.8em;
}

/* Contact Form 7 (Contact page) */
.cf7-field,
.cf7-select,
.cf7-textarea {
    width: 100%;
    background: #F9F9F9;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cf7-field:focus,
.cf7-select:focus,
.cf7-textarea:focus {
    border-color: #D81B60;
    box-shadow: 0 0 0 2px rgba(216, 27, 96, 0.2);
}

.cf7-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .cf7-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cf7-submit {
    background: #D81B60;
    color: #fff;
    padding: 16px 40px;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 12px 24px rgba(216, 27, 96, 0.25);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.cf7-submit:hover {
    background: #AD1457;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(216, 27, 96, 0.3);
}

/* ==========================================================================
   Video List template (template-videolist.php) – match 247design/videolist.html
   ========================================================================== */
.page-template-template-videolist-php .videolist-filter-row,
.tax-invite_type.term-video .videolist-filter-row,
.taxonomy-invite_type.term-video .videolist-filter-row {
    position: relative;
    z-index: 40;
    isolation: isolate;
}

.page-template-template-videolist-php .videolist-sidebar,
.tax-invite_type.term-video .videolist-sidebar,
.taxonomy-invite_type.term-video .videolist-sidebar {
    z-index: 9999;
    min-height: 320px;
}

/* Ensure filter bar and category pills sit above the card grid */
.page-template-template-videolist-php .videolist-grid-wrap,
.tax-invite_type.term-video .videolist-grid-wrap,
.taxonomy-invite_type.term-video .videolist-grid-wrap {
    position: relative;
    z-index: 1;
}

/* Video list section: match HTML spacing and background */
.page-template-template-videolist-php main section,
.tax-invite_type.term-video main section,
.taxonomy-invite_type.term-video main section {
    background-color: #F8F9FB;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .page-template-template-videolist-php main section,
    .tax-invite_type.term-video main section,
    .taxonomy-invite_type.term-video main section {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Hero block: same as HTML */
.page-template-template-videolist-php .bg-\[\#f8f1ff\],
.tax-invite_type.term-video .bg-\[\#f8f1ff\],
.taxonomy-invite_type.term-video .bg-\[\#f8f1ff\] {
    border-radius: 1.5rem;
    border: 1px solid rgba(253, 242, 248, 1);
}

/* Card hover and border to match template */
.page-template-template-videolist-php .videolist-grid-wrap a[href]:hover,
.tax-invite_type.term-video .videolist-grid-wrap a[href]:hover,
.taxonomy-invite_type.term-video .videolist-grid-wrap a[href]:hover {
    border-color: rgba(236, 72, 153, 0.3);
}
