/* ========== GLOBAL STYLES ========== */
/* Page Properties - Body with background and font */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f0 100%);
    color: #2c3e50;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header styling with centered text */
header {
    background: linear-gradient(135deg, #1a5276, #2c3e50);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

/* Navigation Menu - Flexbox for horizontal layout */
nav {
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    padding: 14px 24px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #1abc9c;
    color: #1a5276;
    text-decoration: underline;
}

/* Container and Content */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Heading Styles */
h1, h2, h3 {
    color: #1a5276;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    border-left: 6px solid #1abc9c;
    padding-left: 1rem;
}

h2 {
    border-bottom: 3px solid #1abc9c;
    padding-bottom: 0.5rem;
    display: inline-block;
}

h3 {
    margin-top: 1.5rem;
    color: #2c3e50;
}

/* Text formatting classes */
.indent {
    text-indent: 2rem;
}

.italic {
    font-style: italic;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.highlight {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
    color: #856404;
}

/* Image Properties */
.web-image {
    border: 3px solid #1a5276;
    border-radius: 12px;
    margin: 1rem auto;
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.92;
}

.web-image:hover {
    transform: scale(1.02);
    opacity: 1;
    border-color: #1abc9c;
}

/* Thumbnail styles */
.thumb-gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.thumb {
    width: 120px;
    border: 2px solid #1a5276;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumb:hover {
    transform: scale(1.1);
    border-color: #1abc9c;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Table Formatting */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

caption {
    font-weight: bold;
    background-color: #1a5276;
    color: white;
    padding: 0.6rem;
    border-radius: 8px 8px 0 0;
    caption-side: top;
}

th, td {
    border: 1px solid #cbd5e1;
    padding: 12px;
    vertical-align: top;
}

th {
    background: linear-gradient(135deg, #e8f0f7, #d4e4f0);
    font-weight: bold;
    color: #1a5276;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Lists styling */
ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin: 0.5rem 0;
}

/* Card component */
.card {
    background: linear-gradient(135deg, #f0f9ff, #e0f0fa);
    border-left: 5px solid #1abc9c;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
}

/* Button styles */
.btn-top {
    display: inline-block;
    background: #1a5276;
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.btn-top:hover {
    background: #1abc9c;
    color: #1a5276;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, #1a5276, #2c3e50);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

footer a {
    color: #1abc9c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    
    nav a {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .thumb {
        width: 80px;
    }
}