/* style-main.css: Modern, responsive base styles for all PHP pages except index.php */

/* --- Merged from usefullinks.css and style-main.css --- */

/* Base styles (from style-main.css) */
body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f9f8f7; /* unified background */
    color: #222;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #2c3e50;
    text-align: center;
    letter-spacing: -0.02em;
}

.text-gray-700 {
    color: #555555;
    line-height: 1.7;
}
.text-gray-900 {
    color: #2c3e50;
}

/* Navigation and header (from nav.php and style-main.css) */
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.2rem 0 0.8rem 0;
    margin-bottom: 2rem;
}
header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #1a237e;
    letter-spacing: 1px;
}
nav {
    margin: 0.5rem 0 0 0;
    text-align: center;
}
nav a {
    color: #1a237e;
    text-decoration: none;
    margin: 0 0.7rem;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover {
    color: #1565c0;
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2rem 1.5rem 2.5rem 1.5rem;
}
h2, h3 {
    color: #1a237e;
    margin-top: 0;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fafbfc;
}
th, td {
    padding: 0.7rem 0.5rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}
th {
    background: #e3eafc;
    color: #1a237e;
    font-weight: 600;
}
tr:nth-child(even) {
    background: #f4f6fb;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}
input, select, textarea, button {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    outline: none;
    transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
    border: 1.5px solid #1976d2;
}
button {
    background: #1976d2;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}
button:hover {
    background: #1565c0;
}

/* Useful Links Page Styles (from usefullinks.css) */
.useful-links-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .useful-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .useful-links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.bg-white { background-color: #ffffff; }
.rounded-lg { border-radius: 0.75rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.p-6 { padding: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.transition-all { transition-property: all; transition-duration: 0.3s; transition-timing-function: ease; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.group:hover .text-blue-600{ color: #0056b3; }
.mb-4 { margin-bottom: 1rem; }
.rounded-full { border-radius: 9999px; }
.bg-gray-200 { background-color: #edf2f7; }
.text-gray-500 { color: #a0aec0; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-24{ width: 6rem; }
.h-24{ height: 6rem; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.text-blue-600 { color: #004080; }
.hover\:text-blue-800:hover { color: #002d59; }
.relative { position: relative; }
.inline-block { display: inline-block; }
.absolute { position: absolute; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.w-full { width: 100%; }
.h-0\.5 { height: 0.125rem; }
.bg-blue-600 { background-color: #004080; }
.transform { transform: translate(0); }
.scale-x-0 { transform: scaleX(0); }
.group-hover\:scale-x-100:hover { transform: scaleX(1); }
.transition-transform { transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease; }

/* Placeholder image style (from usefullinks.css) */
.placeholder-image {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    color: #a6a6a6;
    font-size: 1.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

/* Become member button (from both) */
.become-member-button{
    background-color: #004080;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}
.become-member-button:hover {
    background-color: #0056b3;
}

/* Responsive styles (merged) */
@media (max-width: 900px) {
    .container, main, .event-details-section, .event-gallery-section {
        max-width: 98vw;
        padding: 1rem 0.5rem 1.5rem 0.5rem;
    }
    header, nav {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
}
@media (max-width: 600px) {
    header h1, .section-title {
        font-size: 1.1rem;
    }
    main, .event-details-section, .event-gallery-section {
        padding: 0.7rem 0.2rem 1rem 0.2rem;
    }
    th, td {
        padding: 0.4rem 0.2rem;
        font-size: 0.97rem;
    }
    nav a {
        margin: 0 0.2rem;
        font-size: 0.97rem;
    }
    .gallery-slider {
        min-height: 120px;
    }
    .gallery-slide {
        max-height: 120px;
    }
    .become-member-button, button, input, select, textarea {
        font-size: 0.98rem;
        padding: 0.5rem 0.7rem;
    }
}

/* Utility classes (from style-main.css) */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-blue { color: #1976d2; }
.bg-light { background: #f4f6fb; }
.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 2px 8px rgba(0,0,0,0.07); }

/* Footer styles (from style-main.css) */
footer {
    background: #222;
    color: #fff;
    padding: 1.5rem 0 1rem 0;
    text-align: center;
    margin-top: 2.5rem;
}
footer a {
    color: #fff;
    text-decoration: underline;
    margin: 0 0.5rem;
    font-size: 1em;
}
footer a:hover {
    color: #90caf9;
}
