
/* Enhanced Hero Section */
.student-life-hero {
    background: linear-gradient(135deg, #6a11cb 10%, #2575fc 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.student-life-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0V100H1000V0C800,70 600,90 400,80 200,70 100,40 0,0Z" fill="%23ffffff" opacity=".05"/></svg>');
    background-size: 100% auto;
    background-position: bottom;
}

.student-life-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffffff;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons .btn {
    margin: 0 12px;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #f8b739 0%, #ff9d00 100%);
    border-color: #f8b739;
    color: #212529;
    box-shadow: 0 8px 20px rgba(248, 183, 57, 0.3);
}

.hero-buttons .btn-primary:hover {
    background: transparent;
    color: #f8b739;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(248, 183, 57, 0.4);
}

.hero-buttons .btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: #212529;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Enhanced Arrow Tabs Section */
.student-life-tabs {
    padding: 80px 0;
}

.tabs-container {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.arrow-tabs-wrapper {
    background: #f8f9fa;
    padding: 0;
    position: relative;
}

.arrow-tabs {
    display: flex;
    justify-content: center;
    border: none;
    position: relative;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.arrow-tabs .nav-item {
    margin: 0 -5px;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 150px;
}

.arrow-tabs .nav-link {
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    padding: 20px 25px;
    position: relative;
    transition: all 0.4s ease;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    margin-right: -15px;
    text-align: center;
}

.arrow-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00c4cc 0%, #7d2ae8 100%);
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.arrow-tabs .nav-link.active {
    color: white;
    z-index: 2;
    transform: scale(1.05);
}

.arrow-tabs .nav-link.active::before {
    opacity: 1;
}

.arrow-tabs .nav-link:not(.active):hover {
    color: #7d2ae8;
    transform: translateY(-2px);
}

.arrow-tabs .nav-link:not(.active):hover::before {
    opacity: 0.1;
}

.tab-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tab-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.arrow-tabs .nav-link.active .tab-icon {
    transform: scale(1.2);
}

/* Remove arrow for last tab */
.arrow-tabs .nav-item:last-child .nav-link {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-right: 0;
}

.arrow-tabs .nav-item:last-child .nav-link::before {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.tab-content {
    padding: 50px 40px;
}

.tab-pane h3 {
    color: #1a4b8c;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

.overview-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #7d2ae8;
    background: linear-gradient(135deg, #00c4cc 0%, #7d2ae8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
}

.academics-list,
.campus-life-list,
.facilities-list {
    list-style: none;
    padding: 0;
}

.academics-list li,
.campus-life-list li,
.facilities-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.academics-list li i,
.campus-life-list li i,
.facilities-list li i {
    color: #7d2ae8;
    margin-right: 15px;
    font-size: 1.3rem;
}

/* Student Organizations */
.student-organizations {
    padding: 80px 0;
    background: #f8f9fa;
}

.organization-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.organization-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #00c4cc 0%, #7d2ae8 100%);
}

.organization-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00c4cc 0%, #7d2ae8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.organization-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-box i {
    font-size: 2.2rem;
    color: white;
}

.organization-card h5 {
    color: #1a4b8c;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Enhanced Gallery Section */
.student-gallery {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.gallery-filters {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 12px 30px;
    margin: 0 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00c4cc 0%, #7d2ae8 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(125, 42, 232, 0.3);
}

.filter-btn.active::before,
.filter-btn:hover::before {
    left: 0;
}

.gallery-grid {
    position: relative;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 320px;
    opacity: 1;
    transform: scale(1);
}

.gallery-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.85) 0%, rgba(125, 42, 232, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

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

.gallery-overlay i {
    font-size: 3.5rem;
    color: white;
    transform: scale(0.7) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1) rotate(0deg);
}

.gallery-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #7d2ae8;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Loading Animation */
.gallery-loading {
    text-align: center;
    padding: 40px 0;
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7d2ae8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Video Section - IMPROVED */
.student-videos {
    padding: 80px 0;
    background: #f8f9fa;
}

.main-video-player {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 25px;
    background: white;
    flex: 1;
}

.video-info h4 {
    color: #1a4b8c;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.5rem;
}

.video-info p {
    color: #6c757d;
    margin-bottom: 0;
}

.video-playlist {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-playlist h5 {
    color: #1a4b8c;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.3rem;
}

.playlist-items {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.playlist-item {
    display: flex;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    border: 2px solid transparent;
    align-items: center;
}

.playlist-item.active,
.playlist-item:hover {
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.1) 0%, rgba(125, 42, 232, 0.1) 100%);
    border-color: #7d2ae8;
    /* transform: translateX(5px); */
}

.video-thumb {
    position: relative;
    width: 120px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.playlist-item:hover .play-icon {
    opacity: 1;
}

.play-icon i {
    color: white;
    font-size: 1.8rem;
}

.video-details {
    flex: 1;
}

.video-details h6 {
    margin-bottom: 5px;
    color: #1a4b8c;
    font-weight: 600;
    font-size: 1rem;
}

.video-details span {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00c4cc 0%, #7d2ae8 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(125, 42, 232, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(125, 42, 232, 0.4);
}

/* Section Titles */
.section-title h2 {
    color: #1a4b8c;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #00c4cc 0%, #7d2ae8 100%);
    border-radius: 2px;
}

.section-title p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 25px;
}

/* CTA Section Styles */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #c668eb 40%, #2575fc 60%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMaxYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%236a11cb'/%3E%3Cstop offset='100%25' stop-color='%232575fc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='600' fill='url(%23g)'/%3E%3Cpolygon points='800,0 1200,0 1000,300' fill='%232575fc' opacity='0.65'/%3E%3Cpolygon points='600,0 1000,0 800,300' fill='%236a11cb' opacity='0.55'/%3E%3Cpolygon points='800,300 1200,300 1000,600' fill='%231d5fc7' opacity='0.55'/%3E%3Cpolygon points='600,300 1000,300 800,600' fill='%235d0fb8' opacity='0.5'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: right top;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffffff;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn {
    margin: 0 12px;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, #f8b739 0%, #ff9d00 100%);
    border-color: #f8b739;
    color: #212529;
    box-shadow: 0 8px 20px rgba(248, 183, 57, 0.3);
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: #f8b739;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(248, 183, 57, 0.4);
}

.cta-buttons .btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
    backdrop-filter: blur(10px);
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: #212529;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Responsive Design for CTA Section */
@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons .btn {
        padding: 12px 25px;
        margin: 5px;
        display: block;
        width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zoom-in {
    animation: zoomIn 0.5s ease-in-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .arrow-tabs .nav-link {
        padding: 18px 20px;
    }

    .gallery-item {
        height: 280px;
    }
}

@media (max-width: 992px) {
    .arrow-tabs .nav-item {
        min-width: 140px;
    }

    .arrow-tabs .nav-link {
        padding: 16px 18px;
        clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
        margin-right: -12px;
    }

    .arrow-tabs .nav-link::before {
        clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    }

    .video-wrapper {
        padding-bottom: 56.25%;
        /* Maintain 16:9 aspect ratio */
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .gallery-item {
        height: 250px;
    }

    .filter-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .student-life-hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons .btn {
        padding: 12px 25px;
        margin: 5px;
        display: block;
        width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .overview-stats {
        flex-direction: column;
        gap: 20px;
    }

    .tab-content {
        padding: 30px 20px;
    }

    .arrow-tabs {
        flex-direction: column;
        align-items: center;
    }

    .arrow-tabs .nav-item {
        width: 100%;
        max-width: 280px;
        margin: 5px 0;
    }

    .arrow-tabs .nav-link {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%) !important;
        margin-right: 0 !important;
        border-radius: 10px !important;
        padding: 20px;
    }

    .arrow-tabs .nav-link::before {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%) !important;
        border-radius: 10px !important;
    }

    .tab-icon {
        font-size: 1.3rem;
    }

    .tab-text {
        font-size: 0.9rem;
    }

    .video-container .row {
        flex-direction: column-reverse;
    }

    .video-container .col-lg-8 {
        margin-top: 30px;
    }

    .video-playlist {
        height: auto;
        max-height: 400px;
    }

    .playlist-items {
        max-height: 300px;
    }

    .gallery-item {
        height: 300px;
        margin-bottom: 20px;
    }

    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        margin: 2px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    /* Enhanced playlist responsiveness */
    .playlist-item {
        padding: 12px;
    }

    .video-thumb {
        width: 100px;
        height: 60px;
    }

    .video-details h6 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .video-details span {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .arrow-tabs .nav-item {
        max-width: 100%;
    }

    .arrow-tabs .nav-link {
        padding: 15px;
    }

    .video-thumb {
        width: 80px;
        height: 50px;
    }

    .video-details h6 {
        font-size: 0.85rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .gallery-item {
        height: 250px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .gallery-overlay i {
        font-size: 2.5rem;
    }

    .gallery-category {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    /* Further mobile optimizations */
    .playlist-item {
        flex-direction: column;
        text-align: center;
    }

    .video-thumb {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        height: 120px;
    }

    .playlist-items {
        max-height: 250px;
    }
}

/* Additional responsive classes for very small screens */
@media (max-width: 400px) {
    .playlist-item {
        padding: 10px;
    }

    .video-playlist {
        padding: 15px;
    }

    .video-playlist h5 {
        font-size: 1.1rem;
    }
}
