/*
Theme Name: UCNA - University Theme
Theme URI: https://ucna.ac.ir
Author: UCNA Development Team
Author URI: https://ucna.ac.ir
Description: A custom WordPress theme for University of Nabi Akram (UCNA) with full Customizer support and Deputy custom post type.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ucna
Domain Path: /languages
Tags: education, university, rtl, customizer, custom-post-type
*/

/* ================================
   Base Styles
   ================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* ================================
   Header Styles
   ================================ */

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.deputy-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 15px 0;
}

.deputy-header .uk-navbar-nav > li > a {
    color: #fff;
}

.logo {
    max-height: 60px;
    margin-left: 20px;
}

/* ================================
   Navigation
   ================================ */

.uk-navbar-nav {
    gap: 5px;
}

.uk-navbar-nav > li > a {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.uk-navbar-nav > li > a:hover {
    color: #2c5282;
}

.uk-navbar-dropdown {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ================================
   Banner Section
   ================================ */

.banner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.banner h2 {
    color: #1e3a5f;
    font-size: 2rem;
    margin-bottom: 5px;
}

.banner p {
    color: #666;
    margin: 5px 0 20px 0;
}

/* ================================
   Announcements Section
   ================================ */

#home-news h2 {
    color: #1e3a5f;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.date {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.date span {
    display: block;
    font-weight: bold;
}

.date span:first-child {
    font-size: 1.5rem;
}

/* ================================
   Cards
   ================================ */

.uk-card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.uk-card-default {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ================================
   Faculty Cards (Style 1)
   ================================ */

.elegant-card-style1 {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.elegant-card-style1:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.card-humanities {
    border-top: 4px solid #e53e3e;
}

.card-basic {
    border-top: 4px solid #38a169;
}

.card-engineering {
    border-top: 4px solid #3182ce;
}

.card-art {
    border-top: 4px solid #805ad5;
}

.card-title {
    font-size: 1.1rem;
}

.card-title span {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.card-title b {
    color: #1e3a5f;
    font-size: 1.2rem;
}

/* ================================
   Service Cards (Style 2)
   ================================ */

.elegant-card-style2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.elegant-card-style2:hover {
    transform: scale(1.05);
}

.card-registration {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-virtual {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-alumni {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-forms {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* ================================
   Goal Section
   ================================ */

.goal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.goal h2 {
    color: #1e3a5f;
    font-size: 1.5rem;
}

.goal video {
    width: 100%;
    border-radius: 8px;
}

.goal p {
    color: #444;
    line-height: 1.8;
    text-align: justify;
}

/* ================================
   Blog Section
   ================================ */

#home-blog h2 {
    color: #1e3a5f;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

#home-blog .uk-card-title {
    font-size: 1.1rem;
    color: #1e3a5f;
}

#home-blog img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#home-blog a:hover img {
    transform: scale(1.05);
}

/* ================================
   Additional Info Section
   ================================ */

.additional-info {
    margin-top: 40px;
}

.popular-links .card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.popular-links .body {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.popular-links svg {
    color: #2c5282;
    flex-shrink: 0;
}

.popular-links h3 {
    color: #1e3a5f;
    font-size: 1.2rem;
    margin: 0;
}

.popular-links p {
    color: #666;
    margin: 5px 0 0 0;
}

.home-external-links .body {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.home-external-links .title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c5282;
    font-weight: bold;
}

/* ================================
   Counters Section
   ================================ */

#counters {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    color: #fff;
}

.counter-card {
    text-align: center;
    padding: 20px;
}

.counter svg {
    margin-bottom: 15px;
}

.counter .value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.counter .title {
    font-size: 1rem;
    opacity: 0.9;
}

/* ================================
   Footer
   ================================ */

#mainfooter,
.deputy-footer {
    background: #1e3a5f;
    color: #fff;
    margin-top: 50px;
}

#mainfooter h3,
.deputy-footer h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#mainfooter a,
.deputy-footer a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

#mainfooter a:hover,
.deputy-footer a:hover {
    color: #fff;
}

#mainfooter address,
.deputy-footer address {
    color: #cbd5e0;
    line-height: 1.8;
}

#Socials a {
    color: #fff;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

#Socials a:hover {
    transform: translateY(-3px);
}

/* ================================
   Deputy Page Styles
   ================================ */

.deputy-page-title {
    text-align: center;
    padding: 60px 0 40px;
}

.deputy-page-title h1 {
    color: #1e3a5f;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.deputy-page-title p {
    color: #666;
    font-size: 1.2rem;
}

/* Section Headers */
.section-header-blue {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-header-green {
    background: linear-gradient(135deg, #38a169 0%, #276749 100%);
    color: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-header-purple {
    background: linear-gradient(135deg, #805ad5 0%, #553c9a 100%);
    color: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-header {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

/* Manager Cards */
.manager-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-right: 4px solid;
}

.manager-card.blue {
    border-right-color: #3182ce;
}

.manager-card.green {
    border-right-color: #38a169;
}

.manager-card.purple {
    border-right-color: #805ad5;
}

/* Deputy Cards */
.deputy-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-right: 3px solid #e2e8f0;
}

.deputy-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.deputy-card.deputy-card-purple {
    border-right-color: #805ad5;
}

.small-deputy-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.small-deputy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Avatar Styles */
.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-medium {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-border-blue {
    border: 3px solid #3182ce;
}

.avatar-border-green {
    border: 3px solid #38a169;
}

.avatar-border-purple {
    border: 3px solid #805ad5;
}

/* Statistics Cards */
.stat-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    color: #fff;
}

.stat-card-blue {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

.stat-card-green {
    background: linear-gradient(135deg, #38a169 0%, #276749 100%);
}

.stat-card-purple {
    background: linear-gradient(135deg, #805ad5 0%, #553c9a 100%);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ================================
   Background Patterns
   ================================ */

.bg {
    position: relative;
    overflow: hidden;
}

.blob-bg::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(44, 82, 130, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.blob-bg-top::before {
    top: -100px;
    right: -50px;
}

/* ================================
   Buttons
   ================================ */

.uk-button-default {
    border: 2px solid #2c5282;
    color: #2c5282;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.uk-button-default:hover {
    background: #2c5282;
    color: #fff;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 960px) {
    .banner h2 {
        font-size: 1.5rem;
    }
    
    .counter .value {
        font-size: 2rem;
    }
    
    .deputy-page-title h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .logo {
        max-height: 45px;
    }
    
    .uk-navbar-nav > li > a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ================================
   WordPress Specific
   ================================ */

.alignleft {
    float: right;
    margin-left: 1.5em;
}

.alignright {
    float: left;
    margin-right: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.wp-caption-text {
    text-align: center;
}

.gallery-caption {
    display: block;
}

.bypostauthor {
    display: block;
}

/* Admin Bar Fix */
body.admin-bar .header {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        margin-top: 46px;
    }
}
