:root {
    --primary: #275df5;
    --primary-hover: #1e4bb5;
    --accent: #ff4e2e;
    --background: #f8f9ff;
    --foreground: #1f1f1f;
    --secondary: #717b9e;
    --card: #ffffff;
    --card-border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.95);
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.1;
    font-weight: 800;
}

.primary-text {
    color: var(--primary);
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.75rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    gap: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background-color: white;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: #f3f6ff;
}

.btn-lg {
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 1.25rem;
    font-size: 0.8rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--foreground);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    transition: transform 0.3s ease;
}

nav.scrolled .logo {
    transform: scale(0.95);
}

.logo-icon {
    background-color: var(--primary);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    transition: all 0.3s ease;
}

nav.scrolled .logo-icon {
    width: 2.25rem;
    height: 2.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

.btn-register {
    background-color: var(--accent) !important;
    color: white !important;
    border: 1px solid var(--accent) !important;
}

.btn-register:hover {
    background-color: #e63e1f !important;
}

.for-employers {
    color: #444;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    transition: all 0.2s;
}

.mobile-toggle:hover {
    background: #e2e8f0;
}

/* Hero */
.hero {
    position: relative;
    padding: 8rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: #dbeafe;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: #e0e7ff;
}

.hero-content h1 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #444;
}

.hero-content p {
    font-size: 1.25rem;
    color: #888;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    border: 1px solid #dbeafe;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
}

/* Features */
.features {
    padding: 4rem 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: 2.5rem;
    border: 1px solid var(--card-border);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--secondary);
}

/* Opportunities */
.opportunities {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--secondary);
}

.search-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 4rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2ff;
}

.search-input-group {
    display: flex;
    flex-grow: 1;
    align-items: center;
    padding: 0 1.5rem;
    border-right: 1px solid #e2e8f0;
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-input-group i {
    color: #94a3b8;
    margin-right: 0.75rem;
}

.search-input-group input {
    border: none;
    padding: 0.75rem 0;
    width: 100%;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #1f1f1f;
}

.search-input-group input:focus {
    outline: none;
}

.search-box .btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 0.5rem;
}

.search-box .btn-search:hover {
    background: var(--primary-hover);
}

.filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.625rem;
    background: #f1f5f9;
    color: var(--secondary);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-company {
    color: #444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-category {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    display: inline-block;
}

