/* ============================================
   MODERN.CSS — Cupuwatu2.ID Design System
   Modern Village Portal Theme
   ============================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    /* Primary Colors - Teal/Green (Nature/Village) */
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --primary-50: #f0fdfa;
    --primary-100: #ccfbf1;
    --primary-200: #99f6e4;

    /* Secondary Colors - Gold/Amber (Culture/Tradition) */
    --secondary: #d97706;
    --secondary-light: #f59e0b;
    --secondary-dark: #b45309;

    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Functional */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #0d9488 50%, #d97706 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.7) 100%);
    --gradient-section: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px rgba(13,148,136,0.3);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    /* Font */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---- Top Bar ---- */
.top-bar {
    background: var(--gray-900);
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    font-size: 0.825rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-fast);
}
.top-bar a:hover {
    color: var(--primary-light);
}
.top-bar .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    margin-left: 6px;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}
.top-bar .social-icons a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- Modern Navbar ---- */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 0;
    transition: all var(--transition);
    z-index: 1050;
    border-bottom: 2px solid transparent;
}
.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}
.modern-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.modern-navbar .navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-fast);
}
.modern-navbar .navbar-brand:hover img {
    transform: scale(1.05);
}
.modern-navbar .brand-text {
    line-height: 1.3;
}
.modern-navbar .brand-text .brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.02em;
}
.modern-navbar .brand-text .brand-subtitle {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.modern-navbar .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700) !important;
    padding: 1rem 1rem !important;
    position: relative;
    transition: color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.modern-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full) var(--radius-full) 0 0;
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}
.modern-navbar .nav-link:hover,
.modern-navbar .nav-link.active {
    color: var(--primary) !important;
}
.modern-navbar .nav-link:hover::after,
.modern-navbar .nav-link.active::after {
    width: 60%;
}
.modern-navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 0.75rem 0;
    margin-top: 0;
    border-top: 3px solid var(--primary);
    animation: fadeInDown 0.3s ease;
}
.modern-navbar .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}
.modern-navbar .dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
    padding-left: 1.5rem;
}
.modern-navbar .search-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-200);
    background: transparent;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.modern-navbar .search-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

/* ---- Hero Slider ---- */
.hero-slider {
    position: relative;
    overflow: hidden;
}
.hero-slider .carousel-item {
    height: 520px;
    min-height: 400px;
}
.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}
.hero-slider .carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 3rem 3rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    text-align: left;
}
.hero-slider .carousel-caption h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.25rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
    max-width: 700px;
}
.hero-slider .carousel-caption p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-bottom: 1.25rem;
}
.hero-slider .carousel-indicators {
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    padding-left: 3rem;
}
.hero-slider .carousel-indicators [data-bs-target] {
    width: 40px;
    height: 4px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.4);
    border: none;
    transition: all var(--transition);
}
.hero-slider .carousel-indicators .active {
    background: var(--primary-light);
    width: 60px;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    margin: 0 1rem;
    opacity: 0;
    transition: all var(--transition);
}
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: var(--primary);
}

/* ---- Section Titles ---- */
.section-title {
    margin-bottom: 2rem;
    position: relative;
}
.section-title h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}
.section-title h2 span {
    color: var(--primary);
}
.section-title .subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    margin-top: 0.75rem;
}
.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Modern Cards ---- */
.modern-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
    height: 100%;
}
.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-100);
}
.modern-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.modern-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.modern-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}
.modern-card .card-img-wrapper .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.modern-card .card-body {
    padding: 1.25rem;
}
.modern-card .card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}
.modern-card .card-meta i {
    margin-right: 4px;
    color: var(--primary);
}
.modern-card .card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.modern-card .card-title a {
    color: inherit;
    transition: color var(--transition-fast);
}
.modern-card .card-title a:hover {
    color: var(--primary);
}
.modern-card .card-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- News List Item ---- */
.news-list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}
.news-list-item:last-child {
    border-bottom: none;
}
.news-list-item:hover {
    padding-left: 0.5rem;
}
.news-list-item .news-thumb {
    width: 80px;
    height: 60px;
    min-width: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.news-list-item .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-list-item .news-info .news-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-item .news-info .news-title a {
    color: inherit;
}
.news-list-item .news-info .news-title a:hover {
    color: var(--primary);
}
.news-list-item .news-date {
    font-size: 0.75rem;
    color: var(--gray-400);
}
.news-list-item .news-date i {
    color: var(--primary);
    margin-right: 4px;
}

/* ---- Section Box ---- */
.section-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    height: 100%;
}
.section-box .box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}
.section-box .box-header .box-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.section-box .box-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-800);
    margin: 0;
}

/* ---- Announcement Ticker ---- */
.announcement-bar {
    background: var(--gradient-primary);
    color: #fff;
    padding: 10px 0;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}
