/* 
 * ISCIT 2026 Website Styles
 * International Symposium on Communications and Information Technologies
 */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 15px;
}

/* Prevent awkward spacing in narrow columns (esp. English text) */
.prose {
    text-align: left;
    line-height: 1.8;
    text-wrap: pretty;
    hyphens: auto;
    overflow-wrap: break-word;
}

/* Topics list: use arrow bullets like the reference */
.topics-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.topics-list li {
    position: relative;
    padding-left: 18px;
    margin: 4px 0;
}

.topics-list li::before {
    content: "➤";
    position: absolute;
    left: 0;
    top: 0;
    color: #1e5aa8;
}

a {
    color: #1e5aa8;
    transition: color 0.3s ease;
}

a:hover {
    color: #165088;
}

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

/* ===== Layout ===== */
.row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

.columns {
    padding: 0 15px;
    float: left;
    width: 100%;
}

.small-12 { width: 100%; }
.medium-4 { width: 33.33333%; }
.medium-6 { width: 50%; }
.medium-8 { width: 66.66667%; }
.large-3 { width: 25%; }
.large-5 { width: 41.66667%; }

/* ===== Navigation ===== */
#navigation {
    background-color: #1e5aa8;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sticky {
    position: -webkit-sticky;
    position: sticky;
}

.top-bar {
    background-color: #1e5aa8;
    width: 100%;
}

.title-area {
    float: left;
}

.title-area .name h1 {
    margin: 0;
    padding: 0;
}

.title-area .name h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px 20px;
    display: block;
}

.toggle-topbar {
    display: none;
    float: right;
    cursor: pointer;
}

.toggle-topbar a {
    color: white;
    padding: 15px 20px;
    display: block;
    text-decoration: none;
}

.top-bar-section {
    clear: both;
}

.top-bar-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-section ul li {
    display: inline-block;
    position: relative;
}

.top-bar-section ul.left {
    float: left;
}

.top-bar-section ul.right {
    float: right;
}

.top-bar-section ul li a {
    color: white;
    padding: 15px 18px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s;
}

.top-bar-section ul li a:hover,
.top-bar-section ul li.active a {
    background-color: #165088;
}

.top-bar-section ul li.divider {
    border-left: 1px solid rgba(255,255,255,0.2);
    height: 50px;
    width: 1px;
    padding: 0;
    margin: 0;
}

/* Dropdown Menu */
.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #165088;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1001;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.has-dropdown .dropdown li {
    display: block;
    width: 100%;
}

.has-dropdown .dropdown li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.has-dropdown .dropdown li a:hover {
    background-color: #1e5aa8;
}

/* ===== Masthead ===== */
#masthead {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/p1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 0 50px;
    color: white;
    position: relative;
}

#masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30,90,168,0.7) 0%, rgba(22,80,136,0.7) 100%);
}

#masthead .row {
    position: relative;
    z-index: 1;
}

/* ===== Main Content ===== */
#header-home {
    background-color: white;
    padding: 40px 0;
}

.info-box {
    background-color: #1e5aa8;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.info-box h3 {
    border-bottom: 2px solid white;
    padding-bottom: 10px;
}

.topic-section {
    margin-bottom: 20px;
}

.widget-box {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== Buttons ===== */
.button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #1e5aa8;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #165088;
    transform: translateY(-2px);
}

.button.large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.button.tiny {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.button.radius {
    border-radius: 5px;
}

.button.alert {
    background-color: #FF4500;
}

.button.alert:hover {
    background-color: #CC3700;
}

/* ===== Footer ===== */
#footer-content {
    background-color: #2a2a2a;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

#footer h5 {
    color: white;
    margin-bottom: 15px;
}

#footer ul {
    list-style: none;
    padding: 0;
}

#footer ul li {
    margin: 8px 0;
}

#footer a {
    color: #ccc;
    text-decoration: none;
}

#footer a:hover {
    color: #FFD700;
}

#subfooter {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.t10 { margin-top: 10px; }
.t30 { margin-top: 30px; }
.t60 { margin-top: 60px; }

.b10 { margin-bottom: 10px; }
.b30 { margin-bottom: 30px; }
.b60 { margin-bottom: 60px; }

.shadow-black {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.no-bullet {
    list-style: none;
    padding: 0;
}

.font-size-h3 {
    font-size: 1.5rem;
}

.show-for-small {
    display: none;
}

.large-offset-1 {
    margin-left: 8.33333%;
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 1024px) {
    .row {
        max-width: 100%;
        padding: 0 20px;
    }
    
    #masthead h1 {
        font-size: 32px !important;
    }
    
    #masthead h2 {
        font-size: 22px !important;
    }
    
    #masthead h3 {
        font-size: 18px !important;
    }
}

@media screen and (max-width: 768px) {
    /* Make columns stack */
    .medium-4,
    .medium-6,
    .medium-8,
    .small-6,
    .large-3,
    .large-5 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .large-offset-1 {
        margin-left: 0;
    }
    
    /* Mobile Navigation */
    .show-for-small {
        display: block;
    }
    
    .toggle-topbar {
        display: block;
    }
    
    .top-bar-section {
        display: none;
        clear: both;
        width: 100%;
    }
    
    .top-bar-section.active {
        display: block;
    }
    
    .top-bar-section ul li {
        display: block;
        width: 100%;
    }
    
    .top-bar-section ul.left,
    .top-bar-section ul.right {
        float: none;
    }
    
    .top-bar-section ul li.divider {
        display: none;
    }
    
    .has-dropdown .dropdown {
        position: static;
        display: none;
        background-color: #0f3a6f;
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    /* Masthead adjustments */
    #masthead {
        padding: 20px 0 30px;
        background-attachment: scroll;
    }
    
    #masthead h1 {
        font-size: 28px !important;
    }
    
    #masthead h2 {
        font-size: 18px !important;
    }
    
    #masthead h3 {
        font-size: 16px !important;
    }
    
    #masthead img {
        height: 40px !important;
        margin: 5px 0 !important;
    }
    
    /* Button adjustments */
    .button.large {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Footer adjustments */
    #footer-content {
        text-align: center;
    }
    
    #subfooter-right {
        text-align: center !important;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    #masthead h1 {
        font-size: 24px !important;
    }
    
    #masthead h2 {
        font-size: 16px !important;
    }
    
    #masthead h3 {
        font-size: 14px !important;
    }
    
    .info-box {
        padding: 15px;
    }
}

/* ===== Print Styles ===== */
@media print {
    #navigation,
    #footer-content,
    .button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}
