/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00A651;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #555;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00A651;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #00A651;
    color: #fff;
}

.btn-primary:hover {
    background: #008f45;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-large {
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #00A651 0%, #00CDAC 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Sections */
/* Sections */
section {
    padding: 4rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #333;
    font-weight: 700;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #00A651;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Formatted Content Area */
.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-text p {
    margin-bottom: 1rem;
}

/* Card Grid */
.events-grid,
.lecturers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.event-image {
    height: 220px;
    background: #f0f2f5;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-details {
    padding: 1.8rem;
}

.event-date {
    display: inline-block;
    background: rgba(0, 166, 81, 0.1);
    color: #00A651;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.event-type {
    float: right;
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.3rem;
}

.event-details h3 {
    margin: 0.8rem 0;
    font-size: 1.35rem;
    line-height: 1.3;
}

.event-details h3 a {
    color: #222;
    transition: color 0.2s;
}

.event-details h3 a:hover {
    color: #00A651;
}

.event-short-desc {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
footer {
    background: #222;
    color: #eee;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Mobile menu needed */
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* Contact Page Styles */
.contacts-wrapper {
    background: linear-gradient(135deg, #f0f2f5 0%, #eef1f5 100%);
    min-height: calc(100vh - 160px);
    /* Adjust based on header/footer */
    padding: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    max-width: 1000px;
    width: 95%;
    margin: 0 auto;
}

/* Left Side (Info) */
.contacts-left {
    background: #00A651;
    color: #fff;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contacts-left::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contacts-left h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.info-content {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item p {
    font-size: 1.05rem;
    margin: 0;
    padding-top: 8px;
}

/* Right Side (Form) */
.contacts-right {
    padding: 3rem;
    background: #fff;
}

.form-box h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: left;
}

.form-box h2::after {
    margin: 10px 0 0;
    /* Reset global style */
    background: #e0e0e0;
    /* Subtler underline */
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eef0f3;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #fafafa;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #00A651;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.1);
}

.input-group textarea {
    resize: vertical;
}

/* Event Detail Extras */
.event-info-header {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.event-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: #eef1f5;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-badge.type {
    background: #e7f1ff;
    color: #007bff;
}

.event-badge.bpr {
    background: #fff3cd;
    color: #856404;
}

.event-badge.format {
    background: #d4edda;
    color: #155724;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

/* Custom Checkbox */
.checkbox-group {
    margin-bottom: 2rem;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    gap: 10px;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #eef0f3;
    border-radius: 4px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.custom-checkbox input:checked+.checkmark {
    background: #00A651;
    border-color: #00A651;
}

.checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    display: none;
}

.custom-checkbox input:checked+.checkmark::after {
    display: block;
}

/* Button */
.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.2);
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .contacts-container {
        grid-template-columns: 1fr;
    }

    .contacts-left {
        padding: 2rem;
    }

    .contacts-right {
        padding: 2rem;
    }
}

/* Page Headers & Wrappers */
.page-wrapper {
    background: #f8f9fa;
    min-height: calc(100vh - 160px);
    padding-bottom: 4rem;
}

.page-header {
    background: linear-gradient(135deg, #00A651 0%, #008c44 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

/* Content Card (About/Generic) */
.content-card {
    background: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.content-card h2 {
    margin-top: 2rem;
    border-bottom: none;
}

.content-card h2::after {
    display: none;
}

/* Reset global style if needed */
.content-card ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-card p {
    margin-bottom: 1.5rem;
}

/* Rich Text Styles for Editor Content */
.content-card ul,
.hero-text ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.content-card ol,
.hero-text ol {
    list-style: decimal;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.content-card li,
.hero-text li {
    margin-bottom: 0.8rem;
}

.content-card blockquote,
.hero-text blockquote {
    border-left: 5px solid #00A651;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    position: relative;
    border-radius: 4px;
}

.content-card blockquote::before {
    content: '"';
    font-family: serif;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: #00A651;
    opacity: 0.1;
    line-height: 1;
}

.content-card h1,
.content-card h2,
.content-card h3,
.hero-text h1,
.hero-text h2,
.hero-text h3 {
    color: #222;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.content-card img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Lecturer Cards */
.lecturer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 1.5rem;
}

.lecturer-card:hover {
    transform: translateY(-8px);
}

.lecturer-photo-area {
    height: 120px;
    background: linear-gradient(to bottom, #eef1f5 50%, #fff 50%);
    padding-top: 20px;
}

.lecturer-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin: 0 auto;
    display: block;
}

.lecturer-info {
    padding: 3rem 1.5rem 1rem;
    /* Top padding clears the overlap */
}

.lecturer-info h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #333;
}

.lecturer-position {
    color: #00A651;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.lecturer-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}