/* charter_information.css */

/* --- MAIN CONTAINER --- */
.charter-main {
    padding-top: 180px; 
    padding-bottom: 100px; 
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 80vh; 
    display: flex;
    flex-direction: column;
}

/* --- HEADER SECTION --- */
.charter-header {
    text-align: center;
    margin-bottom: 50px; 
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 800; 
    display: flex;
    flex-direction: column; 
    gap: 15px;
}

/* "CЯAZY GAMMA IOTA" */
.top-line {
    font-size: 2.5rem;
    font-weight: 400; 
    letter-spacing: 2px;
    color: var(--old-gold); /* Old Gold */
}

/* The Red Backwards R */
.red-r {
    color: #D10000; /* Red */
    font-weight: 700;
}

/* "THE 75th HOUSE" */
.bottom-line {
    font-size: 3.5rem;
    font-weight: 800; 
    letter-spacing: 1px;
    color: white; /* White */
}

/* --- CONTENT SECTION --- */
.charter-content {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    flex-grow: 1;
}

.text-box {
    max-width: 1000px; 
    padding: 0 20px; 
    border: none;
    background: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.text-box p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem; 
    color: #e0e0e0;
    line-height: 1.8; 
    text-align: center; 
    margin: 0;
}

/* --- BUTTON STYLES (Read More & Show Less) --- */
.read-more-btn {
    background: none;
    border: none;
    color: var(--old-gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem; 
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.read-more-btn:hover {
    color: white;
    transform: scale(1.05); 
}

/* --- HIDDEN CONTENT STYLES (Smooth Transition) --- */
.more-content {
    max-height: 0;
    opacity: 0;
    visibility: hidden; 
    overflow: hidden; 
    width: 100%;
    text-align: center; 

    transition: 
        max-height 0.8s ease-in-out,
        opacity 0.8s ease-in-out,
        visibility 0.8s ease-in-out,
        margin-top 0.8s ease-in-out;
}

.more-content.show {
    max-height: 3000px; 
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.more-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem; 
    color: #cccccc;
    line-height: 1.8;
    text-align: center; 
    margin-bottom: 20px;
}

/* --- GOLD DIVIDER LINES --- */
.gold-line {
    width: 100%; 
    height: 2px;
    background-color: var(--old-gold);
    margin: 30px 0; 
    opacity: 0.6;
}

/* --- SLIDESHOW STYLES --- */
.info-slideshow-container {
    display: grid;
    grid-template-areas: "slide";
    max-width: 100%; 
    width: 100%;
    margin: 60px auto 40px auto; 
    position: relative;
}

.info-slide {
    grid-area: slide;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
}

/* DESKTOP HEIGHT (800px) */
.info-slide img {
    width: 100%;
    height: 800px; 
    object-fit: cover; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: block;
}

   /* Footer */
   .footer { width: 100%; background-color: #000000; color: #cccccc; padding: 60px 30px 20px 30px; border-top: 2px solid rgba(207, 181, 59, 0.3); font-family: 'Open Sans', sans-serif; z-index: 3; position: relative; }
   .footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
   .footer-col { flex: 1; min-width: 250px; }
   .footer-col h3 { font-family: 'Montserrat', sans-serif; color: var(--old-gold); font-size: 1.1rem; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1px; font-weight: 700; }
   .brand-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
   .footer-logo { width: 80px; height: auto; margin-bottom: 15px; }
   .brand-text h3, .brand-text h4 { margin: 0; color: white; font-weight: 700; }
   .brand-text h3 { font-size: 1rem; }
   .brand-text h4 { font-size: 0.8rem; font-weight: 400; color: #aaa; margin-top: 5px; }
   .links-col ul { list-style: none; padding: 0; }
   .links-col ul li { margin-bottom: 10px; }
   .links-col ul li a { color: #ccc; text-decoration: none; display: inline-block; transition: color 0.3s ease, transform 0.3s ease; }
   .links-col ul li a:hover { color: var(--old-gold); transform: translateY(-3px); }
   .contact-col p { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
   .contact-col i { color: var(--old-gold); margin-top: 3px; }
   .contact-col a { color: #ccc; text-decoration: none; transition: color 0.3s; }
   .contact-col a:hover { color: var(--old-gold); }
   .social-icons { display: flex; gap: 15px; }
   .social-icons a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: #222; color: var(--old-gold); border-radius: 50%; transition: all 0.3s ease; font-size: 1.2rem; text-decoration: none; }
   .social-icons a:hover { background-color: var(--old-gold); color: black; transform: translateY(-3px); }
   .footer-bottom { border-top: 1px solid #222; padding-top: 20px; text-align: center; font-size: 0.9rem; color: #777; }
   .footer-bottom a { color: #999; text-decoration: none; transition: color 0.3s; }
   .footer-bottom a:hover { color: var(--old-gold); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .top-line { font-size: 2rem; }
    .bottom-line { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .charter-main { padding-top: 140px; }
    .top-line { font-size: 1.5rem; }
    .bottom-line { font-size: 1.8rem; }
    .text-box p { font-size: 1.2rem; }
    .more-content p { font-size: 1rem; }
    .info-slide img { height: 450px; }
}

@media (max-width: 480px) {
    .charter-main { padding-top: 120px; padding-left: 12px; padding-right: 12px; }
    .top-line { font-size: 1.2rem; }
    .bottom-line { font-size: 1.4rem; }
    .text-box p { font-size: 1rem; }
    .more-content p { font-size: 0.95rem; }
    .info-slide img { height: 280px; }
    .floating-btn { width: 42px; height: 42px; font-size: 1rem; bottom: 15px; }
    .btn-home { left: 12px; }
    .btn-top { right: 12px; }
}

/* ========================================= */
/* FLOATING BUTTON STYLES                    */
/* ========================================= */

html {
    scroll-behavior: smooth;
}

.floating-btn {
    position: fixed;
    bottom: 30px; 
    width: 50px;
    height: 50px;
    background-color: var(--old-gold); 
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 2000; 
    cursor: pointer;

    /* Fade Transition */
    opacity: 0;             
    visibility: hidden;     
    transform: translateY(20px); 
    
    transition: 
        opacity 0.4s ease, 
        transform 0.4s ease, 
        visibility 0.4s, 
        bottom 0.1s linear, 
        background-color 0.3s;
}

.floating-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-btn:hover {
    background-color: white;
    color: var(--old-gold);
    box-shadow: 0 6px 18px rgba(207, 181, 59, 0.4);
    transform: scale(1.1) translateY(0);
}

.btn-home { left: 30px; }
.btn-top { right: 30px; }

@media (max-width: 768px) {
    .floating-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        font-size: 1rem;
    }
    .btn-home { left: 20px; }
    .btn-top { right: 20px; }
}