.card-trending {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cat-job {
    background: #dbeafe;
    color: #1e40af;
}

.cat-hackathon {
    background: #fef3c7;
    color: #92400e;
}

.cat-internship {
    background: #d1fae5;
    color: #065f46;
}

.cat-event {
    background: #f3e8ff;
    color: #6b21a8;
}

.cat-program {
    background: #fee2e2;
    color: #991b1b;
}

.card-company-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-logo i {
    color: #94a3b8;
}

.company-info {
    flex: 1;
}

.company-info h3 {
    margin: 0;
    font-size: 1.125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: #64748b;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f8fafc;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.verified-badge {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* Newsletter */
.newsletter {
    padding: 3rem 0 5rem;
}

.newsletter-card {
    background: var(--primary);
    border-radius: 3rem;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-card::after {
    content: '';
    position: absolute;
    bottom: -5rem;
    right: -5rem;
    width: 20rem;
    height: 20rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #dbeafe;
    font-size: 1.125rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 450px;
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 0 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
}

.newsletter-form input:focus {
    outline: none;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #94a3b8;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: white;
}

/* Instagram Embed Card */
.instagram-embed-card {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 1px;
    border-radius: 1.25rem;
    overflow: hidden;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.instagram-embed-card:hover {
    transform: translateY(-5px);
}

.instagram-embed-card a {
    display: block;
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 1.2rem;
    text-decoration: none;
    color: white;
}

.ig-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.ig-header i {
    color: #e1306c;
}

.instagram-embed-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.ig-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e1306c;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 2.5rem;
    position: relative;
    padding: 4rem;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: #f1f5f9;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

.modal-header {
    margin-bottom: 2.5rem;
}

.modal-body h3 {
    margin: 2rem 0 1rem;
}

.modal-body p {
    color: #475569;
    margin-bottom: 1rem;
}

.loading-state {
    text-align: center;
    padding: 4rem 0;
    grid-column: 1 / -1;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f1f5f9;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-left { gap: 0.5rem; }
    .logo span { font-size: 1.125rem; }
    .logo-icon { width: 2rem; height: 2rem; }

    .hero { padding: 4rem 0 1.5rem; }
    .hero-content h1 { font-size: 1.875rem; margin-bottom: 1rem; }
    .hero-content p { font-size: 0.875rem; margin-bottom: 1.5rem; }
    .badge-group { margin-bottom: 0.75rem; }
    .badge { margin-bottom: 0.5rem; padding: 0.4rem 1rem; }

    .search-box {
        flex-direction: column;
        padding: 1rem;
        border-radius: 1.25rem;
        gap: 0.25rem;
        width: 100%;
        margin: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
        width: 100%;
    }

    .opportunities-grid {
        gap: 1rem;
        padding: 0;
    }

    .card {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .card-company-header {
        margin-bottom: 0.75rem;
    }

    .card-desc {
        margin-bottom: 1rem;
    }

    .card-footer {
        padding-top: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--card-border);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-right {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .search-input-group {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 0.75rem 0.5rem;
        width: 100%;
    }

    .search-input-group:last-of-type {
        border-bottom: none;
    }

    .btn-search {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 0.5rem;
        border-radius: 1rem !important;
    }

    .filters {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .modal {
        padding: 1rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }

    .close-modal {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Admin Mobile Fixes */
    .admin-container {
        padding: 1.5rem;
        margin: 5rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .posts-table {
        display: block;
        overflow-x: auto;
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Bottom Sheet Modal for Mobile */
    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 2rem 2rem 0 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2.5rem 1.5rem;
    }

    .modal.active .modal-content {
        transform: translateY(0);
    }

    .close-modal {
        top: 1rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        background: #f1f5f9;
    }

    /* Mobile Bottom Nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: white;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #f1f5f9;
        z-index: 1500;
        align-items: center;
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #94a3b8;
        font-size: 0.7rem;
        font-weight: 600;
        gap: 0.25rem;
        transition: all 0.2s;
    }

    .nav-item i {
        width: 20px;
        height: 20px;
    }

    .nav-item:active {
        transform: scale(0.9);
        color: var(--primary);
    }

    .nav-item.active {
        color: var(--primary);
    }

    /* Micro-interactions */
    .card:active, .btn:active, .filter-btn:active {
        transform: scale(0.98);
    }

    /* Admin Mobile Grid instead of table */
    .posts-table { display: none; }
    #postsList {
        display: grid;
        gap: 1rem;
    }
    .admin-mobile-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        padding: 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .admin-mobile-card-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
    .admin-mobile-card-info p { font-size: 0.8rem; color: var(--secondary); }
    
    body { padding-bottom: 80px; } /* Space for bottom nav */
}

.mobile-bottom-nav {
    display: none;
}

.mobile-only {
    display: none;
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.875rem;
    }

    .newsletter-card {
        padding: 2.5rem 1.5rem;
        border-radius: 2rem;
    }

    .newsletter-content h2 {
        font-size: 1.75rem;
    }

    .newsletter-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 1rem;
    }

    .newsletter-form input {
        background: white;
        padding: 1rem;
        border-radius: 1rem;
    }

    .newsletter-form .btn {
        width: 100%;
        border-radius: 1rem;
    }
}

/* ==========================================
   PREMIUM HERO CAROUSEL STYLES
   ========================================== */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 82px; /* Fixed navbar height (72px) + 10px gap */
    overflow: hidden;
    background: #0f172a;
    box-shadow: inset 0 -20px 40px -20px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Blurred background replica layer */
.slide-blur-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.35);
    z-index: 1;
    transform: scale(1.1);
}

/* Foreground perfectly contained main banner image - exact uploaded image layout */
.slide-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Sleek glassmorphic navigation buttons */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auto-reveal arrows on hover */
.hero-carousel-section:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control.prev {
    left: 2rem;
}

.carousel-control.next {
    right: 2rem;
}

/* Glassmorphic pagination indicator container */
.carousel-indicators {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    background: rgba(15, 23, 42, 0.4);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* Carousel Responsiveness */
@media (max-width: 1024px) {
    .hero-carousel-section {
        height: 520px;
    }
    
    .carousel-slide-content h2 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section {
        height: 480px;
        margin-top: 70px; /* Reduced fixed navbar height (60px) + 10px gap */
    }
    
    .carousel-slide-content {
        padding: 0 1.5rem;
    }
    
    .carousel-slide-content h2 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .carousel-slide-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .carousel-control {
        display: none; /* Rely on swiping on mobile */
    }
    
    .carousel-indicators {
        bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel-section {
        height: 420px;
    }
    
    .carousel-slide-content h2 {
        font-size: 1.75rem;
        letter-spacing: -0.02em;
    }
    
    .carousel-slide-content p {
        font-size: 0.9375rem;
        line-height: 1.5;
    }
}
