/* 
 * Clinical Study Recruitment Theme CSS
 * Main stylesheet for the theme
 */

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #217dbb;
    text-decoration: underline;
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #217dbb;
    border-color: #217dbb;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 1.5rem;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
}

.main-navigation a:hover {
    color: #3498db;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Study Overview Section */
.section-title {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Benefits Section */
.benefit-item {
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    color: #3498db;
}

/* Study Info Page */
.study-info-page .card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #e9ecef;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #2c3e50;
}

/* Contact Page */
.acf-map {
    width: 100%;
    height: 400px;
    border: #ccc solid 1px;
    margin: 20px 0;
}

.acf-map img {
    max-width: inherit !important;
}

.team-member {
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 3rem 0;
}

.footer-menu {
    padding-left: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.875rem;
}

/* Gravity Forms Customization */
.gform_wrapper .gfield_required {
    color: #e74c3c;
}

.gform_wrapper .validation_message {
    color: #e74c3c;
    font-size: 0.875rem;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.gform_wrapper .button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gform_wrapper .button:hover {
    background-color: #217dbb;
}

/* Event Page Styles */
.event-page .sticky-cta {
    position: sticky;
    top: 30px;
}

.event-page .page-subtitle {
    margin-bottom: 2rem;
    color: #555;
}

.event-benefits ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.event-benefits ul li {
    margin-bottom: 1rem;
    position: relative;
}

.event-benefits ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #3498db;
    position: absolute;
    left: -1.5rem;
}

/* Additional CSS for sticky sidebar for all pages */
.sidebar .cta-widget.sticky-cta {
    position: sticky;
    top: 30px;
}

@media (max-width: 991.98px) {
    .sidebar .cta-widget.sticky-cta {
        position: static;
    }
}