﻿/* ---------------------------------------------------
   GLOBAL
--------------------------------------------------- */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 600;
}

/* ---------------------------------------------------
   HEADER
--------------------------------------------------- */
.header {
    background: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.header .logo img {
    height: 90px;
    width: auto;
}

.menu a {
    margin-left: 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.menu a:hover {
    color: #0077cc;
}

/* ---------------------------------------------------
   HERO (26th Illustrated)
--------------------------------------------------- */
.hero {
    position: relative;
    height: 260px;
    background-image: url('../images/hero-26.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid #0077cc;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.15)
    );
}

.hero-content {
    position: absolute;
    bottom: 25px;
    left: 35px;
    color: white;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* ---------------------------------------------------
   SECTIONS (Premium)
--------------------------------------------------- */
.section {
    padding: 20px 15px;
}

.section h2 {
    margin-bottom: 10px;
    font-size: 20px;
    border-left: 4px solid #0077cc;
    padding-left: 8px;
}

.section-img-wrapper img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* ---------------------------------------------------
   GRID (Premium Cards)
--------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 6px;
}

.card-icon span {
    font-size: 14px;
    font-weight: bold;
}

/* ---------------------------------------------------
   FIX: Center icons + text in index cards
--------------------------------------------------- */
.card-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    margin: 0 auto;
}

.card-icon span {
    display: block;
    text-align: center;
    margin-top: 6px;
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
.footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    font-size: 13px;
}

/* ---------------------------------------------------
   COMPACT GRID FOR RSS PAGES
--------------------------------------------------- */
#articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 15px;
}

.article {
    background: white;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.2s;
}

.article:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.article img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.article h3 {
    font-size: 15px;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.article p {
    font-size: 13px;
    color: #444;
    margin: 0 0 10px 0;
}

.article a {
    margin-top: auto;
    font-size: 13px;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.external-links {
    margin-top: 10px;
}

.external-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

.external-links a img.ext-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ---------------------------------------------------
   PHOTO26 — Vertical List with Colored Dots
--------------------------------------------------- */
.section .menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.section .menu a {
    display: flex;
    align-items: center;
    font-size: 16px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 6px 0;
}

.section .menu a::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0077cc;
    margin-right: 10px;
    flex-shrink: 0;
}

.section .menu a:hover {
    color: #0077cc;
}

/* ---------------------------------------------------
   GLOBAL MOBILE FONT FIX (FINAL)
--------------------------------------------------- */
@media (max-width: 1024px) {

    /* Base scaling */
    body {
        font-size: 22px !important;
        line-height: 1.6 !important;
    }

    /* Hero */
    .hero {
        height: 180px !important;
    }
    .hero-content h1 {
        font-size: 26px !important;
    }

    /* Section titles */
    h2 {
        font-size: 26px !important;
    }

    /* Photo26 menu */
    .section .menu a {
        font-size: 22px !important;
        padding: 10px 0 !important;
    }

    /* Albums */
    .album {
        padding: 18px !important;
    }
    .album img {
        width: 130px !important;
        height: 130px !important;
    }
    .album span {
        font-size: 22px !important;
        font-weight: 700 !important;
    }

    /* Gallery grid */
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }

    .card-icon img {
        width: 60px !important;
        height: 60px !important;
    }

    .card-icon span {
        font-size: 20px !important;
        font-weight: 700 !important;
    }
}
