/* Custom CSS for SUS Website */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff !important;
}

/* Sections */
section {
    padding: 80px 0;
}

/* Team Cards */
.team-section .card {
    text-align: center;
}

.team-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Program Cards */
.programs-section .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* News Cards */
.news-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Admin Dashboard */
.border-left-primary {
    border-left: 4px solid #007bff !important;
}

.border-left-success {
    border-left: 4px solid #28a745 !important;
}

.border-left-info {
    border-left: 4px solid #17a2b8 !important;
}

.border-left-warning {
    border-left: 4px solid #ffc107 !important;
}

/* Utility Classes */
.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-xs {
    font-size: 0.7rem !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-contact-info span {
    font-size: 0.85rem;
}

.top-social-links a {
    transition: opacity 0.3s ease;
}

.top-social-links a:hover {
    opacity: 0.8;
}

/* Main Header */
.main-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-section .logo-icon {
    transition: transform 0.3s ease;
}

.logo-section:hover .logo-icon {
    transform: scale(1.05);
}

.header-stats .stat-item {
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(40, 167, 69, 0.05);
    transition: transform 0.3s ease;
}

.header-stats .stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Main Navigation */
.main-navigation {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.main-navigation .navbar-nav {
    margin: 0;
}

.main-navigation .navbar-nav .nav-item {
    margin: 0 0.5rem;
}

.main-navigation .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 1rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.main-navigation .nav-link:hover::after {
    width: 80%;
}

/* Center Logo in Navigation */
.navbar-brand {
    padding: 0.5rem 1rem;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.navbar-brand .logo-icon {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-icon {
    transform: scale(1.1);
}

.navbar-brand h2 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-brand {
        position: static;
        transform: none;
        margin: 0;
    }
    
    .main-navigation .navbar-nav {
        margin: 1rem 0;
    }
    
    .main-navigation .nav-item {
        margin: 0;
    }
    
    .main-navigation .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Dropdown Menus */
.main-navigation .dropdown-menu {
    margin-top: 0;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.main-navigation .dropdown:hover .dropdown-menu,
.main-navigation .dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #495057;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.main-navigation .dropdown-item:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left-color: #28a745;
    transform: translateX(5px);
}

.main-navigation .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-brand {
        position: static;
        transform: none;
        margin: 0;
    }
    
    .main-navigation .navbar-nav {
        margin: 1rem 0;
    }
    
    .main-navigation .nav-item {
        margin: 0;
    }
    
    .main-navigation .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Hero Image Slider Styles - PKSF Style */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 500px;
    margin-top: 0;
}

.hero-slide {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image .placeholder-program {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    position: relative;
    overflow: hidden;
}

.hero-image .placeholder-program::before {
    content: '\f542';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image .placeholder-program::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-buttons .btn {
    margin-bottom: 10px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Carousel Controls */
.carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    background-size: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

/* Welcome Section Styles */
.mission-card .card, .vision-card .card, .program-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.mission-card .card:hover, .vision-card .card:hover, .program-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stats-list .stat-item {
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(40, 167, 69, 0.05);
    transition: all 0.3s ease;
}

.stats-list .stat-item:hover {
    background: rgba(40, 167, 69, 0.1);
    transform: translateY(-2px);
}

.news-list .news-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.news-list .news-item:hover {
    padding-left: 10px;
    border-left: 3px solid #28a745;
}

.news-list .news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.impact-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.section-title {
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #28a745;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    .header-stats .stat-item {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-slide {
        height: 50vh;
        min-height: 350px;
    }
    
    .top-contact-info span {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .header-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* Additional Utility Classes */
.text-success { color: #28a745 !important; }
.bg-success { background-color: #28a745 !important; }

/* Smooth transitions for all interactive elements */
.navbar-nav .nav-link,
.dropdown-menu,
.dropdown-item {
    transition: all 0.3s ease;
}

/* Enhanced dropdown positioning */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* Fix for dropdown positioning on larger screens */
@media (min-width: 992px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .main-navigation .dropdown:hover .dropdown-menu,
    .main-navigation .dropdown.show .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Hover delay for better user experience */
.dropdown-menu {
    transition-delay: 0.1s;
}

.dropdown:hover .dropdown-menu {
    transition-delay: 0s;
}

/* Active state styling */
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: #ffffff !important;
}

/* Focus states for accessibility */
.navbar-nav .nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}
