/**
 * PMF Joomla Template - Main Stylesheet
 * Exact match for https://www.piemef.com/en/pmf-eng/
 */

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    background: #fff;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #0c5282;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #084164;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 15px;
}

hr {color: #0380ad;}

a:link, a:visited {
    color: rgb(5, 92, 144);
}

a strong {
    color: rgb(5, 92, 144) !important;
}

h1 {color: #0c689f; }

/* ========================================
   TOP HEADER - White Background with Logo
   ======================================== */
.site-header {
    background: #fff;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 55px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    color: #0c5282;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Top Right Icons */
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-icons a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c5282;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.top-icons a:hover {
    color: #084164;
    background: #f0f5f8;
}

/* ========================================
   MAIN NAVIGATION BAR - Dark Blue Full Width
   ======================================== */
.main-navigation-wrapper {
    background: #0c5282;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.main-navigation {
    background: transparent;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 10px 0;
    /*padding: 0;*/
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
    margin: 0 3px;
}

.main-navigation > ul > li > a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    text-transform: capitalize;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.main-navigation > ul > li:last-child > a {
    border-right: none;
}

.main-navigation > ul > li:hover > a,
.main-navigation > ul > li.current > a,
.main-navigation > ul > li.active > a {
    background: #084164;
}

/* Dropdown Menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0c5282;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    font-size: 13px;
}

.main-navigation ul ul a:hover {
    background: #084164;
    padding-left: 25px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #0c5282;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION - Financial Chart Background
   ======================================== */
.hero-section {
    /*position: relative;*/
    /*background: #000 url('../images/hero-bg.jpg') center/cover no-repeat;*/
    color: #fff;
    /*padding: 120px 0 100px;*/
    /*overflow: hidden;
    min-height: 500px;*/
}

.hero-section::before {
    /*content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;*/
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 300;
}

.hero-section h1 {
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #fff;
}

.hero-section h3 {
    font-size: 14px;
    }

.hero-section p {
    font-size: 18px;
    max-width: 650px;
    line-height: 1.8;
    color: #fff;
    font-weight: 300;
}

/* Hero Navigation Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots span.active,
.hero-dots span:hover {
    background: #fff;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs-wrapper {
    background: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.breadcrumbs-wrapper ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

.breadcrumbs-wrapper li {
    display: flex;
    align-items: center;
}

.breadcrumbs-wrapper li:after {
    content: '›';
    margin: 0 10px;
    color: #999;
    font-size: 16px;
}

.breadcrumbs-wrapper li:last-child:after {
    display: none;
}

.breadcrumbs-wrapper a {
    color: #666;
}

.breadcrumbs-wrapper a:hover {
    color: #0c5282;
}

.breadcrumbs-wrapper li:last-child {
    color: #999;
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */
.site-main {
    padding: 50px 0;
    background: #fff;
}

.main-row {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.main-row.with-sidebar .main-content {
    flex: 1;
    min-width: 0;
}

.main-row.full-width .main-content {
    width: 100%;
}

/* ========================================
   CONTENT STYLING
   ======================================== */
.main-content {
    background: #fff;
}

.main-content h1 {
    font-size: 36px;
    color: #0c5282;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.3;
}

.main-content h2 {
    font-size: 28px;
    color: #333;
    margin: 35px 0 20px;
    font-weight: 400;
    line-height: 1.3;
}

.main-content h3 {
    font-size: 22px;
    color: #333;
    margin: 30px 0 15px;
    font-weight: 400;
}

.main-content h4 {
	font-size: 18px;
    color: #444;
    margin: 25px 0 12px;
    font-weight: 600;
    color: #0380ad;
}

.main-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

.main-content ul,
.main-content ol {
    margin: 20px 0 20px 25px;
    line-height: 1.8;
    color: #666;
}

.main-content li {
    margin-bottom: 10px;
}

.main-content strong,
.main-content b {
    color: #333;
    font-weight: 600;
}

/* ========================================
   SIDEBAR - Right Column
   ======================================== */
.sidebar {
    width: 500px;
    flex-shrink: 0;
    border-left: 1px solid #eee;
    padding-left: 25px;
}

.sidebar .module {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar .module h3 {
    font-size: 20px;
    color: #0c5282;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0c5282;
    font-weight: 400;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    color: #666;
    display: block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar ul li a:hover {
    color: #0c5282;
    padding-left: 5px;
}

/* News Items in Sidebar */
.sidebar .news-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar .news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar .news-item img {
    width: 100%;
    margin-bottom: 12px;
}

.sidebar .news-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.4;
}

.sidebar .news-item h4 a {
    color: #333;
}

.sidebar .news-item h4 a:hover {
    color: #0c5282;
}

.sidebar .news-item .date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    display: block;
}

.sidebar .news-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.sidebar .article-title {
    font-size: 17px;
}

/* ========================================
   SERVICES SECTION - Grid Layout
   ======================================== */
.services-section {
    background: #f5f5f5;
    padding: 70px 0;
}

.services-section h2 {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 50px;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-content {
    padding: 30px;
}

.service-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 400;
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   CERTIFICATES SECTION
   ======================================== */
.certificates-section {
    padding: 70px 0;
    background: #fff;
}

.certificates-section h2 {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 50px;
    font-weight: 400;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.certificate-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    background: #fff;
}

.certificate-item img {
    max-height: 150px;
    width: auto;
    margin: 0 auto;
}

/* ========================================
   FOOTER TOP
   ======================================== */
.footer-top {
    background: #e8e8e8;
    padding: 50px 0;
    border-top: 3px solid #0c5282;
}

/* ========================================
   FOOTER - Dark Background
   ======================================== */
.site-footer {
    background: #065787;
    color: #a5a5a5;
    padding: 60px 0 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #999;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-col a:hover {
    color: #0c5282;
}

.footer-col p {
    color: #999;
    line-height: 1.8;
    font-size: 14px;
}

/* ========================================
   COPYRIGHT
   ======================================== */
.copyright {
    background: #065787;
    color: #a5a5a5;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #3a3a3a;
}

.copyright a {
    color: #e6e6e6;
}

.copyright a:hover {
    color: #0c5282;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #0c5282;
    color: #fff;
    text-align: center;
    line-height: 45px;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #084164;
    color: #fff;
    transform: translateY(-3px);
}

.icon-arrow-up:before {
  content: "↑"; /* Unicode up arrow */
  font-family: inherit; /* Use the current font */
  display: inline-block;

}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0c5282;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #084164;
    color: #fff;
    box-shadow: 0 3px 10px rgba(12,82,130,0.3);
}

.btn-secondary {
    background: transparent;
    color: #0c5282;
    border: 2px solid #0c5282;
}

.btn-secondary:hover {
    background: #0c5282;
    color: #fff;
}

/* ========================================
   TABLES
   ======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

table th {
    background: #0c5282;
    color: #fff;
    font-weight: 400;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

/* ========================================
   FORMS
   ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0c5282;
    box-shadow: 0 0 5px rgba(12,82,130,0.2);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.flip-card-front-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 !important;
  }