/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
   :root {
    --primary: #134E4A;
    --secondary: #0D9488;
    --accent: #0F766E;
    --light: #f8fafc;
    --dark: #1e293b;
    --text: #334155;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: var(--primary);
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary);
    font-weight: 800;
}

.header-tulip-icon {
    height: 48px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    opacity: 0.85;
}

nav ul li a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
/* Common Hero Styles */
.hero,
.page-hero,
.about-hero {
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(19, 78, 74, 0.03), rgba(19, 78, 74, 0.08));
}

.hero {
    background: linear-gradient(rgba(26, 106, 162, 0.8), rgba(26, 106, 162, 0.9)), url('/api/placeholder/1200/600') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1,
.page-hero h1,
.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
}

.hero p,
.page-hero p,
.about-hero p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.9;
}

.hero p {
    color: white;
    font-size: 1.25rem;
}

/* Company Banner */
.company-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(19, 78, 74, 0.2);
}

.company-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.tulip-icon {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* RheumEd Logo Styling */
.page-hero-logo {
    margin-bottom: 20px;
}

.rheumed-hero-logo {
    width: 100px;
    height: auto;
}

/* ==========================================================================
   BUTTONS AND LINKS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin: 10px;
}

.btn:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--primary);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   SECTIONS & TITLES
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--dark);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
    font-size: 1.1rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro h2 {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-intro p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text);
    font-size: 1.1rem;
    opacity: 0.8;
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.category-title h3 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-right: 20px;
}

.category-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, var(--secondary), transparent);
}

/* ==========================================================================
   APP SECTION
   ========================================================================== */
#app {
    padding-top: 150px;
}

.app-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.app-text {
    flex: 1;
}

.app-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.app-text p {
    margin-bottom: 20px;
}

.app-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-img img {
    width: 100%;
    height: auto;
    display: block;
}

.app-features-list {
    margin: 20px 0;
}

.app-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.app-feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(26, 106, 162, 0.1);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* App Logo Styling */
.app-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.rheumed-logo {
    width: 240px;
    height: auto;
    margin-bottom: 15px;
}

.brand-combination {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: fit-content;
    margin: 0 auto;
}

.logo-wrapper {
    background-color: var(--primary);
    border-radius: 12px;
    padding: 10px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    display: flex;
    align-items: center;
}

.rheumed-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Download Section */
.download-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.download-logo {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 8px solid rgba(15, 118, 110, 0.15); /* Faint teal border */

}

  

.download-rheumed-logo {
    width: 60px;
    height: auto;
}

/* Screenshots Layout */
.screenshots-container {
    position: relative;
    height: 520px;
    width: 100%;
    max-width: 560px;
    margin: 40px auto;
}

.screenshot {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background-color: white;
    overflow: hidden;
    width: 230px;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    border: 5px solid white;
    border-radius: 12px;
}

.screenshot-1 {
    top: 30px;
    left: 70px;
    z-index: 4;
    transform: rotate(-6deg);
}

.screenshot-2 {
    top: 60px;
    right: 70px;
    z-index: 3;
    transform: rotate(6deg);
}

.screenshot-3 {
    bottom: 60px;
    left: 70px;
    z-index: 2;
    transform: rotate(4deg);
}

.screenshot-4 {
    bottom: 30px;
    right: 70px;
    z-index: 1;
    transform: rotate(-4deg);
}

.screenshot:hover {
    transform: translateY(-10px) rotate(0);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
#features {
    padding: 80px 0;
    background-color: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 106, 162, 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* ==========================================================================
   IMPORTANT NOTICE SECTION
   ========================================================================== */
#notice {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(19, 78, 74, 0.03) 0%, rgba(19, 78, 74, 0.08) 100%);
}

.notice-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.notice-card {
    background: white;
    border: 2px solid rgba(19, 78, 74, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(19, 78, 74, 0.1);
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(19, 78, 74, 0.15);
    border-color: var(--secondary);
}

.notice-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(19, 78, 74, 0.3);
}

.notice-icon i {
    font-size: 24px;
    color: white;
}

