:root {
    --primary-color: #008B8B;
    /* Dark Cyan/Teal */
    --secondary-color: #f39c12;
    /* Orange accent */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #fff;
    --dark-bg: #2c3e50;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.card,
.paper-card {
    animation: fadeIn 0.8s ease forwards;
}

.btn-highlight:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}


/* Top Bar */
.top-bar {
    background: #004d40;
    /* Darker Green */
    color: #fff;
    padding: 5px 0;
    font-size: 0.9rem;
}

.top-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-links a {
    color: #fff;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 3px solid;
    border-image: linear-gradient(to right, #ea8685, #e66767, #f19066, #f3a683, #f7d794) 1;
    /* Reversed gradient for bottom */
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    gap: 5px;
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item span {
    font-weight: 500;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--primary-color);
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    background: #211510;
    color: #333;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid;
    border-image: linear-gradient(to right, #f7d794, #f3a683, #f19066, #e66767, #ea8685) 1;
    /* Colorful top border from image */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

.header-login-btn,
.mobile-login-btn {
    background: #ff006e;
    /* More vibrant pink/magenta from image */
    color: #fff !important;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-login-btn:hover,
.mobile-login-btn:hover {
    background: #fb5607;
    /* Orange transition */
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 0, 110, 0.3);
}

.desktop-only {
    display: block;
}

.mobile-login-btn {
    display: none;
}

.header-icon-badge {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    display: flex;
    align-items: center;
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #00b0ff;
    /* Blue from image */
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: 800;
}

.mobile-only {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 10px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #333;
    font-weight: 600;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.nav-links a:hover {
    background: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}

.btn-highlight {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 4px;
    padding: 8px 15px !important;
}

.btn-highlight:hover {
    background: #e67e22 !important;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown>a {
    cursor: pointer;
}

/* Header Search */
.header-search {
    display: flex;
    background: #f1f3f5;
    /* Light gray for white bg */
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 10px;
}

.header-search input {
    background: none;
    border: none;
    color: #333;
    /* Dark text */
    padding: 5px;
    outline: none;
    width: 150px;
}

.header-search input::placeholder {
    color: #999;
}

.header-search button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* Home Page */
.hero {
    background: #fff;
    padding: 40px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.hero h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--primary-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

/* Editorial Board Layout */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.member-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.member-info h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.member-role {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.member-details p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #666;
}

.member-details i {
    width: 20px;
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0 10px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 70%;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 800px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.btn-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #006666 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 139, 139, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-profile::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 139, 139, 0.4);
    background: linear-gradient(135deg, #009999 0%, var(--primary-color) 100%);
}

.btn-profile:hover::after {
    left: 100%;
}

.btn-profile:active {
    transform: translateY(-1px);
}

.modal-profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.modal-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-profile-info h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.modal-profile-info p {
    color: #666;
    margin-bottom: 5px;
}

.modal-profile-body {
    border-top: 1px solid #eee;
    padding-top: 20px;
    line-height: 1.8;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .nav-links {
        gap: 5px;
    }

    .nav-links a {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }

    .editorial-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {

   
    /* Navbar */
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    /* Add padding to body to prevent bottom nav overlap */
    body {
        padding-bottom: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-login-btn {
        display: block !important;
        padding: 8px 18px !important;
        font-size: 0.85rem;
        border-radius: 50px;
    }

    .header-right-actions {
        gap: 12px;
    }

    /* Overlay Background when menu is open */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 300px;
        /* Width of menu */
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
        backdrop-filter: blur(4px);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        /* Don't cover full screen, look better */
        max-width: 300px;
        height: 100vh;
        background: #fff;
        /* Keep white on mobile too */
        padding: 80px 1.5rem 2.5rem 1.5rem;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        width: 100% !important;
        text-align: left;
        padding: 0.8rem 1.2rem !important;
        margin: 2px 0 !important;
        border-radius: 12px;
        display: block !important;
        font-size: 1rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        display: block;
        padding: 5px 0 5px 25px;
        width: 100%;
        border-radius: 0 0 12px 12px;
    }

    .dropdown-content a {
        color: rgba(255, 255, 255, 0.8);
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem;
    }

    .header-search {
        width: 100%;
        margin-left: 0;
    }

    .header-search input {
        width: 100%;
    }

    /* Hero Section */
    .hero {
        padding: 20px;
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    /* Info Cards */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .card {
        padding: 15px;
    }

    /* Editorial Grid */
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .member-card {
        padding: 20px;
    }

    .member-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Footer */
    .main-footer {
        padding: 30px 0 10px;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Modal */
    .modal-content {
        width: 90%;
        padding: 20px;
        margin: 10% auto;
    }

    .modal-profile-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .modal-profile-photo {
        width: 120px;
        height: 120px;
    }

    /* Buttons */
    .btn-highlight {
        padding: 6px 12px !important;
        font-size: 0.9rem;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .brand-logo {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .hero {
        padding: 15px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .member-info h4 {
        font-size: 1.1rem;
    }

    .member-role {
        font-size: 0.8rem;
    }

    .member-details p {
        font-size: 0.85rem;
    }

    .footer-col h3 {
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-profile-photo {
        width: 100px;
        height: 100px;
    }

    .modal-profile-info h2 {
        font-size: 1.3rem;
    }
}