/* Modern CSS for ITPain Website - 2025 */
/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Improve focus visibility using :focus-visible (prefered) */
:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid #1976D2; /* stronger, accessible focus */
    outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Navigation */
.site-header {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Dynamic alignment is handled by JavaScript to avoid layout side-effects on the header/logo. */

.logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.15s ease;
}

/* Make the project logo slightly larger and centered in the header for prominence */
.site-header .logo img {
    height: 72px;
}

@media (max-width: 768px) {
    .site-header .logo img {
        height: 48px;
    }
    .nav-container {
        padding: 0.5rem 0;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #e9ecef;
    color: #3498db;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Also show dropdown when toggled via JS (for touch devices) */
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: #ffffff;
    color: #2c3e50;
    /*padding: 4rem 0;*/
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero h1 {
    font-size: 2.25rem; /* slightly reduced */
    margin-bottom: 1rem; /* tightened */
    color: #2c3e50;
}

.hero p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

/* Hero Section */
.hero {
    background: #ffffff;
    color: #2c3e50;
    /*padding: 4rem 0;*/
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

@media (min-width: 900px) {
    #member-profile .member-content {
        display: block;
    }
    /* float the profile image so the bio wraps beside it */
    #member-profile .profile-image {
        float: left;
        margin-right: 1.5rem; /* slightly larger gap */
        margin-bottom: 1rem;
        padding: 0.35rem; /* small padding around the image */
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .member-bio-text {
        margin-top: 0;
        margin-bottom: 1rem;
    }
}

/* Ensure profile images inside .profile-image are constrained and have spacing */
.profile-image img {
    display: block;
    max-width: 160px;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Clear floats at the end of member-content */
#member-profile .member-content:after {
    content: "";
    display: table;
    clear: both;
}

/* Allow hero image to display larger on wide screens */
@media (min-width: 1000px) {
    .hero-image img {
        max-width: 650px;
    }
}

    /* Homepage: make hero more compact above the fold (homepage only) */
    .home .hero .hero-container {
        padding: 1.25rem 1rem; /* smaller vertical padding on homepage */
        display: block;
    }

    @media (min-width: 900px) {
        .home .hero .hero-container {
            padding: 1.5rem 1rem; /* slightly larger on wide screens but still compact */
        }
    }

/* Homepage-only: justify hero content (academic look) */
.home .hero .hero-content,
.home .hero .hero-content p,
.home .hero .hero-content li {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

    /* Ensure ordered lists in hero have room for numbers and align properly */
    .hero ol {
        padding-left: 3rem;
        list-style-position: outside;
        margin-left: 0;
    }

    .hero ol li {
        margin-bottom: 0.5rem;
    }

    @media (max-width: 768px) {
        .hero ol { padding-left: 1.25rem; }
    }

/* Main Content Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.content {
    grid-column: 1;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Make main content text fully justified for an academic presentation.
   Enable hyphenation to avoid large gaps and improve paragraph flow. */
.content,
.content p,
.content li,
.content blockquote,
.member-bio-text,
.selected-publications {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Keep headings left-aligned for better scannability */
.content h1,
.content h2,
.content h3,
.content h4 {
    text-align: left;
}

.content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.content ol {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.content li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Align unordered lists in .content so bullets start at the same left edge as headings */
.content ul {
    margin-left: 0;            /* remove unexpected left margin */
    padding-left: 0;           /* let the list start at the content's inner edge */
    list-style-position: inside; /* place the bullet inside the content flow so it lines up with heading text */
}

/* Sidebar */
aside {
    grid-column: 2;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    height: fit-content;
}

aside h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

aside li:last-child {
    border-bottom: none;
}

aside a {
    color: #555;
    font-weight: 500;
}

aside a:hover {
    color: #3498db;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Increase footer contrast for better readability */
footer {
    background: #1f2a36; /* refined dark blue-gray */
    color: #e6eef6;
}

.site-footer a {
    color: #dbeaf8;
    text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
    text-decoration: none;
}

.site-footer p, .site-footer .footer-nav {
    color: #e6eef6;
}

/* Tidy footer layout */
.footer-container {
    align-items: center;
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #bdc3c7;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    margin-top: 2rem;
    color: #95a5a6;
    font-size: 0.9rem;
}

    /* Selected publications styling for member profiles */
    .selected-publications {
        margin-top: 1rem;
        padding-left: 1.2rem;
        color: #333;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .selected-publications li {
        margin-bottom: 0.75rem;
    }
    .selected-publications a {
        color: #1a73e8;
    }
    .selected-publications a:hover,
    .selected-publications a:focus {
        text-decoration: underline;
    }

    /* Partner card image: force square thumbnails and center-crop like member thumbs */
    .partner-card img,
    .members-list .member-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
        display: inline-block;
        vertical-align: middle;
        margin-right: 0.75rem;
    }

    /* Make partner-card anchors appear as cards */
    .partner-card {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        color: inherit;
        background: #fff;
        padding: 0.75rem;
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.06);
        transition: transform 120ms ease, box-shadow 120ms ease;
    }
    .partner-card:hover,
    .partner-card:focus {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }
    .partner-card-content h3 {
        margin: 0;
        font-size: 1rem;
    }
    .partner-card-content p {
        margin: 0.25rem 0 0 0;
        color: #555;
        font-size: 0.95rem;
    }

/* Member bio typography: ensure links and emphasis are visible in bios */
.member-bio-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-style: normal;
}
.member-bio-text a {
    color: #1a73e8;
    text-decoration: underline;
}
.member-bio-text a:hover,
.member-bio-text a:focus {
    color: #0b57d0;
    text-decoration: none;
}
.member-bio-text em,
.member-bio-text i {
    font-style: italic;
}
.member-bio-text strong,
.member-bio-text b {
    font-weight: 600;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #95a5a6;
    opacity: 1;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Contact Info Styles */
.contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.contact-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-info address {
    font-style: normal;
    color: #555;
    line-height: 1.6;
}

.contact-info strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

/* Form Message Styles */
.form-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .contact-form-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Form Validation Styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Hidden anti-spam field */
input[name="url"] {
    display: none !important;
    opacity: 0;
    position: absolute;
    left: -9999px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        flex-direction: column;
        padding: 1rem 0;
        border-radius: 0 0 10px 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Hide the sidebar entirely on mobile to avoid horizontal overflow */
    .sidebar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* On mobile, show dropdown submenu items inline within the stacked nav so users
   can see the Project sub-options without long-pressing. This only applies
   when the mobile nav is active (opened). */
@media (max-width: 768px) {
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 0.25rem 0 0 0;
        background: transparent;
    }

    .nav-menu .dropdown-menu a {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Make the parent dropdown item clearly indicated but not intercept clicks */
    .nav-menu .nav-item.dropdown > .nav-link {
        pointer-events: none; /* avoid double-tap issues where parent consumes the click */
        opacity: 0.95;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content, aside {
        padding: 1.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

.publications-list {
    margin-top: 2rem;
}

.publication-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.publication-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.publication-authors {
    color: #555;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.publication-details {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 1rem;
}

.publications-note {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #f39c12;
}

.publications-note p {
    margin: 0;
    color: #2c3e50;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles for better keyboard navigation */
.nav-link:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link:hover,
    .btn:hover {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Image Optimization and Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image img,
.logo-section img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.sidebar img {
    width: 100%;
    max-width: 200px;
    margin: 1rem 0;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: #f8f9fa;
}

/* Responsive images for different screen sizes */
@media (max-width: 768px) {
    .hero-image img {
        max-width: 300px;
    }

    .sidebar img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        max-width: 250px;
    }

    .sidebar img {
        max-width: 120px;
    }
}/* Member Profile Styles */
#member-profile {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.member-header {
    border-bottom: 2px solid #3498db;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.member-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.member-header p {
    color: #555;
    font-style: italic;
}

.member-content h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.member-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.member-content li {
    margin-bottom: 0.25rem;
}

/* Members Navigation */
.members-navigation {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.members-navigation h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.member-link {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.member-link:hover {
    background: #3498db;
    color: white;
    border-left-color: #2980b9;
}

/* Member thumbnails in the list */
.member-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 0.75rem;
    vertical-align: middle;
    display: inline-block;
}

.member-link span {
    vertical-align: middle;
    display: inline-block;
}

/* Profile image in the member profile card */
#member-profile .profile-image {
    float: right;
    width: 160px;
    height: 220px; /* portrait rectangle */
    object-fit: cover;
    border-radius: 8px;
    margin-left: 1rem;
}

@media(max-width:1024px){
    #member-profile .profile-image {
        width: 140px;
        height: 200px;
    }
}

@media(max-width:768px){
    #member-profile .profile-image {
        float: none;
        display: block;
        margin: 0 auto 1rem;
        width: 120px;
        height: 165px;
    }
}

/* Partner Cards */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.partner-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.partner-card p {
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.partner-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.partner-card a:hover {
    color: #2980b9;
}
