/* Mega Menu Styles */
.mega-menu .dropdown-menu {
    width: 100%;
    padding: 1rem;
}

.mega-menu-content {
    width: 100%;
    max-width: 1200px;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.mega-menu .dropdown-header {
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .mega-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
    }
}

/* Gallery Styles */
.gallery-thumb {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumb:hover {
  transform: scale(1.03);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 1;
  background: rgba(0,0,0,0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
  width: 2rem;
  height: 2rem;
}

/* Gallery Item Styles */
.gallery-item-container {
  position: relative;
  transition: transform 0.3s ease 0.1s, box-shadow 0.3s ease 0.1s;
  height: 180px;
}

.gallery-caption {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  transition: bottom 0.3s ease 0.1s;
  backdrop-filter: blur(2px);
}

.gallery-item-container:hover .gallery-caption {
  bottom: 0;
}

.gallery-item-container:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Enhanced Modal Text */
#modalTitle, #modalDesc {
  color: white !important;
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 4px rgba(0,0,0,0.8);
}

#modalTitle {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#modalDesc {
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Gallery Caption */
.gallery-caption h6 {
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  font-size: 0.9rem;
}

/* Modal Styles */
#galleryModal .modal-content {
  background: transparent;
  border: none;
  backdrop-filter: blur(5px);
}

#galleryModal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 1;
}

#modalPrev, #modalNext {
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navbar Brand - Cleaned Up Styles */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar-brand-text {
    position: relative;
}

.navbar-brand-text span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.navbar-brand-text span:first-child {
    font-size: 1em !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 
                 0 0 12px rgba(255, 255, 255, 0.2);
}

.navbar-brand-text span:last-child {
    font-size: 0.8em !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3), 
                 0 0 10px rgba(255, 255, 255, 0.2);
}

.navbar-brand:hover .navbar-brand-text span:first-child {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 
                 0 0 18px rgba(255, 255, 255, 0.3);
}

.navbar-brand:hover .navbar-brand-text span:last-child {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 
                 0 0 15px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1200px) {
    .navbar-brand img {
        height: 60px !important;
    }
    
    .navbar-brand-text span:first-child {
        font-size: 1em !important;
    }
    
    .navbar-brand-text span:last-child {
        font-size: 0.8em !important;
    }
}

@media (max-width: 992px) {
    .navbar-brand img {
        height: 50px !important;
    }
}

/* Hero Section Wrapper */
.hero-section-wrapper {
    margin-bottom: 50px;
}

.hero-section {
    min-height: 600px;
    position: relative;
}

@media (max-width: 768px) {
    .hero-section-wrapper {
        margin-bottom: 40px;
    }
    
    .hero-section {
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    .hero-section-wrapper {
        margin-bottom: 30px;
    }
    
    .hero-section {
        min-height: 400px;
    }
}

/* Hero Content */
.hero-content {
    padding-bottom: 100px;
}

.hero-cta-buttons {
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .hero-content {
        padding-bottom: 150px;
    }
    
    .hero-cta-buttons a {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    
    .hero-cta-buttons a:last-child {
        margin-bottom: 0;
    }
}

/* Hero Quick Action Bar - Mobile Responsive Fix */
.hero-quick-action-bar {
    position: relative;
    z-index: 3;
    margin-top: -50px;
}

.quick-action-box {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hero-quick-action-bar {
        margin-top: -30px;
        padding: 0 15px;
    }
    
    .quick-action-box {
        flex-direction: column;
        padding: 15px !important;
    }
    
    .quick-action-box a {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .quick-action-box a:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-quick-action-bar {
        margin-top: -20px;
    }
}

/* Event Application Form Styles */
.event-application-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.event-application-header {
    position: relative;
    padding: 20px 0;
}

.event-application-header h2 {
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    max-width: 300px;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
}

.divider-icon {
    margin: 0 15px;
    color: #3498db;
    font-size: 1.5rem;
}

.event-application-card {
    background: white;
    transition: all 0.3s ease;
}

.event-application-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.form-switch {
    margin: 25px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.help-text {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.invalid-feedback {
    color: #e74c3c;
    font-size: 0.85rem;
}

.was-validated .form-control:invalid {
    border-color: #e74c3c;
}

.was-validated .form-control:invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
}

/* Modern Form Styles */
.modern-form-container {
    --primary: #800080;
    --primary-light: #9c27b0;
    --error: #f72585;
    --gray: #adb5bd;
    --gray-light: #ced4da;
    --white: #ffffff;
    
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: linear-gradient(to right bottom, #f8f9fa, #e9ecef);
    padding: 3rem 0;
    width: 100%;
    margin: 0;
}

.modern-form-wrapper {
    width: 66.66%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.modern-form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modern-form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--primary);
}

.subheader {
    color: var(--gray);
    font-size: 1.1rem;
}

.modern-form {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

.dual-input {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    width: 100%;
    padding: 1rem 1rem 0.5rem;
    border: none;
    border-bottom: 2px solid var(--gray-light);
    background-color: transparent;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.modern-form label {
    position: absolute;
    left: 0.5rem;
    top: 1rem;
    color: var(--gray);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modern-form input:focus + label,
.modern-form input:not(:placeholder-shown) + label,
.modern-form select:focus + label,
.modern-form select:not([value=""]) + label,
.modern-form textarea:focus + label,
.modern-form textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0;
    font-size: 0.75rem;
    color: var(--primary);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.modern-form input:focus ~ .focus-border,
.modern-form select:focus ~ .focus-border,
.modern-form textarea:focus ~ .focus-border {
    width: 100%;
}

.form-switch {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 3.5rem;
    cursor: pointer;
    user-select: none;
}

.form-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch-label {
    position: relative;
    padding-left: 1rem;
    cursor: pointer;
    padding-left: 3.5rem;
}

.form-switch-label::before {
    content: "";
    position: absolute;
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 1.75rem;
    background-color: var(--gray-light) !important;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.form-switch-label::after {
    content: "";
    position: absolute;
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--white) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.form-switch-input:checked + .form-switch-label::before {
    background-color: var(--primary) !important;
}

.form-switch-input:checked + .form-switch-label::after {
    left: -2rem;
}

.btn-submit {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(67, 97, 238, 0.2);
}

.btn-submit:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(67, 97, 238, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .dual-input {
        grid-template-columns: 1fr;
    }
    
    .modern-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* Organization Field */
.organization-field {
    display: none; /* Start hidden by default */
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(128, 0, 128, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.organization-field label {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-right: 10px;
}

.toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #800080;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}
