/* 
    TCPPA Ultimate Premium Stylesheet 
    Theme: "Cyber Blue & Onyx" - Modern, Sleek, Professional
    Primary Color: #15BFF1 (R21 G191 B241)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap');

:root {
    /* --- Color Palette --- */
    --primary: #15BFF1;       /* Bright Cyan Blue */
    --primary-gradient: linear-gradient(135deg, #15BFF1 0%, #0099cc 100%);
    --primary-dark: #0088b3;
    --primary-light: #e0f7fe; /* Very Light Blue Backgrounds */
    --primary-soft: rgba(21, 191, 241, 0.1);
    
    --accent: #FFD700;        /* Gold (for ratings/badges) */
    
    --dark: #0f172a;          /* Deep Onyx/Slate */
    --secondary: #334155;     /* Slate 700 */
    --muted: #64748b;         /* Slate 500 */
    
    --surface: #ffffff;
    --bg-body: #f8fafc;       /* Clean White-Blue tint */
    --border: #e2e8f0;

    /* --- Dimensions & Spacing --- */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 50px;

    /* --- Shadows (Blue Tinted Glows) --- */
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    --shadow-lg: 0 25px 50px -12px rgba(21, 191, 241, 0.15); /* Blue Glow */
    --shadow-input: 0 4px 20px rgba(0, 0, 0, 0.08); 
    --shadow-hover: 0 20px 40px -5px rgba(21, 191, 241, 0.25);

    /* --- Animations --- */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid var(--bg-body); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.fw-800 { font-weight: 800; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* =========================================
   2. NAVIGATION (Glassmorphism)
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary) !important;
    margin: 0 5px;
    padding: 8px 16px !important;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

/* =========================================
   3. HERO SECTION (Attractive)
   ========================================= */
.hero-header {
    height: 85vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0; /* Remove awkward spacing */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradient from Dark Blue/Black to Transparent */
    background: linear-gradient(180deg, rgb(17, 133, 168) 0%, rgba(0, 195, 255, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--surface);
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-header { height: 70vh; min-height: 500px; }
}

/* =========================================
   4. BUTTONS & UI ELEMENTS
   ========================================= */
.btn-theme {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 36px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(21, 191, 241, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-theme::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0099cc 0%, #15BFF1 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-theme:hover::before { opacity: 1; }
.btn-theme:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(21, 191, 241, 0.6);
    color: var(--white);
}

.btn-light {
    background: var(--surface);
    color: var(--dark);
    border: 1px solid var(--surface);
}
.btn-light:hover { background: #f8fafc; color: var(--primary); }

.badge-hero {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =========================================
   5. SEARCH BAR (Fixed & Sleek)
   ========================================= */
.search-wrapper {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

.search-input {
    height: 65px;
    width: 100%;
    border-radius: 50px;
    padding-left: 65px !important; /* Space for icon */
    padding-right: 25px;
    font-size: 1.1rem;
    border: 2px solid transparent;
    background: var(--surface);
    box-shadow: var(--shadow-input);
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(21, 191, 241, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.3rem;
    z-index: 10;
    pointer-events: none;
}

.search-suggestions {
    position: absolute;
    top: 75px;
    left: 25px;
    right: 25px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    display: none;
    border: 1px solid var(--border);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

.suggestion-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--bg-body);
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary);
    transition: 0.2s;
}

.suggestion-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding-left: 25px;
}

/* =========================================
   6. CARDS (Featured, Wide, & ID)
   ========================================= */

/* --- Featured Card (Home) --- */
.studio-card-home {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.studio-card-home:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.studio-card-home .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.studio-card-home:hover .card-img-top { transform: scale(1.05); }

.featured-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--dark);
    color: var(--primary);
    font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px; z-index: 10;
}

/* --- Directory Wide Card --- */
.studio-card-wide {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
    .studio-card-wide { flex-direction: row; height: 260px; }
    .studio-img-wrap { width: 38%; height: 100%; }
    .studio-content { width: 62%; padding: 24px 32px; }
}

.studio-card-wide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.studio-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: #e2e8f0;
}

.studio-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}

.studio-card-wide:hover .studio-img { transform: scale(1.05); }

.studio-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Member Verification Card (ID Style) --- */
.member-id-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.member-id-card::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height: 8px;
    background: var(--primary-gradient);
}

