/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ee4a62;
    --primary-hover: #d83a50;
    --secondary-color: #4a6741;
    --accent-color: #1ab69d;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --text-color: #37474f;
    --border-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --header-height: 70px;
    --white: white;
    --dark: #333;
    --primary: #ee4a62;
    --primary-dark: #d83a50;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-heading h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.underline {
    height: 3px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    padding: 12px 20px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    max-width: 1120px;
    width: 90%;
    margin: 20px auto;
    position: relative;
    z-index: 100;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-item {
    display: flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 50px;
    transition: var(--transition);
}
.nav-item i {
    margin-right: 6px;
    font-size: 1.1rem;
}
.nav-item:hover, .nav-item.active {
    background-color: #ffdddd;
    color: var(--primary);
}
.cta-button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}
.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--white);
}
/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}
/* Media queries for responsive navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        padding: 20px;
        border-radius: 0 0 20px 20px;
        box-shadow: var(--shadow);
        display: none;
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        padding: 12px;
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .navbar {
        flex-wrap: wrap;
        gap: 10px;
        border-radius: 20px;
    }

    .cta-button {
        margin-left: auto;
    }
}

/* News Ticker */
.news-ticker {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker-move {
    white-space: nowrap;
    position: relative;
    animation: ticker 20s linear infinite;
    font-weight: 500;
    font-size: 16px;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Header Section */
.header-section {
    background-color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-section h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.submission-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 200px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(238, 74, 98, 0.3);
}

.submit-btn i {
    font-size: 18px;
}

/* Conference Details Section */
.conference-details {
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.conference-details h3 {
    color: #555;
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-container {
    display: flex;
    position: relative;
    max-width: 300px;
    flex: 1;
}

.search-container input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-speed) ease;
}

.search-container input:focus {
    border-color: var(--primary-color);
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.filter-container {
    flex: 0 0 auto;
}

.filter-container select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    background-color: white;
    min-width: 180px;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.papers-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
}

.papers-table th, 
.papers-table td {
    padding: 14px 12px;
    text-align: left;
}

.papers-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

.papers-table tr {
    border-bottom: 1px solid #eee;
    transition: background-color var(--transition-speed) ease;
}

.papers-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.papers-table tr:hover {
    background-color: #f2f2f2;
}

.papers-table a {
    color: #1155cc;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.papers-table a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.tag.scopus {
    background-color: rgba(74, 103, 65, 0.15);
    color: var(--secondary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination button:hover:not(:disabled) {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageNumbers {
    display: flex;
    gap: 5px;
}

.page-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.page-number:hover {
    background-color: #f5f5f5;
}

.page-number.active {
    background-color: var(--primary-color);
    color: white;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.image-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    background-color: white;
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 15px;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
}

.image-card:hover .gallery-img {
    transform: scale(1.05);
}

.image-card:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay span {
    font-weight: 500;
    display: block;
}

/* Notice Section */
.notice-section {
    padding: 30px 0;
    background-color: #fff7f7;
}

.notice-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--box-shadow);
}

.notice-icon {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.notice-text {
    font-size: 15px;
    color: #555;
}

/* Footer Styles */
.footer {
    background: #222;
    color: #f5f5f5;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), #f1c40f, #e74c3c);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-info {
    flex: 1.5;
    min-width: 250px;
}

.footer-logo h2 {
    color: #fff;
    font-weight: 700;
    margin: 0 0 1.2rem 0;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.footer-logo h2 span {
    color: var(--primary-color);
}

.footer-logo h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #ffffff;
    margin-top: 5px;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer h3 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #fbfbfb;
}

.footer p {
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    margin-right: 0.8rem;
    background: rgba(52, 152, 219, 0.2);
    color: #e7e1e2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text {
    font-size: 14px;
}

.contact-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.newsletter {
    width: 100%;
    margin-top: 1.5rem;
}

.newsletter form {
    display: flex;
    max-width: 100%;
}

.newsletter input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0 1.2rem;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.newsletter button:hover {
    background: #e3e3e3;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* Media Queries for Responsiveness */

/* Large devices (desktops) */
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

/* Medium devices (tablets) */
@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    .footer-container {
        gap: 20px;
    }
}

/* Small devices (landscape phones) */
@media (max-width: 768px) {
    .container {
        max-width: 576px;
    }
    
    .header-section h1 {
        font-size: 2rem;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .header-section {
        padding: 40px 0;
    }
    
    .header-section h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .conference-details {
        padding: 20px 15px;
    }
    
    .papers-table th, 
    .papers-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .section-heading h2 {
        font-size: 1.6rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-info, 
    .footer-contact, 
    .footer-social {
        width: 100%;
        min-width: 100%;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

.submission-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
    box-sizing: border-box;
}

.submission-guidelines {
    width: 100%;
}

.submission-guidelines h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
    width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.submission-guidelines h3 a {
    color: var(--primary-color);
    text-decoration: underline;
    word-break: break-all;
}

.submission-guidelines h3 a:hover {
    color: var(--primary-hover);
}

.submission-type {
    width: 100%;
}

.submission-type h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.submission-type ul {
    margin: 15px 0;
    padding-left: 20px;
    width: 100%;
}

.submission-type ul li {
    margin-bottom: 5px;
    color: var(--text-color);
    word-wrap: break-word;
}

.submission-type p {
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.6;
    word-wrap: break-word;
}

.note-section {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.note-section p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    word-wrap: break-word;
}

.note-section strong {
    color: #6c4500;
}