/* 
==============================================
FILE: assets/css/custom.css (Main Custom Styles)
==============================================
*/
@import url('variables.css');
@import url('reset.css');
@import url('typography.css');
@import url('layout.css');
@import url('header.css');
@import url('components.css');
@import url('pages.css');
@import url('footer.css');
@import url('utilities.css');
@import url('responsive.css');

/* Additional Custom Styles for UBS Theme */

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom WordPress Styles */
.wp-block-image {
  margin-bottom: var(--spacing-lg);
}

.wp-block-image img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.wp-block-quote {
  border-left: 4px solid var(--accent-color);
  padding-left: var(--spacing-lg);
  font-style: italic;
  font-size: 1.125rem;
  margin: var(--spacing-xl) 0;
}

.wp-block-code {
  background-color: #f4f4f4;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-family: 'Courier New', monospace;
  border-left: 4px solid var(--primary-color);
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-xxl);
}

.pagination .page-numbers {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  margin: 0 var(--spacing-xs);
  background-color: var(--white);
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Search Form */
.search-form {
  position: relative;
  max-width: 300px;
}

.search-form .search-field {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-xl) var(--spacing-sm) var(--spacing-md);
  border: 2px solid #ddd;
  border-radius: var(--border-radius-full);
  transition: all var(--transition-normal);
}

.search-form .search-field:focus {
  border-color: var(--primary-color);
  box-shadow: var(--glow-shadow);
}

.search-form .search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.search-form .search-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
}

/* Comment Form Styles */
.comment-form .form-control {
  margin-bottom: var(--spacing-md);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .comment {
  background: var(--light-color);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--accent-color);
}

.comment-meta {
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  color: #666;
}

.comment-author {
  font-weight: 700;
  color: var(--primary-color);
}

/* Archive Page Styles */
.archive-header {
  background: var(--professional-gradient);
  color: var(--white);
  padding: var(--spacing-xxl) 0;
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.archive-title {
  font-size: var(--heading-2);
  margin-bottom: var(--spacing-md);
}

.archive-description {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Single Post Styles */
.single-post-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.post-meta {
  color: #666;
  margin-bottom: var(--spacing-lg);
}

.post-meta .meta-item {
  display: inline-block;
  margin-right: var(--spacing-lg);
}

.post-meta .meta-item i {
  margin-right: var(--spacing-xs);
  color: var(--primary-color);
}

.post-content {
  line-height: 1.8;
  margin-bottom: var(--spacing-xxl);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.post-tags {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid #eee;
}

.post-tag {
  display: inline-block;
  background: var(--light-color);
  padding: var(--spacing-xs) var(--spacing-md);
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  color: var(--dark-color);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.post-tag:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Navigation between posts */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid #eee;
}

.nav-previous,
.nav-next {
  flex: 1;
  max-width: 45%;
}

.nav-next {
  text-align: right;
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: var(--spacing-md);
  background: var(--light-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.nav-previous a:hover,
.nav-next a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Error 404 Page */
.error-404 {
  text-align: center;
  padding: var(--spacing-xxl) 0;
}

.error-404 h1 {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.error-404 h2 {
  color: var(--dark-color);
  margin-bottom: var(--spacing-lg);
}



/* Custom Post Types Styles */
.faculty-member-single {
  max-width: 800px;
  margin: 0 auto;
}

.faculty-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.faculty-bio {
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
}

.faculty-details {
  background: var(--light-color);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-xl);
}

.faculty-courses {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
}


/* Event Single Page */
.event-single {
  max-width: 900px;
  margin: 0 auto;
}

.event-banner {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
}

.event-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: var(--spacing-xl);
}

.event-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.event-sidebar {
  background: var(--light-color);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  height: fit-content;
}

/* Gallery Album Styles */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.album-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.album-item:hover {
  transform: scale(1.05);
  z-index: 1;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox for Gallery */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}


a, 
button, 
input[type="submit"], 
input[type="button"],
.nav-menu li a,
.btn,
.home-hero-nav-btn,
.home-hero-arrow {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iOCIgZmlsbD0iIzBjNWFhMCIvPgo8Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSI0IiBmaWxsPSIjZmZmZmZmIi8+Cjwvc3ZnPg=='), pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0c5aa0 0%, #083a6b 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #083a6b 0%, #062951 100%);
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #0c5aa0 #f1f1f1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for specific elements */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #0c5aa0 #f1f1f1;
}

.custom-scroll::-webkit-scrollbar {
    width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #0c5aa0;
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #083a6b;
}



/* Hide default cursor when custom cursor is active */
body.custom-cursor-active {
    cursor: none !important;
}

body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active .btn {
    cursor: none !important;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0c5aa0, #4a90e2);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0c5aa0 0%, #083a6b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(12, 90, 160, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(12, 90, 160, 0.4);
}

.back-to-top i {
    font-size: 20px;
}
