/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: #2c3e2d;
    background-color: #f8f9f7;
    font-size: 16px;
}

/* Header styles */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e8ebe6;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2c3e2d;
    letter-spacing: 0.5px;
}

/* Navigation styles */
.navigation {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #4a5d4a;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #6b7c6b;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #6b7c6b;
    transition: width 0.3s ease;
}

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

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero section */
.hero-section {
    text-align: center;
}

/* Image gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.image-frame {
    aspect-ratio: 2/3;
    background-color: #f0f2f0;
    border: 1px solid #e8ebe6;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
}

.image-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-frame:hover .gallery-image {
    transform: scale(1.05);
}

/* Intro text */
.intro-text {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #3a4a3a;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .header-container {
        padding: 0 1.5rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-list {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 3rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .intro-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .nav-list {
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus {
    outline: 2px solid #6b7c6b;
    outline-offset: 2px;
}

/* Footer styles */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e8ebe6;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    color: #4a5d4a;
    font-size: 1rem;
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f2f0;
    color: #4a5d4a;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e8ebe6;
}

.social-link:hover {
    background-color: #6b7c6b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-link i {
    font-size: 1.1rem;
}

.google-scholar {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: inherit;
}

/* Footer responsive design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer {
        padding: 1.5rem 0;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link i {
        font-size: 1rem;
    }
}

/* About page styles */
.about-section {
    padding: 3rem 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e2d;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #3a4a3a;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.research-questions {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.research-questions li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #3a4a3a;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.research-questions li::before {
    content: "•";
    color: #6b7c6b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.headshot {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e8ebe6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* About page responsive design */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        text-align: left;
    }
    
    .research-questions li {
        font-size: 1rem;
        text-align: left;
    }
    
    .headshot {
        max-width: 250px;
        height: 250px;
    }
}

/* Navigation active state */
.nav-link.active {
    color: #6b7c6b;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #6b7c6b;
}

/* Logo link styling */
.logo h1 a {
    text-decoration: none;
    color: inherit;
}

/* Research page styles */
.research-section {
    padding: 3rem 0;
}

.research-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.research-header {
    text-align: center;
    margin-bottom: 2rem;
}

.research-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e2d;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.research-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.research-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #3a4a3a;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.research-text em {
    font-style: italic;
    color: #4a5d4a;
}

.research-image-section {
    position: sticky;
    top: 2rem;
}

.research-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #4a5d4a;
    font-style: italic;
    padding: 0.5rem;
    background: #f8f9f7;
    border-radius: 4px;
    border: 1px solid #e8ebe6;
    margin-bottom: 1.5rem;
}

.additional-images {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}

.additional-image-item {
    display: flex;
    flex-direction: column;
}

.additional-image-item .research-image {
    margin-bottom: 0;
}

.additional-image-item .image-caption {
    margin-bottom: 1.5rem;
}

/* Research page responsive design */
@media (max-width: 1024px) {
    .research-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .research-image-section {
        position: static;
        order: -1;
    }
    
    .research-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .research-container {
        padding: 0 1rem;
    }
    
    .research-header h2 {
        font-size: 2rem;
    }
    
    .research-text p {
        font-size: 1rem;
        text-align: left;
    }
    
    .research-layout {
        gap: 2rem;
    }
}

/* Writing page styles */
.writing-section {
    padding: 3rem 0;
}

.blog-posts ul {
    margin-left: 2rem;
    padding-left: 0;
}

.writing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.writing-container h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e2d;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 1px;
}

.writing-container h3 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #4a5d4a;
    margin: 2.5rem 0 1.5rem 0;
    border-bottom: 2px solid #e8ebe6;
    padding-bottom: 0.5rem;
}

.publication-item {
    margin-bottom: 2.5rem;
}

.publication-item h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e2d;
    margin-bottom: 1rem;
}

.publication-list {
    list-style: none;
    padding: 0;
}

.publication-list li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9f7;
    border-left: 4px solid #6b7c6b;
    border-radius: 4px;
}

.publication-title {
    display: block;
    font-weight: 500;
    color: #2c3e2d;
    margin-bottom: 0.5rem;
    font-style: normal;
}

.publication-journal {
    display: block;
    color: #4a5d4a;
    font-size: 0.95rem;
}

/* Teaching page styles */
.teaching-section {
    padding: 3rem 0;
}

.teaching-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.teaching-container h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e2d;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
}

