/* National Pathology Conference 2026 - Main Stylesheet */

:root {
    --primary-color: #B32F5C;
    --secondary-color: #DE9DAD;
    --accent-color: #F7D394;
    --dark-color: #2C2C2C;
    --light-color: #F5F5F5;
    --light-gold: #FFF8DC;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-gold);
}

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        padding: 0 1rem;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        list-style: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-links.active {
        max-height: 500px;
    }

    .nav-links li {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        color: var(--dark-color);
        text-decoration: none;
        font-weight: 600;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: #f5f5f5;
        color: var(--primary-color);
    }

    .logo-container {
        gap: 0.5rem;
    }

    .header-logo {
        height: 50px;
    }

    .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 0.75rem;
    }

    .header-logo {
        height: 40px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links a {
        padding: 0.8rem 1.5rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(179, 47, 92, 0.65), rgba(179, 47, 92, 0.65)), 
                url('../images/sarawak_pathology_hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 10rem 2rem;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #8e2549;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

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

/* Section Styling */
section {
    padding: 4rem 0;
    background-color: var(--light-gold);
}

section h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

section h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-top: 4px solid var(--accent-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Forms */
form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #DDD;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(179, 47, 92, 0.1);
}

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #EEE;
}

table tbody tr:hover {
    background-color: var(--light-color);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Footer Logos */
.footer-logos {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logos h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 70px));
    gap: 1rem;
    align-items: center;
    justify-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: brightness(1.1);
}

.footer-info {
    padding-top: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero {
        padding: 6rem 1rem;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    form {
        padding: 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    table th, table td {
        padding: 0.75rem;
    }
}

/* Speaker Cards */
.speaker-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.speaker-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.speaker-photo-container {
    width: 100%;
    height: 300px;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.speaker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
    display: block;
}

.speaker-card:hover .speaker-photo {
    transform: scale(1.05);
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.text-muted {
    color: #888 !important;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.speaker-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    flex-grow: 1;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 10px;
}

.read-more-btn:hover {
    color: #8e2549;
    text-decoration: underline;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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


/* Committee Page */
.hero-small {
    background: linear-gradient(rgba(179, 47, 92, 0.75), rgba(179, 47, 92, 0.75)), 
                url('../images/sarawak_pathology_hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-small h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    letter-spacing: 2px;
}

.hero-small p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.committee-section {
    padding: 3rem 2rem;
    background-color: var(--light-gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.committee-level {
    margin-bottom: 4rem;
}

.level-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Advisor Grid - Single centered item */
.advisor-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Leadership Grid - 2 columns */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Core Team Grid - 4 columns */
.core-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

/* Scientific Heads Grid - 4 columns */
.scientific-heads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.committee-member {
    text-align: center;
    padding: 1rem;
}

.role-title {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-photo {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 3/4;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    margin: 0 auto 1rem auto;
    overflow: hidden;
    flex-shrink: 0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    background-color: var(--white);
}

.member-name {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Committees Grid - 2 columns */
.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.committee-group {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.committee-header {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.committee-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.committee-subtitle {
    font-size: 0.9rem;
    margin: 0;
}

.committee-subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.committee-subtitle a:hover {
    color: #8e2549;
    text-decoration: underline;
}

.committee-photo {
    width: 100%;
    min-height: 300px;
    aspect-ratio: 16/9;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    overflow: hidden;
}

.committee-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 15px;
    background-color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .core-team-grid,
    .scientific-heads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .committees-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-small {
        padding: 4rem 1rem;
        min-height: 250px;
    }

    .hero-small h1 {
        font-size: 2rem;
    }

    .hero-small p {
        font-size: 1rem;
    }

    .committee-section {
        padding: 2rem 1rem;
    }

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

    .advisor-grid,
    .leadership-grid {
        gap: 1.5rem;
    }

    .core-team-grid,
    .scientific-heads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .committees-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .member-photo,
    .committee-photo {
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .hero-small {
        padding: 3rem 1rem;
        min-height: 200px;
    }

    .hero-small h1 {
        font-size: 1.5rem;
    }

    .hero-small p {
        font-size: 0.9rem;
    }

    .committee-level {
        margin-bottom: 2rem;
    }

    .level-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .advisor-grid,
    .leadership-grid,
    .core-team-grid,
    .scientific-heads-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .role-title {
        font-size: 0.85rem;
    }

    .member-name,
    .committee-title {
        font-size: 0.9rem;
    }

    .committee-subtitle {
        font-size: 0.85rem;
    }
}