.static-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}


.page-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #00355f;
    border-top: 1px solid;
    border-bottom: 1px solid;
    line-height: 100pt;
    text-transform: uppercase;
}
.page-title div {
    width: 1240px;
    margin: 0 auto;
}

.page-title.text-left div {
    text-align: right;
}

.page-title.text-right div {
    text-align: left;
}

.page-link {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #00355f;
    border-top: 1px solid;
    border-bottom: 1px solid;
    line-height: 120pt;
    width: 100%;
    display: block;
    padding: 0 50px 0 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease 0.2s; /* Delayed text color transition */
}

.page-link.text-left span {
    float:right;
}

.page-link.text-right span {
    float:left;
}


/* Background overlay for animation */
.page-link::after {
    content: "";
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #00355f;
    z-index: -1;
    transition: width 0.5s ease, left 0s ease 0.5s, right 0s ease 0.5s;
}

/* Left-to-right animation for English */
.page-link.text-left::after {
    left: 0;
}

/* Right-to-left animation for Arabic */
.page-link.text-right::after {
    right: 0;
}

/* Hover effects */
.page-link:hover {
    color: #fff;
}

.page-link:hover::after {
    width: 100%;
    transition: width 0.5s ease;
}

.page-link.text-left:hover::before {
    opacity: 1;
    left: 20px;
}

.page-link.text-right:hover::after {
    opacity: 1;
    
}
.page-title.ar {
    
    direction: rtl;
}

@media (max-width: 768px) {
    
    .page-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-content {
        font-size: 1rem;
    }
    
    .page-content h1 {
        font-size: 1.75rem;
    }
    
    .page-content h2 {
        font-size: 1.5rem;
    }
    
    .page-content h3 {
        font-size: 1.25rem;
    }
    
    .page-content ul,
    .page-content ol {
        padding-left: 1.5rem;
    }
    
    .page-content.ar ul,
    .page-content.ar ol {
        padding-right: 1.5rem;
        padding-left: 0;
    }
    
    .page-content blockquote {
        padding-left: 1rem;
        margin: 1.5rem 0;
    }
    
    .page-content.ar blockquote {
        padding-right: 1rem;
        padding-left: 0;
    }
}

        @media (max-width: 480px) {

.page-link {
    font-size: 1rem;
    line-height: 70pt;
    padding: 0 30px 0 30px;

}

.newsletter-box {
    width:80% !important; 
}

        }

/* Print Styles */
@media print {
    .static-page-content {
        padding: 0;
    }
    
    .page-title {
        color: #000;
        font-size: 24pt;
    }
    
    .page-content {
        color: #000;
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .page-content a {
        color: #000;
        text-decoration: underline;
    }
    
    .page-meta {
        border-top: 1pt solid #000;
    }
}

.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}

/*  NEWSLETTER BOX  */
.newsletter-box {
    border: 2px solid #00375f;
    width: 30%;
    margin: 20px auto;
    padding: 20px;
    color:#00355f;
}

.newsletter-box-input-group {
  display: flex;
  border: 1px solid #00375f;
  height: 40px;
}

.newsletter-box-input-group input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  color: #00375f;
  padding: 10px;
  font-size: 14px;
}

.newsletter-box-input-group input[type="email"]::placeholder {
  color: #00375f;
}

.newsletter-box-button {
    background: white;
    color: #00375f;
    border: none;
    padding: 0px 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #00375f;
    transition: all 0.3s ease;
    margin: 3px 0;
    width: 50%;
    height: 32px;
    display: block;
}

.newsletter-box-button:hover {
    background: #00375f;
    border:1px solid #fff;
    color:#fff
}