.teaching-container h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #4a5d4a;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #e8ebe6;
    padding-bottom: 0.5rem;
}

.teaching-container h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e2d;
    margin-bottom: 0.5rem;
}

.teaching-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #3a4a3a;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Accordion styles */
.accordion {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .accordion-item {
    border: 1px solid #e8ebe6;
    border-radius: 6px;
    background-color: #f8f9f7;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .accordion-header {
    width: 100%;
    background: #ffffff;
    color: #2c3e2d;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
  }
  
  .accordion-header:hover {
    background-color: #f0f2f0;
  }
  
  .accordion-header::after {
    content: '+';
    font-size: 1.2rem;
    color: #6b7c6b;
    transition: transform 0.3s ease;
  }
  
  .accordion-header.active::after {
    content: '−';
    transform: rotate(180deg);
}
  
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    background: #f8f9f7;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  
  .accordion-content p {
    margin: 1rem 0 1.5rem 0;
    color: #3a4a3a;
    line-height: 1.7;
    text-align: justify;
  }
  
  .accordion-content.open {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  
  .course-level {
    font-style: italic;
    font-weight: 400;
    color: #4a5d4a;
    margin-left: 0.5rem;
    font-size: 0.95rem;
  }
  

.course-divider {
    height: 1px;
    background-color: #e8ebe6;
    margin: 0.5rem 0;
    list-style: none;
    padding: 0;
}

.course-list {
    list-style: none;
    padding: 0;
}

.course-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #3a4a3a;
}

.plus {
    color: #6b7c6b;
    font-weight: bold;
    font-size: 1.2rem;
}

.course-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9f7;
    border-radius: 6px;
    border-left: 4px solid #6b7c6b;
}

.institution {
    font-style: italic;
    color: #4a5d4a;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.course-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #3a4a3a;
}

.course-description strong {
    color: #2c3e2d;
    font-weight: 600;
}

/* Writing and Teaching responsive design */
@media (max-width: 1024px) {
    .teaching-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .writing-container h2,
    .teaching-container h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .writing-container,
    .teaching-container {
        padding: 0 1rem;
    }
    
    .writing-container h2,
    .teaching-container h2 {
        font-size: 2rem;
    }
    
    .writing-container h3,
    .teaching-container h3 {
        font-size: 1.5rem;
    }
    
    .writing-container p,
    .teaching-container p {
        font-size: 1rem;
        text-align: left;
    }
    
    .course-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .plus {
        align-self: flex-end;
    }
}

/* CV page styles */
.cv-section {
    padding: 3rem 0;
}

.cv-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cv-container h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e2d;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 1px;
}

.cv-embed {
    position: relative;
    width: 100%;
    height: 800px;
    border: 1px solid #e8ebe6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cv-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    max-width: 500px;
}

.cv-fallback p {
    color: #3a4a3a;
    margin-bottom: 1rem;
}

.cv-fallback ol {
    text-align: left;
    color: #3a4a3a;
}

.cv-fallback li {
    margin-bottom: 0.5rem;
}

/* Contact page styles */
.contact-section {
    padding: 3rem 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-container h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e2d;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact-container h3 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #4a5d4a;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid #e8ebe6;
    padding-bottom: 0.5rem;
}

.contact-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #3a4a3a;
    margin-bottom: 2rem;
}

/* Contact form styles */
.contact-form {
    background: #f8f9f7;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e8ebe6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #2c3e2d;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e8ebe6;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #3a4a3a;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6b7c6b;
    box-shadow: 0 0 0 2px rgba(107, 124, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #6b7c6b;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: #5a6a5a;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Cover design gallery */
.cover-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.cover-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cover-item:hover .cover-image {
    transform: scale(1.05);
}

/* CV and Contact responsive design */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cv-container h2,
    .contact-container h2 {
        font-size: 2.2rem;
    }
    
    .cover-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cv-container,
    .contact-container {
        padding: 0 1rem;
    }
    
    .cv-container h2,
    .contact-container h2 {
        font-size: 2rem;
    }
    
    .contact-container h3 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .cover-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .cv-embed {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .cover-gallery {
        grid-template-columns: 1fr;
    }
    
    .cv-embed {
        height: 500px;
    }
}

/* Print styles */
@media print {
    .header {
        position: static;
        box-shadow: none;
    }
    
    .image-gallery {
        display: none;
    }
    
    .footer {
        display: none;
    }
}
