/* Variables and Theme Setup */
:root {
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-text-light: #666666;
    --color-accent: #0056b3;
    /* ZAKA Blue assumption */
    --color-accent-hover: #004494;
    --color-surface: #f5f5f7;
    --color-border: #e1e1e1;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', serif;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius-md: 12px;
    --radius-lg: 20px;
    --fun: #ffed00;
    --focus: #ff3131;

    /* Footer Colors */
    --color-footer-bg: #111111;
    --color-footer-text: #ffffff;
}

[data-theme="dark"] {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-light: #a1a1a1;
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
    --color-surface: #1a1a1a;
    --color-border: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);

    /* Footer Colors in Dark Mode - High Contrast */
    --color-footer-bg: #1a1a1a;
    --color-footer-text: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    /* Pushes footer down */
}

.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.current-page {
    color: var(--focus);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-text);
    /* Black/White contrast */
    color: var(--color-bg);
}

[data-theme="dark"] .btn-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    /* Clickable */
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--color-surface);
    border-color: var(--color-text);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-speed);
    padding: 15px 0;
}

[data-theme="dark"] .header {
    background-color: rgba(10, 10, 10, 0.8);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dimmed background */
    backdrop-filter: blur(5px);
    z-index: 2000;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-bg);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
    /* Respect border radius */
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-surface);
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background-color: var(--color-border);
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--color-border);
}

.modal-domain-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: rgba(0, 86, 179, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.modal-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--color-text);
}

/* Modal Body */
.modal-body {
    padding: 30px 40px;
}

.modal-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 30px;
}

.modal-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h3 i {
    color: var(--color-accent);
}

.modal-eligibility-section {
    background-color: var(--color-surface);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--fun);
    /* Yellow Accent */
}

.modal-notes-section {
    background-color: var(--color-surface);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--color-accent);
    /* Blue Accent */
}

/* Meta Grid */
.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.meta-box {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.meta-box i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-text-light);
}

.deadline-box i {
    color: var(--focus);
    /* Red Accent */
}

.contact-box i {
    color: var(--color-accent);
    /* Blue Accent */
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 5px;
}

.meta-value {
    font-weight: 600;
    font-size: 1rem;
}

/* Modal List Styling */
.eligibility-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eligibility-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
}

.eligibility-list li i {
    color: var(--fun);
    /* Yellow checkmark */
    margin-top: 4px;
    /* Align with first line of text */
    flex-shrink: 0;
}

/* Footer & Button */
.modal-footer {
    padding: 20px 40px 40px;
    background: linear-gradient(to top, var(--color-bg), rgba(255, 255, 255, 0));
    display: flex;
    justify-content: flex-start;
    /* Buttons to the left */
    gap: 15px;
    /* Space between buttons */
    flex-wrap: wrap;
}

.modal-action-btn {
    width: auto;
    /* Allow natural width */
    min-width: 180px;
    text-align: center;
    font-size: 1.1rem;
    padding: 16px;
    border-radius: 12px;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
}

/* Secondary Button for Email */
.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-border);
    transform: translateY(-2px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .modal-meta-grid {
        grid-template-columns: 1fr;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-action-btn {
        width: 100%;
    }
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 100px;
    display: block;
}

.light-logo {
    display: block;
}

.dark-logo {
    display: none;
}

[data-theme="dark"] .light-logo {
    display: none;
}

[data-theme="dark"] .dark-logo {
    display: block;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

/* Floating Theme Toggle (Bottom Right) */
.theme-toggle {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all var(--transition-speed);
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background-color: var(--color-surface);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Sections */
.section {
    padding: 100px 0;
}

/* Features / Why ZAKA */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    transition: transform var(--transition-speed);
    border: 1px solid transparent;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border);
}

.feature-icon {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.feature-card h3 {
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding: 40px 40px 20px 40px;
}

.feature-card p {
    color: var(--color-text-light);
    padding: 0 40px 20px 40px;
}

/* Opportunities */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.opportunity-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.opportunity-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    color: var(--color-accent);
}

/* Inspirational */
.inspirational {
    background-color: var(--color-surface);
    text-align: center;
}

.inspirational-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.inspirational blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.inspirational cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    color: var(--color-text-light);
    font-weight: 500;
}

