/* Brand Colors & CSS Variables */
:root {
    --primary-color: #0f2b5c;      /* Deep ADVN Blue */
    --accent-color: #c21a30;       /* ADVN Red (Đăng ký button) */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.02);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.06);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
body.dark-theme {
    --primary-color: #3b82f6;
    --accent-color: #ef4444;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --bg-main: #0b0f19;
    --bg-card: #151f32;
    --border-color: #1e293b;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    transition: var(--transition-smooth);
    padding-bottom: 50px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    transition: var(--transition-smooth);
}

body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5, body.dark-theme h6 {
    color: #ffffff;
}

a {
    color: #0f2b5c;
    text-decoration: none;
    transition: var(--transition-smooth);
}

body.dark-theme a {
    color: #60a5fa;
}

a:hover {
    color: var(--accent-color);
}

/* Header Mockup (Matching Screenshot Logo & Layout) */
.advn-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1100px; /* Constrained header width */
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-badge-round {
    background-color: #000000;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    transition: var(--transition-smooth);
}

body.dark-theme .main-nav a {
    color: #e2e8f0;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn-text-nav {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937 !important;
}

body.dark-theme .btn-text-nav {
    color: #e2e8f0 !important;
}

.btn-text-nav:hover {
    color: var(--accent-color) !important;
}

.btn-register-red {
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    transition: var(--transition-smooth);
}

.btn-register-red:hover {
    background-color: #9b1424;
}

/* Page content and grid details */
.profile-page-wrapper {
    max-width: 1100px; /* Restrict maximum width of page */
    margin: 30px auto;
    padding: 0 20px;
}

.profile-container {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Hero Banner Wrapper (Rounded corners like screenshot) */
.banner-wrapper {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: var(--transition-smooth);
}

.banner-img:hover {
    transform: scale(1.01);
}

/* 2. Profile Info Section */
.profile-info-section {
    display: grid;
    grid-template-columns: 3.5fr 8.5fr;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Left Grid: Avatar and Contact Box */
.profile-info-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.brand-avatar-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.brand-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact box exactly like the BrandUp screenshot */
.contact-details-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.contact-details-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #111827;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 10px;
}

body.dark-theme .contact-details-box h3 {
    color: white;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13.5px;
}

.contact-line:last-child {
    margin-bottom: 0;
}

.contact-line .icon-wrap {
    color: var(--text-muted);
    font-size: 16px;
    width: 20px;
    display: flex;
    justify-content: center;
}

.contact-line a {
    color: #4b5563;
    font-weight: 500;
}

body.dark-theme .contact-line a {
    color: #94a3b8;
}

.contact-line a:hover {
    color: var(--accent-color);
}

/* Right Grid: Title, badges, and Slogan info */
.profile-info-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.brand-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.brand-slogan {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 15px;
}

.brand-badges-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.brand-badges-row .badge {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

body.dark-theme .brand-badges-row .badge {
    background-color: #1e293b;
    color: #cbd5e1;
}

.brand-short-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: justify;
}

body.dark-theme .brand-short-desc {
    color: #cbd5e1;
}

/* Divider line */
.profile-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px auto 35px;
    max-width: 780px;
}

/* 3. Narrow Column Body Content Flow (Width matched to Advertising Vietnam read view) */
.profile-body-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 780px; /* Constrained column width for read content */
    margin: 0 auto;
}

.profile-body-content p {
    font-size: 15px;
    color: #374151;
    line-height: 1.8;
    text-align: justify;
}

body.dark-theme .profile-body-content p {
    color: #cbd5e1;
}

.content-header-row {
    margin-top: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.content-header-row h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #111827;
}

body.dark-theme .content-header-row h2 {
    color: white;
}

/* Image blocks */
.profile-image-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.profile-image-container img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: var(--transition-smooth);
}

.profile-image-container img:hover {
    transform: scale(1.01);
}

.profile-image-container .caption {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 10px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-style: italic;
}

/* Pillar segments */
.pillar-block, .service-detail-block {
    margin-top: 15px;
}

.pillar-block h3, .service-detail-block h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #0f2b5c;
    font-weight: 700;
}

body.dark-theme .pillar-block h3, body.dark-theme .service-detail-block h3 {
    color: #60a5fa;
}

/* Campaign Showcases Row (Visual Showcase) */
.campaign-showcase-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 25px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    padding: 15px;
    box-shadow: var(--shadow-soft);
    margin-top: 15px;
    transition: var(--transition-smooth);
}

.campaign-showcase-row:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.campaign-showcase-img {
    border-radius: 8px;
    overflow: hidden;
    height: 180px;
}

.campaign-showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.campaign-showcase-row:hover .campaign-showcase-img img {
    transform: scale(1.02);
}

.campaign-showcase-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.campaign-showcase-text h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.campaign-showcase-text .category {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.campaign-showcase-text p {
    font-size: 13.5px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.campaign-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.campaign-stats-grid .c-stat {
    text-align: center;
}

.campaign-stats-grid strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-main);
}

.campaign-stats-grid span {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Client logos collage */
.clients-collage-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.clients-collage-container img {
    max-width: 100%;
    height: auto;
}

/* Footer Section Mockup */
.advn-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.footer-info p {
    font-size: 13px;
    line-height: 1.6;
    margin: 15px 0;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: white;
}

.footer-logo span {
    color: var(--accent-color);
}

.copyright {
    font-size: 11px !important;
    color: #64748b;
}

.footer-links h4 {
    color: white;
    font-size: 15px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 13px;
}

.footer-links a:hover {
    color: white;
}

/* Image Zoom Full-Screen Modal Viewer */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f5f9;
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition-smooth);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-color);
    background-color: rgba(255,255,255,0.2);
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #94a3b8;
    padding: 15px 0;
    font-size: 14px;
    font-style: italic;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .profile-info-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .brand-avatar-circle {
        align-self: center;
    }
    
    .contact-details-box {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .main-nav {
        display: none;
    }
    
    .campaign-showcase-row {
        grid-template-columns: 1fr;
    }
    
    .campaign-showcase-img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 28px;
        text-align: center;
    }
    
    .brand-slogan {
        text-align: center;
    }
    
    .brand-badges-row {
        justify-content: center;
    }
    
    .banner-wrapper {
        border-radius: 12px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Concluding text & bottom CTA box */
.concluding-text {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    text-align: justify;
}

body.dark-theme .concluding-text {
    color: #cbd5e1;
}

.cta-box-bottom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 35px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.cta-box-bottom:hover {
    box-shadow: var(--shadow-medium);
    border-color: #0f2b5c;
}

body.dark-theme .cta-box-bottom:hover {
    border-color: #3b82f6;
}

.cta-box-bottom h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0f2b5c;
}

body.dark-theme .cta-box-bottom h3 {
    color: #60a5fa;
}

.cta-box-bottom p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-cta-email {
    background-color: #0f2b5c;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-cta-email:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 26, 48, 0.2);
}

