.technology-icon {
    font-size: 30px;
}

/* Header Search Modal Styles */
.search-modal-content {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 1.5rem;
}

.search-input-group {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-bottom-color 0.3s ease;
}

.search-input-group:focus-within {
    border-bottom-color: #007bff !important;
}

.search-input-group .form-control {
    box-shadow: none !important;
    border-color: transparent !important;
}

.btn-search {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4) !important;
}

.no-results-found {
    animation: fadeIn 0.5s ease-in-out;
}

/* Desktop Member Card Sizing Override */
.president-card .membership {
    font-size: 13.5px !important;
}

.president-card .card-title {
    font-size: 15.5px !important;
}

/* Mobile Responsive Search Adjustments */
@media (max-width: 575.98px) {
    .search-modal-content {
        padding: 1rem !important;
        margin: 10px;
    }

    .search-input-group .form-control {
        font-size: 1.1rem !important;
        padding-left: 0.5rem !important;
    }

    .search-input-group .input-group-text i {
        font-size: 1.2rem !important;
    }

    .btn-search {
        width: 100% !important;
        padding: 10px !important;
    }

    .live-search-container {
        border-radius: 30px !important;
    }

    .live-search-container .form-control {
        font-size: 1rem !important;
        padding: 0.8rem 0.5rem !important;
    }

    .live-search-container .input-group-text {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Mobile Responsive Member Card Scaling */
    .president-card::before {
        height: 70px !important;
    }

    .president-card img.card-img-top {
        width: 80px !important;
        height: 80px !important;
        margin: 25px auto 0 !important;
        border-width: 3px !important;
    }

    .president-card .card-body {
        padding: 10px 8px 15px !important;
    }

    .president-card .card-title {
        font-size: 13.5px !important;
        margin-bottom: 4px !important;
    }

    .president-card .card-text {
        font-size: 10.5px !important;
        padding: 3px 8px !important;
        margin-bottom: 8px !important;
    }

    .president-card .membership {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    .president-card .btn {
        padding: 5px 12px !important;
        font-size: 11px !important;
        margin-top: 5px !important;
    }
}

/* Gallery Card Premium Styles */
.gallery-card {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.gallery-img-wrapper {
    height: 160px;
    background-color: #f8f9fa;
    position: relative;
}

.gallery-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 14, 102, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.gallery-date {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #e89c22 !important;
    background: rgba(232, 156, 34, 0.1) !important;
    padding: 4px 10px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 8px !important;
    width: fit-content;
}

.gallery-date i {
    font-size: 11px !important;
    color: #e89c22 !important;
    margin-right: 4px !important;
}

/* Gallery mobile adjustments */
@media (max-width: 575.98px) {
    .gallery-img-wrapper {
        height: 120px !important;
    }

    .gallery-title {
        font-size: 11px !important;
        height: 32px !important;
    }

    .gallery-date {
        font-size: 10px !important;
        padding: 2px 8px !important;
    }
}

/* Designation — Top-right floating pill */
.desg-float-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    white-space: nowrap;
    max-width: calc(100% - 16px);
}

/* Force white bg so it's readable over blue banner */
.desg-float-wrap .desg-pill {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 11px !important;
    padding: 4px 10px !important;
}

.desg-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.desg-icon-circle i {
    font-size: 15px;
}

/* Mobile */
@media (max-width: 575.98px) {
    .desg-float-wrap {
        top: 7px !important;
        right: 7px !important;
    }
    .desg-icon-circle {
        width: 26px !important;
        height: 26px !important;
    }
    .desg-icon-circle i {
        font-size: 12px !important;
    }
}

/* Designation Pill Badge Button */
.desg-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    cursor: default;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.desg-pill i {
    font-size: 13px;
    flex-shrink: 0;
}

/* Variants */
.desg-badge-president { background: rgba(217,119,6,0.12); color: #b45309; border-color: #d97706; }
.desg-badge-vp        { background: rgba(13,148,136,0.12); color: #0f766e; border-color: #0d9488; }
.desg-badge-secretary { background: rgba(37,99,235,0.1);  color: #1d4ed8; border-color: #2563eb; }
.desg-badge-org       { background: rgba(79,70,229,0.1);  color: #4338ca; border-color: #4f46e5; }
.desg-badge-editor    { background: rgba(14,165,233,0.1); color: #0369a1; border-color: #0ea5e9; }
.desg-badge-treasurer { background: rgba(22,163,74,0.1);  color: #15803d; border-color: #16a34a; }
.desg-badge-advisor   { background: rgba(124,58,237,0.1); color: #6d28d9; border-color: #7c3aed; }
.desg-badge-donor     { background: rgba(220,38,38,0.1);  color: #b91c1c; border-color: #dc2626; }
.desg-badge-lifetime  { background: rgba(126,34,206,0.1); color: #7e22ce; border-color: #9333ea; }
.desg-badge-member    { background: rgba(100,116,139,0.1);color: #475569; border-color: #94a3b8; }
.desg-badge-default   { background: rgba(100,116,139,0.08);color:#64748b; border-color: #cbd5e1; }

/* Mobile pill sizing */
@media (max-width: 575.98px) {
    .desg-pill {
        font-size: 10px !important;
        padding: 3px 10px !important;
        gap: 3px !important;
    }
    .desg-pill i {
        font-size: 11px !important;
    }
}