.inspirational-image img {
    border-radius: var(--radius-md);
    max-height: 400px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* Logos Section */
.logos-section {
    text-align: center;
    padding: 60px 0;
}

.logos-title {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 40px;
    font-weight: 500;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 60px;
}

.partner-logo {
    height: 120px;
    opacity: 0.8;
    /* Increased opacity */
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    /* Removed grayscale filter */
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 80px 0 30px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #888;
    margin-top: 15px;
    max-width: 250px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 110px;
    /* Increased size */
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #ccc;
    font-size: 1.5rem;
    /* Icon size */
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    /* Mobile Menu Full Screen Overlay */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
        z-index: 999;
        /* Below logo/toggle but above page content */
        visibility: hidden;
        padding-top: 80px;
        /* Space for header */
        box-shadow: none;
    }

    .nav.active {
        transform: translateX(0);
        visibility: visible;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.5rem;
        /* Larger font for mobile */
        display: block;
    }

    /* Ensure Header Elements stay on top */
    /* Ensure Header Elements stay on top */
    .logo,
    .mobile-menu-toggle {
        position: relative;
        z-index: 1002;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hamburger to X Animation */
    .mobile-menu-toggle span {
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Mission Page Styles */

/* Mission Hero */
.mission-hero {
    padding: 180px 0 100px;
    text-align: center;
    background-color: var(--color-bg);
}

.mission-logo {
    height: 200px;
    object-fit: contain;
}

.mission-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Mission Section */
.about-mission-section {
    background-color: var(--color-bg);
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Testimonial Section */
.testimonial-section {
    background-color: var(--color-surface);
    padding: 100px 0;
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.5;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-accent);
}

/* Founders Section */
.founders-section {
    padding: 100px 0;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.founder-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-speed);
    text-align: center;
    padding: 40px 30px;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.founder-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--color-surface);
}

.founder-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.section-subtitle .founder-role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Trusted By Section */
.trusted-by-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-surface);
}

.trusted-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 40px;
}

.trusted-logo-item {
    height: 120px;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.8;
    transition: all var(--transition-speed);
    /* Removed grayscale */
}

.trusted-logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.contact-hero {
    padding: 180px 0 100px;
}

.contact-profile {
    place-self: center;
    size: 2rem;
    margin-bottom: 30px;
}

.contact-title {
    color: var(--color-accent);
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 3rem;
}

.contact-social {
    display: flex;
    gap: 20px;
    place-self: center;
}

.contact-social a {
    color: var(--fun);
    font-size: 2.5rem;
    /* Icon size */
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.contact-social a:hover {
    color: var(--focus);
    transform: translateY(-3px);
}

/* Opportunities Card Styling */
/* Opportunities Layout & Design */
.opportunities-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.category-section {
    width: 100%;
}

.category-title {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 5px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i {
    color: inherit;
    /* Takes text color, or we can make it accent specific */
    opacity: 0.9;
}

/* Specific colors for categories */
.category-ecoles .category-title {
    border-color: #2563eb;
}

/* Blue */
/* Gradient accent moved to JS logic */

.category-summer .category-title {
    border-color: #f59e0b;
}

/* Orange/Sunny */

.category-competition .category-title {
    border-color: #dc2626;
}

/* Red */

.category-bourses .category-title {
    border-color: #7c3aed;
}

/* Purple/Prestige */

.category-formation .category-title {
    border-color: #10b981;
}

/* Green/Growth */

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 25px;
    padding: 10px 0;
}

.opportunity-card {
    background-color: var(--color-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
}

/* Colored Top borders based on type (default blue) */
/* Handled by JS border-top now */

/* Category specific card accents are handled above with .category-X .opportunity-card::before */

/* Category specific card accents are handled above with .category-X .opportunity-card::before */

.opportunity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Dynamic Color Override handled by JS inline style */

.card-header {
    padding: 20px 24px 10px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-domain {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Colors */
.status-badge.open {
    background-color: #e6fcf5;
    color: #0ca678;
}

.status-badge.urgent {
    background-color: #fff3bf;
    color: #f08c00;
}

.status-badge.closed {
    background-color: #ffe3e3;
    color: #fa5252;
}

.card-body {
    padding: 10px 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
    line-height: 1.3;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tag {
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-main);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Info Row (Deadline) */
.card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.card-meta i {
    color: var(--color-text-light);
}

.card-footer {
    padding: 16px 24px;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn-card {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-card-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-card-primary:hover {
    background-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 1.5rem;
    }
}

/* Header Auth Section */
.header-auth {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-login-btn {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.auth-login-btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    object-fit: cover;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-width: 180px;
    padding: 10px;
    display: none;
    /* JS will toggle this */
    flex-direction: column;
}

.user-profile:hover .user-menu {
    display: flex;
}

.menu-item {
    padding: 10px;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item:hover {
    background-color: var(--color-surface);
}

.menu-item.logout {
    color: var(--focus);
}

/* Favorites Heart Icon */
.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    /* Default empty */
    cursor: pointer;
    z-index: 10;
    border: none;
    transition: all 0.2s;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-favorite:hover {
    transform: scale(1.1);
    color: #999;
}

.btn-favorite.active {
    color: #ff3131;
    /* Red filled */
}

/* Modal Favorite styling (Specific) */
/* Modal Favorite styling (Specific) */
.modal-favorite-btn {
    right: 60px !important;
    /* Left of close button (15px + 36px + 9px gap) */
    top: 15px !important;
    background: var(--color-surface) !important;
    /* Match close button */
    backdrop-filter: none !important;
}

/* Modal Favorite styling (Large) */
.modal-controls {
    display: flex;
    gap: 10px;
    position: absolute;
    top: 15px;
    right: 50px;
    /* Left of close button */
    z-index: 20;
}