﻿/* Card Styles */
.card-header {
    background-color: rgb(222, 222, 222);
    padding: 15px 0;
    text-align: center;
    /* (NEW) Add this to ensure it's not constrained by other styles */
    width: 100%;
}

.card-title {
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
    color: rgb(0, 0, 0);
    /* (NEW) You can set a base size here */
    font-size: 1.5rem;
}

.website-highlight {
    color: rgb(100, 100, 255);
}

.description-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    line-height: 1.5;
    margin: 0;
    color: rgb(0, 0, 0);
}

/* Image Container Styles (for Index Page) */
.image-container {
    width: 100%;
    margin: 20px 0;
}

.image-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image-item {
    position: relative;
    flex: 1 1 220px;
    box-sizing: border-box;
    padding: 10px;
    margin: 0;
    transition: transform 0.3s ease, z-index 0s 0.3s, opacity 0.3s ease;
    overflow: hidden;
    opacity: 0.9;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
}

    .image-item:hover {
        transform: scale(1.1);
        z-index: 10;
        opacity: 1.0;
        background-color: rgba(222, 166, 50, 0.7);
    }

    .image-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }

.image-text {
    text-align: left;
    margin: 10px;
}

    .image-text h2 {
        margin: 5px 0;
        font-size: 16px;
        line-height: 1.3;
        color: rgb(0, 0, 0);
    }

    .image-text strong {
        color: rgb(0, 50, 150);
    }

/* Section Divider */
.section-divider {
    border: none;
    height: 5px;
    background-color: rgb(50, 150, 200);
    margin-top: 20px;
}

/* Frozen Header Styles */
.frozen-header {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgb(222, 222, 222);
    opacity: 1;
    margin: 0;
    padding: 15px 0;
    text-align: center;
    box-sizing: border-box;
}

    .frozen-header h2 {
        font-weight: bold;
        letter-spacing: 2px;
        margin: 0;
        color: rgb(0, 0, 0);
    }

    .frozen-header .website-highlight {
        color: rgb(100, 100, 255);
    }

/* ======================================================== */
/* --- (NEW) STYLES FOR EVALUATOR PROFILE PAGE --- */
/* ======================================================== */

/* Style for the link in the main title */
.website-link {
    color: rgb(100, 100, 255); /* Match your highlight color */
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

    .website-link:hover {
        text-decoration: underline;
    }

/* (UPDATED) Main Content Layout */
.profile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: stretch;
    margin: 1rem auto; /* Creates centering */
    padding: 0 1rem; /* Padding for mobile */
    width: 95%; /* Constrains content */
    max-width: 1600px; /* Max width */
}

/* (UPDATED) LEFT COLUMN (FRAME) */
.profile-image-column {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    margin: 0 auto;
}

/* (UPDATED) RIGHT COLUMN (TITLE + BUTTONS) */
.profile-details-column {
    flex: 1.5;
    min-width: 320px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fdfdfd;
}

/* (NEW) Text styles for Right Column */
.evaluator-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.evaluator-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.evaluator-institution {
    font-size: 1.3rem;
    font-weight: 400;
    color: #555;
    margin-top: 0;
}

.details-divider {
    border: 0;
    height: 2px;
    /* Golden divider */
    background-image: linear-gradient(to right, rgba(184, 134, 11, 0.2), rgba(184, 134, 11, 0.8), rgba(184, 134, 11, 0.2));
    margin: 1rem 0;
}

/* Link Button Boxes */
.profile-link-box {
    margin-bottom: 1.5rem;
    padding: 1.0rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

    .profile-link-box:last-of-type {
        margin-bottom: 0;
    }

    .profile-link-box:hover {
        box-shadow: 0 6px 12px rgba(0,0,0,0.08);
        transform: translateY(-3px);
        border-color: #c0c0c0;
    }

.profile-btn {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 0.75rem 1.0rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-bottom: 0.75rem;
}

    .profile-btn:hover {
        background-color: #0056b3;
        color: #ffffff;
        text-decoration: none;
    }

.link-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* ===============================================
--- (UPDATED) 7 ARTFUL FRAME STYLES (NO ANIMATION) ---
=============================================== */

/* Base container for all frames */
.css-frame-container {
    width: 100%;
    position: relative;
    line-height: 0; /* Fixes image spacing */
    transition: all 0.3s ease;
}

    .css-frame-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: relative; /* Sits on top of pseudo-elements */
        z-index: 2;
    }

/* --- FRAME STYLE 1: "The Grandeur" (Gold & Red) --- */
.frame-style-1 {
    padding: 12px; /* This is the outer gold layer's padding */
    border-radius: 8px;
    /* (UPDATED) ADDED ARTFUL STRIPES */
    background:
    /* Layer 1: Subtle diagonal stripes */
    repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.1) 0px, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 6px ),
    /* Layer 2: Base gold gradient */
    linear-gradient(145deg, #FFF8C7, #E4C562, #B8860B 40%, #B8860B 60%, #E4C562, #FFF8C7);
    border: 4px solid;
    border-color: #E4C562 #B8860B #B8860B #E4C562;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 10px 2px rgba(0,0,0,0.5);
}

    .frame-style-1 img {
        border: 16px solid #4a0f18; /* Deep, rich blood-red */
        box-shadow: inset 0 0 12px 6px rgba(0,0,0,0.65);
    }