.notice-text h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.notice-text p {
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
#testimonials {
    background-color: var(--light);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: "\201C";
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: rgba(26, 106, 162, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--dark);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team-section {
    padding: 80px 0;
    position: relative;
    background-color: white;
}

.team-section:nth-child(even) {
    background-color: var(--light);
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}

/* Team Member Card */
.team-member {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.team-member:nth-child(odd) {
    left: 0;
}

.team-member:nth-child(even) {
    left: 50%;
}

.team-member::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 30px;
    z-index: 1;
}

.team-member:nth-child(odd)::after {
    right: -17px;
}

.team-member:nth-child(even)::after {
    left: -17px;
}

.member-content {
    padding: 20px 25px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    gap: 20px;
    align-items: center;
    min-height: 140px;
}

.team-member:hover .member-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.member-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.member-position {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.member-position::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    margin-right: 8px;
}

.member-bio {
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.5;
    opacity: 0.9;
    font-size: 0.95rem;
}

.member-social {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    color: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Grid-style Team Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.team-grid .team-member {
    width: 100%;
    padding: 0;
    left: 0;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.team-grid .team-member:hover {
    transform: translateY(-10px);
}

.team-grid .team-member::after {
    display: none;
}

.team-grid .member-image {
    width: 100%;
    height: 300px;
    min-width: 100%;
    border-radius: 0;
}

.team-grid .member-info {
    padding: 25px;
}

/* Editors Grid Layout */
.editors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.editor-card {
    background-color: var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
}

.editor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.editor-image {
    width: 140px;
    min-width: 140px;
    height: auto;
    overflow: hidden;
    position: relative;
}

.editor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.editor-card:hover .editor-image img {
    transform: scale(1.05);
}

.editor-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.editor-title {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    background-color: rgba(13, 148, 136, 0.1);
    width: fit-content;
}

.editor-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 15px;
}

.editor-links {
    display: flex;
    gap: 12px;
}

.editor-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.editor-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Chief Editor Special Styling */
.chief-editor {
    grid-column: 1 / -1;
    background: linear-gradient(to right, rgba(19, 78, 74, 0.03), rgba(19, 78, 74, 0.08));
    border-left: 4px solid var(--primary);
    position: relative;
}

.chief-editor::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    background-color: rgba(19, 78, 74, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.chief-editor::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 60px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(19, 78, 74, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.chief-editor .editor-content {
    position: relative;
    z-index: 1;
}

.chief-editor .editor-image {
    width: 180px;
    min-width: 180px;
    position: relative;
    z-index: 1;
}

.chief-editor .editor-name {
    font-size: 1.6rem;
}

.chief-editor .editor-title {
    font-size: 1rem;
    background-color: rgba(13, 148, 136, 0.15);
}

/* Creative Editor Special Styling */
.creative-editor {
    grid-column: 1 / -1;
    background: linear-gradient(to right, rgba(19, 78, 74, 0.02), rgba(19, 78, 74, 0.06));
    border-left: 4px solid var(--secondary);
}

.creative-editor .editor-image {
    width: 160px;
    min-width: 160px;
}

.creative-editor .editor-name {
    font-size: 1.5rem;
}

/* ==========================================================================
   MISSION SECTION
   ========================================================================== */
.mission-section {
    padding: 100px 0;
    background: linear-gradient(to right, rgba(19, 78, 74, 0.05), rgba(19, 78, 74, 0.02));
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-title {
    grid-column: 1 / -1;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-align: center;
}

.mission-text {
    grid-column: 3 / 11;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 30px;
    text-align: center;
}

.mission-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
}

.mission-card-large {
    grid-column: span 8;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-card-large h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mission-card-large p {
    opacity: 0.9;
}

.mission-card-small {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
}

.mission-card-small .vision-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(19, 78, 74, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.vision-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.vision-text {
    color: var(--text);
    line-height: 1.7;
    opacity: 0.9;
}

.mission-image-card {
    grid-column: span 6;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.mission-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mission-image-card:hover img {
    transform: scale(1.05);
}

.mission-image-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.image-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 600;
}

.about-mission {
    margin-top: 50px;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
}

.mission-content .mission-text {
    flex: 1.5;
    grid-column: auto;
    margin-bottom: 20px;
    text-align: left;
}

.mission-content .mission-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.mission-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-section {
    padding: 100px 0;
    background-color: white;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background-color: var(--light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
    opacity: 0.9;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
#faq {
    padding: 80px 0;
    background-color: var(--light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(26, 106, 162, 0.05);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 300px;
    padding: 0 20px 20px;
}

.faq-answer p {
    opacity: 0.9;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
#contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Contact Message Styling */
.contact-message {
    text-align: center;
    padding: 20px;
}

.message-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(19, 78, 74, 0.2);
}

.contact-message h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-message > p {
    color: var(--text);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.email-details {
    background-color: var(--light);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
    border-left: 4px solid var(--secondary);
}

.email-details p {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.email-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.email-details li {
    color: var(--text);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    font-size: 0.95rem;
}

.email-details li::before {
    content: '•';
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    margin: 20px 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    transition: all 0.3s ease;
}

.email-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 78, 74, 0.3);
}

.form-note {
    color: var(--text);
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 15px;
}

/* Legacy form styling (kept for compatibility) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
    opacity: 0.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(26, 106, 162, 0.1);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.social-icon:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Footer Logo */
.footer-logo-container {
    margin-bottom: 15px;
}

.footer-rheumed-logo {
    width: 80px;
    height: auto;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
}

/* ==========================================================================
   RHEUMED LOGO STYLING
   ========================================================================== */
.spacer {
    height: 20px;
    width: 100px;
}

.app-logo-container {
    margin-bottom: 30px;
}

.rheumed-logo-flex {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(19, 78, 74, 0.03), rgba(19, 78, 74, 0.08));
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(19, 78, 74, 0.1);
}

.rheumed-icon {
    margin-right: 20px;
}

/* White box around the icon */
.icon-white-box {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 8px solid rgba(15, 118, 110, 0.15); /* Faint teal border */
}

.rheumed-logo-flex:hover .icon-white-box {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(15, 118, 110, 0.15);
}

.joint-icon {
    height: 80px;
    width: auto;
}

.rheumed-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #134E4A;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.rheumed-text h1 span {
    color: #0D9488;
}

.rheumed-text p {
    margin: 8px 0 0;
    font-size: 1rem;
    color: #0F766E;
    opacity: 0.9;
}

/* ==========================================================================
   RESPONSIVE STYLES 
   ========================================================================== */
/* Large Screens (1200px and below) */
@media (max-width: 1200px) {
    .timeline::before {
        left: 40px;
    }
    
    .team-member {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
    }
    
    .team-member:nth-child(even) {
        left: 0;
    }
    
    .team-member::after {
        left: 23px;
    }
}

/* Medium Screens (992px and below) */
@media (max-width: 992px) {
    .app-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .editors-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-card,
    .mission-card-large,
    .mission-card-small,
    .mission-image-card {
        grid-column: 1 / -1;
    }
    
    .mission-text {
        grid-column: 1 / -1;
    }
    
    .mission-content {
        flex-direction: column;
    }
    
    .mission-content .mission-text, 
    .mission-image {
        width: 100%;
    }
    
    .about-hero h1 {
        font-size: 3rem;
    }

    .project-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Screenshot adjustments */
    .screenshots-container {
        height: 520px;
        max-width: 500px;
    }
    
    .screenshot {
        width: 210px;
    }
    
    .screenshot-1 {
        top: 30px;
        left: 60px;
    }
    
    .screenshot-2 {
        top: 60px;
        right: 60px;
    }
    
    .screenshot-3 {
        bottom: 60px;
        left: 60px;
    }
    
    .screenshot-4 {
        bottom: 30px;
        right: 60px;
    }
}

/* Small Screens/Tablets (768px and below) */
@media (max-width: 768px) {
    #app, #about {
        padding-top: 120px;
    }
    
    .header-content {
        position: relative;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    nav.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-hero h1,
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .member-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .member-image {
        width: 100%;
        height: 200px;
        min-width: 100%;
    }
    
    .member-info {
        padding-top: 15px;
    }
    
    .editor-card {
        flex-direction: column;
    }
    
    .editor-image {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }
    
    .chief-editor .editor-image, 
    .creative-editor .editor-image {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .team-grid .member-image {
        height: 250px;
    }
    
    /* Notice section responsive */
    .notice-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .notice-card {
        padding: 25px 20px;
    }
    
    .notice-icon {
        width: 60px;
        height: 60px;
    }
    
    .notice-icon i {
        font-size: 20px;
    }
    
    .notice-text h3 {
        font-size: 1.1rem;
    }
    
    .notice-text p {
        font-size: 0.9rem;
    }
    
    /* Mobile screenshot carousel layout */
    .app-img {
        width: 100%;
        margin-top: 40px;
        overflow-x: hidden;
    }
    
    .screenshots-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
        height: auto !important;
        padding: 20px 0 40px !important;
        width: 100% !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 20px;
    }
    
    /* Reset all screenshot positions */
    .screenshot {
        position: relative !important;
        width: 85% !important;
        min-width: 85% !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        opacity: 1 !important;
        scroll-snap-align: center;
        transform: none !important;
        transition: transform 0.3s ease;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }
    
    /* Add some variation to screenshot angles */
    .screenshot:nth-child(odd) {
        transform: rotate(-3deg);
    }
    .screenshot:nth-child(even) {
        transform: rotate(3deg);
    }
    
    /* Active/hover effects */
    .screenshot:hover,
    .screenshot:active {
        transform: scale(1.05) rotate(0deg) !important;
        z-index: 50 !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Make sure images scale correctly */
    .screenshot-img {
        width: 100% !important;
        height: auto !important;
        border: 3px solid white !important;
    }
    
    /* Hide scrollbar but keep functionality */
    .screenshots-container::-webkit-scrollbar {
        display: none;
    }
    
    /* Add some padding to first and last items for better scrolling */
    .screenshots-container::before,
    .screenshots-container::after {
        content: '';
        min-width: 20px;
    }
}

/* Mobile Devices (576px and below) */
@media (max-width: 576px) {
    .about-hero h1,
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .category-title h3 {
        font-size: 1.5rem;
    }
    
    .company-name {
        font-size: 1.8rem;
    }
    
    .mission-card {
        padding: 30px;
    }
    
    .project-cards {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* RheumEd logo responsive */
    .rheumed-logo-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .rheumed-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .joint-icon {
        height: 70px;
    }
    
    .rheumed-text h1 {
        font-size: 2.5rem;
    }
    
    /* Notice section mobile */
    #notice {
        padding: 60px 0;
    }
    
    .notice-content {
        margin-top: 40px;
    }
    
    .notice-card {
        padding: 20px 15px;
    }
    
    /* Mobile screenshots */
    .screenshot {
        width: 90% !important;
        min-width: 90% !important;
    }
}

/* For larger mobile devices */
@media (min-width: 500px) and (max-width: 768px) {
    .screenshot {
        width: 70% !important;
        min-width: 70% !important;
    }
}