
/* Festival Pelajar Custom Styles */

:root {
    --primary-color: #43297b;
    --secondary-color: #e83e8c;
    --accent-color: #fd7e14;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 80px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 0 60px;
    background-color: var(--light-color);
    text-align: center;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* .hero-image-wrapper {
    max-width: 1000px;
    margin: 40px auto 0;
    position: relative;
} */

.hero-slider {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.slide-image {
    width: 600px;
    height: auto;
    border-radius: 10px;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
    transition: all 0.3s ease;
}

.slide-image:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 8px 25px rgba(0,0,0,0.15); */
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #2048F5;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #1a3acc;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: #2048F5;
    border: 2px solid #43297b;
}
.btn-outline-primary1 {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline-primary:hover {
    background: #43297b;
    color: white;
    transform: translateY(-2px);
}

/* Programs Section */
.programs-section {
    background-color: #fff;
}

.program-card {
    padding: 2rem;
    height: 100%;
}

.program-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
}
.program-card1 {
    padding: 2rem;
    height: 100%;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.program-card1:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.program-card1 h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.program-subtitle {
    font-size: 1.1rem;
    color: #333;
    max-width: 80%;
    margin: 0 auto;
}
.program-subtitle1 {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 80%;
    margin: 0 auto;
}

/* .program-image {
    margin: 2rem 0;
    position: relative;
} */

.program-image {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.program-image img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.program-image img:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .program-image {
        gap: 10px;
    }
    
    .program-image img {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .program-image {
        gap: 8px;
    }
    
    .program-image img {
        max-width: 120px;
    }
}

.program-tagline {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.program-tagline1 {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}


.hero-btn-primary:hover {
    background: transparent;
    color: white;
}

.hero-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Logo */
.logo-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Logo Images */
.navbar-logo {
    height: 80px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
    /* Removed filter to show original logo colors */
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.95) !important;
    z-index: 1050;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px !important;
    border-radius: 25px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: #000;
}

.navbar-nav .nav-link.active::after {
    display: none;
}

/* Dropdown Hover Effect */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.navbar-nav .dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    z-index: 1000;
}

.navbar-nav .dropdown-item {
    padding: 8px 20px;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border-radius: 0;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    /* background: linear-gradient(rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)), url('../images/bghero.png'); */
    /* background-size: cover;
    background-position: center;
    background-attachment: flex;
    background-repeat: no-repeat; */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Fallback for missing background image */
/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
} */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgb(0, 0, 0);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 4rem;
    font-weight: 900;
    color: rgb(0, 0, 0);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

/* Play Button */
.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 3rem;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 2px 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-gradient {
    background: var(--gradient-primary);
    color: white;
}

.card-gradient-2 {
    background: var(--gradient-secondary);
    color: white;
}

.card-img-top {
    height: auto;
    object-fit: contain;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* About Section Cards */
.about-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-card img {
    max-height: 120px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.about-card:hover img {
    transform: scale(1.05);
}

.about-card.purple {
    background: var(--gradient-primary);
    color: white;
}

.about-card.purple .description {
    color: rgba(255, 255, 255, 0.95) !important;
}

.about-card.purple small {
    color: rgba(255, 255, 255, 0.9) !important;
}

.about-card.gradient {
    background: var(--gradient-secondary);
    color: white;
}

.about-card.gradient .description {
    color: rgba(255, 255, 255, 0.95) !important;
}

.about-card.gradient small {
    color: rgba(255, 255, 255, 0.9) !important;
}

.about-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-card .description {
    font-size: 1rem;
    font-weight: 400;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

/* Stats */
.stats-section {
    background: var(--light-color);
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* News Cards */
.news-card {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-date {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
    
    .about-card {
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
    position: relative;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.bg-gradient > .container {
    position: relative;
    z-index: 2;
}

.bg-gradient .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.bg-gradient .btn-light:hover {
    background: white;
    transform: translateY(-2px);
}

.bg-gradient .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: 600;
}

.bg-gradient .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)), var(--gradient-primary);
    background-size: cover;
    background-position: center;
    padding: 120px 0 100px;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.shadow-custom {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.shadow-custom:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* Enhanced Button Styles */
.btn-primary {
    background: #43297b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #352063;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: #43297b;
    border: 2px solid #43297b;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #43297b;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    border-color: white;
}
/* Modal Styles - Same as about.php without scrollbar */
.modal-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content-popup {
    background: white;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 75vh;
    position: relative;
    margin-top: 1rem;
}

.modal-body-popup {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(75vh - 40px);
    /* Hide scrollbar completely */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-body-popup::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Force remove scrollbar for all child elements */
.modal-body-popup *::-webkit-scrollbar {
    display: none !important;
}

.modal-body-popup * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.modal-close:hover {
    background: #374151;
    transform: scale(1.1);
}

.program-highlight {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    border-left: 4px solid #6f42c1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    color: #374151;
}

.feature-list li i {
    color: #6f42c1;
    margin-right: 12px;
    width: 20px;
    flex-shrink: 0;
}

.modal-title-main {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-subtitle-main {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    margin-bottom: 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.benefit-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.benefit-card i {
    color: #6f42c1;
    margin-bottom: 12px;
}

.benefit-card h6 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-card small {
    color: #6b7280;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .modal-content-popup {
        margin: 20px;
        max-width: calc(100% - 40px);
        max-height: 85vh;
    }
    
    .modal-body-popup {
        padding: 24px;
        max-height: calc(85vh - 40px);
    }
    
    .modal-title-main {
        font-size: 1.5rem;
    }
    
    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .program-highlight {
        padding: 16px;
    }
}

/* FPU Purple Button */
.btn-fpu-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.btn-fpu-purple:hover {
    background: linear-gradient(135deg, #5a2d91 0%, #7c3aed 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4);
}

.btn-fpu-purple:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.3);
}

/* Enhanced Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.program-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

/* Program Section Card Enhancements */
.card-img-top {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    height: auto;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.card-img-top img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 300px;
}

.program-poster {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: 280px !important;
    border-radius: 10px;
}

.card:hover .card-img-top img {
    transform: scale(1.02);
}

.card-img-top .badge {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Gallery Styles */
.gallery-filter .btn {
    margin: 5px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 20px;
}

/* News Styles */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Schedule Styles */
.schedule-nav .btn {
    margin: 5px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-time {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-time .time {
    font-weight: 600;
    margin-right: 15px;
    min-width: 120px;
}

.timeline-content .card {
    border: none;
}

.competition-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.competition-item:last-child {
    border-bottom: none;
}

/* Resource Styles */
.resource-filter .btn {
    margin: 5px;
}

.resource-card {
    transition: all 0.3s ease;
    border: none;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.resource-icon {
    text-align: center;
}

.resource-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Success Stories Styles */
.success-story-card {
    transition: all 0.3s ease;
    border: none;
}

.success-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.story-image {
    position: relative;
    overflow: hidden;
}

.story-category {
    margin-bottom: 15px;
}

.story-achievement {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.testimonial-card {
    border: none;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.featured-story-image {
    position: relative;
}

.achievement-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

/* Enhanced Success Stories Styles */
.featured-alumni-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.story-meta {
    font-size: 0.875rem;
}

.rating-display {
    font-size: 0.75rem;
}

.rating-display .fas {
    margin-right: 1px;
}

.success-story-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.success-story-card:hover .card-img-top {
    transform: scale(1.05);
}

.story-image {
    overflow: hidden;
    border-radius: 0.375rem 0.375rem 0 0;
}

/* Category badges with dynamic colors */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 0.375rem;
}

/* Testimonial enhancements */
.testimonial-card .card-body {
    padding: 2rem;
}

.testimonial-avatar {
    display: flex;
    justify-content: center;
}

.testimonial-avatar img {
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Featured story blockquote */
.blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    background: rgba(108, 117, 125, 0.05);
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.blockquote-footer {
    color: #6c757d;
    font-size: 0.875em;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .featured-story-content {
        margin-top: 2rem;
    }
    
    .story-meta {
        margin-top: 1rem;
    }
    
    .testimonial-card .card-body {
        padding: 1.5rem;
    }
}
    
.industry-stats .progress {
    height: 8px;
}

/* Utility Classes */
.bg-purple {
    background-color: var(--primary-color) !important;
}

.text-purple {
    color: var(--primary-color) !important;
}

.border-purple {
    border-color: var(--primary-color) !important;
}

.btn-purple {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: white;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.8rem;
    }
    
    .hero-section {
        background-attachment: scroll; /* Fix for mobile parallax issues */
    }
    
    .page-header {
        background-attachment: scroll; /* Fix for mobile parallax issues */
        min-height: 50vh;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }
    
    .page-header .lead {
        font-size: 1.1rem !important;
    }
    
    .navbar-logo {
        height: 35px;
        max-width: 35px;
    }
    
    .footer-logo {
        height: 40px;
        max-width: 40px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -18px;
    }
    
    .timeline-time {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-time .time {
        min-width: auto;
        margin-bottom: 5px;
    }
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    /* background: var(--gradient-primary); */
    border: none;
    border-radius: 50%;
    color: rgb(0, 0, 0);
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: var(--gradient-secondary);
    color: white;
} */

.back-to-top-btn:active {
    transform: translateY(-1px);
}

.back-to-top-btn i {
    font-weight: bold;
}

.back-to-top-btn.show {
    display: flex !important;
}

/* News Detail Styles */
.news-detail .article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

.news-detail .article-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.news-detail .article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.news-detail .article-content h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-detail .article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.news-detail .article-content ul,
.news-detail .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail .article-content li {
    margin-bottom: 0.5rem;
}

.news-detail .article-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.news-detail .article-content blockquote p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.news-detail .article-tags .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
}

.news-detail .social-share .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.news-detail .post-navigation a {
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.news-detail .post-navigation a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.news-detail .post-navigation .col-md-6:last-child a:hover {
    transform: translateX(-5px);
}

/* Sidebar Widgets */
.sidebar .widget .card {
    border: none;
    border-radius: 12px;
}

.sidebar .widget-title {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.sidebar .recent-post img {
    border-radius: 8px;
}

.sidebar .recent-post h6 a {
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.sidebar .recent-post h6 a:hover {
    color: var(--primary-color);
}

.sidebar .list-unstyled a {
    color: #666;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .list-unstyled a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Related News Section */
.related-news .card {
    transition: all 0.3s ease;
}

.related-news .card:hover {
    transform: translateY(-5px);
}

.related-news .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-news .card-title:hover {
    color: var(--primary-color);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--gradient-primary);
}

.newsletter-widget .form-control {
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
}

.newsletter-widget .btn {
    border-radius: 8px;
    font-weight: 600;
}

/* Responsive Design for News Detail */
@media (max-width: 768px) {
    .news-detail .article-title {
        font-size: 1.8rem;
    }
    
    .news-detail .article-content {
        font-size: 1rem;
    }
    
    .news-detail .social-share .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .news-detail .post-navigation .fw-semibold {
        font-size: 0.9rem;
    }
    
    .sidebar .recent-post {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar .recent-post img {
        width: 100% !important;
        height: 150px !important;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .news-detail .article-title {
        font-size: 1.5rem;
    }
    
    .news-detail .social-share {
        text-align: center;
    }
    
    .news-detail .social-share .btn {
        width: 48%;
        margin: 0.25rem 1%;
    }
}

/* Google Form Embed Styles */
.google-form-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.google-form-container iframe {
    width: 100%;
    border: none;
    background: white;
    transition: all 0.3s ease;
}

.google-form-container iframe:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Responsive Google Form */
@media (max-width: 768px) {
    .google-form-container iframe {
        height: 600px;
    }
    
    .contact-form {
        padding: 20px;
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    .google-form-container iframe {
        height: 500px;
    }
    
    .contact-form {
        padding: 15px;
        border-radius: 10px;
    }
}

.cta-slider-section {
    position: relative;
    overflow: hidden;
    background: url('assets/images/lineup/about-hero.png') center/cover no-repeat;
    transition: background-image 0s;
}
.cta-bg-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 1s cubic-bezier(.77,0,.18,1);
    will-change: transform, opacity;
}
.cta-bg-slide.next {
    left: 100%;
    transform: translateX(100%);
    z-index: 1;
}
.cta-bg-slide.active {
    left: 0;
    transform: translateX(0);
    z-index: 2;
}
.cta-bg-slide.slide-out {
    transform: translateX(-100%);
    z-index: 2;
}
.cta-slider-section .container,
.cta-slider-section .row {
    position: relative;
    z-index: 10;
}


/* Badge Outline Styles */
.badge-outline {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    border: 1px solid;
    background-color: transparent;
    text-decoration: none;
}

.badge-outline:hover {
    opacity: 0.8;
}

/* Registration Resources Styles */
.first-category-no-margin:first-child {
    margin-top: 0 !important;
}

.resources-list {
    max-height: 300px;
    overflow-y: auto;
}

.resources-list::-webkit-scrollbar {
    width: 4px;
}

.resources-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.resources-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.resources-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* TinyMCE Content Styles for Registration */
.program-content, .requirements-content, .prizes-content {
    line-height: 1.6;
    color: #374151;
}

/* Paragraphs */
.program-content p, .requirements-content p, .prizes-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.program-content p:last-child, .requirements-content p:last-child, .prizes-content p:last-child {
    margin-bottom: 0;
}

/* Lists */
.program-content ul, .requirements-content ul, .prizes-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.program-content ol, .requirements-content ol, .prizes-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.program-content li, .requirements-content li, .prizes-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.program-content ul ul, .requirements-content ul ul, .prizes-content ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    list-style-type: circle;
}

.program-content ol ol, .requirements-content ol ol, .prizes-content ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    list-style-type: lower-alpha;
}

/* Headings */
.program-content h1, .program-content h2, .program-content h3, .program-content h4, .program-content h5, .program-content h6,
.requirements-content h1, .requirements-content h2, .requirements-content h3, .requirements-content h4, .requirements-content h5, .requirements-content h6,
.prizes-content h1, .prizes-content h2, .prizes-content h3, .prizes-content h4, .prizes-content h5, .prizes-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.program-content h1:first-child, .requirements-content h1:first-child, .prizes-content h1:first-child,
.program-content h2:first-child, .requirements-content h2:first-child, .prizes-content h2:first-child,
.program-content h3:first-child, .requirements-content h3:first-child, .prizes-content h3:first-child {
    margin-top: 0;
}

.program-content h1 { font-size: 1.5rem; }
.program-content h2 { font-size: 1.3rem; }
.program-content h3 { font-size: 1.15rem; }
.program-content h4 { font-size: 1.1rem; }
.program-content h5 { font-size: 1.05rem; }
.program-content h6 { font-size: 1rem; }

.requirements-content h1, .prizes-content h1 { font-size: 1.2rem; }
.requirements-content h2, .prizes-content h2 { font-size: 1.1rem; }
.requirements-content h3, .prizes-content h3 { font-size: 1.05rem; }
.requirements-content h4, .prizes-content h4 { font-size: 1rem; }
.requirements-content h5, .prizes-content h5 { font-size: 0.95rem; }
.requirements-content h6, .prizes-content h6 { font-size: 0.9rem; }

/* Text Formatting */
.program-content strong, .requirements-content strong, .prizes-content strong {
    font-weight: 700;
    color: #1f2937;
}

.program-content em, .requirements-content em, .prizes-content em {
    font-style: italic;
}

.program-content u, .requirements-content u, .prizes-content u {
    text-decoration: underline;
}

.program-content s, .requirements-content s, .prizes-content s {
    text-decoration: line-through;
}

/* Links */
.program-content a, .requirements-content a, .prizes-content a {
    color: #3b82f6;
    text-decoration: none;
}

.program-content a:hover, .requirements-content a:hover, .prizes-content a:hover {
    text-decoration: underline;
}

/* Blockquotes */
.program-content blockquote, .requirements-content blockquote, .prizes-content blockquote {
    border-left: 4px solid #e5e7eb;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: #f9fafb;
    font-style: italic;
}

/* Tables */
.program-content table, .requirements-content table, .prizes-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.program-content th, .requirements-content th, .prizes-content th,
.program-content td, .requirements-content td, .prizes-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    text-align: left;
}

.program-content th, .requirements-content th, .prizes-content th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Code */
.program-content code, .requirements-content code, .prizes-content code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.program-content pre, .requirements-content pre, .prizes-content pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.program-content pre code, .requirements-content pre code, .prizes-content pre code {
    background: none;
    padding: 0;
}

/* Responsive adjustments for TinyMCE content */
@media (max-width: 768px) {
    .program-content, .requirements-content, .prizes-content {
        font-size: 0.9rem;
    }
    
    .program-content h1 { font-size: 1.3rem; }
    .program-content h2 { font-size: 1.2rem; }
    .program-content h3 { font-size: 1.1rem; }
    
    .requirements-content h1, .prizes-content h1 { font-size: 1.1rem; }
    .requirements-content h2, .prizes-content h2 { font-size: 1.05rem; }
    .requirements-content h3, .prizes-content h3 { font-size: 1rem; }
}

/* TinyMCE Content for Program Cards */
.prizes-content-inline {
    line-height: 1.4;
    font-size: 0.9rem;
}

.prizes-content-inline p {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.prizes-content-inline p:last-child {
    margin-bottom: 0;
}

.prizes-content-inline ul, .prizes-content-inline ol {
    margin: 0.25rem 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.prizes-content-inline ol {
    list-style-type: decimal;
}

.prizes-content-inline li {
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.prizes-content-inline strong {
    font-weight: 600;
    color: #1f2937;
}

.prizes-content-inline em {
    font-style: italic;
}

/* Compact headings for program cards */
.prizes-content-inline h1, .prizes-content-inline h2, .prizes-content-inline h3,
.prizes-content-inline h4, .prizes-content-inline h5, .prizes-content-inline h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem 0;
    color: #1f2937;
}

.prizes-content-inline h1:first-child, .prizes-content-inline h2:first-child, 
.prizes-content-inline h3:first-child {
    margin-top: 0;
}

/* Nested lists */
.prizes-content-inline ul ul, .prizes-content-inline ol ol {
    margin: 0.1rem 0;
    padding-left: 1rem;
}

.prizes-content-inline ul ul {
    list-style-type: circle;
}

.prizes-content-inline ol ol {
    list-style-type: lower-alpha;
}

/* Prizes item alignment */
.prizes-item {
    list-style: none !important;
}

.prizes-item .d-flex {
    align-items: flex-start;
}

.prizes-item .fas.fa-trophy {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