/* --- FRAME STYLE 2: "The Imperial" (Dark Wood & Gold Leaf) --- */
.frame-style-2 {
    padding: 12px; /* This is the dark wood layer */
    border-radius: 4px;
    /* (UPDATED) ADDED ARTFUL STRIPES (Subtle wood grain) */
    background:
    /* Layer 1: Fine vertical pinstripes */
    repeating-linear-gradient( 90deg, rgba(0, 0, 0, 0.2) 0px, rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 5px ),
    /* Layer 2: Base wood gradient */
    linear-gradient(145deg, #5D4037, #3E2723);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4), inset 0 0 10px 4px rgba(0,0,0,0.5);
}

    .frame-style-2 img {
        border: 12px solid;
        /* (UPDATED) ADDED ARTFUL STRIPES (Twisted gold) */
        border-image-source: repeating-linear-gradient( 45deg, #FFD700, #FFD700 5px, #B8860B 5px, #B8860B 10px );
        border-image-slice: 1;
        box-shadow: inset 0 0 8px 3px rgba(0,0,0,0.4);
    }


/* --- FRAME STYLE 3: "The Luminary" (Silver & Blue Velvet) --- */
.frame-style-3 {
    padding: 20px; /* This is the main silver frame */
    /* (UPDATED) ADDED ARTFUL STRIPES (Brushed metal effect) */
    background:
    /* Layer 1: Fine brushed lines */
    repeating-linear-gradient( 0deg, rgba(255, 255, 255, 0.5) 0px, rgba(255, 255, 255, 0.5) 1px, rgba(0, 0, 0, 0.1) 1px, rgba(0, 0, 0, 0.1) 2px ),
    /* Layer 2: Base silver gradient */
    linear-gradient(145deg, #ffffff, #d4d4d4, #a0a0a0, #d4d4d4, #ffffff);
    border: 3px solid;
    border-color: #f5f5f5 #888 #888 #f5f5f5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2), inset 0 0 5px 1px rgba(255,255,255,0.8);
}

    .frame-style-3 img {
        border: 14px solid #00003E; /* Deep Navy/Royal Blue */
        box-shadow: inset 0 0 10px 4px rgba(0,0,0,0.5);
    }

/* --- FRAME STYLE 4: "The Royal Crown" (Static) --- */
.frame-style-4 {
    position: relative;
    padding: 40px;
    /* (UPDATED) ADDED ARTFUL PATTERN (Hammered gold) */
    background:
    /* Layer 1: Hammered dot pattern */
    repeating-radial-gradient( circle at 10px 10px, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 1px, transparent 1px, transparent 10px ),
    /* Layer 2: Base gold gradient */
    linear-gradient(135deg, #ffd700 0%, #ffec8b 15%, #daa520 30%, #b8860b 45%, #daa520 60%, #ffec8b 75%, #ffd700 100%);
    background-size: 20px 20px, 100% 100%; /* Size for the pattern */

    border-radius: 25px;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.8), inset 0 0 40px rgba(255, 255, 255, 0.4), 0 0 0 8px #8b6914, 0 0 0 12px #ffd700, 0 0 0 16px #8b6914;
}

    .frame-style-4::after {
        content: '✦';
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 2.5rem;
        color: #ffd700;
        text-shadow: 0 0 20px #ff6b00, 0 0 40px #ffd700;
        z-index: 10;
    }

    .frame-style-4 img {
        border: 12px solid;
        /* (UPDATED) ADDED ARTFUL STRIPES (Striped velvet) */
        border-image: repeating-linear-gradient( -45deg, #8b0000, #8b0000 5px, #4a0f18 5px, #4a0f18 10px ) 1;
        box-shadow: inset 0 0 30px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(139, 0, 0, 0.5);
    }

/* --- FRAME STYLE 6: "The Imperial Majesty" (Static) --- */
.frame-style-6 {
    position: relative;
    padding: 45px;
    /* (UPDATED) ADDED ARTFUL STRIPES (Fluted gold) */
    background:
    /* Layer 1: Vertical fluted lines */
    repeating-linear-gradient( 90deg, rgba(255, 255, 255, 0.2) 0px, rgba(255, 255, 255, 0.2) 3px, rgba(0, 0, 0, 0.1) 3px, rgba(0, 0, 0, 0.1) 6px ),
    /* Layer 2: Base gold gradient */
    linear-gradient(135deg, #ffd700 0%, #ffec8b 12%, #daa520 25%, #b8860b 37%, #daa520 50%, #ffec8b 62%, #ffd700 75%, #ffec8b 87%, #ffd700 100%);
    border: 8px solid transparent;
    border-image: linear-gradient(45deg, #ffd700, #ff6b00, #ffd700, #ffec8b, #daa520, #ffd700, #ff6b00, #ffd700) 1;
    border-image-slice: 1;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.9), inset 0 0 50px rgba(255, 255, 255, 0.5), 0 0 0 10px #8b4513, 0 0 0 20px #ffd700, 0 0 0 30px #654321;
    clip-path: polygon( 0 30px, 30px 0, calc(100% - 30px) 0, 100% 30px, 100% calc(100% - 30px), calc(100% - 30px) 100%, 30px 100%, 0 calc(100% - 30px) );
}

    .frame-style-6 img {
        border: 25px solid;
        border-image: linear-gradient(135deg, #2c0b0e 0%, #5c1c22 25%, #8b0000 50%, #5c1c22 75%, #2c0b0e 100%) 1;
        box-shadow: inset 0 0 50px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(139, 0, 0, 0.7);
        clip-path: polygon( 15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px );
    }

/* --- FRAME STYLE 7: "The Emerald Sanctum" (Static) --- */
.frame-style-7 {
    position: relative;
    padding: 30px; /* This is the "velvet" mat */
    /* (UPDATED) ADDED ARTFUL STRIPES (Subtle pattern on velvet) */
    background:
    /* Layer 1: Subtle cross-hatch on velvet */
    repeating-linear-gradient( 45deg, rgba(0, 0, 0, 0.1) 0, rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 5px ), repeating-linear-gradient( -45deg, rgba(0, 0, 0, 0.1) 0, rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 5px ),
    /* Layer 2: Base green velvet */
    #003e00;
    border-radius: 10px;
    box-shadow: inset 0 0 40px 10px rgba(0, 0, 0, 0.7), 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 12px solid;
    /* (UPDATED) ADDED ARTFUL STRIPES (Striped wood) */
    border-image-source: repeating-linear-gradient( 135deg, #8B5A2B, #8B5A2B 4px, #3E2723 4px, #3E2723 8px );
    border-image-slice: 1;
}

    .frame-style-7::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
        border: 4px solid;
        border-color: #E4C562 #B8860B #B8860B #E4C562;
        z-index: 3;
        box-shadow: 0 0 15px 2px rgba(255, 215, 0, 0.5);
        clip-path: polygon( 0 15px, 15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px) );
    }

    .frame-style-7::after {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 30px;
        background: radial-gradient(ellipse at 50% 30%, #5cff7d, #008a1e 70%);
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
        border: 2px solid #FFD700;
        box-shadow: 0 0 20px 5px #5cff7d;
        z-index: 10;
    }

    .frame-style-7 img {
        position: relative;
        z-index: 1;
        clip-path: polygon( 0 15px, 15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px) );
    }

/* --- FRAME STYLE 8: "The Ornate Filigree" (Static) --- */
.frame-style-8 {
    padding: 20px; /* This is the "mat" area */
    background: #000;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 10px solid;
    /* (UPDATED) ADDED ARTFUL STRIPES (Twisted/Barber pole gold) */
    border-image-source: repeating-linear-gradient( -45deg, #FFF8C7, #FFF8C7 3px, #B8860B 3px, #B8860B 6px );
    border-image-slice: 1;
}

    .frame-style-8::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        border: 4px solid;
        border-color: #E4C562 #B8860B #B8860B #E4C562;
        z-index: 3;
        box-shadow: 0 0 10px 2px rgba(228, 197, 98, 0.3);
    }

    .frame-style-8 img {
        border: 12px solid #4a0f18; /* Deep red "velvet" */
        box-shadow: inset 0 0 12px 6px rgba(0,0,0,0.65);
    }


/* Responsive Layout for Mobile */
@media (max-width: 992px) {
    .profile-content {
        flex-direction: column; /* Stack columns vertically */
    }

    .profile-image-column {
        max-width: 500px; /* Constrain frame size on mobile */
    }

    .profile-details-column {
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .evaluator-name {
        font-size: 2rem;
        text-align: center;
    }

    .evaluator-title,
    .evaluator-institution {
        font-size: 1.2rem;
        text-align: center;
    }
}

/* Responsive Layout for Mobile */
@media (max-width: 992px) {
    .profile-content {
        flex-direction: column; /* Stack columns vertically */
    }

    .profile-image-column {
        max-width: 500px; /* Constrain frame size on mobile */
    }

    .profile-details-column {
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .evaluator-name {
        font-size: 2rem;
        text-align: center;
    }

    .evaluator-title,
    .evaluator-institution {
        font-size: 1.2rem;
        text-align: center;
    }
}


/* Responsive Layout for Mobile */
@media (max-width: 992px) {
    .profile-content {
        flex-direction: column; /* Stack columns vertically */
    }

    .profile-image-column {
        max-width: 500px; /* Constrain frame size on mobile */
    }

    .profile-details-column {
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .evaluator-name {
        font-size: 2rem;
        text-align: center;
    }

    .evaluator-title,
    .evaluator-institution {
        font-size: 1.2rem;
        text-align: center;
    }
}