.id-header {
    background: var(--bg-body);
    padding: 30px 20px 60px;
    text-align: center;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
}

.id-photo-container {
    width: 130px; height: 130px;
    margin: -65px auto 15px;
    border-radius: 50%;
    padding: 5px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    position: relative; z-index: 2;
}

.id-photo {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary-light);
}

.status-active {
    background: #ecfdf5; color: #059669;
    padding: 8px 24px; border-radius: 50px;
    font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; border: 1px solid #a7f3d0;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.1);
}

.status-inactive {
    background: #fef2f2; color: #dc2626;
    padding: 8px 24px; border-radius: 50px;
    font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; border: 1px solid #fecdd3;
}

/* =========================================
   7. MASONRY GALLERY (Pinterest Effect)
   ========================================= */
.gallery-grid {
    column-count: 3;
    column-gap: 24px;
}

@media (max-width: 992px) { .gallery-grid { column-count: 2; } }
@media (max-width: 576px) { .gallery-grid { column-count: 1; } }

.gallery-item {
    margin-bottom: 24px;
    break-inside: avoid;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    background: var(--dark); /* Loading background */
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease, opacity 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* =========================================
   8. FORMS & FILTERS
   ========================================= */
.filter-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky; top: 100px;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-label {
    color: var(--dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding-top: 80px;
    margin-top: auto;
    border-top: 4px solid var(--primary);
}

footer h5, footer h3 { color: var(--white); }

.footer-link {
    color: #94a3b8;
    transition: var(--transition);
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.hover-text-white:hover { color: var(--white) !important; }

/* =========================================
   10. ANIMATIONS (Entrance)
   ========================================= */
.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   11. ABOUT PAGE (Premium Layout)
   ========================================= */

/* Main Text */
.about-lead {
    font-size: 1.25rem;
    color: var(--secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* President Message Cards */
.message-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Hover Effect */
.message-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Decorative Top Border */
.message-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

.message-card:hover::before { opacity: 1; }

/* Titles inside cards */
.msg-title {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.msg-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.8rem;
    display: inline-block;
}

.msg-body {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
}

/* Layout Grid for Messages */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* --- Message Card Profile Image --- */
.msg-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.message-card {
    text-align: center; /* Center align content for better look with image */
    padding: 2.5rem 2rem;
}

.msg-name {
    margin-bottom: 0.5rem; /* Adjust spacing */
    border-bottom: none; /* Remove underline if preferred with image */
}
/* --- Feature Boxes (Why TCP) --- */
.feature-box {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 5px solid transparent;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-left: 5px solid var(--primary);
}

.feature-icon-wrapper i {
    transition: transform 0.4s ease;
}

.feature-box:hover .feature-icon-wrapper i {
    transform: scale(1.2) rotate(5deg);
}

.leading-relaxed {
    line-height: 1.8;
}

/* =========================================
   12. EXECUTIVE PREMIUM CARD STYLES
   ========================================= */

/* The Premium Card Container */
.member-id-card.premium {
    background: #ffffff;
    border: 1px solid #eec15b; /* Gold Border */
    box-shadow: 0 20px 50px -10px rgba(218, 165, 32, 0.2); /* Golden Glow Shadow */
}

/* Top Strip (Gold Gradient) */
.member-id-card.premium::before {
    background: linear-gradient(90deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    height: 8px;
}

/* Header Section - Adjusted Layout */
.member-id-card.premium .id-header {
    background: #1a1a1a; /* Dark Luxury Background */
    border-bottom: 2px solid #B38728;
    padding-top: 35px;
    padding-bottom: 90px; /* Increased space so Photo doesn't cover Designation */
}

.member-id-card.premium .id-header h5 {
    color: #FCF6BA; /* Light Gold Text */
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.15rem; /* Slightly larger */
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Photo Container - Gold Border */
.member-id-card.premium .id-photo-container {
    background: linear-gradient(135deg, #BF953F, #FCF6BA);
    padding: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    margin-top: -75px; /* Pulls up into the header space nicely */
    width: 140px;      /* Slightly larger photo for Executives */
    height: 140px;
}

.member-id-card.premium .id-photo {
    border: 3px solid #1a1a1a; /* Dark inner border for contrast */
}

/* --- DATA AREA: Blue Theme Integration --- */

/* Name & Business Title */
.member-id-card.premium h3 {
    color: #0f172a; /* Dark Onyx */
    margin-top: 15px;
}

.member-id-card.premium > p.text-muted {
    color: #64748b !important; /* Standard Slate for Business Name */
}

/* The Info Box (ID, Phone, City) -> CYBER BLUE THEME */
.member-id-card.premium .bg-light {
    background-color: rgba(21, 191, 241, 0.05) !important; /* Very soft Blue */
    border: 1px solid rgba(21, 191, 241, 0.25); /* Primary Blue Border */
    box-shadow: inset 0 0 20px rgba(21, 191, 241, 0.05); /* Subtle inner glow */
}

/* Labels inside the box (ID NO, Phone, City) */
.member-id-card.premium .bg-light small.text-muted {
    color: #0088b3 !important; /* Primary Dark Blue for labels */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Values inside the box */
.member-id-card.premium .bg-light strong {
    color: #0f172a; /* Dark Text for readability */
    font-size: 1.05rem;
}

/* Separator line inside info box */
.member-id-card.premium .border-top {
    border-color: rgba(21, 191, 241, 0.15) !important;
}

/* Active Status Badge - Gold Gradient (Kept to signify Rank) */
.member-id-card.premium .status-active {
    background: linear-gradient(135deg, #BF953F 0%, #B38728 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* =========================================
   13. ID CARD LAYOUT & ALIGNMENT FIX
   ========================================= */

/* 1. Reset the Info Box Container */
.member-id-card .bg-light {
    display: block !important;            /* Fixes inline-block alignment issues */
    width: 90% !important;                /* Wider box to prevent cramping */
    margin: 0 auto 1.5rem auto !important;/* Perfectly centers the box horizontally */
    padding: 20px 10px !important;        /* Consistent internal spacing */
    text-align: center !important;        /* Forces all text to be centered */
}

/* 2. Reset the internal Grid Row */
.member-id-card .bg-light .row {
    margin: 0 !important;                 /* Removes Bootstrap's negative margins */
    width: 100%;
}

/* 3. Style ID and Phone Columns (Top Row) */
.member-id-card .bg-light .col-6 {
    text-align: center !important;        /* Centers text while keeping them Left/Right */
    padding-bottom: 12px !important;      /* Consistent space above the line */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 4. Style City Column (Bottom Row) */
.member-id-card .bg-light .col-12 {
    text-align: center !important;        /* Strictly centers the City */
    margin-top: 0 !important;             /* Overrides Bootstrap spacing */
    padding-top: 12px !important;         /* Consistent space below the line */
    border-top: 1px solid rgba(0,0,0,0.1) !important; /* Clean full-width line */
    width: 100%;
}

/* 5. Typography Polish for Labels & Values */
.member-id-card .bg-light small {
    display: block;
    width: 100%;
    margin-bottom: 4px;                   /* Gap between Label (ID) and Value (TCP-001) */
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.member-id-card .bg-light strong {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* 6. Gold Border color for Premium Cards */
.member-id-card.premium .bg-light .col-12 {
    border-color: rgba(184, 134, 11, 0.3) !important;
}