/* ===================================
   HKUST CIVAL - Master Stylesheet
   Consolidated CSS for all pages
   =================================== */

/* === Base Styles (from root style.css) === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4B4F58;
}

main {
    min-height: calc(100vh - 70px - 200px);
}

a {
    color: #0170B9;
    text-decoration: none;
}

a:hover {
    color: #3a3a3a;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Header & Navigation === */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    min-height: 70px;
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.site-logo img {
    max-width: 207px;
}

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    min-height: 70px;
}

.ast-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-primary-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-img img {
    max-width: 207px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation ul li a {
    color: #4B4F58;
    padding: 10px 15px;
    display: block;
}

.main-navigation ul li a:hover {
    color: #0170B9;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0170B9 0%, #3a3a3a 100%);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: bold;
}

/* === Content Sections === */
.content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 30px;
    color: #3a3a3a;
    margin-bottom: 20px;
    text-align: center;
}

.content-section p {
    margin-bottom: 15px;
}

.about-text {
    text-align: center;
    font-size: 23px;
    color: #000000;
    max-width: 900px;
    margin: 0 auto 40px;
}

.logos-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logos-section img {
    max-height: 100px;
}

.news-section ul {
    list-style: disc;
    padding-left: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.news-section ul li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 40px auto 0;
}

.contact-info strong {
    display: block;
    margin-bottom: 10px;
    color: #3a3a3a;
}

/* === Footer === */
.site-footer {
    background-color: #f9f9f9;
    border-top: 1px solid #e6e6e6;
    padding: 45px 20px;
    text-align: center;
}

.site-footer p {
    color: #4B4F58;
    margin: 5px 0;
}

/* === Team Page Styles === */
.team-header {
    background: linear-gradient(135deg, #0170B9 0%, #3a3a3a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.team-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.team-section {
    margin-bottom: 60px;
}

.team-section h2 {
    font-size: 32px;
    color: #3a3a3a;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0170B9;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-member-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.team-member-info {
    padding: 20px;
}

.team-member-name {
    font-size: 20px;
    color: #3a3a3a;
    margin-bottom: 5px;
    font-weight: 600;
}

.team-member-name a {
    color: #0170B9;
    text-decoration: none;
}

.team-member-name a:hover {
    color: #3a3a3a;
    text-decoration: underline;
}

.team-member-position {
    color: #0170B9;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.team-member-details {
    font-size: 13px;
    color: #666;
}

.team-member-details a {
    color: #0170B9;
}

.team-member-details a:hover {
    text-decoration: underline;
}

.alumni-list {
    list-style: none;
    padding: 0;
}

.alumni-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.2s ease;
    line-height: 1.6;
}

.alumni-item:hover {
    background-color: #f9f9f9;
}

.alumni-item:last-child {
    border-bottom: none;
}

.alumni-item strong {
    color: #0170B9;
    font-weight: 600;
}

.alumni-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.2s ease;
    line-height: 1.6;
}

.alumni-list li:hover {
    background-color: #f9f9f9;
}

.alumni-list li:last-child {
    border-bottom: none;
}

.alumni-name {
    font-weight: bold;
    color: #3a3a3a;
}

/* === Blog Page Styles === */
.blog-header {
    background: linear-gradient(135deg, #0170B9 0%, #3a3a3a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.blog-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-content {
    padding: 25px;
}

.blog-card h3 {
    font-size: 20px;
    color: #3a3a3a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: #3a3a3a;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #0170B9;
}

.blog-card p {
    color: #4B4F58;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #0170B9;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* === Publication Page Styles === */
.publication-header {
    background: linear-gradient(135deg, #0170B9 0%, #3a3a3a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.publication-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.publication-header .note {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
}

.publication-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.publication-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 32px;
    color: #3a3a3a;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0170B9;
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.publication-year {
    margin-bottom: 50px;
}

.publication-year h2 {
    font-size: 32px;
    color: #3a3a3a;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0170B9;
}

.publication-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.publication-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pub-image,
.publication-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.pub-content,
.publication-content {
    flex: 1;
}

.pub-title {
    font-size: 18px;
    color: #3a3a3a;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.publication-content h3 {
    font-size: 18px;
    color: #3a3a3a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pub-authors,
.publication-authors {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.pub-venue,
.publication-venue {
    color: #0170B9;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.award {
    color: #d9534f;
    font-weight: 600;
    font-size: 14px;
    margin: 8px 0;
}

.pub-links,
.publication-links {
    margin-top: 10px;
}

.pub-links a,
.publication-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 13px;
    color: #0170B9;
}

.pub-links a:hover,
.publication-links a:hover {
    text-decoration: underline;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .site-primary-header-wrap {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .about-text {
        font-size: 18px;
    }
    
    .logos-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .team-header h1,
    .blog-header h1,
    .publication-header h1 {
        font-size: 32px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-item {
        flex-direction: column;
    }
    
    .publication-image {
        width: 100%;
        height: auto;
    }
}
