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

:root {
    --primary-color: #2980b9; /* A vibrant blue */
    --secondary-color: #34495e; /* Dark gray for text */
    --light-bg-color: #f4f4f4;
    --dark-bg-color: #2c3e50;
    --white-color: #ffffff;
    --light-text-color: #ecf0f1;
    --gray-text-color: #555;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* General styles */
/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000; /* Base color black */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../uploads/osis_logo.png');
    background-repeat: repeat;
    background-size: 50px 50px; /* Adjust size as needed */
    color: #e0e0e0;
    line-height: 1.6;
}

header {
    background-color: #000000; /* Black background for header */
    color: var(--white-color);
    padding: 10px 0;
    text-align: center;
    box-shadow: var(--shadow-color) 0px 2px 5px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.osis-logo {
    height: 50px; /* Adjust as needed */
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 2em;
    color: var(--white-color);
}

nav ul {
    padding: 0;
    list-style: none;
    background-color: #000000; /* Black background for menu */
}

nav ul li {
    display: inline-block;
    position: relative;
    margin: 0 10px;
}

nav ul li a {
    display: block;
    color: #ffffff; /* White text for menu items */
    text-decoration: none;
    padding: 15px 20px;
}

nav ul li a:hover {
    background-color: #333333; /* Darker gray on hover */
    color: #cccccc; /* Lighter gray text on hover */
}



main {
    padding: 20px;
    margin: 0 auto;
    width: 80%;
    background-color: var(--white-color);
    box-shadow: 0 0 10px var(--shadow-color);
    margin-bottom: 20px; /* Added margin-bottom */
}

/* Footer Styles */
footer {
    background-color: #000000; /* Black background for footer */
    color: var(--light-text-color);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #34495e;
    font-size: 0.85em;
    color: #bdc3c7;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
}

.form-control-file {
    width: 100%;
    padding: 8px 0;
}

textarea.form-control {
    resize: vertical;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #217dbb; /* Slightly darker primary color */
}

.btn-danger {
    background-color: #dc3545;
    color: var(--white-color);
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Table styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
}

.table th,
.table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.table th {
    background-color: var(--light-bg-color);
    color: var(--secondary-color);
    font-weight: 600;
}

/* Alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.text-danger {
    color: #dc3545;
    font-size: 0.9em;
}

/* Profile Page Styles */
.profile-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 6px 12px var(--shadow-color);
    padding: 40px;
    margin: 30px auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-logo-container {
    margin-bottom: 25px;
}

.profile-logo {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.profile-details {
    width: 100%;
    text-align: left;
}

.detail-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item strong {
    color: var(--primary-color); /* Use primary color for strong text in member cards */
    font-size: 1.2em;
    display: block;
    margin-bottom: 8px;
}

.detail-item p {
    color: var(--gray-text-color);
    line-height: 1.7;
    margin: 0;
}

/* Members Page */
.position-section {
    margin-bottom: 40px;
    text-align: center;
}

.position-section h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.member-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(to bottom, #e3f2fd, #ffffff);
    padding: 20px;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.member-card h4 {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.member-card p {
    font-size: 0.95em;
    color: var(--gray-text-color);
}

/* Styles for member images to be square */
.member-card img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.form-inline .form-group {
    margin-bottom: 0;
}

/* Hero Section */
.hero {
    background: url('../uploads/hero-bg.jpg') no-repeat center center/cover; /* Placeholder image */
    color: var(--white-color);
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow during animation */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 180px;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.hero h2 {
    font-size: 3.2em;
    color: var(--white-color);
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s ease-out 0.8s forwards;
}

.hero p {
    font-size: 1.3em;
    color: var(--light-text-color);
    margin-bottom: 40px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s ease-out 1.1s forwards;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s ease-out 1.4s forwards;
}

.btn-primary:hover {
    background-color: #217dbb;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Why OSIS Section */
.why-osis {
    padding: 80px 20px;
    background-color: var(--light-bg-color);
    text-align: center;
}

.why-osis h2 {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.why-osis-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.why-osis-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 6px 15px var(--shadow-color);
    padding: 35px;
    max-width: 320px;
    text-align: left;
    transition: transform 0.3s ease;
}

.icon-above-title {
    font-size: 3em; /* Make icon larger */
    margin-bottom: 10px;
    color: var(--primary-color); /* Use primary color for icons */
}

.icon-above-title i {
    display: block; /* Ensure the icon takes up its own line */
    margin-bottom: 10px; /* Space between icon and title */
}

.why-osis-card:hover {
    transform: translateY(-10px);
}

.why-osis-card h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.why-osis-card p {
    font-size: 1.05em;
    color: var(--gray-text-color);
    line-height: 1.7;
}

/* About OSIS Section */
.about-osis {
    padding: 80px 20px;
    background-color: var(--white-color);
    text-align: center;
}

.about-osis h2 {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.about-osis p {
    font-size: 1.15em;
    color: var(--gray-text-color);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Recent News Section */
.recent-news {
    padding: 80px 20px;
    background-color: var(--light-bg-color);
    text-align: center;
}

.recent-news h2 {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.recent-news .news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item-link {
    text-decoration: none;
    color: inherit;
}

.recent-news .news-item {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 6px 15px var(--shadow-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recent-news .news-item:hover {
    transform: translateY(-5px);
}

.recent-news .news-item .news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.recent-news .news-item h3 {
    font-size: 1.6em;
    margin: 15px;
    flex-grow: 1;
}

.recent-news .news-item h3 a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.recent-news .news-item h3 a:hover {
    color: var(--primary-color);
}

.recent-news .news-item .news-date {
    font-size: 0.9em;
    color: var(--gray-text-color);
    margin: 0 15px 10px;
}

.recent-news .news-item p {
    font-size: 1em;
    color: var(--gray-text-color);
    margin: 0 15px 15px;
    flex-grow: 1;
}

.recent-news .news-item .read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 15px 15px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.recent-news .news-item .read-more:hover {
    background-color: var(--secondary-color);
}