.announcement-bar .badge-label {
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 1rem;
    white-space: nowrap;
}
.announcement-bar .ticker-wrapper {
    overflow: hidden;
    flex: 1;
}
.announcement-bar .ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.announcement-bar .ticker-item {
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.announcement-bar .ticker-item i {
    color: var(--secondary-light);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Agenda Timeline ---- */
.agenda-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}
.agenda-item:last-child {
    border-bottom: none;
}
.agenda-item:hover {
    padding-left: 0.5rem;
}
.agenda-item .agenda-date {
    min-width: 55px;
    text-align: center;
    background: var(--primary-50);
    border-radius: var(--radius);
    padding: 8px;
    border: 1px solid var(--primary-100);
}
.agenda-item .agenda-date .day {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1;
}
.agenda-item .agenda-date .month {
    font-size: 0.7rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-weight: 600;
}
.agenda-item .agenda-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.agenda-item .agenda-info h4 a {
    color: var(--gray-700);
}
.agenda-item .agenda-info h4 a:hover {
    color: var(--primary);
}

/* ---- Video Card ---- */
.video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}
.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

/* ---- Poll Card ---- */
.poll-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}
.poll-card .poll-question {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-100);
}
.poll-card .form-check {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    padding-left: 2rem;
}
.poll-card .form-check:hover {
    background: var(--primary-50);
}
.poll-card .form-check-input {
    border-color: var(--primary);
}
.poll-card .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.poll-card .form-check-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
}

/* ---- Modern Buttons ---- */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.btn-primary-modern {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(13,148,136,0.35);
}
.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,148,136,0.5);
    color: #fff;
}
.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline-modern:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Modern Footer ---- */
.modern-footer {
    background: var(--gradient-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
}
.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}
.modern-footer h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.modern-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}
.modern-footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}
.modern-footer a {
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-fast);
}
.modern-footer a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}
.modern-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modern-footer .footer-links li {
    margin-bottom: 0.5rem;
}
.modern-footer .footer-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.modern-footer .footer-links li a i {
    font-size: 0.6rem;
    color: var(--primary);
}
.modern-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    margin-right: 8px;
    font-size: 1rem;
    transition: all var(--transition);
}
.modern-footer .footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13,148,136,0.4);
    padding-left: 0;
}
.modern-footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.modern-footer .footer-contact li i {
    color: var(--primary);
    margin-top: 3px;
    min-width: 16px;
}
.modern-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ---- Link Carousel ---- */
.link-carousel {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-100);
}

/* ---- Stats Counter ---- */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}
.stat-card .stat-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    transition: all var(--transition);
}
.stat-card:hover .stat-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}
.stat-card .stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--gray-800);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ---- Section Backgrounds ---- */
.section-alt {
    background: var(--gradient-section);
}
.section-white {
    background: #fff;
}
.section-primary-soft {
    background: var(--primary-50);
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ---- Pagination Modern ---- */
.pagination-modern .page-link {
    border: none;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    margin: 0 3px;
    border-radius: var(--radius) !important;
    transition: all var(--transition-fast);
}
.pagination-modern .page-link:hover {
    background: var(--primary-50);
    color: var(--primary);
}
.pagination-modern .page-item.active .page-link {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}

/* ---- Glassmorphism ---- */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

/* ---- Animations ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease forwards; }

/* ---- Logo Carousel ---- */
.logo-carousel img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all var(--transition);
}
.logo-carousel img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---- Search Overlay ---- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-overlay .search-form {
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
}
.search-overlay .search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--primary);
    color: #fff;
    font-size: 2rem;
    font-family: var(--font-heading);
    padding: 1rem 0;
    outline: none;
}
.search-overlay .search-input::placeholder {
    color: rgba(255,255,255,0.3);
}
.search-overlay .search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.search-overlay .search-close:hover {
    border-color: var(--danger);
    color: var(--danger);
    transform: rotate(90deg);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-slider .carousel-item {
        height: 350px;
    }
    .hero-slider .carousel-caption h2 {
        font-size: 1.5rem;
    }
    .hero-slider .carousel-caption p {
        font-size: 0.9rem;
    }
    .modern-navbar .brand-text .brand-title {
        font-size: 0.95rem;
    }
    .modern-navbar .brand-text .brand-subtitle {
        font-size: 0.65rem;
    }
}

@media (max-width: 767.98px) {
    .hero-slider .carousel-item {
        height: 280px;
    }
    .hero-slider .carousel-caption {
        padding: 1.5rem;
    }
    .hero-slider .carousel-caption h2 {
        font-size: 1.2rem;
    }
    .hero-slider .carousel-indicators {
        padding-left: 1.5rem;
    }
    .section-title h2 {
        font-size: 1.35rem;
    }
    .top-bar .d-flex {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    .modern-footer {
        padding-top: 2.5rem;
        text-align: center;
    }
    .modern-footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .modern-footer .footer-social {
        justify-content: center;
    }
}
