/* /Users/audio/Projects/UBRU.AC.TH 2025/css/symbol-cards.css */

/* General styling for sections within symbol_praratcharuljakorn.php */
.symbol-subtitle {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--ubru-pink); /* Changed to pink as requested */
    font-size: 1.8rem;
    font-weight: 600;
}

/* Styles for the flower and tree card container */
.flower-tree-card-container {
    display: flex;
    justify-content: center; /* Center the card horizontally */
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Wrapper for the entire symbol content */
.symbol-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

/* Main logo block styling */
.symbol-logo-block {
    text-align: center;
    margin-bottom: 40px;
}

.main-symbol-img {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.symbol-description-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
    text-indent: 40px; /* Indent for paragraph */
    color: #555;
}

.title_pink_thai {
    color: var(--ubru-pink);
    font-weight: bold;
}

/* Color meaning grid (for the 5 colors of the royal emblem) */
.color-meaning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.color-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.color-card img.color-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.color-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* University colors image display */
.university-colors {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.color-scheme-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Download logo section */
.logo-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 0 15px;
}

/* General symbol card styling */
.symbol-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 700px; /* Adjust max-width as needed */
    width: 100%;
    margin: 0 auto; /* Center the card if container is wider */
}

.symbol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.logo-box {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.logo-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Specific styles for the flower-tree card images */
.flower-tree-card .card-images {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between images */
    margin-bottom: 20px;
    height: 220px; /* Set a fixed height for the image container */
    overflow: hidden; /* Hide any overflow if images are not perfectly sized */
}

.flower-tree-card .card-img {
    width: 50%; /* Each image takes half the width of the container */
    height: 100%; /* Make images take full height of card-images container */
    object-fit: cover; /* Crop images to cover the area without distortion */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.flower-tree-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--ubru-pink);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #d81b60; /* Darker pink */
}

.download-btn i {
    margin-right: 8px;
}

/* Specific left border for the university's official colors */
.color-card.color-gray {
    border-left: 5px solid #808080; /* Using the standard gray color */
}

.color-card.color-pink {
    border-left: 5px solid var(--ubru-pink); /* Using the defined UBRU pink color */
}


/* General styling for icons within color cards (applies to img and div with .color-icon) */
.color-card .color-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    /* Override default color-swatch styles for icon appearance */
    border: none;
    box-shadow: none;
    border-radius: 8px; /* To match the image icons which are usually square/rectangular with slight radius */
    display: flex; /* Ensure flex properties for centering if it's a div */
    justify-content: center;
    align-items: center;
    /* If the color-swatch itself has content, it will be centered */
}

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0; /* Prevent shrinking */
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.gray-swatch {
    background-color: #808080; /* Standard gray */
}

.pink-swatch {
    background-color: var(--ubru-pink); /* Use CSS variable */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flower-tree-card .card-images {
        flex-direction: column; /* Stack images vertically on small screens */
        height: auto; /* Auto height when stacked */
        gap: 10px;
    }
    .flower-tree-card .card-img {
        width: 80%; /* Make images wider when stacked */
        height: 180px; /* Fixed height for individual images when stacked */
        margin: 0 auto; /* Center images */
    }
    .symbol-subtitle {
        font-size: 1.5rem;
    }

    .symbol-description-text {
        text-indent: 0; /* Remove indent on small screens */
        text-align: left;
        padding: 0 10px;
    }

    .color-meaning-grid {
        grid-template-columns: 1fr; /* Single column for color cards */
    }

    .logo-grid-container {
        grid-template-columns: 1fr; /* Single column for logo downloads */
    }

    .logo-box {
        width: 120px;
        height: 120px;
    }
}