/* ==========================================
   DEV Certification - Custom Styles
   ========================================== */

/* Root Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #f0f0f0;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

/* ==========================================
   Header & Navigation
   ========================================== */
header.navbar {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

header .navbar-brand {
    color: var(--text-dark) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

header .navbar-brand img {
    max-height: 50px;
    width: auto;
}

header .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

header .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    min-width: 220px;
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f0f8ff;
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.3;
}

/* Advanced Dropdown Styling */
.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ==========================================
   Hero Banner Section
   ========================================== */
.hero-banner {
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-banner h1 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-banner .lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
}

.hero-banner img {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-banner {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-banner img {
        max-height: 300px;
        margin-top: 2rem;
    }
}

/* ==========================================
   Sections & Spacing
   ========================================== */
section {
    scroll-behavior: smooth;
}

section h2 {
    color: var(--text-dark);
    font-weight: 700;
}

section p {
    color: var(--text-light);
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Container Fluid Adjustments */
.container-fluid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Padding */
@media (max-width: 768px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .px-4 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* ==========================================
   Certification Cards
   ========================================== */
.certification-card {
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-img-wrapper {
    border-bottom: 1px solid #e0e0e0;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.certification-card:hover img {
    transform: scale(1.05);
}

.certification-card .card-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

.certification-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.certification-card .card-footer {
    padding: 0.75rem;
}

.certification-card .btn {
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.certification-card .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive Certification Grid */
@media (max-width: 768px) {
    .card-img-wrapper {
        min-height: 120px;
    }
    
    .certification-card .card-title {
        font-size: 1rem;
    }
    
    .certification-card .card-text {
        font-size: 0.85rem;
    }
}

/* ==========================================
   Feature Box (Why Choose Us Section)
   ========================================== */
.feature-card {
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-card h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.feature-card p {
    margin-bottom: 0;
}

/* ==========================================
   About Section
   ========================================== */
#about {
    padding: 4rem 0;
}

#about h2 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#about li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

#about li strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

#about img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Certifications Section
   ========================================== */
#certifications {
    padding: 4rem 0;
}

#certifications h2 {
    color: var(--text-dark);
    font-weight: 700;
}

#certifications .lead {
    color: var(--text-light);
}

/* ==========================================
   Why Choose Us Section
   ========================================== */
#why-choose {
    padding: 4rem 0;
}

#why-choose h2 {
    color: var(--text-dark);
    font-weight: 700;
}

/* ==========================================
   Contact/CTA Section
   ========================================== */
#contact {
    padding: 4rem 0;
}

#contact h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

#contact .lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
}

/* ==========================================
   Contact Section (CTA)
   ========================================== */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #0052a3) !important;
}

.page-header.bg-primary.text-white h1,
.page-header.bg-primary.text-white .display-4,
.page-header.bg-primary.text-white .display-5 {
    color: #ffffff;
}

.page-header.bg-primary.text-white .lead,
.page-header.bg-primary.text-white p {
    color: rgba(255, 255, 255, 0.85);
}

section.py-5.bg-primary.text-white:not(.page-header) h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 2.5rem;
}

section.py-5.bg-primary.text-white:not(.page-header) .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

section.py-5.bg-primary.text-white:not(.page-header) .btn-light {
    background: #ffffff;
    color: #0d6efd;
    border-color: #ffffff;
}

section.py-5.bg-primary.text-white:not(.page-header) .btn-light:hover {
    background: #ffffff;
    color: #0d6efd;
}

#contact .btn-light {
    font-weight: 600;
    transition: all 0.3s ease;
}

#contact .btn-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

#contact .btn-outline-light {
    font-weight: 600;
    transition: all 0.3s ease;
}

#contact .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ==========================================
   Footer
   ========================================== */
footer {
    background-color: #1a1a1a !important;
    margin-top: 0;
    border-top: 4px solid var(--primary-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
    font-weight: 500;
}

footer h6 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

footer .text-muted {
    color: #bbb !important;
}

footer p {
    margin-bottom: 0.5rem;
}

footer ul li a {
    font-size: 0.9rem;
}

footer hr {
    opacity: 0.2;
    margin: 2rem 0;
}

.site-footer {
    padding-top: 60px;
    padding-bottom: 40px;
}

.site-footer .footer-brand {
    display: block;
}

.site-footer .footer-logo {
    max-width: 140px;
    width: 100%;
    height: auto;
}

.site-footer .row {
    align-items: flex-start;
}

.site-footer h6 {
    margin-bottom: 1rem;
}

/* ==========================================
   Information Pages Layout
   ========================================== */
.information-layout {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.information-sidebar {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    padding: 1.25rem;
}

.information-sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.information-sidebar-menu li + li {
    margin-top: 0.4rem;
}

.information-sidebar-menu a {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.information-sidebar-menu a:hover {
    color: var(--primary-color);
    background-color: #f0f7ff;
}

.information-sidebar-menu a.active {
    color: var(--primary-color);
    background-color: #e7f1ff;
    font-weight: 600;
}

.information-article {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.information-article h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.information-article h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.information-article p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0.95rem;
    color: var(--text-light);
}

.verification-form-wrap {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0 1.5rem;
}

.verification-contact p {
    margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .information-article {
        padding: 1.5rem;
    }
}

/* ==========================================
   Responsive Images
   ========================================== */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   Utilities
   ========================================== */
.bg-light {
    background-color: #f8f9fa !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow {
    box-shadow: var(--shadow-lg) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

.container-lg {
    max-width: 1200px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================
   Buttons
   ========================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

/* ==========================================
   Padding & Margin
   ========================================== */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Extra Small Screens (480px and below) */
@media (max-width: 480px) {
    header.navbar {
        padding: 0.75rem 0;
    }
    
    header .navbar-brand {
        font-size: 1.1rem;
    }
    
    header .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.5rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    section h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    section h3 {
        font-size: 1.15rem;
    }
    
    .hero-banner img {
        max-height: 300px;
    }
    
    .card-img-wrapper {
        height: 150px;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .row.g-4 {
        gap: 1rem !important;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
    
    .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
}

/* Tablet Screens (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    header .navbar-brand {
        font-size: 1.25rem;
    }
    
    header .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-banner img {
        max-height: 400px;
    }
    
    .card-img-wrapper {
        height: 200px;
    }
    
    .row.g-4 {
        gap: 1.5rem !important;
    }
    
    .btn-primary:hover, .btn-outline-primary:hover {
        transform: translateY(-2px);
    }
}

/* ==========================================
   Icon System
   ========================================== */
.icon-xs {
    width: 1rem;
    height: 1rem;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.icon-xl {
    width: 2.5rem;
    height: 2.5rem;
}

/* ==========================================
   Link Styling
   ========================================== */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

a:hover {
    color: #0052a3;
}

nav a, .navbar-brand {
    color: inherit;
}

nav a:hover {
    color: var(--primary-color);
}

/* ==========================================
   Form Elements
   ========================================== */
input[type="text"],
input[type="email"],
input[type="phone"],
input[type="message"],
textarea {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="message"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background-color: #f9fbfd;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ==========================================
   Accessibility Enhancements
   ========================================== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

/* ==========================================
   Card Styling Enhancements
   ========================================== */
.certification-card {
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.certification-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* ==========================================
   Feature Card Styling
   ========================================== */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0096ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    header, footer {
        display: none;
    }
    
    body {
        background-color: white;
    }
}
