@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/poppins-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-700.woff2') format('woff2');
}

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

:root {
    --primary-navy: #1a2a4a;
    --primary-navy-dark: #0f1a2e;
/*    --accent-teal: #0d9488;*/
    --accent-teal: #3fc5aa;
/*    --accent-teal-dark: #0a7a6f;*/
    --accent-teal-dark: #3cab91;
    --accent-coral: #f472b6;
    --accent-coral-light: #fbcfe8;
    --white: #FFFFFF;
    --gray-light: #F8FAFC;
    --gray-medium: #E2E8F0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-navy);
    background-color: var(--white);
}

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

/* Header & Navigation */
header {
    background: white;
    color: var(--primary-navy);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-navy);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-navy);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
}

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

.nav-menu a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--accent-teal);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 42, 74, 0.85) 0%, rgba(15, 148, 136, 0.85) 100%), url('images/herobg.webp') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    background: var(--accent-coral);
    color: var(--primary-navy);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.cta-button:hover {
    background: var(--accent-coral-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--gray-light);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-navy);
}

/* Articles Section */
.article-controls {
    text-align: center;
    margin-bottom: 2rem;
}

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

.article-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    border: 1px solid var(--gray-medium);
}

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

.article-card h3 {
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.article-card .author {
    color: var(--accent-teal);
    font-style: italic;
    margin-bottom: 1rem;
}

.article-card .content {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.read-more {
    color: var(--accent-teal);
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.article-modal-content {
    max-width: 600px;
}

.article-modal-content h2 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.article-modal-content .author {
    color: var(--accent-teal);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.article-full-content {
    line-height: 1.8;
    color: var(--primary-navy);
    white-space: pre-wrap;
}

.close-article {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
}

.close-article:hover {
    color: #000;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: #c0392b;
}

/* Counselors Section */
.counselors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.counselor-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid var(--gray-medium);
}

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

.counselor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    object-fit: cover;
}

.counselor-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.event-card .event-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background-color: var(--gray-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.counselor-card h3 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.counselor-card .specialty {
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.counselor-card .bio {
    color: var(--primary-navy);
    line-height: 1.6;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid var(--gray-medium);
}

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

.event-card h3 {
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.event-card .date {
    color: var(--accent-teal);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-card .location {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.event-card .description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.register-btn {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.register-btn:hover {
    background: var(--accent-teal-dark);
}

/* Booking Section */
.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-medium);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
}

.btn-primary {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    background: var(--accent-teal-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--gray-medium);
}

.image-modal-content {
    max-width: 800px;
    text-align: center;
    padding: 1rem;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.image-modal-content p {
    margin-top: 1rem;
    color: var(--primary-navy);
    font-size: 1.1rem;
}

.close-image {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 10;
}

.close-image:hover {
    color: #000;
}

.close:hover,
.close-event:hover,
.close-counselor:hover,
.close-gallery:hover {
    color: #000;
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Link */
.admin-link {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Admin Specific Styles */
.admin-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-teal) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn,
.admin-user button.logout-btn {
    background: var(--accent-coral);
    color: var(--primary-navy);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover,
.admin-user button.logout-btn:hover {
    background: var(--accent-coral-light);
    text-decoration: none;
}

.admin-main {
    padding: 2rem 0;
    background: var(--gray-light);
    min-height: calc(100vh - 80px);
}

.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-title-row h1 {
    margin: 0;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-medium);
    position: relative;
    align-items: center;
}

.admin-mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.admin-mobile-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-navy);
    border-radius: 2px;
    transition: all 0.3s;
}

.admin-tabs-dropdown {
    display: flex;
    gap: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary-navy);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.tab-btn.active {
    color: var(--accent-teal);
    border-bottom-color: var(--accent-teal);
}

.tab-btn:hover {
    color: var(--accent-teal);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-list {
    display: grid;
    gap: 1rem;
}

.admin-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.3s;
    border: 1px solid var(--gray-medium);
}

.admin-item:hover {
    transform: translateY(-2px);
}

.item-content {
    flex: 1;
}

.item-content h3 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.item-meta {
    color: var(--accent-teal);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.item-description {
    color: var(--primary-navy);
    line-height: 1.6;
}

.registrations {
    color: var(--accent-teal);
    font-weight: 500;
    margin-top: 0.5rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.btn-edit {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-edit:hover {
    background: var(--accent-teal-dark);
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-delete:hover {
    background: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--gray-medium);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 20px;
        color: var(--primary-navy);
    }
    
    .nav-menu a:hover {
        background: var(--gray-light);
        color: var(--accent-teal);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-title-row {
        flex-direction: row;
        width: 100%;
    }

    .admin-mobile-menu {
        display: flex;
    }
    
    .admin-tabs-dropdown {
        display: none;
        flex-direction: column;
        background: white;
        border: 1px solid var(--gray-medium);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 100;
        padding: 1rem;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .admin-tabs-dropdown.active {
        display: flex;
    }
    
    .admin-tabs-dropdown .tab-btn {
        padding: 0.75rem 1rem;
        text-align: left;
        border-bottom: 1px solid var(--gray-light);
        border-radius: 4px;
    }
    
    .admin-tabs-dropdown .tab-btn:last-child {
        border-bottom: none;
    }
    
    .admin-tabs-dropdown .tab-btn.active {
        background-color: var(--accent-teal);
        color: white;
        border-bottom-color: var(--accent-teal);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .item-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

.image-preview {
    margin-top: 10px;
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed var(--gray-medium);
    padding: 10px;
}

.image-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
}

.image-preview:empty::before {
    content: 'No image selected';
    color: #999;
    font-size: 0.9rem;
    display: block;
    text-align: center;
    padding: 40px 0;
}

.admin-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
}

.admin-item-with-image {
    display: flex;
    align-items: flex-start;
}

.item-image-container {
    flex-shrink: 0;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-select,
.filter-input {
    padding: 10px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: white;
    min-width: 200px;
}

.filter-input {
    min-width: 180px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--accent-teal);
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-select,
    .filter-input {
        width: 100%;
    }
}
