/* Custom styles extracted from home.php for home page (animations, search, testimonials, gallery, events, etc.) */

/* Professional Page Load Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Initial hidden state */
.animate-on-load {
    opacity: 0;
}

/* Gallery section animation */
.gallery-showcase-section {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Event cards staggered animation */
.event-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }

/* Testimonial cards animation */
.testimonial-card {
    animation: scaleIn 0.6s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.4s; }

/* Section titles animation */
.section-title {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.section-subtitle {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

#portfolio .img-fluid{
    width: calc(100%);
    height: 30vh;
    z-index: -1;
    position: relative;
    padding: 1em;
}
.event-list{
    cursor: pointer;
}
span.hightlight{
    background: yellow;
}
.banner{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 26vh;
    width: calc(30%);
}
.banner img{
    width: calc(100%);
    height: calc(100%);
    cursor :pointer;
}
.event-list{
    cursor: pointer;
    border: 1px solid #e9ecef !important;
    flex-direction: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.event-list:hover {
    border-color: #dee2e6 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-list .banner {
    width: calc(40%)
}
.event-list .card-body {
    width: calc(60%)
}
.event-list .banner img {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    min-height: 50vh;
}

/* Mobile Responsive for Event Cards */
@media (max-width: 768px) {
    .event-list {
        flex-direction: column !important;
    }
    
    .event-list .banner {
        width: 100% !important;
    }
    
    .event-list .card-body {
        width: 100% !important;
        padding: 1.5rem !important;
    }
    
    .event-list .banner img {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        border-bottom-left-radius: 0;
        min-height: 250px;
        max-height: 250px;
        object-fit: cover;
    }
    
    .event-list .btn {
        float: none !important;
        display: block;
        margin: 1rem auto 0 auto;
        width: fit-content;
    }
}
.banner{
   min-height: calc(100%)
}

/* Gallery Showcase Section */
.gallery-showcase-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Upcoming Events Section */
.upcoming-events-section {
    background: #ffffff;
    position: relative;
    padding: 4rem 0;
    border-top: 1px solid #e9ecef;
}

.upcoming-events-section h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
}

/* Professional Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    padding: 4rem 0;
    border-top: 1px solid #dee2e6;
}

.testimonials-section .row {
    display: flex;
    flex-wrap: wrap;
}

.testimonials-section .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 20%, rgba(0, 123, 255, 0.2) 50%, transparent 80%);
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
}

.testimonials-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
    margin: 0 auto 3rem auto;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
}

.quote-icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex: 1;
    display: -webkit-box;
    line-clamp: 6;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.testimonial-card .text-right {
    margin-top: -1rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.read-more-testimonial {
    display: inline-block;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    min-width: 0;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.author-title {
    font-size: 0.95rem;
    color: #007bff;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.author-year {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Meet Our Alumni Button - Blue Gradient Style */
.btn-outline-primary.btn-professional {
    border: none;
    color: white;
    background: linear-gradient(135deg, #007bff, #0056b3);
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.btn-outline-primary.btn-professional:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
}

.btn-outline-primary.btn-professional i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary.btn-professional:hover i {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-title {
        font-size: 2rem;
    }
    
    .testimonials-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        min-height: 0;
    }
    
    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .testimonial-card .text-right {
        margin-top: -0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .author-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .quote-icon {
        margin-bottom: 1rem;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .author-avatar {
        width: 54px;
        height: 54px;
    }

    .author-name {
        margin-bottom: 0.15rem;
    }
}

/* Alumni Search Section - Modern & Sleek */
.alumni-search-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.alumni-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(0,0,0,0.05)"/></svg>');
    opacity: 0.3;
}

.search-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 1.5rem 2rem;
    cursor: pointer;
}

.search-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-title-modern {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.advanced-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.advanced-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.advanced-toggle i {
    transition: transform 0.3s ease;
}

.main-search-wrapper {
    padding: 2rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-icon-left {
    position: absolute;
    left: 1.5rem;
    color: #007bff;
    font-size: 1.2rem;
}

.search-input-modern {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 1rem 1rem 3.5rem;
    font-size: 1.05rem;
    outline: none;
    color: #2c3e50;
}

.search-input-modern::placeholder {
    color: #a0aec0;
}

.search-btn-modern {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.search-btn-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.advanced-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #f8f9fa;
}

.advanced-filters.active {
    max-height: 500px;
    padding: 2rem;
    border-top: 2px solid #e9ecef;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-group label i {
    color: #007bff;
    margin-right: 0.5rem;
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.filter-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-apply-filters,
.btn-clear-filters {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-apply-filters {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-clear-filters {
    background: white;
    color: #718096;
    border: 2px solid #e2e8f0;
}

.btn-clear-filters:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.search-stats {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-stats i {
    color: #007bff;
    margin-right: 0.5rem;
}

/* Quick Search Results */
.quick-search-results {
    display: none;
    margin-top: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.quick-search-results.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-result-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.quick-result-item:last-child {
    border-bottom: none;
}

.quick-result-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.quick-result-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.quick-result-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.quick-result-info {
    flex: 1;
}

.quick-result-name {
    font-weight: 700;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.quick-result-details {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-result-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quick-result-details i {
    color: #007bff;
    font-size: 0.75rem;
}

.quick-search-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 2px solid #e9ecef;
}

.quick-search-footer a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.quick-search-footer a:hover {
    color: #0056b3;
    transform: translateX(3px);
}

.quick-search-loading {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

.quick-search-empty {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

.quick-search-empty i {
    font-size: 2rem;
    color: #dee2e6;
    margin-bottom: 0.5rem;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .search-card-modern {
        border-radius: 15px;
    }
    
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .alumni-search-section {
        padding: 2rem 0 !important;
    }
    
    .search-header {
        padding: 1.25rem 1.5rem;
    }
    
    .search-header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .search-title-modern {
        font-size: 1.25rem;
    }
    
    .advanced-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .main-search-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .search-input-wrapper {
        padding: 0.75rem;
    }
    
    .search-input-modern {
        padding: 0.875rem 1rem 0.875rem 3rem;
        font-size: 0.95rem;
    }
    
    .search-icon-left {
        left: 1rem;
        font-size: 1rem;
    }
    
    .search-btn-modern {
        width: 45px;
        height: 45px;
    }
    
    .advanced-filters.active {
        padding: 1.5rem 1rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-apply-filters,
    .btn-clear-filters {
        width: 100%;
        justify-content: center;
    }
    
    .search-stats {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .search-card-modern {
        border-radius: 10px;
        margin: 0 0.5rem;
    }
    
    .search-header {
        padding: 1rem;
    }
    
    .search-title-modern {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .search-title-modern i {
        font-size: 1rem;
    }
    
    .advanced-toggle {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .main-search-wrapper {
        padding: 1rem;
    }
    
    .search-input-modern {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem 0.75rem 2.75rem;
    }
    
    .search-icon-left {
        left: 0.875rem;
        font-size: 0.95rem;
    }
    
    .search-btn-modern {
        width: 42px;
        height: 42px;
    }
    
    .advanced-filters.active {
        padding: 1rem;
    }
    
    .filter-group label {
        font-size: 0.85rem;
    }
    
    .filter-input {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .btn-apply-filters,
    .btn-clear-filters {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
}
