@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --gold: #B87333; /* Copper accent */
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #333333;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid rgba(184, 115, 51, 0.2); /* Copper border */
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.logo {
    height: 50px;
    filter: drop-shadow(0 0 5px #B87333); /* Copper shadow */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--dark-gray);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #B87333; /* Copper underline */
    transition: width 0.3s ease;
}

nav a:hover {
    color: #B87333; /* Copper hover */
}

nav a:hover::after {
    width: 100%;
}

/* Cover Section */
.cover {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    padding: 6vw;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/pi-day-2025/v1.JPG');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}

.cover__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cover h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.cover p {
    color: var(--white);
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Button Styles */
.button {
    display: inline-block;
    text-decoration: none;
    background-color: #B87333; /* Copper button */
    color: var(--black);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    background-color: #A65A2E; /* Darker copper hover */
}

.button.secondary {
    background: var(--dark-gray);
    color: var(--white);
}

.button.secondary:hover {
    background: #555555;
}

/* Spacer */
.spacer {
    height: 80px;
}

/* Group Section */
.group {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.group h2 {
    color: var(--black);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.group p {
    color: var(--dark-gray);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

/* Embed Container and Wrapper (Updated) */
.embed-wrapper {
    max-width: 1200px; /* Match .group max-width */
    width: 100%;
    margin: 0 auto;
    overflow: hidden; /* Clip any overflow */
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%; /* Full width of wrapper */
    background: var(--white) !important; /* Force white background */
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; /* Override embed styling */
    height: 100% !important; /* Override embed styling */
    border: none;
    box-sizing: border-box; /* Include padding/border in width */
}

/* Record Grid for Meeting Minutes, etc. */
.record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.record-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.record-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.record-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.record-card p {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

/* Financial Table */
.financial-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.financial-table th,
.financial-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.financial-table th {
    background: #B87333; /* Copper header */
    color: var(--black);
    font-weight: 600;
}

.financial-table tr:last-child td {
    border-bottom: none;
}

/* Info and Director Table */
.info {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease forwards;
}

.director-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.director-table th,
.director-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.director-table th {
    background: #B87333; /* Copper */
    color: var(--black);
    font-weight: 600;
}

.director-table tr:last-child td {
    border-bottom: none;
}

/* Animation */
@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cover h1 {
        font-size: 2.5rem;
    }

    .cover p {
        font-size: 1.2rem;
    }

    .group h2 {
        font-size: 2rem;
    }

    .group p {
        font-size: 1rem;
    }

    .record-card h3 {
        font-size: 1.5rem;
    }

    .record-card p {
        font-size: 0.95rem;
    }

    .financial-table th,
    .financial-table td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .embed-container {
        padding-bottom: 75%; /* Adjust for mobile */
        max-width: 100%; /* Full width on smaller screens */
    }
}