/* Custom Frontend Enhancements for Portal Data */

:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --accent-dark: #006b5f;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Premium Palette */
    --primary-slate: #0b132b;
    --accent-gold: #f59e0b;
    --primary-gradient: linear-gradient(135deg, #008374 0%, #00bfa5 100%);
    --purple-gradient: linear-gradient(135deg, #6e22e5 0%, #a25dfc 100%);
    --brown-gradient: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
    --dark-surface: #1a1c1e;
}

/* Global Smoothness */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f7f6;
    overflow-x: hidden;
}

/* Fix for fixed header covering content */
main {
    margin-top: 90px;
}

/* Hero Swiper (Slideshow) */
.hero-swiper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.hero-swiper .swiper-slide {
    height: 450px;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
}

.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-swiper .slide-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 80%;
}

.hero-swiper .badge {
    padding: 8px 15px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    border-radius: 50px;
}

.hero-swiper h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-swiper p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Hero Compact (legacy fallback or secondary) */
.hero-compact {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: var(--card-shadow);
}

.hero-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 131, 116, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-compact .content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}

.hero-compact h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-compact p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Sidebar Specific Widgets */
.sidebar-search-box {
    background: var(--purple-gradient);
    padding: 30px;
    border-radius: 24px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(110, 34, 229, 0.2);
    position: relative;
    overflow: hidden;
}

.sidebar-search-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
}

.sidebar-search-box h3,
.sidebar-search-box h3 i {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
}

.sidebar-search-box .input-group {
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.3);
}

.sidebar-search-box .form-control {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
}

.sidebar-search-box .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.sidebar-search-box .btn-search {
    background: white;
    color: #6e22e5;
    border-radius: 10px;
    font-weight: 700;
    border: none;
}

.sidebar-publication {
    background: var(--brown-gradient);
    padding: 30px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 10px 20px rgba(93, 64, 55, 0.2);
}

.sidebar-publication h3,
.sidebar-publication h3 i {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    color: #ffffff !important;
}

.publication-item {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 15px;
}

.publication-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.publication-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.publication-item .info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.publication-item .info .date {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Analysis Section Overhaul */
.analysis-section {
    padding: 20px 0;
}

.section-title-premium {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title-premium h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.section-title-premium h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 10px;
}

/* Carousel Styles */
.analysis-carousel {
    padding: 20px 0;
    margin-top: 30px;
}

.analysis-carousel-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
}

.analysis-carousel-card:hover {
    transform: translateY(-5px);
}

.analysis-carousel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.analysis-carousel-card .p-content {
    padding: 20px;
}

/* App Grid Cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    width: 100%;
    margin-top: 30px;
}

.app-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 10px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.app-card i {
    font-size: 24px;
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.app-card span {
    font-size: 0.85rem;
    font-weight: 500;
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.app-card:hover i {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Portfolio & Blog Cards */
.portfolio-item, .recent-posts article {
    transition: var(--transition-smooth);
}

.portfolio-content, .recent-posts article {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover, .recent-posts article:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.portfolio-info, .post-meta {
    padding: 20px !important;
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-compact {
        min-height: 300px;
    }
    
    .hero-compact h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Premium Floating Animation */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-icon {
    animation: floating 3s ease-in-out infinite;
}

/* Glassmorphism Extra */
.glass-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Stats Item */
.stats-item {
    padding: 30px;
    width: 100%;
    background: #fff;
    box-shadow: 0px 0 30px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.stats-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
}

.stats-item i {
    font-size: 48px;
    line-height: 0;
    margin-bottom: 20px;
    display: inline-block;
}

.stats-item span {
    font-size: 36px;
    display: block;
    font-weight: 700;
    color: var(--primary-slate);
}

.stats-item p {
    padding: 0;
    margin: 0;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
}

/* Hero Swiper Enhancements */
.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff !important;
    opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px !important;
    border-radius: 5px !important;
}

/* Section Titles Enhancement */
.section-title-premium h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.section-title-premium h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-slate), var(--accent-gold));
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.section-title-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

/* Card Hover Glow */
.portfolio-content, article.bg-white {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-content:hover, article.bg-white:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

/* Sidebar Widgets Depth */
.sidebar-search-box, .sidebar-publication {
    border: none;
    transition: all 0.3s ease;
}

.sidebar-search-box:hover, .sidebar-publication:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

/* GLightbox Caption Style */
.glightbox-container .gslide-title {
    font-family: var(--font-primary);
    font-weight: 800;
}

/* --- Global Premium Page Title & Breadcrumbs --- */
.page-title {
  background: linear-gradient(135deg, var(--primary-slate) 0%, #162432 100%) !important;
  background-color: var(--primary-slate) !important;
  position: relative;
  padding: 140px 0 100px 0;
  color: white !important;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-gold) !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}
.page-title h1 { 
  color: white; 
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.35);
}
.page-title .breadcrumbs {
  margin-top: 15px;
}
.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  gap: 10px;
}
.page-title .breadcrumbs ol li {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.page-title .breadcrumbs ol li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.3s ease;
}
.page-title .breadcrumbs ol li a:hover {
  color: var(--accent-gold);
}
.page-title .breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: rgba(255,255,255,0.4);
  content: "/";
}

/* --- Global Premium Pagination --- */
.pagination-premium .pagination {
  margin: 0;
  gap: 8px;
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
}
.pagination-premium .pagination li a, 
.pagination-premium .pagination li span {
  border-radius: 50px !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  color: var(--primary-slate);
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.pagination-premium .pagination li.active span,
.pagination-premium .pagination li a:hover {
  background: linear-gradient(135deg, var(--primary-slate) 0%, #162432 100%) !important;
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 131, 116, 0.25) !important;
}

/* --- Premium Table Styles --- */
.premium-table-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.04);
  overflow: hidden;
  margin-bottom: 30px;
}
.premium-table-card table {
  margin-bottom: 0 !important;
}
.premium-table-card thead th {
  background: var(--primary-slate) !important;
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none !important;
  padding: 18px 15px !important;
}
.premium-table-card tbody td {
  padding: 16px 15px !important;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  color: #444;
  font-size: 0.9rem;
}
.premium-table-card tbody tr:last-child td {
  border-bottom: none !important;
}
.premium-table-card tbody tr {
  transition: all 0.2s ease;
}
.premium-table-card tbody tr:hover {
  background-color: rgba(0, 131, 116, 0.02) !important;
}

/* --- Premium Form Inputs --- */
.premium-form-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.premium-form-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-slate), var(--accent-gold));
}
.premium-form-card label {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}
.premium-form-card .form-control,
.premium-form-card .form-select {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 12px 18px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #fcfcfc;
}
.premium-form-card .form-control:focus,
.premium-form-card .form-select:focus {
  border-color: var(--primary-slate);
  box-shadow: 0 0 0 4px rgba(0, 131, 116, 0.12);
  background-color: #fff;
}

/* --- Glassmorphic Login Premium --- */
.login-premium-bg {
  background: linear-gradient(135deg, #162432 0%, var(--primary-slate) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 30px 15px;
}
.login-premium-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}
.login-premium-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  padding: 45px;
  width: 100%;
  max-width: 450px;
  color: #fff;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}
.login-premium-card .form-control {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
}
.login-premium-card .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}
.login-premium-card .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(223, 170, 75, 0.2);
  color: #fff;
}

