/*
Theme Name: ICCRET 2026 Single Page
Theme URI: https://yourdomain.com/
Author: Your Name
Author URI: https://yourdomain.com/
Description: A single-page WordPress theme for ICCRET 2026 with smooth scrolling and Gutenberg compatibility.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iccret2026-singlepage
Tags: one-page, responsive, conference, Gutenberg
*/

/* Base Styling */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #e6f2ff, #ffffff); /* sky blue to white */
    background-attachment: fixed; /* keeps gradient fixed while scrolling */
    background-size: cover;
    transition: background 1s ease-in-out;
}

body:hover {
    background: linear-gradient(135deg, #ffffff, #e6f2ff);
}

section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}
header, footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

nav {
    background: #003366;
    text-align: center;
    padding: 15px;
    position: sticky;  /* stays visible but respects banner */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}
iframe {
    width: 100%;
    height: 400px;
    border: 0;
    margin-top: 20px;
}

/* Custom Banner Styling */
header.conference-header {
    background: none;
    padding: 0;
    margin: 0;
    border: none;
    max-width: 100%;
}
.conference-banner {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* Typography */
body, section, p, li {
    text-align: justify;
}
.highlight-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #004080;
    margin-top: 20px;
}

/* Layout: Main container with sidebar */
.main-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.content-area {
    flex: 3;
}
.sidebar {
    flex: 1;
    background: #f5f5f5;
    padding: 20px;
    border-left: 2px solid #ddd;
    position: sticky;
    top: 80px; /* adjust to match header/nav height */
    height: fit-content;
}
.sidebar h2 {
    margin-top: 0;
    text-align: center;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin: 10px 0;
}

/* Responsive Map */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  height: 0;
  margin-top: 20px;
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery Styling */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item img:hover {
  transform: scale(1.05);
}

/* Important Dates Section */
#important-dates {
    background: rgba(255, 255, 255, 0.6);
    padding: 60px 20px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
    transition: background 1s ease-in-out;
}

#important-dates h2 {
    color: #004080;
    margin-bottom: 25px;
    font-size: 2.2em;
    font-weight: bold;
}

#important-dates p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #333;
}

.dates-list {
    list-style: none;
    padding: 0;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

.dates-list li {
    margin: 12px 0;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dates-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.dates-list strong {
    color: #003366;
}

#important-dates .note {
    margin-top: 25px;
    font-style: italic;
    color: #cc0000;
    font-weight: bold;
}

/* Global Table Styling - Matches Important Dates Look */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* space between rows */
    margin: 20px auto;
    font-size: 1.05em;
    background: transparent;
}

table th, table td {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    text-align: left;
    color: #003366;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

table th {
    font-weight: bold;
    background: rgba(0, 64, 128, 0.1); /* light blue for headers */
}

table tr:hover td {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

#dates .note {
    margin-top: 20px;
    font-style: italic;
    color: #cc0000;
    font-weight: bold;
    text-align: center;
}

/* === Modern UI Enhancements === */

/* Modern Buttons */
button, .btn, input[type="submit"], .wp-block-button__link {
    background: linear-gradient(135deg, #004080, #0073e6);
    color: #fff !important;
    padding: 12px 24px;
    font-size: 1.05em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #0073e6, #004080);
}

/* Section Headings */
section h2 {
    font-size: 2.4em;
    margin-bottom: 20px;
    color: #003366;
    text-align: center;
    position: relative;
}

section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #004080, #0073e6);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Card-like Boxes */
.card, .content-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    margin: 15px 0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .content-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Modern Navbar Links */
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    transition: color 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffcc00;
}

/* Footer Styling */
footer {
    background: #00264d;
    color: #ddd;
    padding: 25px 15px;
    text-align: center;
    font-size: 0.95em;
    border-top: 4px solid #004080;
}

footer a {
    color: #66b3ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

/* Table Header Contrast Fix */
table th {
    font-weight: bold;
    background: #004080; /* deep blue */
    color: #ffffff;      /* white text for readability */
    text-align: center;
}

/* Subtle Hover Effect for Tables */
table tr td {
    transition: background 0.3s ease;
}

table tr:hover td {
    background: rgba(0, 115, 230, 0.08); /* light sky-blue highlight */
}

/* Modern CFP & Registration Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    font-size: 1.05em;
    margin: 20px auto;
}

table thead tr {
    background: #004080;
    color: #ffffff;
}

table th, table td {
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 6px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

table th {
    font-weight: bold;
    text-align: center;
}

table tr:hover td {
    background: rgba(0, 115, 230, 0.08); /* subtle hover */
}

/* Table Header Styling Fix */
table thead tr {
    background: #004080;
    color: #ffffff;
}

table th {
    font-weight: bold;
    text-align: center;
    background: #004080;
    color: #ffffff;
}

/* Striped Rows for Tables */
table tbody tr:nth-child(odd) td {
    background: #f9fcff; /* very light blue */
}

table tbody tr:nth-child(even) td {
    background: #ffffff;
}

/* Hover Highlight for Striped Tables */
table tbody tr:hover td {
    background: rgba(0, 115, 230, 0.12) !important; /* stronger light blue on hover */
}



/* ===== ICCRET: About the University sub-section ===== */
#about-university.about-university { padding: 40px 0; background: transparent; }
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.about-image img.about-photo {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.about-text h2 { font-size: 32px; color: #0d8adf; margin-bottom: 10px; }
.about-text h3 { font-size: 20px; margin: 8px 0; color: #0b6da6; }
.about-text p { font-size: 16px; line-height: 1.7; margin-bottom: 12px; color: #555; }
.dept-note { margin-top: 10px; font-weight:600; color:#2b4b5c; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; text-align:center; margin-bottom: 18px; }
  .about-image img { max-width: 90%; }
  .about-text h2 { text-align:center; font-size: 28px; }
}
